JP4479731B2 - Image reading apparatus and image reading processing program - Google Patents

Image reading apparatus and image reading processing program Download PDF

Info

Publication number
JP4479731B2
JP4479731B2 JP2007018985A JP2007018985A JP4479731B2 JP 4479731 B2 JP4479731 B2 JP 4479731B2 JP 2007018985 A JP2007018985 A JP 2007018985A JP 2007018985 A JP2007018985 A JP 2007018985A JP 4479731 B2 JP4479731 B2 JP 4479731B2
Authority
JP
Japan
Prior art keywords
image
document
image reading
value
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007018985A
Other languages
Japanese (ja)
Other versions
JP2008187433A (en
Inventor
与一 須崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2007018985A priority Critical patent/JP4479731B2/en
Publication of JP2008187433A publication Critical patent/JP2008187433A/en
Application granted granted Critical
Publication of JP4479731B2 publication Critical patent/JP4479731B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像読取装置および画像読取処理プログラムに関し、特に、原稿の種類に応じて適切な濃度で出力することができる画像読取装置および画像読取処理プログラムに関する。   The present invention relates to an image reading apparatus and an image reading processing program, and more particularly, to an image reading apparatus and an image reading processing program that can output at an appropriate density according to the type of document.

原稿に描かれた画像を読み取り、印刷を行う場合に、濃く描かれた部分は、識別できるが、薄く描かれた部分は、識別が困難、あるいは識別が不能になる場合がある。また、カラー画像をモノクロ画像で印刷を行ったり、カラー画像をファクシミリ受信し、モノクロ画像で印刷が行われる場合に、カラー画像では識別できる画像が、モノクロ画像では識別できなくなったり不鮮明になったりすることがある。特に、カーボン紙を用いてコピーされた用紙の画像をスキャンし、その画像をモノクロ画像で印刷する場合は、カーボン紙により転写された文字などの濃度が薄く、鮮明に印刷されない。   When an image drawn on a document is read and printed, a darkly drawn portion can be identified, but a thinly drawn portion may be difficult or impossible to identify. In addition, when a color image is printed as a monochrome image, or when a color image is received by facsimile and printed as a monochrome image, an image that can be identified with a color image may become unidentifiable with a monochrome image or become unclear. Sometimes. In particular, when a paper image copied using carbon paper is scanned and the image is printed as a monochrome image, the density of characters and the like transferred by the carbon paper is thin, and is not printed clearly.

特開平8−44818号公報(特許文献1)には、カーボン紙を使用して一度に複数枚の用紙に文字を記入することができる場合に、下に重なっている用紙ほど文字が薄くなるので、用紙に予め上から何枚目の用紙であるかを識別する識別マークを付加しておき、その識別マークを判別して画像の濃度を変更する技術が開示されている。
特開平8−44818号公報
In Japanese Patent Application Laid-Open No. 8-44818 (Patent Document 1), when carbon paper can be used to write characters on a plurality of papers at a time, the paper overlapped below becomes thinner. A technique is disclosed in which an identification mark for identifying the number of sheets from above is added to a sheet in advance, and the density of the image is changed by determining the identification mark.
JP-A-8-44818

しかしながら、特許文献1に記載された技術では、カーボン紙を使用して複写した原稿(以下、カーボンコピーと称す)をコピーする際に、用紙に予め上から何枚目の用紙であるかを識別する識別マークが付加されている場合には、濃度を調整することができるが、用紙にその識別マークが付加されていない場合は、濃度を調整することができないという問題点があった。   However, in the technique described in Patent Document 1, when copying a manuscript copied using carbon paper (hereinafter referred to as carbon copy), the number of sheets from the top is identified in advance. When the identification mark is added, the density can be adjusted. However, when the identification mark is not added to the paper, the density cannot be adjusted.

本発明は、上記問題点を解決するためになされたものであり、原稿の種類に応じて適切な濃度で出力することができる画像読取装置および画像読取処理プログラムを提供することを目的としている。   SUMMARY An advantage of some aspects of the invention is that it provides an image reading apparatus and an image reading processing program capable of outputting an appropriate density according to the type of document.

この目的を達成するために、請求項1記載の画像読取装置は、原稿を少なくともモノクロ画像で読み取る画像読取手段と、その画像読取手段と原稿とを相対的に移動させる移動手段とを備え、前記画像読取手段による読取動作と前記移動手段による移動動作とを繰り返して前記原稿を読み取るものであり、前記移動手段による移動方向における原稿の一端側に設けられ、その原稿の種類を判定するための判定範囲を前記画像読取手段を用いてモノクロ画像で読み取る判定範囲処理手段と、その判定範囲処理手段により読み取られた前記判定範囲のモノクロ画像の明度を検出し、前記判定範囲内の画素の明度値を平均することにより平均明度値を算出する明度検出手段と、その明度検出手段により算出された平均明度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断手段と、前記判断手段により前記原稿が特殊原稿であると判断された場合は、前記画像読取手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力手段とを備えている。 In order to achieve this object, an image reading apparatus according to claim 1 includes an image reading unit that reads at least a monochrome image, and a moving unit that relatively moves the image reading unit and the document. A determination for determining the type of the original, which is provided on one end side of the original in the moving direction by the moving means, and repeats the reading operation by the image reading means and the moving operation by the moving means. A determination range processing unit that reads a range as a monochrome image using the image reading unit, and detects a lightness value of a monochrome image in the determination range read by the determination range processing unit, and a lightness value of a pixel in the determination range and brightness detecting means for calculating the average brightness value by averaging the average brightness value calculated by the brightness detecting means is within a predetermined range A determination unit that determines that the document is a special document; and when the determination unit determines that the document is a special document, each pixel constituting the monochrome image read by the image reading unit Output means for changing the density value so as to increase the density.

請求項2記載の画像読取装置は、原稿をカラー画像あるいはモノクロ画像で読み取る画像読取手段と、その画像読取手段と原稿とを相対的に移動させる移動手段とを備え、前記画像読取手段による読取動作と前記移動手段による移動動作とを繰り返して前記原稿を読み取るものであり、前記移動手段による移動方向における原稿の一端側に設けられ、その原稿の種類を判定するための判定範囲を前記画像読取手段を用いてカラー画像で読み取る判定範囲処理手段と、その判定範囲処理手段により読み取られた前記判定範囲のカラー画像の明度値と彩度値とを検出し、前記判定範囲内の画素の明度値および彩度値をそれぞれ平均することにより平均明度値および平均彩度値を算出する色彩情報検出手段と、その色彩情報検出手段により算出された平均明度値が所定の範囲に含まれ、且つ平均彩度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断手段と、前記判断手段により前記原稿が特殊原稿であると判断された場合は、前記画像読取手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力手段とを備えている。 The image reading apparatus according to claim 2, further comprising: an image reading unit that reads a document as a color image or a monochrome image; and a moving unit that relatively moves the image reading unit and the document. And the moving operation by the moving means are repeated to read the original, provided on one end side of the original in the moving direction by the moving means, and a determination range for determining the type of the original is the image reading means A determination range processing unit that reads a color image using the image, and detects a brightness value and a saturation value of the color image in the determination range read by the determination range processing unit, and the brightness value of the pixels in the determination range and and color information detecting means for calculating a mean brightness value and the average saturation value by averaging the saturation value, respectively, calculated by the color information detecting unit The average brightness value is within a predetermined range, and when the average saturation value included in a predetermined range, and determination means for the document is determined to be a special document, the document is a special document by the determining means If it is determined that there is, output means for changing the density value of each pixel constituting the monochrome image read by the image reading means so as to increase the density is provided.

請求項記載の画像読取装置は、請求項1または2に記載の画像読取装置において、前記原稿の一端を検出するエッジ検出手段を備え、前記判定範囲処理手段は、そのエッジ検出手段により検出された前記原稿の一端から前記他端側へ向けて略3mmの幅の内側であって、そのエッジ検出手段により検出された一端に沿う帯状の範囲を前記判定範囲として画像を読み取るものである。 According to a third aspect of the present invention, there is provided the image reading apparatus according to the first or second aspect , further comprising an edge detecting unit that detects one end of the document, and the determination range processing unit is detected by the edge detecting unit. Further, the image is read with a band-like range inside the width of about 3 mm from one end of the document to the other end side and along the one end detected by the edge detecting means as the determination range.

請求項記載の画像読取装置は、請求項1からのいずれかに記載の画像読取装置において、前記出力手段は、前記判断手段により前記原稿が特殊原稿であると判断された場合は、前記画像読取手段により読み取られたモノクロ画像のうち前記判定範囲を除く画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力するものである。 The image reading apparatus according to claim 4 is the image reading apparatus according to any one of claims 1 to 3 , wherein the output unit determines that the original is a special original when the determination unit determines that the original is a special original. Of the monochrome image read by the image reading means, the density value of each pixel constituting the image excluding the determination range is changed and output so that the density is high.

請求項記載の画像読取装置は、原稿を少なくともモノクロ画像で読み取る画像読取手段を備えたものであり、前記画像読取手段により前記原稿の全範囲をモノクロ画像で読み取るプレスキャン処理手段と、そのプレスキャン処理手段により読み取られたモノクロ画像に基づいて原稿の複数のエッジを検出するエッジ検出手段と、そのエッジ検出手段により検出された複数のエッジに沿う原稿の内側の帯状の範囲を判定範囲とし、その判定範囲の明度を前記プレスキャン処理手段により読み取られたモノクロ画像に基づいて検出し、前記判定範囲内の画素の明度値を平均することにより平均明度値を算出する明度検出手段と、その明度検出手段により算出された平均明度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断手段と、前記プレスキャン処理手段によりモノクロ画像を読み取った後、前記画像読取手段により前記原稿を再度モノクロ画像で読み取る本スキャン処理手段と、前記判断手段により前記原稿が特殊原稿であると判断された場合は、前記本スキャン処理手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力手段とを備えている。 6. The image reading apparatus according to claim 5 , further comprising an image reading unit that reads at least a monochrome image of a document, a prescan processing unit that reads the entire range of the document as a monochrome image by the image reading unit, and a press thereof. Edge detection means for detecting a plurality of edges of the document based on the monochrome image read by the can processing means, and a band-like range inside the document along the plurality of edges detected by the edge detection means as a determination range, and brightness detecting means for calculating the average brightness value by its brightness value of the determination range is detected based on the monochromatic image read by the prescan processing means averages the brightness values of the pixels in the determination range, the If the average brightness value calculated by the brightness detecting means is within a predetermined range, it determines that the original is the special original And a main scanning processing unit that reads the original again as a monochrome image by the image reading unit, and the determination unit determines that the original is a special original. In such a case, there is provided output means for changing the density value of each pixel constituting the monochrome image read by the main scan processing means so as to increase the density.

請求項記載の画像読取装置は、原稿をカラー画像あるいはモノクロ画像で読み取る画像読取手段を備えたものであり、前記画像読取手段により前記原稿の全範囲をカラー画像で読み取るプレスキャン処理手段と、そのプレスキャン処理手段により読み取られたカラー画像に基づいて原稿の複数のエッジを検出するエッジ検出手段と、そのエッジ検出手段により検出された複数のエッジに沿う原稿の内側の帯状の範囲を判定範囲とし、その判定範囲の明度値と彩度値とを前記プレスキャン処理手段により読み取られたカラー画像に基づいて検出し、前記判定範囲内の画素の明度値および彩度値をそれぞれ平均することにより平均明度値および平均彩度値を算出する色彩情報検出手段と、その色彩情報検出手段により算出された平均明度値が所定の範囲に含まれ、且つ平均彩度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断手段と、前記プレスキャン処理手段によりカラー画像を読み取った後、前記画像読取手段により前記原稿を再度モノクロ画像で読み取る本スキャン処理手段と、前記判断手段により前記原稿が特殊原稿であると判断された場合は、前記本スキャン処理手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力手段とを備えている。 The image reading apparatus according to claim 6 includes an image reading unit that reads a document as a color image or a monochrome image, and a prescan processing unit that reads the entire range of the document as a color image by the image reading unit; Edge detection means for detecting a plurality of edges of the document based on the color image read by the pre-scan processing means, and a determination range for the belt-like area inside the document along the plurality of edges detected by the edge detection means by the by, detected on the basis of the color image read by the prescan processing means the lightness and saturation values of the determination range, the average brightness value and the saturation value of the pixels in the determination range, respectively Tokoro and color information detecting means for calculating a mean brightness value and the average saturation value, the average brightness value calculated by the color information detecting means Within the scope of, and when the average saturation value included in a predetermined range, and determination means for the document is determined to be a special document, after reading a color image by the prescan processing unit, the image A main scanning processing unit that reads the original again as a monochrome image by the reading unit, and each of the monochrome images that are read by the main scanning processing unit when the determination unit determines that the original is a special original. Output means for changing and outputting the density value of the pixel so that the density becomes high.

請求項記載の画像読取装置は、請求項記載の画像読取装置において、前記明度検出手段は、前記エッジ検出手段により検出されたエッジから、そのエッジに対向するエッジ側へ向けて略3mmの幅の内側であって、そのエッジ検出手段により検出されたエッジに沿う帯状の範囲を判定範囲として、その判定範囲の明度を検出するものである。 Billing an image reading apparatus in claim 7, wherein, in the image reading apparatus according to claim 5, wherein said lightness detection means, from the detected edge by the edge detecting means, a substantially 3mm toward the edge side opposite to that edge The lightness value of the determination range is detected using a band-shaped range inside the width and along the edge detected by the edge detection means as a determination range.

請求項記載の画像読取装置は、請求項記載の画像読取装置において、前記色彩情報検出手段は、前記エッジ検出手段により検出されたエッジから、そのエッジに対向するエッジ側へ向けて略3mmの幅の内側であって、そのエッジ検出手段により検出されたエッジに沿う帯状の範囲を判定範囲として、その判定範囲の明度値と彩度値とを検出するものである。 An image reading apparatus according to an eighth aspect of the present invention is the image reading apparatus according to the sixth aspect , wherein the color information detecting means is approximately 3 mm from the edge detected by the edge detecting means toward an edge facing the edge. The lightness value and the saturation value of the determination range are detected using the band-like range along the edge detected by the edge detection means as the determination range.

請求項記載の画像読取装置は、請求項からのいずれかに記載の画像読取装置において、前記プレスキャン処理手段により所定の解像度で読み取られた前記原稿の全範囲の画像を記憶する画像情報記憶手段を備え、前記エッジ検出手段は、その画像情報記憶手段により記憶された画像に基づいて原稿の複数のエッジを検出し、前記本スキャン処理手段は、前記プレスキャン処理手段の読み取り解像度より高い解像度で前記画像読取手段によりモノクロ画像を取得するものである。 An image reading apparatus according to claim 9 is an image storing the image of the entire range of the document read at a predetermined resolution by the prescan processing means in the image reading apparatus according to any one of claims 5 to 8. An information storage means, wherein the edge detection means detects a plurality of edges of the document based on the image stored by the image information storage means, and the main scan processing means is based on the reading resolution of the prescan processing means. A monochrome image is acquired by the image reading means at a high resolution.

請求項10記載の画像読取装置は、請求項1またはに記載の画像読取装置において、前記画像読取手段により読み取られた画像を構成する画素の明度値が所定の明度値より大きい白色画素を検出する白色画素検出手段を備え、前記明度検出手段は、前記判定範囲の画像を構成する画素から前記白色画素検出手段により検出された白色画素を除いた上で、前記判定範囲の画素の明度値を平均した平均明度値を算出するものである。 11. The image reading device according to claim 10, wherein the image reading device according to claim 1 or 5 detects a white pixel having a lightness value of a pixel constituting an image read by the image reading means greater than a predetermined lightness value. White pixel detection means for removing the white pixels detected by the white pixel detection means from the pixels constituting the image of the determination range, and then calculating the brightness values of the pixels in the determination range. you calculate the average brightness values averaged is also of a.

請求項11記載の画像読取装置は、請求項1またはに記載の画像読取装置において、前記画像読取手段により読み取られた画像に基づいて地色を検出する地色検出手段を備え、前記明度検出手段は、前記判定範囲の画像を構成する画素から前記地色検出手段により検出された地色の画素を除いた上で、前記判定範囲の画素の明度値を平均した平均明度値を算出するものである。 The image reading apparatus according to claim 11, wherein, in the image reading apparatus according to claim 1 or 5, comprising a ground color detecting means for detecting a background color based on the image read by the image reading means, said lightness detection means, after excluding the pixels of the detected background color by the background color detecting means from the pixels constituting the image of the determination range, that to calculate the average brightness value obtained by averaging the brightness values of the pixels in the determination range It is also of the.

請求項12記載の画像読取装置は、請求項2,6,8のいずれか記載の画像読取装置において、前記画像読取手段により読み取られたカラー画像を構成する画素の明度値が所定の明度値より大きい白色画素を検出する白色画素検出手段を備え、前記色彩情報検出手段は、前記判定範囲の画像を構成する画素から前記白色画素検出手段により検出された白色画素を除いた上で、前記判定範囲の画素の明度値および彩度値をそれぞれ平均した平均明度値および平均彩度値を算出するものである。 The image reading device according to claim 12 is the image reading device according to any one of claims 2, 6 , and 8 , wherein a lightness value of a pixel constituting the color image read by the image reading unit is a predetermined lightness value. White pixel detection means for detecting a larger white pixel, wherein the color information detection means excludes the white pixel detected by the white pixel detection means from pixels constituting the image of the determination range, and then performs the determination it calculates the range of the mean brightness value and the average saturation value of the brightness value and the saturation value by averaging each pixel also of the a.

請求項13記載の画像読取装置は、請求項2,6,8のいずれか記載の画像読取装置において、前記画像読取手段により読み取られたカラー画像を構成する画素の彩度値に基づいて、無彩色の画素を検出する無彩色画素検出手段を備え、前記色彩情報検出手段は、前記判定範囲の画像を構成する画素から前記無彩色画素検出手段により検出された無彩色画素を除いた上で、前記判定範囲の画素の明度値及び彩度値をそれぞれ平均した平均明度値及び平均彩度値を算出するものである。 The image reading device according to claim 13 is the image reading device according to any one of claims 2, 6 and 8 , based on a saturation value of a pixel constituting a color image read by the image reading means. Achromatic color pixel detecting means for detecting achromatic color pixels, wherein the color information detecting means excludes the achromatic color pixels detected by the achromatic color pixel detecting means from the pixels constituting the image of the determination range; , you calculate the average brightness value and the average saturation lightness values and chroma values were averaged each pixel of the determination range is also the in is.

請求項14記載の画像読取装置は、請求項2,6,8のいずれか記載の画像読取装置において、前記画像読取手段により読み取られたカラー画像に基づいて地色を検出する地色検出手段を備え、前記色彩情報検出手段は、前記判定範囲の画像を構成する画素から前記地色検出手段により検出された地色の画素を除いた上で、前記判定範囲の画素の明度値及び彩度値をそれぞれ平均した平均明度値及び平均彩度値を算出するものである。 The image reading device according to claim 14 is the image reading device according to any one of claims 2, 6 , and 8 , wherein a ground color detecting unit detects a ground color based on a color image read by the image reading unit. The color information detecting means removes the ground color pixels detected by the ground color detecting means from the pixels constituting the image of the judgment range, and then the brightness value and saturation of the pixels of the judgment range you calculate the average brightness value a value obtained by averaging each and average saturation is also of a.

請求項15記載の画像読取装置は、請求項12から14のいずれか記載の画像読取装置において、前記色彩情報検出手段は、前記判定範囲の画像を構成する画素の色相値が所定の範囲内である画素を抽出し、その抽出した画素の明度値または彩度値をそれぞれ平均して前記平均明度値または平均彩度値を算出するものである。 The image reading device according to claim 15 is the image reading device according to any one of claims 12 to 14 , wherein the color information detecting means has a hue value of a pixel constituting the image in the determination range within a predetermined range. A certain pixel is extracted, and the lightness value or saturation value of the extracted pixel is averaged to calculate the average lightness value or average saturation value.

請求項16記載の画像読取処理プログラムは、原稿を少なくともモノクロ画像で読み取ることが可能な画像読取手段と、その画像読取手段と原稿とを相対的に移動させる移動手段とを備え、前記画像読取手段による読取動作と前記移動手段による移動動作とを繰り返して前記原稿を読み取る画像読取装置において実行されるものであり、前記移動手段による移動方向における原稿の一端側に設けられ、その原稿の種類を判定するための判定範囲を前記画像読取手段を用いてモノクロ画像で読み取る判定範囲処理ステップと、その判定範囲処理ステップにより読み取られた前記判定範囲のモノクロ画像の明度を検出し、前記判定範囲内の画素の明度値を平均することにより平均明度値を算出する明度検出ステップと、その明度検出ステップにより算出された平均明度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断ステップと、前記判断ステップにより前記原稿が特殊原稿であると判断された場合は、前記画像読取手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力ステップとを備えている。 17. The image reading processing program according to claim 16 , comprising image reading means capable of reading a document at least as a monochrome image, and moving means for relatively moving the image reading means and the document. Is performed in the image reading apparatus that reads the original by repeatedly performing the reading operation by the moving means and the moving operation by the moving means, and is provided on one end side of the original in the moving direction by the moving means, and determines the type of the original A determination range processing step of reading a determination range for performing a monochrome image using the image reading unit, and detecting a brightness value of the monochrome image of the determination range read by the determination range processing step , and brightness detecting step of calculating the average brightness value by averaging the brightness values of the pixels, the lightness detection step Ri when the average brightness value calculated is within a predetermined range, a judgment step in which the document is judged to be the special original, if the original by said determining step is determined to be a special document, the An output step of changing the density value of each pixel constituting the monochrome image read by the image reading means so as to increase the density.

請求項17記載の画像読取処理プログラムは、原稿をカラー画像あるいはモノクロ画像で読み取る画像読取手段と、その画像読取手段と原稿とを相対的に移動させる移動手段とを備え、前記画像読取手段による読取動作と前記移動手段による移動動作とを繰り返して前記原稿を読み取る画像読取装置において実行されるものであり、前記移動手段による移動方向における原稿の一端側に設けられ、その原稿の種類を判定するための判定範囲を前記画像読取手段を用いてカラー画像で読み取る判定範囲処理ステップと、その判定範囲処理ステップにより読み取られた前記判定範囲のカラー画像の明度値と彩度値とを検出し、前記判定範囲内の画素の明度値および彩度値をそれぞれ平均することにより平均明度値および平均彩度値を算出する色彩情報検出ステップと、その色彩情報検出ステップにより算出された平均明度値が所定の範囲に含まれ、且つ平均彩度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断ステップと、前記判断ステップにより前記原稿が特殊原稿であると判断された場合は、前記画像読取手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力ステップとを備えている。 The image reading processing program according to claim 17 comprises an image reading means for reading a document as a color image or a monochrome image, and a moving means for relatively moving the image reading means and the document, and reading by the image reading means. An image reading apparatus that reads the document by repeatedly performing an operation and a moving operation by the moving unit, and is provided on one end side of the document in the moving direction by the moving unit to determine the type of the document. A determination range processing step of reading the determination range as a color image using the image reading means, and a lightness value and a saturation value of the color image in the determination range read by the determination range processing step , and the determination color for calculating an average brightness value and an average saturation value by averaging the brightness values and saturation values of the pixels within each A broadcast detecting step, the average brightness value calculated by the color information detecting step is within a predetermined range, and when the average saturation value included in a predetermined range, the document is determined to be a special document When the determination step and the determination step determine that the original is a special original, the density value of each pixel constituting the monochrome image read by the image reading unit is changed so as to increase the density. And an output step for outputting.

請求項18記載の画像読取処理プログラムは、原稿を少なくともモノクロ画像で読み取ることが可能な画像読取手段を備えた画像読取装置において実行されるものであり、前記画像読取手段により前記原稿の全範囲をモノクロ画像で読み取るプレスキャン処理ステップと、そのプレスキャン処理ステップにより読み取られたモノクロ画像に基づいて原稿の複数のエッジを検出するエッジ検出ステップと、そのエッジ検出ステップにより検出された複数のエッジに沿う原稿の内側の帯状の範囲を判定範囲とし、その判定範囲の明度を前記プレスキャン処理手段により読み取られたモノクロ画像に基づいて検出し、前記判定範囲内の画素の明度値を平均することにより平均明度値を算出する明度検出ステップと、その明度検出ステップにより算出された平均明度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断ステップと、前記プレスキャン処理ステップにより原稿を読み取った後、前記画像読取手段により前記原稿を再度モノクロ画像で読み取る本スキャン処理ステップと、前記判断ステップにより前記原稿が特殊原稿であると判断された場合は、前記本スキャン処理手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力ステップとを備えている。 An image reading processing program according to claim 18 is executed in an image reading apparatus including an image reading unit capable of reading at least a monochrome image of an original, and the entire range of the original is read by the image reading unit. A prescan processing step for reading with a monochrome image, an edge detection step for detecting a plurality of edges of the document based on the monochrome image read by the prescan processing step, and a plurality of edges detected by the edge detection step the inside of the strip in the range of the original and the determination range, by the detected based on the monochromatic image read by the lightness value of the determination range the prescan processing means averages the brightness values of the pixels in the determination range and brightness detecting step of calculating the mean brightness value, calculated by the brightness detection step If the average brightness value is within a predetermined range, a judgment step in which the document is determined to be a special document, after reading the manuscript by the prescan processing step, the original by the image reading unit again When the original scan processing step for reading with a monochrome image and the determination step determine that the original is a special original, the density value of each pixel constituting the monochrome image read by the main scan processing means is And an output step for changing the output to be darker.

請求項19記載の画像読取処理プログラムは、原稿をカラー画像あるいはモノクロ画像で読み取る画像読取手段を備えた画像読取装置において実行されるものであり、前記画像読取手段により前記原稿の全範囲をカラー画像で読み取るプレスキャン処理ステップと、そのプレスキャン処理ステップにより読み取られたカラー画像に基づいて原稿の複数のエッジを検出するエッジ検出ステップと、そのエッジ検出ステップにより検出された複数のエッジに沿う原稿の内側の帯状の範囲を判定範囲とし、その判定範囲の明度値と彩度値とを前記プレスキャン処理手段により読み取られたカラー画像に基づいて検出し、前記判定範囲内の画素の明度値および彩度値をそれぞれ平均することにより平均明度値および平均彩度値を算出する色彩情報検出ステップと、その色彩情報検出ステップにより算出された平均明度値が所定の範囲に含まれ、且つ平均彩度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断ステップと、前記プレスキャン処理ステップによりカラー画像を読み取った後、前記画像読取手段により前記原稿を再度モノクロ画像で読み取る本スキャン処理ステップと、前記判断ステップにより前記原稿が特殊原稿であると判断された場合は、前記本スキャン処理ステップにより読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力ステップとを備えている。 The image reading processing program according to claim 19 is executed in an image reading apparatus including an image reading unit that reads a document as a color image or a monochrome image, and the entire range of the document is read by the image reading unit as a color image. A pre-scan processing step that is read in step 1, an edge detection step that detects a plurality of edges of the document based on the color image that is read in the pre-scan processing step, An inner band-shaped range is set as a determination range, and the brightness value and the saturation value of the determination range are detected based on the color image read by the prescan processing unit, and the brightness value and the saturation of the pixels in the determination range are detected. color information detection for calculating an average brightness value and an average saturation value by averaging degrees value, respectively Determining step of the step, the average brightness value calculated by the color information detecting step is within a predetermined range, and when the average saturation value included in a predetermined range, the document is determined to be a special document And after the color image is read by the pre-scan processing step, the original scanning process step of reading the original document again as a monochrome image by the image reading unit, and the determination step determines that the original document is a special original document. Includes an output step of changing the density value of each pixel constituting the monochrome image read by the main scan processing step so as to increase the density.

例えば、カーボン紙を介して複写されたような特殊な原稿(以下、「特殊原稿」と称す)は、原稿の端付近にカーボン紙のインクが付着していることが多い。インクの濃度は、原稿の地色の濃度より濃いので、原稿にインクが付着されていれば、そのインクが付着されている部分の明度は低くなる。従って、原稿の端付近の画像を読み取り、その読み取った画像の明度を検出し、その明度が所定の範囲に含まれるかにより、その原稿が特殊原稿かを判定することができる。   For example, a special manuscript (hereinafter referred to as “special manuscript”) that is copied via carbon paper often has carbon paper ink attached near the edges of the manuscript. Since the density of the ink is higher than the density of the background color of the document, if the ink is attached to the document, the brightness of the portion to which the ink is attached becomes low. Therefore, an image near the edge of the document is read, the brightness of the read image is detected, and whether the document is a special document can be determined based on whether the brightness is within a predetermined range.

請求項1記載の画像処理装置によれば、原稿の種類を判定するための判定範囲は、画像読取手段の移動方向に対して垂直となる方向の一端側に設けられ、その判定範囲の画像が判定範囲処理手段により読み取られる。判断手段により、その原稿が特殊原稿であると判断された場合、出力手段は、読み取ったモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する。 According to the image processing apparatus of the first aspect, the determination range for determining the type of document is provided on one end side in a direction perpendicular to the moving direction of the image reading means, and an image in the determination range is displayed. Ru is read by determining the range processing means. When the determination unit determines that the document is a special document, the output unit changes the density value of each pixel constituting the read monochrome image so as to increase the density.

特殊原稿に形成されている画像は、薄い画像が多いが、請求項1によれば、この薄い画像は出力手段により濃度が濃くなるように変更されて出力されるので、原稿の種類に応じて適切な濃度で出力することができるという効果がある。原稿の種類に応じて適切な濃度で出力されるので、使用者は、原稿の種類に応じた濃度の補正を行うように装置を手動で設定する必要が無く、使い勝手がよい。また、原稿の一端側に設けられた判定範囲の画像により、特殊原稿であることが判定されるので、原稿全体の画像に基づいて特殊原稿であるかを判定する場合に比べ、その判定処理を高速に行うことができるという効果もある。   The image formed on the special document is often a thin image. However, according to claim 1, since this thin image is output by the output means so that the density is increased, it is output according to the type of the document. There is an effect that it is possible to output at an appropriate density. Since the image is output at an appropriate density according to the type of document, the user does not need to manually set the apparatus to correct the density according to the type of document, which is convenient. Further, since it is determined that the document is a special document based on the image in the determination range provided on one end side of the document, the determination process is performed as compared with the case where the document is determined to be a special document based on the image of the entire document. There is also an effect that it can be performed at high speed.

請求項2記載の画像読取装置によれば、原稿の種類を判定するための判定範囲は、読取手段の移動方向に対して垂直となる方向の一端側に設けられ、その判定範囲のカラー画像が判定範囲処理手段により読み取られる。特殊原稿の端付近には、カーボン紙などのインクが付着され、そのインクは、青や赤などの色彩を有し、その色彩を表す明度値および彩度値が検出される。モノクロ画像からは明度(輝度)のみが得られるので、有彩色の画像と無彩色の画像とを識別することができないが、カラー画像からは彩度や色相などが得られ、その彩度値により、無彩色の画像と有彩色の画像とを識別することができる。判断手段は、平均明度値と平均彩度値とに基づいて判定を行うので、明度に基づいて特殊原稿であるかを判定する場合に比べ、精度良く特殊原稿であるかを判断することができるという効果がある。 According to the image reading apparatus of the present invention, the determination range for determining the type of document is provided on one end side in a direction perpendicular to the moving direction of the reading unit, and the color image in the determination range is displayed. It is read by the determination range processing means . Near the end of the special original, the ink such as carbon paper is deposited, the ink has a color such as blue or red, lightness value and a chroma value representing the color is detected. Since only the brightness (luminance) is obtained from the monochrome image, but not be this transgression identifying a chromatic color of the image and the achromatic image, such as chroma values and the hue is obtained from the color image, by its saturation value, and achromatic image and chromatic color image can identification be Rukoto. Since the determination unit performs the determination based on the average brightness value and the average saturation value, it can determine whether the document is a special document with higher accuracy than when determining whether the document is a special document based on the brightness. There is an effect.

そして、判断手段により、その原稿が特殊原稿であると判断された場合、出力手段は、読み取ったモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する。特殊原稿に形成されている画像は、薄い画像が多いが、請求項2によれば、この薄い画像は出力手段により濃度が濃くなるように変更されて出力されるので、原稿の種類に応じて適切な濃度で出力することができるという効果がある。原稿の種類に応じて適切な濃度で出力されるので、使用者は、原稿の種類に応じた濃度の補正を行うように装置を手動で設定する必要が無く、使い勝手がよい。また、原稿の一端側に設けられた判定範囲の画像により、特殊原稿であることが判定されるので、原稿全体の画像に基づいて特殊原稿であるかを判定する場合に比べ、その判定処理を高速に行うことができるという効果もある。   When the determination unit determines that the document is a special document, the output unit changes the density value of each pixel constituting the read monochrome image so as to increase the density. The image formed on the special document is often a thin image. However, according to claim 2, the thin image is output so that the density is increased by the output means. There is an effect that it is possible to output at an appropriate density. Since the image is output at an appropriate density according to the type of document, the user does not need to manually set the apparatus to correct the density according to the type of document, which is convenient. Further, since it is determined that the document is a special document based on the image in the determination range provided on one end side of the document, the determination process is performed as compared with the case where the document is determined to be a special document based on the image of the entire document. There is also an effect that it can be performed at high speed.

請求項記載の画像読取装置によれば、請求項1または2に記載の画像読取装置の奏する効果に加え、エッジ検出手段は、原稿の一端を検出し、判定範囲処理手段は、その検出された原稿の一端から他端側へ向けて略3mmの幅の内側であって、その検出された一端に沿う帯状の範囲を判定範囲として画像を読み取る。そして、この読み取られた画像に基づいて特殊原稿か否かの判定が行われる。特殊原稿の一端に沿う略3mm幅の内側には、カーボン紙などのインクが付着しており、この範囲の画像のみを読み取ることにより特殊原稿かを判定することができる。この略3mm幅は、原稿全体に比べ非常に狭い範囲であるので、原稿全体の画像に基づいて特殊原稿であるかの判定を行う場合に比べ、その判定処理をより高速に行うことができるという効果がある。 According to the image reading apparatus of the third aspect , in addition to the effect produced by the image reading apparatus of the first or second aspect , the edge detection unit detects one end of the document, and the determination range processing unit detects the detection. The image is read with a band-shaped range inside the width of about 3 mm from one end of the original to the other end side along the detected one end as a determination range. Then, based on the read image, it is determined whether the document is a special document. Ink of carbon paper or the like adheres to the inside of the special document along a width of about 3 mm, and it can be determined whether the document is a special document by reading only an image in this range. Since this approximately 3 mm width is a very narrow range compared to the entire document, the determination process can be performed at a higher speed than when determining whether the document is a special document based on the image of the entire document. effective.

請求項記載の画像読取装置によれば、請求項1からのいずれかに記載の画像読取装置の奏する効果に加え、判断手段により原稿が特殊原稿であると判断された場合、出力手段は、読み取られたモノクロ画像のうち判定範囲を除く画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する。判断手段により、原稿が特殊原稿であると判断された場合は、判定範囲に例えばインクが付着され、そのインクが付着された画像が読み取られた場合である。このインクが付着された画像の濃度を濃くして例えば、印刷などを行うと、そのインクが付着した部分が濃く印刷され、見づらくなるが、この部分については、濃度が濃くなるように変更されない。よって、きれいな画像を形成することができるという効果がある。 According to the image reading apparatus of the fourth aspect , in addition to the effect produced by the image reading apparatus according to any one of the first to third aspects, when the determination means determines that the original is a special original, the output means Then, the density value of each pixel constituting the image excluding the determination range in the read monochrome image is changed so as to increase the density and output. When the determination unit determines that the document is a special document, for example, ink is attached to the determination range, and an image with the ink attached is read. When the density of the image to which the ink is attached is increased, for example, printing is performed, the portion to which the ink is attached is printed darkly and is difficult to see, but this portion is not changed so as to increase the density. Therefore, there is an effect that a beautiful image can be formed.

請求項記載の画像読取装置によれば、プレスキャン処理手段により、原稿の全範囲のモノクロ画像が読み取られ、そのモノクロ画像に基づいてエッジ検出手段により、原稿の複数のエッジが検出される。明度検出手段は、その検出された複数のエッジに沿う原稿の内側の帯状の範囲を判定範囲とし、その判定範囲の明度を検出する。特殊原稿は、一般に長方形であって4辺を有し、その4辺のうちのいずれかの辺の近辺にカーボン紙などのインクが付着していることが多い。原稿の一辺だけについてインクが付着しているか否かを検出する場合には、検出されない可能性があるが、請求項では、複数の辺について検出を行うので、より精度良く検出することができるという効果がある。判断手段は、明度検出手段により算出された平均明度値が所定の範囲に含まれる場合に、原稿が特殊原稿であると判断する。インクの濃度は、原稿の地色の濃度より高いので、原稿にインクが付着されていれば、インクが付着されている部分の画像の明度が低くなる。よって、読み取られた画像の明度を検出することによりインクが付着しているか否かを判定することができ、判断手段は、インクが付着している場合に、特殊原稿であると判断する。 According to the image reading apparatus of the fifth aspect, the monochrome image of the entire range of the document is read by the pre-scan processing unit, and a plurality of edges of the document are detected by the edge detection unit based on the monochrome image. The lightness detection means detects the lightness value of the determination range using the band-like range inside the document along the detected plurality of edges as the determination range. A special document is generally rectangular and has four sides, and ink such as carbon paper is often attached in the vicinity of one of the four sides. In the case where it is detected whether or not ink is attached to only one side of the document, it may not be detected. However, in claim 5 , since detection is made for a plurality of sides, it can be detected with higher accuracy. There is an effect. The determination unit determines that the document is a special document when the average brightness value calculated by the brightness detection unit is included in a predetermined range. Since the density of the ink is higher than the density of the background color of the original, if the ink is attached to the original, the brightness of the image of the portion where the ink is attached is lowered. Therefore, it is possible to determine whether or not the ink is attached by detecting the brightness value of the read image, and the determination unit determines that the original is a special document when the ink is attached.

本スキャン処理手段は、原稿を再度モノクロ画像で読み取り、判断手段により原稿が特殊原稿であると判断された場合、出力手段は、本スキャン処理手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する。特殊原稿に形成されている画像は、薄い画像が多いが、請求項によれば、この薄い画像は出力手段により濃度が濃くなるように変更されて出力されるので、原稿の種類に応じて適切な濃度で出力することができるという効果がある。原稿の種類に応じて適切な濃度で出力されるので、使用者は、原稿の種類に応じた濃度の補正を行うように装置を手動で設定する必要が無く、使い勝手がよい。 The main scan processing unit reads the original document again as a monochrome image, and when the determination unit determines that the original document is a special document, the output unit determines the density of each pixel constituting the monochrome image read by the main scan processing unit. Change the value to increase the density and output. The image formed on the special document is often a thin image. However, according to claim 5 , the thin image is output so that the density is increased by the output means, so that it is output according to the type of the document. There is an effect that it is possible to output at an appropriate density. Since the image is output at an appropriate density according to the type of document, the user does not need to manually set the apparatus to correct the density according to the type of document, which is convenient.

請求項記載の画像読取装置によれば、プレスキャン処理手段により、原稿の全範囲のカラー画像が読み取られ、そのカラー画像に基づいてエッジ検出手段により、原稿の複数のエッジが検出される。特殊原稿は、一般に長方形であって4辺を有し、その4辺のうちのいずれかの辺の近辺にインクが付着していることが多い。したがって、原稿の一辺だけについてインクが付着しているか否かを検出すると、特殊原稿であってもインクが検出されない可能性があるが、請求項では複数の辺について検出を行うので、より精度良く検出することができるという効果がある。特殊原稿は、原稿の端付近に、インクが付着され、そのインクは、青色や赤色などの色彩を有し、その色彩を表す明度値と彩度値とが色彩情報検出手段により検出される。モノクロ画像からは明度(輝度)のみが得られるので、有彩色の画像と無彩色の画像とを識別することができないが、カラー画像からは彩度や色相などが得られ、平均彩度値により、無彩色の画像と有彩色の画像とを識別することができる。判断手段は、平均明度値と平均彩度値とに基づいて判定を行うので、明度に基づいて特殊原稿であるかを判定する場合に比べ、精度良く特殊原稿であるかを判断することができるという効果がある。 According to the image reading apparatus of the sixth aspect, the color image of the entire range of the document is read by the pre-scan processing unit, and a plurality of edges of the document are detected by the edge detection unit based on the color image . Special document generally have a by four sides rectangular, often ink adheres to the vicinity of one of the sides of its four sides. Therefore, when the only one side of the document ink to detect whether or not attached, but might not ink even prohibited document is detected, since the detection for a plurality of sides in claim 6, more precisely There is an effect that it can be detected well. In the special document, ink is attached near the edge of the document, and the ink has a color such as blue or red, and the lightness value and the saturation value representing the color are detected by the color information detecting means . Mode since Nokuro from the image only lightness (luminance) is obtained, but not be this transgression identifying a chromatic color of the image and the achromatic image, such as saturation or hue is obtained from the color image, the average the saturation value, and the achromatic color of the image and the chromatic color of the image can identification be Rukoto. Since the determination unit performs the determination based on the average brightness value and the average saturation value, it can determine whether the document is a special document with higher accuracy than when determining whether the document is a special document based on the brightness. There is an effect.

本スキャン処理手段は、原稿を再度モノクロ画像で読み取る。そして、判断手段により原稿が特殊原稿であると判断された場合、出力手段は、本スキャン処理手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する。特殊原稿に形成されている画像は、薄い画像が多いが、請求項によれば、この薄い画像は出力手段により濃度が濃くなるように変更されて出力されるので、原稿の種類に応じて適切な濃度で出力することができるという効果がある。原稿の種類に応じて適切な濃度で出力されるので、使用者は、原稿の種類に応じた濃度の補正を行うように装置を手動で設定する必要が無く、使い勝手がよい。 The main scanning processing unit reads the original again as a monochrome image. If the determination unit determines that the document is a special document, the output unit changes the density value of each pixel constituting the monochrome image read by the scan processing unit so that the density is increased and outputs the changed value. To do. The image formed on the special document is often a thin image. However, according to the sixth aspect , the thin image is output after being changed so that the density is increased by the output means. There is an effect that it is possible to output at an appropriate density. Since the image is output at an appropriate density according to the type of document, the user does not need to manually set the apparatus to correct the density according to the type of document, which is convenient.

請求項記載の画像読取装置によれば、請求項記載の画像読取装置の奏する効果に加え、明度検出手段は、エッジ検出手段により検出されたエッジから、そのエッジに対向するエッジ側へ向けて略3mmの幅の内側であって、その検出されたエッジに沿う帯状の範囲を判定範囲として、その判定範囲の明度を検出する。そして、この検出された明度に基づいて特殊原稿か否かの判定が行われる。特殊原稿は、原稿の一端に沿う略3mm幅の内側に、カーボン紙などのインクが付着していることが多く、この範囲の画像を使用することにより特殊原稿かを判定することができる。この略3mm幅は、原稿全体に比べ非常に狭い範囲であるので、原稿全体の画像に基づいて特殊原稿であるかの判定を行う場合に比べ、その判定処理をより高速に行うことができるという効果がある。 According to the image reading apparatus of the seventh aspect , in addition to the effect produced by the image reading apparatus of the fifth aspect , the brightness detection means is directed from the edge detected by the edge detection means to the edge side facing the edge. Then, the lightness value of the determination range is detected with the band-shaped range inside the width of about 3 mm and along the detected edge as the determination range. Then, based on the detected brightness value , it is determined whether the document is a special document. A special document often has ink such as carbon paper attached to the inside of a width of about 3 mm along one end of the document. By using an image in this range, it can be determined whether the document is a special document. Since this approximately 3 mm width is a very narrow range compared to the entire document, the determination process can be performed at a higher speed than when determining whether the document is a special document based on the image of the entire document. effective.

請求項記載の画像読取装置によれば、請求項記載の画像読取装置の奏する効果に加え、色彩情報検出手段は、エッジ検出手段により検出されたエッジから、そのエッジに対向するエッジ側へ向けて略3mmの幅の内側であって、その検出されたエッジに沿う帯状の範囲を判定範囲として、その判定範囲の明度値と彩度値とを検出する。そして、この検出された明度値と彩度値とに基づいて特殊原稿か否かの判定が行われる。特殊原稿は、原稿の一端に沿う略3mm幅の内側に、カーボン紙などのインクなどが付着していることが多く、この範囲の画像を使用することにより特殊原稿かを判定することができる。この略3mm幅は、原稿全体に比べ非常に狭い範囲であるので、原稿全体の画像に基づいて特殊原稿であるかの判定を行う場合に比べ、その判定処理をより高速に行うことができるという効果がある。 According to the image reading apparatus of the eighth aspect , in addition to the effect achieved by the image reading apparatus of the sixth aspect , the color information detecting means moves from the edge detected by the edge detecting means to the edge side facing the edge. The lightness value and the saturation value of the determination range are detected using the band-shaped range along the detected edge as the determination range inside the width of about 3 mm. Then, based on the detected brightness value and saturation value, it is determined whether or not the document is a special document. A special manuscript is often attached with ink such as carbon paper on the inside of a width of about 3 mm along one end of the manuscript, and by using an image in this range, it can be determined whether it is a special manuscript. Since this approximately 3 mm width is a very narrow range compared to the entire document, the determination process can be performed at a higher speed than when determining whether the document is a special document based on the image of the entire document. effective.

請求項記載の画像読取装置によれば、請求項からのいずれかに記載の画像読取装置の奏する効果に加え、プレスキャン処理手段は、所定の解像度で原稿の全範囲の画像を読み取り、画像情報記憶手段は、そのプレスキャン処理手段により読み取られた原稿の全範囲の画像を記憶する。エッジ検出手段は、その画像情報記憶手段により記憶された画像に基づいて原稿の複数のエッジを検出し、判断手段により、検出されたエッジに沿う判定範囲の画像に基づいて、原稿が特殊原稿かを判断する。本スキャン処理手段は、プレスキャン処理手段の読み取り解像度より高い解像度で画像読取手段によりモノクロ画像を取得するものである。即ち、プレスキャン処理手段は、本スキャン処理手段より低い解像度で画像を読み取るので、画像情報記憶手段の記憶容量を小さくすることができるとともに、読み取りを高速で行うことができるという効果がある。一方、本スキャン処理手段は、高い解像度で画像を読み取るので、高画質の画像情報を出力することができる。 According to the image reading apparatus of the ninth aspect , in addition to the effect exhibited by the image reading apparatus according to any one of the fifth to eighth aspects, the pre-scan processing unit reads an image of the entire range of the document with a predetermined resolution. The image information storage means stores an image of the entire range of the document read by the prescan processing means. The edge detection unit detects a plurality of edges of the document based on the image stored by the image information storage unit, and the determination unit determines whether the document is a special document based on the image in the determination range along the detected edge. Judging. The main scan processing unit acquires a monochrome image by the image reading unit at a resolution higher than the reading resolution of the pre-scan processing unit. That is, since the pre-scan processing unit reads an image at a lower resolution than the main scan processing unit, it is possible to reduce the storage capacity of the image information storage unit and to perform reading at high speed. On the other hand, since the scan processing unit reads an image with a high resolution, it can output high-quality image information.

請求項10記載の画像読取装置によれば、請求項1またはに記載の画像読取装置の奏する効果に加え、白色画素検出手段は、画像読取手段により読み取られた画像を構成する画素の明度値が所定の明度値より大きい白色画素を検出する。明度検出手段は、判定範囲の画像を構成する画素から白色画素検出手段により検出された白色画素を除いた上で、判定範囲の画素の明度値を平均した平均明度値を算出する。特殊原稿の端付近には、カーボン紙などのインクが付着されるが、その量は微量であり、判定範囲の多くの部分は、地色である。従って、地色が白色である場合に、判定範囲に含まれる白色の画素の明度と、インクが付着されている部分の明度とを合わせて平均するとその平均値は、白色の画素の明度の値に近くなり、インクが付着されているか否かを判定するのが困難である。請求項10によれば、判定範囲に含まれる画素のうち、白色の画素を除いた残りの画素の明度の平均値を算出するので、その平均値は、白色の画素の明度との差が大きい値となり精度良く特殊原稿を判定することができるという効果がある。 According to the image reading device of the tenth aspect , in addition to the effect produced by the image reading device according to the first or fifth aspect , the white pixel detecting means is a brightness value of the pixels constituting the image read by the image reading means. Detects white pixels that are greater than a predetermined brightness value. The lightness detection means calculates an average lightness value obtained by averaging the lightness values of the pixels in the determination range after excluding the white pixels detected by the white pixel detection means from the pixels constituting the image in the determination range . Near the edge of the special document, ink such as carbon paper is attached, but the amount thereof is very small, and most of the determination range is the ground color. Therefore, when the ground color is white, the average value of the brightness of the white pixels included in the determination range and the brightness of the portion to which the ink is attached is the average value of the brightness of the white pixels. It is difficult to determine whether or not ink is attached. According to the tenth aspect , since the average value of the brightness values of the remaining pixels excluding the white pixels among the pixels included in the determination range is calculated, the average value is different from the brightness of the white pixels. There is an effect that the special document can be accurately determined with a large value.

請求項11記載の画像読取装置によれば、請求項1またはに記載の画像読取装置の奏する効果に加え、地色検出手段は、画像読取手段により読み取られた画像に基づいて地色を検出し、明度検出手段は、判定範囲の画像を構成する画素から地色検出手段により検出された地色の画素を除いた上で、判定範囲の画素の明度値を平均した平均明度値を算出する。特殊原稿の端付近には、カーボン紙などのインクが付着されるが、その量は微量であり、判定範囲の多くの部分は、地色である。従って、判定範囲の全画素の多くは、地色の画素であり、地色の明度と、インクが付着されている部分の明度とを合わせて平均するとその平均値が、地色の明度の値に近くなり、インクが付着されているか否かを判定するのが困難である。請求項11によれば、判定範囲に含まれる画素のうち、地色の画素を除いた画素の明度の平均値を算出するので、その平均値は、地色の明度との差が大きい値となり精度良く特殊原稿を判定することができるという効果がある。 According to the image reading device of the eleventh aspect , in addition to the effect produced by the image reading device according to the first or fifth aspect , the ground color detecting means detects the ground color based on the image read by the image reading means. Then, the lightness detection means calculates an average lightness value obtained by averaging the lightness values of the pixels in the determination range after excluding the ground color pixels detected by the ground color detection means from the pixels constituting the image in the determination range. . Near the edge of the special document, ink such as carbon paper is attached, but the amount thereof is very small, and most of the determination range is the ground color. Therefore, most of the pixels in the determination range are pixels of the ground color, and when the lightness of the ground color and the lightness of the portion where the ink is attached are averaged, the average value is the value of the lightness of the ground color. It is difficult to determine whether or not ink is attached. According to the eleventh aspect , since the average value of the brightness of the pixels excluding the ground color pixels among the pixels included in the determination range is calculated, the average value is a value having a large difference from the brightness of the ground color. There is an effect that a special document can be accurately determined.

請求項12記載の画像読取装置によれば、請求項2,6,8のいずれかに記載の画像読取装置の奏する効果に加え、白色画素検出手段は、画像読取手段により読み取られたカラー画像を構成する画素の明度値が所定の明度値より大きい白色画素を検出する。色彩情報検出手段は、判定範囲の画像を構成する画素から検出された白色画素を除いた上で、判定範囲の画素の明度値および彩度値をそれぞれ平均した平均明度値および平均彩度値を算出する。特殊原稿の端付近には、カーボン紙などのインクが付着されるが、その量はごく少量であり、判定範囲の多くの部分は、地色である。従って、地色が白色である場合に、判定範囲に含まれる白色の画素の明度と、インクが付着されている部分の明度とを合わせて平均するとその平均値と、白色の画素の明度の値との差が小さくなり、特殊原稿の判定が困難になる。同様に、判定範囲に含まれる白色の画素の彩度と、インクが付着されている部分の彩度とを合わせて平均するとその平均値と、白色の画素の彩度の値との差も小さくなり、特殊原稿の判定が困難になるが、請求項12によれば、判定範囲の画素のうち、白色の画素を除いた残りの画素の明度値を平均し、更にする白色の画素を除いた残りの画素の彩度値を平均するので、白色の画素の明度および彩度との差が大きくなり、精度良く判定することができるという効果がある。 According to the image reading device of the twelfth aspect , in addition to the effect produced by the image reading device according to any one of the second, sixth , and eighth aspects, the white pixel detecting means can detect the color image read by the image reading means. A white pixel having a lightness value of a constituent pixel larger than a predetermined lightness value is detected. The color information detecting means removes the white pixels detected from the pixels constituting the image of the determination range, and then calculates an average lightness value and an average saturation value obtained by averaging the lightness value and the saturation value of the pixels in the determination range, respectively. that put out calculation. Near the edge of the special document, ink such as carbon paper is attached, but the amount thereof is very small, and most of the determination range is the ground color. Therefore, when the ground color is white, the average value of the brightness of the white pixels included in the determination range and the brightness of the portion to which the ink is attached is averaged, and the brightness value of the white pixels And the special document is difficult to judge. Similarly, when the saturation of the white pixels included in the determination range and the saturation of the portion to which the ink is attached are averaged, the difference between the average value and the saturation value of the white pixels is small. However, according to the twelfth aspect , the brightness values of the remaining pixels excluding the white pixels among the pixels in the determination range are averaged, and further white pixels are excluded. Since the saturation values of the remaining pixels are averaged, the difference between the brightness and the saturation of the white pixels is increased, and there is an effect that the determination can be made with high accuracy.

請求項13記載の画像読取装置によれば、請求項2,6,8のいずれかに記載の画像読取装置の奏する効果に加え、無彩色画素検出手段は、画像読取手段により読み取られたカラー画像を構成する画素の彩度値に基づいて、無彩色の画素を検出する。色彩情報検出手段は、判定範囲の画像を構成する画素から無彩色画素検出手段により検出された無彩色画素を除いた上で、判定範囲の画素の明度値及び彩度値をそれぞれ平均した平均明度値及び平均彩度値を算出する。特殊原稿の端付近には、カーボン紙などのインクが付着されるが、ゴミや汚れが付着する場合があり、これらのゴミや汚れの画像は、灰色などの無彩色である。 According to the image reading device of the thirteenth aspect , in addition to the effect produced by the image reading device according to any one of the second, sixth , and eighth aspects, the achromatic color pixel detecting means is a color image read by the image reading means. An achromatic pixel is detected based on the saturation value of the pixel that constitutes. The color information detecting means removes the achromatic color pixels detected by the achromatic color pixel detecting means from the pixels constituting the image of the judgment range, and then averages the brightness values and the saturation values of the pixels in the judgment range. that issue calculate the value and the average saturation value. Near the edge of the special document, ink such as carbon paper is attached, but dust or dirt may be attached, and these dust and dirt images are achromatic such as gray.

従って、判定範囲に含まれる全ての画素の明度および彩度のそれぞれの平均値は、これらの無彩色の画素の明度および彩度も含めた平均値となり、インクだけが付着している場合の平均値とは、異なり、精度良く判定することができないが、判定範囲の画素のうち、無彩色の画素を除いた画素の明度および彩度の平均値を求めることにより、これらのゴミや汚れによる影響を排除し、精度良く特殊原稿かを判定することができるという効果がある。 Therefore, the average value of the lightness and saturation of all the pixels included in the judgment range is the average value including the lightness and saturation of these achromatic pixels, and is the average when only ink is attached. Unlike the value, it cannot be determined with high accuracy. However, by calculating the average value of the brightness value and the saturation value of the pixels in the determination range excluding the achromatic color pixel, these dust and dirt This is advantageous in that it is possible to accurately determine whether the document is a special document.

請求項14記載の画像読取装置によれば、請求項2,6,8のいずれか記載の画像読取装置の奏する効果に加え、地色検出手段は、画像読取手段により読み取られたカラー画像に基づいて地色を検出する。原稿の地色が、白色や灰色以外の色である場合に、原稿のモノクロ画像に基づいて地色を判断すると、原稿の色とインクの色とが異なっても、明度が等しい場合は、インクの画素も地色と判断されてしまうが、カラー画像に基づいて判断すると、原稿の地色とインクとを識別することができる。 According to the image reading apparatus according to claim 14, claim 2, in addition to the effects of the image reading apparatus according to any one of 6, 8, background color detection means, the color image read by the image reading means Based on this, the ground color is detected. If the background color of the document is a color other than white or gray and the background color is determined based on the monochrome image of the document, if the brightness is the same even if the document color and the ink color are different, the ink This pixel is also determined to be the ground color, but if it is determined based on the color image, the ground color and ink of the document can be identified.

色彩情報検出手段は、判定範囲の画像を構成する画素から地色検出手段により検出された地色の画素を除いた上で、判定範囲の画素の明度値及び彩度値をそれぞれ平均した平均明度値及び平均彩度値を算出する。特殊原稿の端付近には、カーボン紙などのインクが付着されるが、その量は微量であり、判定範囲の多くの部分は、地色である。従って、判定範囲に含まれる地色の画素の明度と、インクが付着されている部分の明度とを合わせて平均するとその平均値と、地色の画素の明度の値との差が小さくなり、特殊原稿の判定が困難になる。同様に、判定範囲に含まれる地色の画素の彩度と、インクが付着されている部分の彩度とを合わせて平均するとその平均値と、地色の画素の彩度の値との差も小さくなり、特殊原稿の判定が困難になるが、請求項14によれば、判定範囲の画素のうち、地色の画素を除いた残りの画素の明度値を平均し、更にする白色の画素を除いた残りの画素の彩度値を平均するので、地色の画素の明度および彩度との差が大きくなり、精度良く判定することができるという効果がある。 The color information detecting means removes the ground color pixels detected by the ground color detecting means from the pixels constituting the image in the determination range, and then averages the brightness values and the saturation values of the pixels in the determination range. that issue calculate the value and the average saturation value. Near the edge of the special document, ink such as carbon paper is attached, but the amount thereof is very small, and most of the determination range is the ground color. Therefore, when the brightness of the ground color pixels included in the determination range and the brightness of the portion to which the ink is attached are averaged, the difference between the average value and the brightness value of the ground color pixels is reduced. It becomes difficult to judge special manuscripts. Similarly, the average of the saturation of the background color pixels included in the judgment range and the saturation of the portion where the ink is attached is the difference between the average value and the saturation value of the background color pixels. According to the fourteenth aspect of the present invention , the brightness values of the remaining pixels excluding the ground color pixels are averaged and further white pixels are obtained. Since the saturation values of the remaining pixels excluding the are averaged, the difference between the lightness and saturation of the ground color pixels is increased, and the determination can be made with high accuracy.

請求項15記載の画像読取装置によれば、請求項12から14のいずれか記載の画像読取装置の奏する効果に加え、色彩情報検出手段は、判定範囲の画像を構成する画素から色相値が所定の範囲内である画素を抽出し、その抽出した画素の明度値または彩度値をそれぞれ平均して平均明度値または平均彩度値を算出する。特殊原稿の端付近には、カーボン紙などのインクが付着し、そのインクの色は、青や赤などの限られた色である。これらの色は、色相の値により識別することができる。色相の範囲を設定し、画素の色相値が、その範囲に入る画素を対象として、平均明度値または平均彩度値を算出する。これにより、カーボン紙により付着したインクか否かをより精度良く判定することができるという効果がある。 According to the image reading apparatus according to claim 15, wherein, in addition to the effects of the image reading apparatus according to any one of claims 12 to 14, the color information detecting unit, the hue values of pixels constituting an image of the determination range Pixels within a predetermined range are extracted, and the lightness value or saturation value of the extracted pixels is averaged to calculate an average lightness value or average saturation value. Near the edge of the special document, ink such as carbon paper adheres, and the color of the ink is a limited color such as blue or red. These colors can be identified by hue values. A hue range is set, and an average brightness value or an average saturation value is calculated for pixels whose hue value falls within that range. Thereby, there is an effect that it is possible to more accurately determine whether or not the ink adheres to the carbon paper.

請求項16記載の画像読取処理プログラムによれば、原稿の種類を判定するための判定範囲は、画像読取手段の移動方向に対して垂直となる方向の一端側に設けられ、その判定範囲の画像が判定範囲処理ステップにより読み取られる。判断ステップにより、その原稿が特殊原稿であると判断された場合、出力ステップは、読み取ったモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する。 According to the image reading processing program of the sixteenth aspect, the determination range for determining the type of document is provided on one end side in the direction perpendicular to the moving direction of the image reading means, and the image in the determination range Is read by the determination range processing step . The judgment step, when the document is determined to be a special document, the output step, the concentration of the density values of the pixels constituting the monochromatic image, and outputs the modified such that darker read.

特殊原稿に形成されている画像は、薄い画像が多いが、請求項16によれば、この薄い画像は出力ステップにより濃度が濃くなるように変更されて出力されるので、原稿の種類に応じて適切な濃度で出力することができるという効果がある。原稿の種類に応じて適切な濃度で出力されるので、使用者は、原稿の種類に応じた濃度の補正を行うように装置を手動で設定する必要が無く、使い勝手がよい。また、原稿の一端側に設けられた判定範囲の画像により、特殊原稿であることが判定されるので、原稿全体の画像に基づいて特殊原稿であるかを判定する場合に比べ、その判定処理を高速に行うことができるという効果もある。 The image formed on the special document is often a thin image. However, according to the sixteenth aspect , since this thin image is output so that the density is increased by the output step, it is output according to the type of the document. There is an effect that it is possible to output at an appropriate density. Since the image is output at an appropriate density according to the type of document, the user does not need to manually set the apparatus to correct the density according to the type of document, which is convenient. Further, since it is determined that the document is a special document based on an image in the determination range provided on one end side of the document, the determination process is performed as compared with the case where it is determined whether the document is a special document based on the image of the entire document. There is also an effect that it can be performed at high speed.

請求項17記載の画像読取処理プログラムによれば、原稿の種類を判定するための判定範囲は、読取手段の移動方向に対して垂直となる方向の一端側に設けられ、その判定範囲のカラー画像が判定範囲処理ステップにより読み取られる。特殊原稿は、原稿の端付近にインクが付着され、そのインクは、青や赤などの色彩を有し、その色彩を表す明度値と彩度値とが検出される。判断ステップは、その色彩情報検出ステップにより算出された平均明度値と平均彩度値の値が所定の範囲に含まれる場合に、原稿が特殊原稿であると判断する。モノクロ画像からは明度(輝度)のみが得られるので、有彩色の画像と無彩色の画像とを識別することができないが、カラー画像からは彩度や色相が得られ、その彩度値により、無彩色の画像と有彩色の画像とを識別することができる。判断手段は、平均明度値と平均彩度値とに基づいて判定を行い、明度に基づいて特殊原稿であるかを判定する場合に比べ、精度良く特殊原稿であるかを判断することができるという効果がある。 According to the image reading processing program of the seventeenth aspect, the determination range for determining the type of document is provided on one end side in a direction perpendicular to the moving direction of the reading unit, and the color image in the determination range. Is read by the determination range processing step . Special document, ink is attached near the end of the document, the ink has a color such as blue or red, and brightness value and the saturation value representing the color is detected. The determination step determines that the document is a special document when the average brightness value calculated by the color information detection step and the average saturation value are within a predetermined range. Since only the brightness (luminance) is obtained from the monochrome image, but not be this transgression identifying a chromatic color of the image and the achromatic image, saturation or hue is obtained from the color image, the saturation value allows the achromatic image and chromatic color image can identification be Rukoto. The determination means makes a determination based on the average brightness value and the average saturation value, and can determine whether the document is a special document with higher accuracy than when determining whether the document is a special document based on the brightness. effective.

そして、判断ステップにより、その原稿が特殊原稿であると判断された場合、出力ステップは、読み取ったモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する。特殊原稿に形成されている画像は、薄い画像が多いが、請求項17によれば、この薄い画像は出力ステップにより濃度が濃くなるように変更されて出力されるので、原稿の種類に応じて適切な濃度で出力することができるという効果がある。原稿の種類に応じて適切な濃度で出力されるので、使用者は、原稿の種類に応じた濃度の補正を行うように装置を手動で設定する必要が無く、使い勝手がよい。また、原稿の一端側に設けられた判定範囲の画像により、特殊原稿であることが判定されるので、原稿全体の画像に基づいて特殊原稿であるかを判定する場合に比べ、その判定処理を高速に行うことができるという効果もある。 If it is determined in the determination step that the document is a special document, the output step changes the density value of each pixel constituting the read monochrome image so as to increase the density. The image formed on the special document is often a thin image. However, according to claim 17 , since this thin image is output so that the density is increased by the output step, it is output according to the type of the document. There is an effect that it is possible to output at an appropriate density. Since the image is output at an appropriate density according to the type of document, the user does not need to manually set the apparatus to correct the density according to the type of document, which is convenient. Further, since it is determined that the document is a special document based on an image in the determination range provided on one end side of the document, the determination process is performed as compared with the case where it is determined whether the document is a special document based on the image of the entire document. There is also an effect that it can be performed at high speed.

請求項18記載の画像読取処理プログラムによれば、プレスキャン処理ステップにより、原稿の全範囲のモノクロ画像が読み取られ、そのモノクロ画像に基づいてエッジ検出ステップにより、原稿の複数のエッジが検出される。特殊原稿は、一般に長方形であって4辺を有し、その4辺のうちのいずれかの辺の近辺にカーボン紙などのインクが付着していることが多い。したがって、原稿の一辺だけについてインクが付着しているか否かを検出する場合には、特殊原稿であっても検出されない可能性があるが、請求項18では複数の辺について検出を行うので、より精度良く検出することができるという効果がある。判断ステップは、明度検出ステップにより算出された平均明度値が所定の範囲に含まれる場合に、原稿が特殊原稿であると判断する。インクの濃度は、原稿の地色の濃度より高いので、原稿にインクが付着されていれば、インクが付着されている部分の画像の明度が低くなる。よって、読み取られた画像の明度を検出することによりインクが付着しているか否かを判定することができ、判断手段は、インクが付着されている場合に、特殊原稿であると判断する。 According to the image reading processing program of the eighteenth aspect, a monochrome image of the entire range of the document is read by the pre-scan processing step, and a plurality of edges of the document are detected by the edge detection step based on the monochrome image. . Special document generally have a by four sides rectangular, often inks, such as carbon paper is adhered to the vicinity of one of the sides of its four sides. Therefore, in the case of detecting whether or not for only one side of the original ink is adhered, it may not be detected even special document, since the detection for a plurality of sides in claim 18, further There is an effect that detection can be performed with high accuracy. The determination step determines that the document is a special document when the average brightness value calculated by the brightness detection step is included in a predetermined range. Since the density of the ink is higher than the density of the background color of the original, if the ink is attached to the original, the brightness of the image of the portion where the ink is attached is lowered. Therefore, it is possible to determine whether or not the ink is attached by detecting the brightness value of the read image, and the determination unit determines that the original is a special document when the ink is attached.

本スキャン処理ステップは、原稿を再度モノクロ画像で読み取り、判断ステップにより原稿が特殊原稿であると判断された場合、出力ステップは、本スキャン処理ステップにより読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する。特殊原稿に形成されている画像は、薄い画像が多いが、請求項18によれば、この薄い画像は出力ステップにより濃度が濃くなるように変更されて出力されるので、原稿の種類に応じて適切な濃度で出力することができるという効果がある。原稿の種類に応じて適切な濃度で出力されるので、使用者は、原稿の種類に応じた濃度の補正を行うように装置を手動で設定する必要が無く、使い勝手がよい。 In the main scan processing step, the original is read again as a monochrome image, and when the determination step determines that the original is a special original, the output step determines the density of each pixel constituting the monochrome image read in the main scan processing step. Change the value to increase the density and output. The image formed on the special document is often a thin image. However, according to claim 18 , since this thin image is output so that the density is increased by the output step, it is output according to the type of the document. There is an effect that it is possible to output at an appropriate density. Since the image is output at an appropriate density according to the type of document, the user does not need to manually set the apparatus to correct the density according to the type of document, which is convenient.

請求項19記載の画像読取処理プログラムによれば、プレスキャン処理ステップにより、原稿の全範囲のカラー画像が読み取られ、そのカラー画像に基づいてエッジ検出ステップにより、原稿の複数のエッジが検出される。特殊原稿は、一般に長方形であって4辺を有し、その4辺のうちのいずれかの辺の近辺にインクが付着していることが多い。したがって、原稿の一辺だけについてインクが付着しているか否かを検出すると、特殊原稿であってもインクが検出されない可能性があるが、請求項19では、複数の辺について検出を行うので、より精度良く検出することができるという効果がある。また、特殊原稿は、原稿の端付近に、インクが付着され、そのインクは、青色や赤色などの色彩を有し、その色彩を表す明度値と彩度値とが色彩情報検出ステップにより検出される。判断ステップは、色彩情報検出ステップにより算出された平均明度値と平均彩度値とが所定の範囲に含まれる場合に、原稿が特殊原稿であると判断する。モノクロ画像からは明度(輝度)のみが得られるので、有彩色の画像と無彩色の画像とを識別することができないが、カラー画像からは彩度や色相が得られ、その彩度値により、無彩色の画像と有彩色の画像とを識別することができる。判断ステップは、平均明度値と平均彩度値とに基づいて判定を行い、明度に基づいて特殊原稿であるかを判定する場合に比べ、精度良く特殊原稿であるかを判断することができるという効果がある。 According to the image reading processing program of the nineteenth aspect, the color image of the entire range of the document is read by the pre-scan processing step, and a plurality of edges of the document are detected by the edge detection step based on the color image. . Special document generally have a by four sides rectangular, often ink adheres to the vicinity of one of the sides of its four sides. Therefore, when the only one side of the document ink to detect whether or not attached, but might not ink even prohibited document is detected, the claim 19, since the detection for a plurality of sides, more There is an effect that detection can be performed with high accuracy. In addition, special manuscripts are attached with ink near the edges of the manuscript, and the ink has a color such as blue or red, and the lightness value and the chroma value representing the color are detected by the color information detecting step. The The determination step determines that the document is a special document when the average brightness value and the average saturation value calculated by the color information detection step are included in a predetermined range. Since only the brightness (luminance) is obtained from the monochrome image, but not be this transgression identifying a chromatic color of the image and the achromatic image, saturation or hue is obtained from the color image, the color saturation value allows the achromatic image and chromatic color image can identification be Rukoto. The determination step makes a determination based on the average brightness value and the average saturation value, and can determine whether the document is a special document with higher accuracy than when determining whether the document is a special document based on the brightness. effective.

本スキャン処理ステップは、原稿を再度モノクロ画像で読み取る。そして、判断ステップにより原稿が特殊原稿であると判断された場合、出力ステップは、本スキャン処理手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する。特殊原稿に形成されている画像は、薄い画像が多いが、請求項19によれば、この薄い画像は出力ステップにより濃度が濃くなるように変更されて出力されるので、原稿の種類に応じて適切な濃度で出力することができるという効果がある。原稿の種類に応じて適切な濃度で出力されるので、使用者は、原稿の種類に応じた濃度の補正を行うように装置を手動で設定する必要が無く、使い勝手がよい。 In the main scanning process step, the original is read again as a monochrome image. When the determination step determines that the document is a special document, the output step changes the density value of each pixel constituting the monochrome image read by the scan processing unit so that the density is increased and outputs To do. The image formed on the special document is often a thin image. However, according to the nineteenth aspect , the thin image is output so that the density is increased by the output step. There is an effect that it is possible to output at an appropriate density. Since the image is output at an appropriate density according to the type of document, the user does not need to manually set the apparatus to correct the density according to the type of document, which is convenient.

以下、本発明の好ましい第1の実施形態について、添付図面を参照して説明する。図1は、本発明の実施形態における多機能周辺装置(以下、「MFP(Multi Function Peripheral)もしくは(Multi Function Printer)」と略す)1の外観構成を示す斜視図である。図1に示すように、本MFP1は、下部に設けられたプリンタ2と、上部に設けられたスキャナ3と、スキャナ3の正面側に設けられた操作パネル4とを一体的に備え、プリンタ機能、スキャナ機能、コピー機能及びファクシミリ機能を有する。   Hereinafter, a preferred first embodiment of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a perspective view showing an external configuration of a multifunction peripheral device (hereinafter abbreviated as “MFP (Multi Function Peripheral) or (Multi Function Printer)”) 1 according to an embodiment of the present invention. As shown in FIG. 1, the MFP 1 integrally includes a printer 2 provided at the lower part, a scanner 3 provided at the upper part, and an operation panel 4 provided on the front side of the scanner 3. A scanner function, a copy function, and a facsimile function.

MFP1は、不図示のコンピュータと接続されて、そのコンピュータから送信された画像データや文書データに基づいて、記録用紙(被記録媒体)に画像や文書を記録したり、デジタルカメラ等の外部機器と接続されてデジタルカメラから出力される画像データを記録用紙に記録したり、メモリカード等の各種記憶媒体を装填して、その記憶媒体に記憶された画像データ等を記録用紙に記録することが可能である。   The MFP 1 is connected to a computer (not shown), and records an image or document on a recording sheet (recording medium) based on image data or document data transmitted from the computer, or an external device such as a digital camera. It is possible to record image data output from a digital camera connected to a recording sheet, or to load various storage media such as a memory card and record the image data stored in the storage medium on a recording sheet. It is.

スキャナ3は、FBS(Flatbed Scanner、以下「FBS」という)として機能する原稿読取台6に対して、自動原稿搬送機構(ADF:Auto Document Feeder、以下「ADF」という。)7を備えた原稿カバー8が、背面側の蝶番を支点として開閉自在に取り付けられている。   The scanner 3 is an original cover provided with an automatic document feeder (ADF) 7 for an original reading table 6 that functions as an FBS (Flatbed Scanner, hereinafter referred to as “FBS”). 8 is attached so that it can be opened and closed with a hinge on the back side as a fulcrum.

原稿読取台6の上面は大きく開口されており、その開口部にプラテンガラスが嵌め込まれ、原稿読取台6の内部には、上記画像読取ユニット3a(図3参照)の移動スペースや、画像読取ユニット3aを支持する部材および駆動させる機構などを配設するスペースが確保されている。   The upper surface of the document reading table 6 is widely opened, and a platen glass is fitted into the opening. Inside the document reading table 6, the space for moving the image reading unit 3a (see FIG. 3), the image reading unit, and the like. A space for arranging a member for supporting 3a and a driving mechanism is secured.

ADF7は、原稿トレイ9から原稿排出トレイ10へ原稿搬送路を通じて原稿を搬送するものである。ADF7には、原稿を取り込む際に原稿の先端を検出する原稿先端センサ(図示なし)が設けられ、そのセンサにより検出された原稿の先端を基準位置として、原稿を搬送する制御が行なわれる。   The ADF 7 transports the document from the document tray 9 to the document discharge tray 10 through the document transport path. The ADF 7 is provided with a document leading edge sensor (not shown) that detects the leading edge of the document when the document is taken in, and performs control of conveying the document with the leading edge of the document detected by the sensor as a reference position.

プリンタ2は、スキャナ3で読み取られた画像データ或いは外部から入力された画像データに基づいて、選択的にインク滴を吐出することによって、記録用紙上に画像を記録する所謂インクジェット方式の画像記録装置(インクジェット記録装置)である。このプリンタ2は、上述したように、スキャナ3の下方に配設されている。   The printer 2 is a so-called inkjet image recording apparatus that records an image on a recording sheet by selectively ejecting ink droplets based on image data read by the scanner 3 or image data input from the outside. (Inkjet recording apparatus). As described above, the printer 2 is disposed below the scanner 3.

MFP1の正面側、換言すれば、プリンタ2の正面側には開口5が形成されている。この開口5内に給紙トレイ14及び排紙トレイ15が完全に内包されるように設けられている。給紙トレイ14と排紙トレイ15は上下二段となるように配設されており、上段に排紙トレイ15が設けられ、その下方に給紙トレイ14が設けられている。   An opening 5 is formed on the front side of the MFP 1, in other words, on the front side of the printer 2. A paper feed tray 14 and a paper discharge tray 15 are provided in the opening 5 so as to be completely contained. The paper feed tray 14 and the paper discharge tray 15 are arranged in two upper and lower stages, the paper discharge tray 15 is provided in the upper stage, and the paper feed tray 14 is provided in the lower part.

MFP1の正面側には、図1に示すように横長形状の操作パネル4が設けられている。操作パネル4は、プリンタ2やスキャナ3を操作するためのものであり、各種操作キー40と液晶表示部(LCD:Liquid Crystal Display)41(以下、表示画面と称す)とを具備する。この表示画面41は、縦横比が3:4の画面を横に2個並べ、縦横比が3:8のものである。   A horizontally long operation panel 4 is provided on the front side of the MFP 1 as shown in FIG. The operation panel 4 is for operating the printer 2 and the scanner 3 and includes various operation keys 40 and a liquid crystal display (LCD) 41 (hereinafter referred to as a display screen). This display screen 41 has two screens with an aspect ratio of 3: 4 arranged side by side and an aspect ratio of 3: 8.

使用者は、操作パネル4を用いて、所望の指令を入力することができる。MFP1に所定の指令が入力されると、その入力された情報に基づいて該MFP1の動作が制御される。操作パネル4に設けられる操作キー40には、十字キーやテンキーなどが設けられている。   The user can input a desired command using the operation panel 4. When a predetermined command is input to the MFP 1, the operation of the MFP 1 is controlled based on the input information. The operation keys 40 provided on the operation panel 4 are provided with a cross key, a numeric keypad, and the like.

プリンタ2の上記開口5の上側には、接続パネル70が設けられている。この接続パネル70には、その左端側にUSB端子71が配設されている。USB端子71は、外部機器とUSB接続することにより該外部機器と本MFP1とを通信可能に接続するコネクタ端子である。また、接続パネル70の右端側にはスロット部72が配設されている。スロット部72はカード型メモリを装填可能な複数のカードスロットが設けられている。カードスロットにカード型メモリが装填され、その装填されたカード側メモリから画像データが読み出されると、その読み出された画像データや該画像データに関する情報が表示画面41に表示される。   A connection panel 70 is provided above the opening 5 of the printer 2. The connection panel 70 is provided with a USB terminal 71 on the left end side thereof. The USB terminal 71 is a connector terminal that communicatively connects the external device and the MFP 1 by making a USB connection with the external device. A slot portion 72 is disposed on the right end side of the connection panel 70. The slot portion 72 is provided with a plurality of card slots into which card type memories can be loaded. When a card-type memory is loaded in the card slot and image data is read from the loaded card-side memory, the read image data and information related to the image data are displayed on the display screen 41.

図2は、原稿カバー8が開かれた状態のMFP1の外観を示す斜視図である。図2に示すように、原稿カバー8の裏側には、原稿押さえ19が設けられている。原稿押さえ19は、少なくとも片面が白色に形成された板状の部材であり、白色面が下向きに固定されている。原稿読取台6の上面は大きく開口されており、その開口部にはプラテンガラス12が嵌め込まれている。プラテンガラス12の上面の一端(図2では、左側)に、プラテンガラス12の上面に原稿を載置する際に、原稿の一辺を当接させる原稿ガイド16が設けられている。   FIG. 2 is a perspective view showing an appearance of the MFP 1 with the document cover 8 opened. As shown in FIG. 2, a document retainer 19 is provided on the back side of the document cover 8. The document retainer 19 is a plate-like member having at least one surface formed in white, and the white surface is fixed downward. The upper surface of the document reading table 6 is greatly opened, and a platen glass 12 is fitted into the opening. A document guide 16 is provided at one end of the upper surface of the platen glass 12 (on the left side in FIG. 2) so as to abut one side of the document when the document is placed on the upper surface of the platen glass 12.

原稿読取台6の内部には、画像読取ユニット3a(図3参照)が内蔵され、副走査方向(X方向)に往復移動可能に設けられている。この画像読取ユニット3aについて、詳細は後述する。なお、副走査方向Xと垂直な方向(Y方向)を主走査方向という。   An image reading unit 3a (see FIG. 3) is built in the document reading table 6, and is provided so as to be reciprocally movable in the sub-scanning direction (X direction). Details of the image reading unit 3a will be described later. A direction (Y direction) perpendicular to the sub-scanning direction X is referred to as a main scanning direction.

このように構成されたスキャナ3をFBSとして使用する場合は、原稿カバー8を開いてプラテンガラス12上に原稿を載置し、その後、原稿カバー8を閉じて当該原稿を固定する。原稿は、プラテンガラス12と原稿押さえ19との間に挟まれることにより固定される。読取開始指令が入力されると、画像読取ユニット3aがプラテンガラス12の裏面に沿って副走査方向Xに走査され、原稿の画像が読み取られる。   When the scanner 3 configured as described above is used as an FBS, the document cover 8 is opened and a document is placed on the platen glass 12, and then the document cover 8 is closed and the document is fixed. The document is fixed by being sandwiched between the platen glass 12 and the document holder 19. When a reading start command is input, the image reading unit 3a is scanned in the sub-scanning direction X along the back surface of the platen glass 12, and the image of the document is read.

ADF7を使用し、原稿を自動搬送させて読み取る場合は、ADF7による原稿の搬送過程において、原稿が原稿読取台6上の読取面13を通過し、該読取面13の下方に移動して待機する画像読取ユニット3aによって該原稿の画像が読み取られる。このようなADF7による画像読み取りは、原稿カバー8が原稿読取台6に対して閉じられた状態で行われる。   When the ADF 7 is used and the original is automatically conveyed and read, the original passes through the reading surface 13 on the original reading table 6 in the process of conveying the original by the ADF 7, moves to the lower side of the reading surface 13 and stands by. The image of the original is read by the image reading unit 3a. Such image reading by the ADF 7 is performed in a state where the document cover 8 is closed with respect to the document reading table 6.

次に、図3を参照して、スキャナ3の概略について説明する。図3は、スキャナ3の構成を概略的に表した断面図であり、MFP1を正面視したものである。図3に示すように、原稿読取台6の開口部には、プラテンガラス12が嵌め込まれており、その下方には画像読取ユニット3aが設けられている。   Next, an outline of the scanner 3 will be described with reference to FIG. FIG. 3 is a cross-sectional view schematically showing the configuration of the scanner 3 and is a front view of the MFP 1. As shown in FIG. 3, a platen glass 12 is fitted in the opening of the document reading table 6, and an image reading unit 3a is provided below the platen glass 12.

画像読取ユニット3aは、CIS方式により原稿を読み取るものであり、光を照射する光源(LED)3bと、原稿Gの読み取り部分に光を収束させるための導光体3cと、原稿Gから反射された反射光を撮像素子3eに集光させるための導光体3dと、受光した光の強度に応じて電圧を出力する撮像素子3eとを一ライン分、主走査方向Yに沿って備え、副走査方向Xに往復移動可能に設けられている。   The image reading unit 3a reads a document by the CIS method. The light source (LED) 3b for irradiating light, a light guide 3c for converging light on a reading portion of the document G, and the document G are reflected. A light guide 3d for condensing the reflected light on the image sensor 3e and an image sensor 3e for outputting a voltage according to the intensity of the received light along the main scanning direction Y. It is provided so as to be able to reciprocate in the scanning direction X.

プラテンガラス12の上面に原稿Gを載置して、操作キー40の原稿読み取りボタンが押下されると、画像読取ユニット3aが原稿Gの読み取り開始位置に搬送され、原稿Gの読み取りが開始される。まず、LED3bが点灯され、光が照射される。その光は、導光体3cにより経路が変更され、照射光Sとして撮像素子3eの上方に向かって照射される。原稿G(プラテンガラス12)の表面で反射された光のうち、撮像素子3eに向かって反射する反射光Rは、導光体3dにより集光され、撮像素子3eにより受光される。撮像素子3eは、CMOSセンサーなどにより構成され、受光した光の強度に応じて電圧値を出力し、その電圧値は、ASIC3fに入力される。撮像素子3eは、複数の素子が直線上(主走査方向Y)に配設されたものであり、一の素子が画像データの一ラインの一の画素を形成する。原稿Gの一ライン分が読み取られると、画像読取ユニット3aは、次の一ラインを読み取るために副走査方向Xに所定量搬送され、次の一ライン分の読み取りが行われる。この一ライン分の読み取りと所定量の搬送とが繰り返され、原稿Gの全域の読み取りが行われる。尚、搬送される所定量は、読み取りに際して設定される解像度等によって適宜設定される。   When the original G is placed on the upper surface of the platen glass 12 and the original reading button of the operation key 40 is pressed, the image reading unit 3a is conveyed to the reading start position of the original G, and reading of the original G is started. . First, the LED 3b is turned on and irradiated with light. The path of the light is changed by the light guide 3c, and the light is irradiated as irradiation light S toward the upper side of the image sensor 3e. Of the light reflected on the surface of the original G (platen glass 12), the reflected light R reflected toward the image sensor 3e is collected by the light guide 3d and received by the image sensor 3e. The image pickup device 3e is configured by a CMOS sensor or the like, and outputs a voltage value according to the intensity of received light. The voltage value is input to the ASIC 3f. The imaging element 3e is a plurality of elements arranged in a straight line (main scanning direction Y), and one element forms one pixel in one line of image data. When one line of the original G is read, the image reading unit 3a is conveyed by a predetermined amount in the sub-scanning direction X to read the next one line, and the next one line is read. This one-line reading and a predetermined amount of conveyance are repeated, and the entire area of the original G is read. The predetermined amount to be conveyed is set as appropriate according to the resolution set at the time of reading.

ASIC3fは、撮像素子3eの各素子より入力された電圧値をそれぞれ16ビットの数値データに変換し、その後、各種のデータ補正を行い、画像データとして出力させるために設計された集積回路である。撮像素子3eの一の素子に対応する画素値は、16ビットの数値で形成される。ASIC3fから出力された画像データは、後述の図4に示すバスライン25を介して、RAM23(図4参照)の画像メモリ23aに書き込まれ、原稿Gの画像が画像データとして記憶される。   The ASIC 3f is an integrated circuit designed to convert the voltage value input from each element of the image sensor 3e into 16-bit numerical data, and then perform various data corrections and output the data as image data. A pixel value corresponding to one element of the image sensor 3e is formed by a 16-bit numerical value. The image data output from the ASIC 3f is written into the image memory 23a of the RAM 23 (see FIG. 4) via a bus line 25 shown in FIG. 4 described later, and the image of the original G is stored as image data.

次に、図4を参照してMFP1の電気的構成について説明する。図4は、MFP1の電気的構成を示したブロック図である。MFP1は、プリンタ2、スキャナ3、CPU21、ROM22、RAM23、ネットワーク・コントロール・ユニット(以下、「NCU」と称す)31、モデム32、操作キー40、LCD41、USB端子71、スロット部72、アンプ73、スピーカ74を主に備え、これらはバスライン25を介してお互いに接続されている。   Next, the electrical configuration of the MFP 1 will be described with reference to FIG. FIG. 4 is a block diagram showing an electrical configuration of the MFP 1. The MFP 1 includes a printer 2, a scanner 3, a CPU 21, a ROM 22, a RAM 23, a network control unit (hereinafter referred to as “NCU”) 31, a modem 32, an operation key 40, an LCD 41, a USB terminal 71, a slot unit 72, and an amplifier 73. The speaker 74 is mainly provided, and these are connected to each other via the bus line 25.

CPU21は、ROM22やRAM23に記憶される固定値やプログラム或いは、MFP1が備えている各機能の制御や、NCU31を介して送受信される各種信号にしたがって、バスライン25により接続された各部を制御するものである。ROM22は、このMFP1で実行される各種の制御プログラム22aと、その制御プログラム22aにより、画像の濃度を設定する際に参照される通常のガンマテーブル22bおよびカーボン紙専用のガンマテーブル22cとを記憶する書換不能なメモリである。制御プログラム22aの一つとして、スキャナ3により原稿Gの画像を読み込み、印刷を行う複写処理を行うものがあり、この複写処理については、図11に示すフローチャートを参照して後述する。   The CPU 21 controls each unit connected by the bus line 25 according to fixed values and programs stored in the ROM 22 and RAM 23, control of each function provided in the MFP 1, and various signals transmitted / received via the NCU 31. Is. The ROM 22 stores various control programs 22a executed by the MFP 1, and a normal gamma table 22b and a gamma table 22c dedicated to carbon paper that are referred to when setting the image density by the control program 22a. It is a non-rewritable memory. As one of the control programs 22a, there is a program that reads an image of the original G by the scanner 3 and performs a copying process for printing. This copying process will be described later with reference to a flowchart shown in FIG.

通常のガンマテーブル22bは、印刷を行う場合に、画素の濃度値を変更しない変換テーブルであり、カーボン紙専用のガンマテーブル22cは、画素の濃度値を濃度が濃くなるように変更する変換テーブルである。スキャナ3により読み込まれた画像により、原稿Gがカーボンコピーされた特殊な原稿であるか否かが判定され、原稿Gが、カーボンコピーされたものではないと判定された場合は、通常のガンマテーブル22bにより変換が行われ、カーボンコピーされたものであると判定された場合は、カーボン紙専用のガンマテーブル22cにより変換が行われ、変換された画素の濃度値に基づいて、印刷が行われる。通常のガンマテーブル22bとカーボン紙専用のガンマテーブル22cについては、図10を参照して後述する。   The normal gamma table 22b is a conversion table that does not change the pixel density value when printing is performed, and the carbon paper dedicated gamma table 22c is a conversion table that changes the pixel density value so that the density becomes higher. is there. Based on the image read by the scanner 3, it is determined whether or not the original G is a special carbon copied original. If it is determined that the original G is not carbon copied, a normal gamma table is used. If it is determined that the data has been converted by the carbon 22b and has been carbon-copied, the conversion is performed by the gamma table 22c dedicated to carbon paper, and printing is performed based on the converted density value of the pixel. A normal gamma table 22b and a gamma table 22c dedicated to carbon paper will be described later with reference to FIG.

RAM23は各種のデータを記憶するための書換可能なメモリである。このRAM23には、画像メモリ23aなどの各種のメモリが設けられている。画像メモリ23aは、スキャナ3により読み取られた原稿の画像データ等を記憶するメモリである。原稿Gがカーボンコピーされたものであるか否かを判定する際には、スキャナ3により読み込まれた画像の画素値(RGB)が、この画像メモリ23aに記憶され、その画素値に基づいて判定が行われる。   The RAM 23 is a rewritable memory for storing various data. The RAM 23 is provided with various memories such as an image memory 23a. The image memory 23 a is a memory that stores image data of a document read by the scanner 3. When determining whether or not the original G is a carbon copy, the pixel value (RGB) of the image read by the scanner 3 is stored in the image memory 23a and determined based on the pixel value. Is done.

NCU31は電話網(図示しない)に対するダイヤル信号の送出や、電話網からの呼出信号の応答等の動作を行うものである。モデム32は、NCU31を介して、画像データを変調及び復調し、相手ファクシミリ装置(図示しない)へ伝送すると共に、伝送制御用の各種手順信号を送受信するためのものである。USB端子71は、コンピュータとUSBケーブル(図示しない)を介してデータの送受信を行うための既知の回路である。アンプ73は、そのアンプ73に接続されたスピーカ74を鳴動して、呼出音などを出力するためのものである。   The NCU 31 performs operations such as sending a dial signal to a telephone network (not shown) and responding to a calling signal from the telephone network. The modem 32 modulates and demodulates image data via the NCU 31 and transmits it to a partner facsimile machine (not shown), and transmits and receives various procedure signals for transmission control. The USB terminal 71 is a known circuit for transmitting and receiving data via a computer and a USB cable (not shown). The amplifier 73 is used to ring a speaker 74 connected to the amplifier 73 and output a ringing tone or the like.

次に、図5を参照して、スキャナ3により読み取られる原稿Gと、読み取られた原稿Gの画像データと、原稿Gのエッジを検出する方法について説明する。図5(a)は、スキャナ3の画像読取ユニット3aと、プラテンガラス12と、プラテンガラス12に載置された原稿Gとを概略的に表した平面図である。図5(b)は、図5(a)に示すA−A’線における断面図である。図5(c)は、スキャナ3により読み取られた画像データの全体を模式的に表した図である。   Next, a method for detecting the original G read by the scanner 3, the image data of the read original G, and the edge of the original G will be described with reference to FIG. FIG. 5A is a plan view schematically showing the image reading unit 3 a of the scanner 3, the platen glass 12, and the document G placed on the platen glass 12. FIG. 5B is a cross-sectional view taken along line A-A ′ shown in FIG. FIG. 5C is a diagram schematically showing the entire image data read by the scanner 3.

スキャナ3により原稿Gが読み取られる場合は、読み取られる原稿のサイズに関わらず、画像読取ユニット3aにより読み取り可能な領域全てが読み取られる。読み取られた画像データから原稿Gのエッジが検出され、そのエッジに沿う帯状の範囲(領域)の画像を検査することにより、読み取ろうとしている原稿Gが、カーボンコピーされたものであるか否かが判断される。   When the document G is read by the scanner 3, the entire area that can be read by the image reading unit 3a is read regardless of the size of the read document. Whether or not the edge of the document G is detected from the read image data, and the image in the band-like range (area) along the edge is inspected, whether or not the document G to be read is carbon-copied. Is judged.

カーボンコピーされた原稿Gを注意深く観察すると、その多くは、原稿Gの4辺のそれぞれのエッジから略3mm程原稿Gの内側の幅の範囲に、カーボン紙から転写されたインクが付着している。カーボン紙の多くは、青、または赤などのインクが塗布されており、これらの色のインクが付着される。従って、原稿Gのエッジの内側で、エッジに沿う帯状の範囲を判定範囲として設定し、その判定範囲の画像を読み取り、その判定範囲の画像に基づいて、インクが付着されているか否かを判定し、これらの色のインクが付着している場合に、カーボンコピーされた特殊原稿であると判定する。   When the carbon-copy original G is carefully observed, in many cases, the ink transferred from the carbon paper adheres to the inside width of the original G about 3 mm from the respective edges of the four sides of the original G. . Many of the carbon papers are coated with ink such as blue or red, and inks of these colors are attached. Therefore, a band-shaped range along the edge is set as the determination range inside the edge of the document G, an image in the determination range is read, and it is determined whether ink is attached based on the image in the determination range. If the inks of these colors are attached, it is determined that the original is a carbon copied special document.

そこで、まず、原稿Gのエッジを検出する方法について説明する。なお、本実施形態においては、説明を分かりやすくするために、原稿1枚分の画像データが一旦画像メモリ23aに格納される場合を例として説明する。   First, a method for detecting the edge of the original G will be described. In the present embodiment, in order to make the explanation easy to understand, a case where image data for one original is temporarily stored in the image memory 23a will be described as an example.

図5(a)に示すように、原稿Gは、本実施形態においては長方形であって、画像記録部Pとその画像記録部Pの周囲を囲む余白とにより形成されている。原稿Gは、読み取り面である画像記録部Pが下面に向けられ、原稿Gの一辺が副走査方向Xに平行となるようにプラテンガラス12上に載置されている。原稿カバー8は閉じられており、原稿Gは、プラテンガラス12と原稿押さえ19とに挟まれ固定される。尚、図5(a)の例では、原稿Gの長手方向の一辺が副走査方向Xに平行となるように載置された状態を示しているが、プラテンガラス12の上面に設置された原稿ガイド16に原稿の一辺が当接されて載置されることもある。   As shown in FIG. 5A, the document G is rectangular in the present embodiment, and is formed by the image recording portion P and a margin surrounding the image recording portion P. The document G is placed on the platen glass 12 so that the image recording portion P that is a reading surface is directed to the lower surface, and one side of the document G is parallel to the sub-scanning direction X. The document cover 8 is closed, and the document G is sandwiched and fixed between the platen glass 12 and the document presser 19. In the example of FIG. 5A, the original G is placed so that one side in the longitudinal direction thereof is parallel to the sub-scanning direction X. However, the original placed on the upper surface of the platen glass 12 is shown. In some cases, one side of the document is placed in contact with the guide 16.

図5(b)は、図5(a)に示すA−A’線における断面図であり、画像読取ユニット3aが、X0、X1、X2の位置に移動された場合を重複して図示している。画像読取ユニット3aが待機している状態(図示なし)で、操作キー40の原稿読み取りボタンが押下されると、画像読取ユニット3aが原稿の読み取り開始位置X0に搬送され、原稿Gの読み取りが開始される。この位置X0においては、撮像素子3eの上部に原稿が載置されていないため、原稿押さえ19の表面で反射した光が読み取られ、画像データとして画像メモリ23aに記憶される。一ライン分の画像データが読み取られると、画像読取ユニット3aは、副走査方向Xに所定量搬送され、次の一ライン分の読み取りが行われる。この読み取りと搬送とが繰り返される。   FIG. 5B is a cross-sectional view taken along the line AA ′ shown in FIG. 5A, and illustrates the case where the image reading unit 3a is moved to the positions of X0, X1, and X2. Yes. When the document reading button of the operation key 40 is pressed while the image reading unit 3a is waiting (not shown), the image reading unit 3a is conveyed to the document reading start position X0, and reading of the document G is started. Is done. At this position X0, since no document is placed on the upper part of the image sensor 3e, the light reflected by the surface of the document retainer 19 is read and stored as image data in the image memory 23a. When the image data for one line is read, the image reading unit 3a is conveyed by a predetermined amount in the sub-scanning direction X, and the next one line is read. This reading and conveyance are repeated.

画像読取ユニット3aが、副走査方向Xに搬送され、原稿Gの一つのエッジに対応する位置X1に搬送されると、原稿Gのエッジの画像が読み取られ、画像データとして画像メモリ23aに記憶される。この位置X1では、正面視した照射光Sは、左上方に向かうよう角度が設けられているため、この原稿Gの一端で光の回折が生じて反射光Rが強くなり、図5(c)の位置X1に示すように原稿押さえ19部分の画像データよりも白い画像データとなる。よって、この色の違いにより原稿Gのエッジを識別することができる。   When the image reading unit 3a is conveyed in the sub-scanning direction X and conveyed to the position X1 corresponding to one edge of the original G, the image of the edge of the original G is read and stored as image data in the image memory 23a. The At this position X1, since the irradiation light S viewed from the front is angled so as to go to the upper left, the diffraction of light occurs at one end of the original G, and the reflected light R becomes stronger, and FIG. As shown at position X1, the image data is whiter than the image data of the document retainer 19 portion. Therefore, the edge of the document G can be identified by the difference in color.

さらに、画像読取ユニット3aが、原稿Gの副走査方向Xに移動され、原稿Gの他のエッジに対応する位置X2に搬送されると、同様に原稿Gの他のエッジの画像が読み取られる。この位置X2では、照射光Sに角度が設けられているため、この原稿Gのエッジで光の回折が生じて反射光Rが弱くなり、図5(c)の位置X2に示すように原稿押さえ19部分の画像データよりも黒い画像データとなる。よって、この色の違いにより原稿Gのエッジを識別することができる。   Further, when the image reading unit 3a is moved in the sub-scanning direction X of the document G and conveyed to the position X2 corresponding to the other edge of the document G, the image of the other edge of the document G is similarly read. At this position X2, since the irradiation light S is provided with an angle, light is diffracted at the edge of the original G, and the reflected light R becomes weak. As shown in the position X2 in FIG. The image data is blacker than the 19-part image data. Therefore, the edge of the document G can be identified by the difference in color.

また、図5(a)に示す画像読取ユニット3aの照射光Sの方向は、左下方に向かうよう副走査方向Xおよび主走査方向Yと角度が設けられている。よって、画像読取ユニット3aにより、位置X1から位置X2までの原稿Gの画像が読み取られると、原稿Gの一つのエッジ(図5ではの上側の辺)に対応する画像は、図5(c)のY1に示すように黒い画像データとなり、原稿Gの他のエッジ(図5では下側の辺)に対応する画像は、図5(c)のY2に示すように白い画像データとなる。   In addition, the direction of the irradiation light S of the image reading unit 3a shown in FIG. Therefore, when the image reading unit 3a reads the image of the original G from the position X1 to the position X2, the image corresponding to one edge (the upper side in FIG. 5) of the original G is shown in FIG. As shown in Y1 of FIG. 5, black image data is obtained, and an image corresponding to the other edge of the document G (lower side in FIG. 5) is white image data as shown in Y2 of FIG. 5C.

従って、これら原稿Gの4つのエッジ(辺)に対応する黒い画像データと白い画像データとを検出することにより、原稿Gの4つのエッジを検出することができる。   Accordingly, by detecting black image data and white image data corresponding to the four edges (sides) of the original G, the four edges of the original G can be detected.

次に、図6を参照して、カーボン紙のインクが付着しているか否かを検出する検出位置である判定範囲について説明する。原稿Gは、長方形であり、長方形の原稿Gには、4つのエッジ(または辺)があり、カーボン紙のインクが、このエッジに沿って付着されていることが多い。そこで、これらの4つのエッジに沿って判定範囲を設定し、その判定範囲の画像を読取り、カーボンコピーに用いられるインクが付着しているか否かを判定する。しかしながら、4つのエッジに沿って判定範囲を設定する場合は、一度、原稿Gの全範囲の画像を読み取り、カーボンコピーされたものであるか否かを判定した後、再度原稿Gの全範囲のモノクロ画像を読み取り、印刷を行う必要がある。この方法は、第2の実施形態として、後述する。   Next, a determination range that is a detection position for detecting whether or not carbon paper ink is attached will be described with reference to FIG. The document G is rectangular, and the rectangular document G has four edges (or sides), and carbon paper ink is often attached along these edges. Therefore, a determination range is set along these four edges, an image in the determination range is read, and it is determined whether or not ink used for carbon copy is attached. However, when setting the determination range along the four edges, once the image of the entire range of the original G is read, it is determined whether or not it is a carbon copy, and then the entire range of the original G is again read. It is necessary to read and print a monochrome image. This method will be described later as a second embodiment.

第1の実施形態としては、原稿Gの4つのエッジのうち、一つのエッジのみに沿って判定範囲を設定し、その判定範囲の画像に基づいてカーボンコピーされたものであるか否かを判定した後、原稿の残りの範囲(画像範囲)について、モノクロ画像を読み取り、カーボンコピーされたものである場合は、カーボン紙専用のガンマテーブル22cにより濃度を濃く補正し、カーボンコピーされたものでない場合は、通常のガンマテーブル22bにより濃度の補正を行わずにプリンタ2に出力するという処理を行う。この場合は、1回の走査により原稿の画像を読み取るので、2回走査を行う場合に比べ時間を短縮することができる。   In the first embodiment, a determination range is set along only one edge of the four edges of the document G, and it is determined whether or not a carbon copy is made based on an image in the determination range. After that, when the remaining area (image area) of the original is a black-and-white image read and carbon-copied, the density is corrected with a gamma table 22c dedicated to carbon paper, and is not carbon-copied Performs a process of outputting to the printer 2 without correcting the density by the normal gamma table 22b. In this case, since the image of the original is read by one scan, the time can be shortened compared to the case of performing the scan twice.

図6、図7および図8は、第1の実施形態および第2の実施形態で適用される判定範囲の設定方法を示す平面図である。図6は、主走査方向Yの判定範囲を設定する場合の基準の設定方法を示し、図7は、判定範囲の主走査方向Yの長さSの設定方法を示し、図8は、副走査方向Xの判定範囲の位置を設定する方法を示す平面図である。   6, 7 and 8 are plan views showing a determination range setting method applied in the first embodiment and the second embodiment. 6 shows a reference setting method when setting the determination range in the main scanning direction Y, FIG. 7 shows a setting method of the length S in the main scanning direction Y of the determination range, and FIG. 8 shows sub-scanning. It is a top view which shows the method of setting the position of the determination range of the direction X. FIG.

図6は、主走査方向Yの判定範囲を設定する方法を各種示し、原稿Gに対し、読み取り範囲を破線、中心線を一点鎖線、副走査方向をX、判定範囲を帯状の長方形でそれぞれ示し、判定範囲の主走査方向Yの長さをSとし、基準とする位置から判定範囲までの長さをそれぞれ示している。   FIG. 6 shows various methods for setting the determination range in the main scanning direction Y. For the document G, the reading range is indicated by a broken line, the center line is indicated by a one-dot chain line, the sub-scanning direction is indicated by X, and the determination range is indicated by a belt-like rectangle. The length of the determination range in the main scanning direction Y is S, and the length from the reference position to the determination range is shown.

図6(a)は、読み取り位置の中心を基準に設定する方法を示す。原稿Gは、スキャナ3に予め定められた所定位置に載置される。その所定位置に載置される原稿Gの中心を基準とし、図6(a)に一点鎖線で示すように、その中心から両側に長さAをとり、その範囲を判定範囲とし、判定範囲の主走査方向Yの長さSを2×Aとする方法である。この方法は、原稿Gの主走査方向Yの中心を読取り位置の中心に合わせるタイプのスキャナ3に適用する場合に好適である。なお、上記例では、中心の両側に等しい長さを設定するものとしたが、異なる長さに設定してもよい。   FIG. 6A shows a method for setting the center of the reading position as a reference. The original G is placed on the scanner 3 at a predetermined position. Using the center of the original G placed at the predetermined position as a reference, as shown by a one-dot chain line in FIG. 6A, the length A is taken on both sides from the center, and the range is set as a determination range. In this method, the length S in the main scanning direction Y is set to 2 × A. This method is suitable when applied to the scanner 3 of the type in which the center of the original G in the main scanning direction Y is aligned with the center of the reading position. In the above example, the same length is set on both sides of the center, but different lengths may be set.

図6(b)は、原稿ガイド16の原稿Gが当接される端部を基準とする方法を示す。原稿ガイド16から長さBの位置を一端とし、判定範囲の主走査方向Yの長さをSとする方法である。この方法は、原稿Gを載置するプラテンガラス12などの上に原稿ガイド16が設置されているタイプのスキャナ3に好適である。   FIG. 6B shows a method based on the end portion of the document guide 16 with which the document G is brought into contact. In this method, the position of the length B from the document guide 16 is one end, and the length of the determination range in the main scanning direction Y is S. This method is suitable for the scanner 3 of the type in which the document guide 16 is installed on the platen glass 12 on which the document G is placed.

図6(c)は、読取範囲の両側を基準に設定する方法を示す。読取範囲は、画像読取ユニット3aが画像を読み取ることができる主走査方向Yの範囲である。図6(c)において、読取範囲の左端および右端をそれぞれ、破線で示し、左端の読み取り範囲から長さDの位置を判定範囲の左端とし、読取り範囲の右端から長さEの位置を判定範囲の右端とする方法である。   FIG. 6C shows a method for setting both sides of the reading range as a reference. The reading range is a range in the main scanning direction Y in which the image reading unit 3a can read an image. In FIG. 6C, the left end and the right end of the reading range are indicated by broken lines, the position of the length D from the reading range at the left end is the left end of the determination range, and the position of the length E from the right end of the reading range is the determination range. It is the method of making the right end of.

図6(d)は、原稿Gの主走査方向Yの両端のエッジを検出し、その検出された両端のエッジの中心を基準として判定範囲を設定する方法を示す。検出された両端のエッジ中心から両側の長さFの範囲を判定範囲とし、判定範囲の主走査方向Yの長さSを2×Fとする方法である。このように両側に等しい長さとしてもよいし、異なる長さとしてもよい。   FIG. 6D shows a method of detecting edges at both ends of the original G in the main scanning direction Y, and setting the determination range with reference to the centers of the detected edges at both ends. This is a method in which the range of the length F on both sides from the detected edge center is set as the determination range, and the length S in the main scanning direction Y of the determination range is set to 2 × F. In this way, the lengths may be equal on both sides or different lengths.

図6(e)は、原稿Gの主走査方向Yの両端のエッジを検出し、その検出されたエッジを基準とする方法を示す。検出された原稿Gの左側のエッジから長さCの位置を判定範囲の左端とし、検出された原稿Gの右側のエッジから長さHの位置を判定範囲の右端とする方法である。このように両端からの長さを異なる長さとしてもよいし、同一の長さとしてもよい。   FIG. 6E shows a method in which edges at both ends of the document G in the main scanning direction Y are detected and the detected edges are used as a reference. In this method, the position of the length C from the left edge of the detected original G is set as the left end of the determination range, and the position of the length H from the detected right edge of the original G is set as the right end of the determination range. Thus, the lengths from both ends may be different lengths or the same length.

図6(f)は、原稿Gの主走査方向Yの両側のエッジを検出し、その検出されたエッジが読取り範囲の端と異なる場合の判定範囲を設定する方法を示す。この図6(f)の場合は、読取範囲の左端が、検出された原稿の左側のエッジより内側であって、検出された原稿の右側のエッジが読取範囲の右端より内側であり、読取範囲の左端と原稿の右側のエッジとの中心を基準として、その中心から両側に長さIをとり、その範囲を判定範囲とし、判定範囲の主走査方向Yの長さSを2×Iとする方法である。なお、上記例では、中心の両側に等しい長さを設定するものとしたが、異なる長さに設定してもよい。また、この図6(f)の場合とは反対に、原稿の左端が、読取り範囲の左端より内側であって、読取り範囲の右端が原稿の右端より内側である場合は、原稿の左端と読取り範囲の右端との中心を基準として、左右両側にIの長さを判定範囲とする。なお、このように中心から両側に等しい長さとしてもよいし、異なる長さとしてもよい。   FIG. 6F shows a method of detecting the edges on both sides of the original G in the main scanning direction Y and setting the determination range when the detected edges are different from the end of the reading range. In the case of FIG. 6F, the left end of the reading range is inside the left edge of the detected document, and the right edge of the detected document is inside the right end of the reading range. Taking the center of the left edge of the document and the right edge of the document as a reference, taking the length I from the center to both sides, the range as the determination range, and the length S in the main scanning direction Y of the determination range as 2 × I Is the method. In the above example, the same length is set on both sides of the center, but different lengths may be set. In contrast to the case of FIG. 6F, when the left end of the original is inside the left end of the reading range and the right end of the reading range is inside the right end of the original, the reading is made as the left end of the original. Using the center of the right end of the range as a reference, the length of I on both the left and right sides is set as the determination range. In this way, the length may be equal on both sides from the center or different lengths.

図6(g)は、図6(f)の場合と同様に、原稿Gの主走査方向Yの両側のエッジを検出し、その検出されたエッジが読取範囲の端と異なる場合の判定範囲を設定する方法であって、この図の場合は、読取範囲の左端が、検出された原稿の左側のエッジより内側であって、検出された原稿の右側のエッジが読取範囲の右端より内側である。この場合は、読取範囲の左端と原稿の右側のエッジとを基準とし、読取範囲の左端から長さJの位置を判定範囲の左端とし、原稿の右側のエッジからKの長さの位置を判定範囲の右端とする方法である。   FIG. 6G shows the determination range in the case where edges on both sides of the original G in the main scanning direction Y are detected and the detected edges are different from the end of the reading range, as in FIG. In the case of this figure, the left end of the reading range is inside the left edge of the detected document, and the right edge of the detected document is inside the right end of the reading range. . In this case, using the left end of the reading range and the right edge of the document as a reference, the position of the length J from the left end of the reading range is set as the left end of the determination range, and the position of the length K is determined from the right edge of the document. It is a method of setting the right end of the range.

この図6(g)の場合とは反対に、原稿の左端が、読取り範囲の左端より内側であって、読取り範囲の右端が原稿の右端より内側である場合は、原稿の左端と読取り範囲の右端とを基準とし、原稿の左端から長さJの位置から読取り範囲の右端からKの長さの位置までの範囲長Sを判定範囲とする。なお、このように両側から異なる長さとしてもよいし、等しい長さとしてもよい。   Contrary to the case of FIG. 6G, when the left end of the original is inside the left end of the reading range and the right end of the reading range is inside the right end of the original, the left end of the original and the reading range The range length S from the position of the length J from the left end of the document to the position of the length K from the right end of the reading range is set as the determination range with the right end as a reference. Note that the lengths may be different from both sides as described above, or may be the same length.

次に図7を参照して、主走査方向Yの判定範囲の範囲長Sの設定方法について説明する。図6においても、判定範囲の主走査方向YのサイズSについて説明したが、上記以外の方法について説明する。   Next, a method for setting the range length S of the determination range in the main scanning direction Y will be described with reference to FIG. Also in FIG. 6, the size S in the main scanning direction Y of the determination range has been described, but a method other than the above will be described.

図7(a)は、設定された用紙サイズの主走査方向Yの幅と同じサイズを判定範囲とする方法を示す。用紙サイズは、A4、B5などの規格化されたサイズの中から、使用者により選択されるものであり、用紙の幅と同一サイズを範囲長Sとするものである。市販されているプリンタやスキャナには、用紙のサイズを使用者が設定するものがあり、その設定されたサイズに合わせて判定範囲の長さを設定する方法である。   FIG. 7A shows a method in which the same size as the width of the set paper size in the main scanning direction Y is set as the determination range. The paper size is selected by the user from standardized sizes such as A4 and B5, and the same size as the paper width is set as the range length S. In some commercially available printers and scanners, the user sets the paper size, and the length of the determination range is set according to the set size.

図7(b)は、設定された用紙サイズの主走査方向Yの幅より狭い範囲を判定範囲とする方法を示す。使用者により設定された用紙サイズの主走査方向Yの両端から所定幅L(例えば、2cm)だけ内側を範囲長Sとする方法である。両端から等しい長さで設定してもよいし、それぞれの端から異なる長さで設定してもよい。また、用紙サイズの主走査方向Yの幅に対する割合(例えば、90%)により設定してもよい。   FIG. 7B shows a method in which the determination range is a range narrower than the width of the set paper size in the main scanning direction Y. This is a method in which a range length S is set by a predetermined width L (eg, 2 cm) from both ends in the main scanning direction Y of the paper size set by the user. It may be set with an equal length from both ends, or may be set with a different length from each end. Alternatively, the sheet size may be set by a ratio (for example, 90%) to the width in the main scanning direction Y.

図7(c)は、設定された用紙サイズの両側に耳白(例えば、3mm)が設定され、その耳白の内側を判定範囲とする方法を示す。スキャナ3などは、機種により、読み取られる範囲が、設定された用紙の幅の両側に耳白が設定され、その耳白の内側が読み取り範囲として設定されるものがあり、その読み取り範囲を判定範囲として設定する方法である。   FIG. 7C shows a method in which ear whites (for example, 3 mm) are set on both sides of the set paper size, and the inside of the ear white is used as the determination range. Some scanners 3 have a range that can be read depending on the model, in which ear whites are set on both sides of the set paper width, and the inner side of the ear white is set as a read range. It is a method to set as.

図7(d)は、図7(c)の主走査方向Yの読取範囲のさらに内側に判定範囲を設定する方法を示す。設定された用紙サイズの両側に耳白が設定される。左側の耳白の右端からMの長さの位置を判定範囲の左端とし、右側の耳白の左端からNの長さの位置を判定範囲の右端とする方法である。   FIG. 7D shows a method of setting the determination range further inside the reading range in the main scanning direction Y of FIG. Ear whites are set on both sides of the set paper size. In this method, the position M in length from the right end of the left ear white is the left end of the determination range, and the position N in length from the left end of the right ear white is the right end of the determination range.

次に、図8を参照して、副走査方向Xの判定範囲を設定する方法について説明する。図8(a)は、検出された原稿Gの一端(原稿先端位置)を基準とし、その一端からの距離で判定範囲の位置を設定する方法を示す。検出された原稿Gの一端から3mmの位置を判定範囲の下端とし、そこから原稿Gの一端方向に、所定幅(1〜2mm)を判定範囲とする方法である。   Next, a method for setting the determination range in the sub-scanning direction X will be described with reference to FIG. FIG. 8A shows a method for setting the position of the determination range based on the distance from one end of the detected original G (original front end position). This is a method in which a detected position of 3 mm from one end of the original G is set as the lower end of the determination range, and a predetermined width (1 to 2 mm) is set as a determination range from there to one end of the original G.

ADF7により原稿Gが搬送される場合は、ADF7に設けられた原稿先端センサにより検出された原稿Gの先端を基準として判定範囲が設定される。また、プラテンガラス12に原稿Gが載置される場合は、原稿のエッジが検出され、その検出されたエッジを基準として判定範囲が設定される。なお、判定範囲の下端は、原稿Gの先端から3mmの位置としたが、2〜3mmであってもよい。   When the document G is transported by the ADF 7, the determination range is set based on the leading edge of the document G detected by the document leading edge sensor provided in the ADF 7. When the document G is placed on the platen glass 12, the edge of the document is detected, and the determination range is set based on the detected edge. The lower end of the determination range is 3 mm from the leading edge of the original G, but it may be 2 to 3 mm.

図8(b)は、原稿ガイド16が設けられている場合に、その原稿ガイド16の原稿が当接される一端から所定距離(3mm)に判定範囲の下端を設定し、そこから原稿ガイド16の方に、所定幅(1〜2mm)を判定範囲とする方法を示す。この方法のように原稿ガイド16を基準にした場合、使用者により原稿Gが原稿ガイド16から離して載置されると、判定範囲が適切な位置ではない場合がある。   In FIG. 8B, when the document guide 16 is provided, the lower end of the determination range is set at a predetermined distance (3 mm) from one end of the document guide 16 on which the document comes into contact. A method of setting a predetermined width (1 to 2 mm) as a determination range is shown on the side. When the document guide 16 is used as a reference as in this method, if the document G is placed away from the document guide 16 by the user, the determination range may not be an appropriate position.

次に、図9を参照して、スキャナ3により読み取られた判定範囲の画像に基づいてカーボン紙を用いてコピーされた原稿Gであるか否かを判定する方法について説明する。   Next, a method for determining whether or not the document G is copied using carbon paper based on the image in the determination range read by the scanner 3 will be described with reference to FIG.

スキャナ3により読み取られた判定範囲の画像情報は、画素毎にR値(赤)、G値(緑)、B値(青)により構成され、各値は、12〜16ビットの数値である。   The image information in the determination range read by the scanner 3 is composed of an R value (red), a G value (green), and a B value (blue) for each pixel, and each value is a numerical value of 12 to 16 bits.

このRGB値をテーブルなどを参照することによりLab値に変換する。L値は、輝度(明度)であり、L値が大きいほど明るく、小さいほど暗い。従って、このL値により濃度を判定することができる。また、a値とb値とから、彩度値Cを下記数式(1)により、色相値Hを下記数式(2)により求め、これらの値を用いて色彩の判定を行うことができる。   The RGB values are converted into Lab values by referring to a table or the like. The L value is luminance (brightness), and the larger the L value is, the brighter it is and the smaller it is, the darker it is. Therefore, the density can be determined from the L value. Further, from the a value and the b value, the saturation value C can be obtained by the following mathematical expression (1) and the hue value H can be obtained by the following mathematical expression (2), and the hue can be determined using these values.

Figure 0004479731
Figure 0004479731

Figure 0004479731
次に、判定を行う場合の判定対象とする画素を設定する方法について説明する。
第1の方法:読み取られた判定範囲の全ての画素を判定対象とする
明度により判定する場合は、判定範囲内に含まれる全ての画素の明度値Lを加算し、その和を画素の総数で除算することにより明度の平均値を求める。その明度値Lの平均値が、所定の範囲内であるか否かを判定する。
Figure 0004479731
Next, a method for setting a pixel to be determined when performing determination will be described.
First method: All pixels in the read determination range are to be determined. When determining by lightness, the lightness values L of all pixels included in the determination range are added, and the sum is calculated as the total number of pixels. The average value of lightness is obtained by dividing. It is determined whether or not the average value of the lightness values L is within a predetermined range.

色彩により判定する場合は、所定の色(例えば青や赤)ごとに、色相値Hの範囲を定め、その範囲に含まれる画素の彩度値Cをそれぞれの範囲で平均した平均彩度値を求める。そして、それぞれの平均彩度値が、それぞれの色に設定された所定の範囲内であるか否かにより、その色のインクが付着されているか否かを判定する。
第2の方法:白色の画素を除外した画素を判定対象とする
読み取られた判定範囲の画素のうち、明度値Lが所定の値より大きい白色の画素を検出し、その検出された画素を除外した残りの画素を判定対象とする。
When judging by color, for each predetermined color (for example, blue or red), a range of hue values H is determined, and an average saturation value obtained by averaging the saturation values C of the pixels included in the range in each range is obtained. Ask. Then, it is determined whether or not the ink of that color is attached depending on whether or not each average saturation value is within a predetermined range set for each color.
Second method: The pixel excluding the white pixel is set as the determination target. Among the pixels in the read determination range, the white pixel having the lightness value L larger than the predetermined value is detected, and the detected pixel is excluded. The remaining pixels are determined.

図9(a)は、判定範囲の画素を模式的に示すものであり、白丸で示す画素Aは、明度値Lが大きい白色の画素を示し、黒丸Bで示す画素が、カーボンコピーが行われた際に付着したインクの画素を示す。白色の画素Aは、地色が白色の原稿の地色の画素であり、この図に示すように、インクが付着した部分は、地色の部分より少ない。   FIG. 9A schematically shows pixels in the determination range. A pixel A indicated by a white circle indicates a white pixel having a large lightness value L, and a pixel indicated by a black circle B is subjected to carbon copy. The pixel of the ink adhering to the case is shown. The white pixel A is a ground color pixel of the original whose background color is white, and as shown in this figure, the portion to which ink is attached is smaller than the ground color portion.

よって、判定範囲に含まれる全ての画素の明度値Lの平均値は、高くなり、地色の明度値Lとの差が小さく、インクが付着しているか否かの判定が困難になる。そこで、第2の方法では判定範囲に含まれる画素のうち、明度値Lが大きい白色の画素Aを除き、黒丸で示す画素Bのみにより判定する。明度値Lにより判定する場合は、白色の画素Aを除いた画素Bのみの明度値Lを加算し、その和を判定対象にされた画素の数で除算することにより明度値Lの平均値である平均明度を求める。その求められた平均明度の値が、所定の範囲内であるか否かにより、インクが付着されているかを判定する。白色の画素Aを除いた残りの画素の数が所定の数より少ない場合は、インクが付着していないと判定し、所定の数以上の画素が対象となった場合にだけ、平均値を求めるようにしてもよい。
第3の方法
読み取られた判定範囲の画素のうち、彩度値Cが所定の値より小さい無彩色の画素を検出し、その検出された画素を除外した残りの画素を判定対象とする。
Therefore, the average value of the lightness values L of all the pixels included in the determination range is high, and the difference from the lightness value L of the ground color is small, so that it is difficult to determine whether ink is attached. Therefore, in the second method, the determination is made only by the pixel B indicated by a black circle except for the white pixel A having a large lightness value L among the pixels included in the determination range. When judging by the brightness value L, the brightness value L of only the pixel B excluding the white pixel A is added, and the sum is divided by the number of pixels to be judged, thereby obtaining the average value of the brightness values L. Find a certain average brightness. Whether or not the ink is adhered is determined based on whether or not the obtained average brightness value is within a predetermined range. When the number of remaining pixels excluding the white pixel A is smaller than a predetermined number, it is determined that ink is not attached, and an average value is obtained only when a predetermined number of pixels or more are targeted. You may do it.
Third Method Among the pixels in the read determination range, an achromatic color pixel having a saturation value C smaller than a predetermined value is detected, and the remaining pixels excluding the detected pixel are determined.

図9(b)は、判定範囲の画素の様子を模式的に示すものであり、白丸で示す画素Aは、明度値Lが大きい地色の白色の画素であり、灰色の丸で示す画素Dは、ごみなどが原稿G、またはセンサに付着して読み取られた画素を示し、黒丸で示す画素Bが、カーボンコピーが行われた際に付着したインクを読み取った画素を示す。   FIG. 9B schematically shows the state of the pixels in the determination range. A pixel A indicated by a white circle is a ground white pixel having a large lightness value L, and a pixel D indicated by a gray circle. Indicates a pixel that is read when dust or the like adheres to the document G or sensor, and a pixel B indicated by a black circle indicates a pixel that has read the ink that has adhered when carbon copying is performed.

判定範囲の画素のうち、彩度値が小さい画素は、地色が白や灰色である場合の地色の画素や、ごみなどが付着していて読み取られた画素であり、インクの色は、有彩色であるから、無彩色の画素を除くと、付着されたインクの画素だけが残る。   Among the pixels in the determination range, pixels with a low saturation value are pixels that are read when the background color is white or gray, or pixels that are attached with dust, etc. Since it is a chromatic color, only pixels of attached ink remain when achromatic pixels are excluded.

従って、画素の彩度値Cが小さい無彩色の画素を検出し、その検出された無彩色の画素を除いた画素により判定を行うと、より精度良く判定を行うことができる。なお、この場合も、無彩色の画素を除いた結果、判定対象となる画素の数が所定の数より少ない場合は、インクが付着していないと判定し、所定の数以上の画素が対象となった場合にだけ、平均値を求めるようにしてもよい。
第4の方法
原稿Gの地色を検出し、読み取られた判定範囲の画素のうち、地色に対応する画素を除き、残りの画素を判定対象とする。地色が白色である場合は、第2の方法により判定対象が設定され、地色が白色または灰色である場合は、第3の方法により判定対象が設定されるが、原稿Gの地色が、白色または灰色以外の場合には、判定対象に含まれることになる。そこで、この第4の方法では、地色を検出し、その検出した地色の画素を判定対象から除外するものである。
Therefore, when an achromatic pixel having a small saturation value C of the pixel is detected and the determination is performed using the pixels excluding the detected achromatic pixel, the determination can be performed with higher accuracy. In this case as well, if the number of pixels to be determined is smaller than a predetermined number as a result of removing achromatic pixels, it is determined that no ink is attached, and a predetermined number or more of pixels are targeted. The average value may be obtained only when it becomes.
Fourth Method The background color of the original G is detected, and the pixels corresponding to the background color are excluded from the pixels in the read determination range, and the remaining pixels are set as determination targets. When the ground color is white, the determination target is set by the second method, and when the ground color is white or gray, the determination target is set by the third method. If it is other than white or gray, it is included in the determination target. Therefore, in the fourth method, the ground color is detected, and the detected ground color pixel is excluded from the determination target.

地色を検出する方法としては、最も、頻度が高い色彩の画素を地色として検出する。図9(c)に示すように、横軸に色相値Hをとり、判定範囲の全ての画素について、色相値Hの値を取る画素数を縦軸とするヒストグラムを作成する。そして、最も頻度が高い色相値Hを地色と判断する。   As a method for detecting the ground color, the pixel having the highest frequency is detected as the ground color. As shown in FIG. 9C, a histogram is created with the hue value H on the horizontal axis and the number of pixels taking the hue value H for all pixels in the determination range. Then, the hue value H with the highest frequency is determined as the ground color.

第4の方法では、このようにして判断された地色の色相値Hの画素を除外し、残りの画素を判定対象とする。これにより、より良い精度で判定を行うことができる。   In the fourth method, the pixels having the hue value H of the ground color determined in this way are excluded, and the remaining pixels are set as determination targets. Thereby, determination can be performed with better accuracy.

いずれの方法においても、明度による判定を行う場合は、判定対象とされた画素の明度値Lを加算し、その和を判定対象とされた画素の数で除算することにより明度値Lの平均値を求める。その明度値Lの平均値が、所定の範囲内であるか否かによりカーボン紙などのインクが付着しているかが判定される。   In any of the methods, when performing determination based on lightness, the lightness value L of the pixels to be determined is added, and the sum is divided by the number of pixels to be determined to average the lightness value L. Ask for. It is determined whether or not ink such as carbon paper is attached depending on whether or not the average value of the lightness values L is within a predetermined range.

色彩により判定する場合は、判定対象とされた画素の色相値Hが所定の色(青や赤)である画素の彩度値Cを加算して平均をとった平均彩度の値が所定の範囲内であるか否かによりカーボン紙などのインクが付着しているかが判定される。   In the case of determination by color, the average saturation value obtained by adding the saturation values C of pixels whose hue value H of the pixel to be determined is a predetermined color (blue or red) and taking the average is a predetermined value. It is determined whether or not ink such as carbon paper is attached depending on whether or not it is within the range.

なお、モノクロ画像で判定範囲の画像を読み込んだ場合は、図9(c)に示すグラフの横軸を明度値とし、各明度値毎の画素数を集計してヒストグラムを作成し、最も頻度が高い明度が地色の明度であるとしてもよい。つまり、判定範囲は必ずしもカラーで読み取る必要はない。   When a determination range image is read as a monochrome image, the horizontal axis of the graph shown in FIG. 9C is used as the brightness value, and the histogram is created by summing up the number of pixels for each brightness value. High brightness may be the lightness of the ground color. That is, the determination range does not necessarily need to be read in color.

次に、図10を参照して、スキャナ3により読み取られた画像情報の濃度を濃くする方法について説明する。ここでは、2つの方法について説明する。まず、一つの方法は、多値により形成される画像情報(例えば、8ビットで形成される256段階)の値を変換することにより濃度を濃くする方法である。もう一つの方法は、印刷を行う場合、ハーフトーン処理が行われ、このハーフトーン処理において二値を制御することにより濃度を濃くする方法である。   Next, a method for increasing the density of image information read by the scanner 3 will be described with reference to FIG. Here, two methods will be described. First, one method is a method of increasing the density by converting the value of image information formed by multiple values (for example, 256 steps formed by 8 bits). In another method, halftone processing is performed when printing is performed, and the density is increased by controlling binary values in this halftone processing.

まず、多値により濃度を濃くする方法について、図10(a)、図10(b)を参照して説明する。判定範囲の画像は、カラー画像により判定を行うが、印刷を行う場合は、モノクロ画像が読み取られ、そのモノクロ画像に基づいて印刷が行われる。図10に示すグラフは、いずれも横軸をそのモノクロ画像で検出された画素の値を入力値とし、縦軸を出力値として示すガンマカーブを示すものである。   First, a method for increasing the density using multiple values will be described with reference to FIGS. 10 (a) and 10 (b). The image in the determination range is determined by a color image. When printing is performed, a monochrome image is read and printing is performed based on the monochrome image. Each graph shown in FIG. 10 shows a gamma curve in which the horizontal axis represents the value of a pixel detected in the monochrome image as an input value, and the vertical axis represents an output value.

図10(a)は、濃度を変更しない場合のガンマカーブであり、このガンマカーブは、グラフの対角線に引かれた直線である。このガンマカーブは、通常のガンマテーブル22bとしてROM22に記憶される。   FIG. 10A shows a gamma curve when the density is not changed, and this gamma curve is a straight line drawn on a diagonal line of the graph. This gamma curve is stored in the ROM 22 as a normal gamma table 22b.

図10(b)は、全体的に濃度を濃くするように変更を行うガンマカーブである。対角線に引かれた直線のほぼ全域に渡って濃度が濃くなるように上に凸のカーブとなっている。このガンマカーブは、カーボン紙専用のガンマテーブル22cとしてROM22に記憶される。原稿Gがカーボン紙を用いてコピーされた特殊原稿であると判定された場合は、図10(b)に示すガンマカーブを用いて画素の値を変換し、その変換された値により印刷が行われ、一方、カーボン紙を用いてコピーされた特殊原稿ではないと判定された場合は、図10(a)に示す通常のガンマカーブを用いて画素の値を変換し、その変換された値により印刷が行われる。   FIG. 10B is a gamma curve that is changed so as to increase the density as a whole. The curve is convex upward so that the density increases over almost the entire area of the straight line drawn on the diagonal line. This gamma curve is stored in the ROM 22 as a gamma table 22c dedicated to carbon paper. If it is determined that the original G is a special original copied using carbon paper, the pixel value is converted using the gamma curve shown in FIG. 10B, and printing is performed using the converted value. On the other hand, if it is determined that the original is not a special original copied using carbon paper, the pixel value is converted using the normal gamma curve shown in FIG. Printing is performed.

次に、二値により濃度を濃くする方法について、図10(c)、図10(d)を参照して説明する。インクジェット方式の印刷装置では、記録媒体に対して、画素毎に微量なインクを吐出するか吐出しないかを制御して画像を形成する。この場合に、印刷情報が多値であり、その値に応じて、インクを吐出するか吐出しないかが設定される。   Next, a method of increasing the density by binary will be described with reference to FIGS. 10 (c) and 10 (d). In an inkjet printing apparatus, an image is formed on a recording medium by controlling whether or not a small amount of ink is ejected for each pixel. In this case, the print information is multivalued, and whether to eject ink or not is set according to the value.

図10(c)に示すグラフは、入力値がAより大きい場合は、インクを吐出し、Aより小さい場合は、インクを吐出しないように設定することを示している。また、 図10(d)に示すグラフは、入力値がBより大きい場合は、インクを吐出し、Bより小さい場合は、インクを吐出しないように設定することを示し、値Bは値Aより、入力値が小さい値に設定されるので、(d)に示される場合は、(c)に示される場合より広い範囲でインクが吐出され、濃度が高くなる。   The graph shown in FIG. 10C indicates that the ink is ejected when the input value is larger than A, and the ink is not ejected when the input value is smaller than A. Further, the graph shown in FIG. 10D indicates that the ink is ejected when the input value is larger than B, and the ink is not ejected when the input value is smaller than B. The value B is smaller than the value A. Since the input value is set to a small value, in the case shown in (d), ink is ejected in a wider range than in the case shown in (c), and the density becomes high.

次に、図11を参照して、CPU21が実行する複写処理について説明する。この複写処理は、ROM22に記憶された制御プログラム22aに記述されている。この処理は、使用者により画像が記録された原稿Gをモノクロで印刷するように指示された場合に、実行される処理である。この処理では、まず、画像読取ユニット3aを、原稿Gの一端に沿う判定範囲に移動し、判定範囲のカラー画像を読み取り、そのカラー画像からカーボンコピーされた原稿Gであるか否かを判定する。判定が行われた後、原稿Gのモノクロ画像が読み込まれ、判定によりカーボンコピーされた原稿Gではないと判断された場合は、そのまま印刷が行われ、カーボンコピーされた原稿Gであると判断された場合は、濃度を濃くして印刷が行われる。   Next, the copying process executed by the CPU 21 will be described with reference to FIG. This copying process is described in the control program 22 a stored in the ROM 22. This processing is executed when the user instructs to print the original G on which an image is recorded in monochrome. In this process, first, the image reading unit 3a is moved to a determination range along one end of the original G, a color image in the determination range is read, and it is determined whether or not the original G is carbon copied from the color image. . After the determination is made, a monochrome image of the original G is read, and if it is determined by the determination that the original G is not carbon-copied, printing is performed as it is and it is determined that the original G is carbon-copied. In the case of printing, printing is performed with a high density.

図11に示すフローチャートに従って説明する。使用者により原稿Gが原稿読取台6の開口部に載置され、モノクロ画像でコピーを行うように操作されると、まず、モノクロ用とカラー用の白基準レベルと黒基準レベルとを取得する(S1)。スキャナ3には、白基準板が備えられ、原稿Gの画像を読み取る前に、この白基準板に光を照射して白基準板の画像を読み取ることにより白基準レベルを取得し、次に、光を照射しないで、白基準板を読み取り黒基準レベルを取得する。   This will be described with reference to the flowchart shown in FIG. When the user places an original G on the opening of the original reading table 6 and operates to copy a monochrome image, first, white and black reference levels for monochrome and color are acquired. (S1). The scanner 3 includes a white reference plate. Before reading the image of the original G, the white reference plate is read by irradiating light on the white reference plate to read the image of the white reference plate. Without irradiating light, the white reference plate is read to obtain the black reference level.

次に、画像読取ユニット3aを原稿Gの先端部に移動する(S2)。この先端部は、判定範囲に対応する位置であり、この実施形態では、原稿Gの先端から内側へ略1mm移動された位置である。この位置から、順次画像読取ユニット3aを移動しながら判定範囲の幅1〜2mmのカラー画像を読み取る(S3)。   Next, the image reading unit 3a is moved to the leading end of the original G (S2). This leading edge is a position corresponding to the determination range, and in this embodiment, is a position moved approximately 1 mm inward from the leading edge of the document G. From this position, a color image having a width of 1 to 2 mm in the determination range is read while sequentially moving the image reading unit 3a (S3).

次に、この判定範囲のカラー画像を構成する画素のRGB値をLab値に変換し、明度値Lに基づいて平均明度を算出する(S4)。この平均明度は、図9を参照して説明したように、判定範囲に含まれる画素の全ての明度を平均する方法や、白色の画素を除いた画素の明度値Lを平均する方法がある。そして、それぞれの方法で算出した場合に、特殊原稿であれば、平均明度の値がとる所定範囲が予め設定され、平均明度が、その所定範囲以内であるか否かを判断する(S5)。ここで、所定範囲は、原稿が特殊原稿である場合に平均明度の値が取り得る範囲を規定したものであり、予め実験等に基づいて決定され、ROM22に記憶されている。   Next, the RGB values of the pixels constituting the color image in the determination range are converted into Lab values, and the average brightness is calculated based on the brightness value L (S4). As described with reference to FIG. 9, this average brightness includes a method of averaging the brightness of all the pixels included in the determination range and a method of averaging the brightness values L of the pixels excluding the white pixels. Then, when calculated by each method, if it is a special document, a predetermined range that the average brightness value takes is preset, and it is determined whether or not the average brightness is within the predetermined range (S5). Here, the predetermined range defines a range in which the average brightness value can be obtained when the document is a special document, and is determined in advance based on experiments or the like and stored in the ROM 22.

算出された平均明度が、所定範囲以内であれば(S5:Yes)、次に、判定範囲の各画素の彩度値Cを上述の数式(1)を用いて算出し、その彩度値Cを平均した平均彩度を算出する(S6)。平均彩度を算出する際は、図9を参照して説明したように、判定範囲のすべての画素の彩度値Cを平均する方法や、原稿Gの地色を検出し、地色の画素を除いた画素の彩度値Cを平均する方法などがある。   If the calculated average brightness is within a predetermined range (S5: Yes), the saturation value C of each pixel in the determination range is then calculated using the above equation (1), and the saturation value C The average saturation is calculated by averaging (S6). When calculating the average saturation, as described with reference to FIG. 9, a method of averaging the saturation values C of all the pixels in the determination range, or a background color pixel by detecting the background color of the document G There is a method of averaging the saturation values C of the pixels excluding.

また、原稿Gに複数種類の色彩の画素が存在する可能性がある場合には、各画素の色相を取得し、色相が所定の範囲の画素のみについて、彩度値Cを平均するとより精度良く、特殊原稿であるか否かを判定することができる。ここでの所定範囲も、原稿が特殊原稿である場合に色相の値が取り得る範囲を規定したものであり、予め実験等に基づいて決定され、ROM22に記憶されている。   If there is a possibility that pixels of a plurality of types of colors exist in the document G, the hue of each pixel is acquired, and the saturation value C is averaged only for pixels in which the hue is in a predetermined range, so that the accuracy is improved. It is possible to determine whether the document is a special document. The predetermined range here also defines a range in which the hue value can be obtained when the document is a special document, and is determined in advance based on experiments or the like and stored in the ROM 22.

例えば、カーボンコピーされた原稿Gであって、カーボン紙のインクが青色であり、そのインクが判定範囲に付着するとともに、赤い朱肉を使用して判が押され、その赤い朱肉が判定範囲に付着したような場合に、青色の画素と、赤色の画素とをまとめて彩度値Cを平均した平均彩度を算出すると、カーボン紙のインクが付着しているにもかかわらず、その平均彩度が所定範囲内に入らない恐れがある。そこで、青色の画素と赤色の画素を色相値Hにより区分し、それぞれの区分で、平均彩度を算出する。そして、区分毎に、所定範囲を設定し、その平均彩度の値がそれぞれの区分に設定された範囲内であるか否かを判定し、いずれかの区分の平均彩度が所定範囲内であれば、カーボン紙などのインクが付着していると判定する。このように処理することにより、より精度良くカーボン紙などのインクが付着しているか否かを判定することができる。ここでの所定範囲も、原稿が特殊原稿である場合に平均彩度の値が取り得る範囲を規定したものであり、予め実験等に基づいて決定され、ROM22に記憶されている。   For example, the original G is a carbon copy, and the ink on the carbon paper is blue, and the ink adheres to the judgment range, and the size is pressed using red vermilion, and the red vermilion adheres to the judgment range. In such a case, when the average saturation is calculated by averaging the saturation values C for the blue pixels and the red pixels, the average saturation is obtained even though the carbon paper ink is attached. May not fall within the prescribed range. Therefore, the blue pixel and the red pixel are divided by the hue value H, and the average saturation is calculated in each division. Then, a predetermined range is set for each category, and it is determined whether or not the average saturation value is within the range set for each category, and the average saturation of any category is within the predetermined range. If there is, it is determined that ink such as carbon paper is attached. By processing in this way, it is possible to determine whether or not ink such as carbon paper is attached with higher accuracy. The predetermined range here also prescribes the range that the average saturation value can take when the original is a special original, and is determined in advance based on experiments or the like and stored in the ROM 22.

平均彩度を算出した場合は、次に、その算出した平均彩度が所定範囲以内であるか否かを判断し(S7)、算出された彩度が所定範囲以内であれば(S7:Yes)、原稿Gは、カーボンコピーされた特殊原稿であると判断し、濃度を濃くするカーボン紙専用のガンマテーブル22cを使用して変換を行うように設定する(S8)。   If the average saturation is calculated, it is then determined whether or not the calculated average saturation is within a predetermined range (S7). If the calculated saturation is within a predetermined range (S7: Yes) The original G is determined to be a carbon original special original, and is set to perform conversion using the gamma table 22c dedicated to carbon paper for increasing the density (S8).

一方、S5の判断処理において、算出された平均明度が、所定範囲以内ではない場合(S5:No)、またはS7の判断処理において、算出された彩度が所定範囲以内ではない場合は(S7:No)、原稿Gは、カーボンコピーされた特殊原稿ではないと判断し、濃度を変更しない通常のガンマテーブル22bを使用して変換を行うように設定する(S9)。   On the other hand, when the calculated average brightness is not within the predetermined range in the determination process of S5 (S5: No), or when the calculated saturation is not within the predetermined range in the determination process of S7 (S7: No), it is determined that the original G is not a carbon-copy special original, and the normal gamma table 22b whose density is not changed is set to perform conversion (S9).

S8またはS9の処理を終了した場合は、判定範囲の残りの原稿Gの領域をモノクロ画像で読み込み、S8またはS9において設定されたガンマテーブルを用いて読み込まれた画素値を変換し、変換した画素値を、プリンタ2に送信して印刷を行うように、プリンタ2に指示する(S10)。   When the process of S8 or S9 is completed, the remaining area of the original G in the determination range is read as a monochrome image, the read pixel value is converted using the gamma table set in S8 or S9, and the converted pixel The printer 2 is instructed to send the value to the printer 2 for printing (S10).

以上、第1の実施形態について説明したように、まず、原稿Gの一端から略3mm以内に設定された判定範囲をカラー画像で読み込み、そのカラー画像に基づいて、原稿Gがカーボンコピーされた特殊原稿であるか否かを判定する。この判定は、判定範囲の画像の画素の明度値Lを平均した平均明度値と彩度値Cを平均した平均彩度値とが、それぞれ所定範囲以内である場合に、特殊原稿であると判定し、特殊原稿である場合は、モノクロ画像で読み込んだ原稿濃度を濃くしてプリンタ2に出力する。よって、特殊原稿であることが、適切に判断され、カーボンコピーされた薄い原稿Gが濃く印刷され、印刷された画像が薄く、不鮮明になることを防止することができる。   As described above, as described in the first embodiment, first, a determination range set within approximately 3 mm from one end of the original G is read as a color image, and the original G is carbon-copied based on the color image. It is determined whether the document is a document. This determination is made as a special document when the average brightness value obtained by averaging the brightness values L of the pixels in the image in the determination range and the average saturation value obtained by averaging the saturation values C are within a predetermined range, respectively. If the original is a special document, the density of the original read as a monochrome image is increased and output to the printer 2. Therefore, it can be appropriately determined that the original is a special document, and the thin original G that has been carbon-copied is printed darkly, and the printed image can be prevented from being thin and unclear.

次に、図12を参照して第2の実施形態について説明する。上記、第1の実施形態では、原稿Gの一端に設けられた判定範囲のカラー画像に基づいて、原稿Gが、カーボンコピーされたものであるか否かを判定し、次に、原稿Gの残りの部分をモノクロ画像で読みとり、その読み取られた情報に基づいて、モノクロ画像を印刷するものであった。この第1の実施形態では、1回のスキャンにより、判定と印刷とを行うことができるので、処理時間が短いという長所がある反面、判定が、原稿Gの一端だけについて行われるので、判定の精度が低くなる可能性がある。   Next, a second embodiment will be described with reference to FIG. In the first embodiment described above, it is determined whether or not the original G is a carbon copy based on the color image in the determination range provided at one end of the original G. The remaining portion is read as a monochrome image, and the monochrome image is printed based on the read information. In the first embodiment, since determination and printing can be performed by one scan, there is an advantage that the processing time is short, but the determination is performed only on one end of the original G. Accuracy may be reduced.

これに対し、第2の実施形態では、まず原稿G全体のカラー画像を読み込み、原稿Gの4辺に判定範囲を設定して、カーボンコピーされたか否かを判定するので、判定の精度が高いという長所がある反面、処理に時間を要するという欠点がある。なお、第2の実施形態は、複写処理のみが異なるものであって、他の構成は、第1の実施形態と同一であるので、その説明を省略する。   On the other hand, in the second embodiment, since the color image of the entire document G is first read and the determination range is set on the four sides of the document G to determine whether or not the carbon copy has been made, the determination accuracy is high. On the other hand, there is a disadvantage that it takes time for processing. Note that the second embodiment is different only in the copying process, and the other configuration is the same as that of the first embodiment, so that the description thereof is omitted.

図12は、第2実施形態における複写処理を示すフローチャートである。このフローチャートに従って、複写処理について説明する。まず、プレスキャンを行う。このプレスキャンでは、使用者により設定された原稿Gのカラー画像をスキャナ3により読み取るために、カラー読み取りによる白基準値と黒基準値とを読み込む(S11)。   FIG. 12 is a flowchart showing a copy process in the second embodiment. The copying process will be described with reference to this flowchart. First, a pre-scan is performed. In this prescan, in order to read the color image of the original G set by the user with the scanner 3, the white reference value and the black reference value obtained by color reading are read (S11).

次に、原稿Gの全画像のカラー画像を読み込み、その読み込んだ画像情報を画像メモリ23aに記憶する(S12)。この画像情報は、各画素のRGB値であって、先に設定された白基準値と黒基準値により正規化された値である。このプレスキャンは、解像度を本スキャンの場合より低くして行われる。本スキャンの解像度は、例えば、600dpiであり、プレスキャン時の解像度は、100dpiである。解像度を低くすることにより、取得される画像情報の量が少なくなり、画像情報を記憶するメモリの記憶容量を小さくすることができる。また、読み取りに要する時間を短縮することができる。   Next, the color images of all the images of the original G are read, and the read image information is stored in the image memory 23a (S12). This image information is an RGB value of each pixel, and is a value normalized by the previously set white reference value and black reference value. This pre-scan is performed with a lower resolution than in the main scan. The resolution of the main scan is, for example, 600 dpi, and the resolution at the time of pre-scan is 100 dpi. By reducing the resolution, the amount of acquired image information is reduced, and the storage capacity of the memory for storing the image information can be reduced. Also, the time required for reading can be shortened.

次に、画像メモリ23aに記憶された画像データに基づいて、原稿Gのエッジを検出する(S13)。原稿Gのエッジは、図5を参照して説明したように、エッジに対応する画像が白または黒の直線となるので、この直線を検出することにより、エッジが検出される。次に、検出されたエッジから略1mm内側のエッジ沿う1〜2mm幅の帯の判定範囲を設定する(S14)。この判定範囲の設定方法は、図6〜図8を参照して説明した方法のいずれかの方法である。   Next, the edge of the document G is detected based on the image data stored in the image memory 23a (S13). As described with reference to FIG. 5, since the image corresponding to the edge is a white or black straight line, the edge of the original G is detected by detecting this straight line. Next, a determination range of a band having a width of 1 to 2 mm along an edge approximately 1 mm inside from the detected edge is set (S14). This determination range setting method is one of the methods described with reference to FIGS.

次に、原稿Gの地色を検出する。この地色の検出は、図9(c)を参照して説明したように、判定範囲の全ての画素について、色相値Hを横軸として各色相値Hをとる画素の数を縦軸とするヒストグラムを作成し、最も頻度が高い色相値Hが示す色を地色として検出する(S15)。   Next, the background color of the original G is detected. In this background color detection, as described with reference to FIG. 9C, for all the pixels in the determination range, the hue value H is the horizontal axis and the number of pixels having each hue value H is the vertical axis. A histogram is created, and the color indicated by the most frequently used hue value H is detected as the ground color (S15).

次に、判定範囲の全画素から、画素の色相値Hに基づいて地色と判定された画素を除き、残りの画素の明度値Lを平均して平均明度を算出する(S16)。次に、求められた平均明度の値が所定範囲内であるか否かを判断する(S17)。   Next, the pixels determined to be the ground color based on the hue value H of the pixels are excluded from all the pixels in the determination range, and the average lightness is calculated by averaging the lightness values L of the remaining pixels (S16). Next, it is determined whether or not the obtained average brightness value is within a predetermined range (S17).

算出された平均明度が、所定範囲以内であれば(S17:Yes)、次に、判定範囲の全ての画素から地色の画素を除き、残りの画素の彩度値Cを平均した平均彩度を算出する(S18)。平均彩度を算出した場合は、次に、その算出した平均彩度が所定範囲以内であるか否かを判断し(S19)、算出された彩度が所定範囲以内であれば(S19:Yes)、原稿Gは、カーボンコピーされた特殊原稿であると判断し、濃度を濃くするカーボン紙専用のガンマテーブル22cを使用して変換を行うように設定する(S20)。   If the calculated average brightness is within the predetermined range (S17: Yes), next, the average saturation is obtained by averaging the saturation values C of the remaining pixels by removing the ground color pixels from all the pixels in the determination range. Is calculated (S18). If the average saturation is calculated, it is then determined whether or not the calculated average saturation is within a predetermined range (S19). If the calculated saturation is within a predetermined range (S19: Yes) The original G is determined to be a carbon original special original, and is set to perform conversion using the gamma table 22c dedicated to carbon paper for increasing the density (S20).

一方、S17の判断処理において、算出された平均明度が、所定範囲以内ではない場合(S17:No)、または、S18の判断処理において、算出された彩度が所定範囲以内ではない場合は(S19:No)、原稿Gは、カーボンコピーされた特殊原稿ではないと判断し、濃度を変更しない通常のガンマテーブル22bを使用して変換を行うように設定する(S21)。   On the other hand, when the calculated average brightness is not within the predetermined range in the determination process of S17 (S17: No), or when the calculated saturation is not within the predetermined range in the determination process of S18 (S19). : No), it is determined that the document G is not a carbon-copied special document, and the normal gamma table 22b whose density is not changed is used to perform conversion (S21).

S20またはS21の処理を終了した場合は、モノクロ用の白基準レベルと黒基準レべルとを取得し(S22)、再度原稿G全体のモノクロ画像を読み込み(本スキャン処理)、S20またはS21において設定されたガンマテーブルを用いて読み込まれた画素値を変換し、変換した画素値を、プリンタ2に送信して印刷を行うように、プリンタ2に指示する(S23)。   When the processing of S20 or S21 is completed, the monochrome white reference level and the black reference level are acquired (S22), the monochrome image of the entire original G is read again (main scan processing), and in S20 or S21 The read pixel value is converted using the set gamma table, and the printer 2 is instructed to transmit the converted pixel value to the printer 2 for printing (S23).

以上、第2の実施形態について説明したように、まず、プレスキャン処理により原稿Gの全体のカラー画像を低解像度で読み込み、そのカラー画像に基づいて原稿Gの4辺のエッジを検出し、そのエッジに沿いエッジから内側に略3mmの範囲の画像を判定範囲とする。その判定範囲の画像の平均明度と平均彩度とが、それぞれ所定範囲以内である場合に、その原稿Gは、特殊原稿であると判定する。次に、原稿G全体を再度モノクロ画像で読み込む本スキャンを行い、特殊原稿である場合は、本スキャンで読み込んだモノクロ画像の濃度を濃くしてプリンタ2に出力する。原稿Gが特殊原稿であるかの判定が、原稿Gの4辺の内側の辺に沿った帯状の判定範囲の画像により判定されるので、1辺に沿う判定範囲の画像で判定する場合に比べ、精度よく判定することができる。   As described above for the second embodiment, first, the entire color image of the document G is read at a low resolution by pre-scan processing, and the edges of the four sides of the document G are detected based on the color image. An image in a range of approximately 3 mm along the edge and inward from the edge is set as a determination range. When the average brightness and average saturation of the image in the determination range are within the predetermined ranges, it is determined that the document G is a special document. Next, a main scan is performed in which the entire original G is read again as a monochrome image. If the original is a special original, the density of the monochrome image read in the main scan is increased and output to the printer 2. The determination as to whether the document G is a special document is determined by the image in the band-shaped determination range along the inner side of the four sides of the document G, so that the determination is based on the determination range image along one side. Can be determined with high accuracy.

なお、各請求項に記載の判定範囲処理手段は、図11に記載のフローチャートのS3の処理が該当し、明度検出手段は、図11に記載のフローチャートのS4の処理が該当し、判断手段は、図11に記載のフローチャートのS5およびS7の処理が該当し、出力手段は、図11に記載のフローチャートのS10の処理が該当する。また、色彩情報検出手段は、図11に記載のフローチャートのS6の処理が該当し、エッジ検出手段は、図12に記載のフローチャートのS13の処理が該当し、プレスキャン処理手段は、図12に記載のフローチャートのS12の処理が該当し、本スキャン処理手段は、図12に記載のフローチャートのS22の処理が該当する。 The determination range processing means according to each claim, the processing of the flowchart in S3 is true according to FIG. 11, the brightness detection hand stage, processing of S4 in the flowchart of described corresponds to Figure 11, the decision means Corresponds to the processing of S5 and S7 in the flowchart shown in FIG. 11, and the output means corresponds to the processing of S10 in the flowchart shown in FIG. Further, the color information detecting hand stage, processing of S6 in the flowchart correspond according to FIG. 11, the edge detection means, the processing in S13 of the flowchart described in FIG. 12 is applicable, prescan processing means, FIG. 12 The process of S12 of the flowchart described in FIG. 12 corresponds to this scan processing means, and the process of S22 of the flowchart described in FIG.

以上実施形態に基づき本発明を説明したが、本発明は上記実施形態に何ら限定されるものでなく、本発明の趣旨を逸脱しない範囲内で種々の改良変形が可能であることは容易に推察できるものである。   Although the present invention has been described based on the above embodiments, the present invention is not limited to the above embodiments, and various modifications can be easily made without departing from the spirit of the present invention. It can be done.

例えば、上記実施形態では、多機能周辺装置における処理について説明したが、スキャナ3を備えた、コピー装置や、ファクシミリ装置などの単機能の装置における処理としてもよい。   For example, in the above embodiment, the processing in the multi-functional peripheral device has been described. However, the processing may be performed in a single-function device such as a copying machine or a facsimile machine that includes the scanner 3.

また、上記実施形態では、判定範囲の画像をカラー画像で読み込み、読み込んだ画像を構成する画素の、明度と彩度と色相に基づいて、特殊原稿であるか否かを判定するとしたが、明度または輝度のみにより、判定するようにしてもよい。その場合には、判定範囲をモノクロ画像で読み込むようにしてもよい。さらに、判定範囲はカーボン紙のインクが付いている可能性が高いため、コピー時の印字データとして使用しないように構成しても良い。   In the above embodiment, the image in the determination range is read as a color image, and it is determined whether the image is a special document based on the lightness, saturation, and hue of the pixels constituting the read image. Alternatively, the determination may be made based only on the luminance. In that case, the determination range may be read as a monochrome image. Further, since the determination range is highly likely to have carbon paper ink, it may be configured not to be used as print data at the time of copying.

また、上記実施形態では、平均明度値、または平均彩度値を算出する際に、地色の画素などを除いた画素の平均値を算出するものとしたが、地色の画素を除いた画素の数が所定数以下である場合には、平均値を算出するまでもなく、特殊原稿ではないと判定してもよい。   In the above embodiment, when calculating the average brightness value or the average saturation value, the average value of the pixels excluding the ground color pixels is calculated. However, the pixels excluding the ground color pixels are calculated. If the number is less than or equal to the predetermined number, it is not necessary to calculate the average value, and it may be determined that the document is not a special document.

また、上記実施形態では、平均明度値や平均彩度値を算出して、その値が所定の範囲以内であるか否かにより特殊原稿であるか否かを判定したが、明度L値、彩度C値、色相H値、それぞれに所定範囲を設定、または、L値、a値、b値それぞれに所定範囲を設定し、この3つの範囲内に入る画素の数により、特殊原稿であるか否かを判定するようにしてもよい。カーボンコピーされた場合に、カーボン紙のインクが付着し、それを読み込んだ画像の画素は、色空間の限られた領域に入ると考えられる。従って、その領域に入る画素の数が、多い場合に、特殊原稿であると判定することができる。この方法の場合は、RGBでもよいし、YCrCbなどの色空間を表す値でもよい。   In the above embodiment, the average brightness value and the average saturation value are calculated, and it is determined whether or not the document is a special document depending on whether the value is within a predetermined range. A predetermined range is set for each of the degree C value and the hue H value, or a predetermined range is set for each of the L value, the a value, and the b value. It may be determined whether or not. In the case of carbon copying, carbon paper ink adheres, and the pixels of the image that has read the ink are considered to enter a limited area of the color space. Accordingly, when the number of pixels entering the area is large, it can be determined that the original is a special document. In the case of this method, RGB or a value representing a color space such as YCrCb may be used.

また、上記実施形態では、スキャナ3により読み込まれ、濃度調整された画像情報は、プリンタ2に送信されるものとしたが、ファクシミリにより送信されたり、パーソナルコンピュータに送信するようにしてもよい。   In the above embodiment, the image information read by the scanner 3 and subjected to density adjustment is transmitted to the printer 2, but may be transmitted by facsimile or transmitted to a personal computer.

本発明の第1の実施形態における画像処理装置を有する多機能周辺装置の外観を示す斜視図である。1 is a perspective view showing an external appearance of a multifunction peripheral device having an image processing device according to a first embodiment of the present invention. 原稿カバーが開かれた状態の多機能周辺装置の外観を示す斜視図である。FIG. 3 is a perspective view showing an external appearance of a multifunction peripheral device in a state where a document cover is opened. スキャナの構成を概略的に表した正面視の断面図である。It is sectional drawing of the front view which represented the structure of the scanner roughly. 多機能周辺装置の電気的構成を示すブロック図であるIt is a block diagram which shows the electrical constitution of a multifunction peripheral device (a)は、画像読取ユニットと、プラテンガラスに載置された原稿Gとを概略的に表した平面図であり、(b)は、図5(a)に示すA−A’線における断面図であり、(c)は、スキャナにより読み取られた原稿の画像を模式的に表した図である。5A is a plan view schematically showing an image reading unit and a document G placed on a platen glass, and FIG. 5B is a cross-sectional view taken along line AA ′ shown in FIG. FIG. 4C is a diagram schematically showing an image of a document read by a scanner. 原稿Gに設定される判定範囲の主走査方向の位置を示す平面図である。4 is a plan view showing a position in a main scanning direction of a determination range set for a document G. FIG. 原稿Gに設定される判定範囲の主走査方向のサイズを示す平面図である。6 is a plan view showing a size in a main scanning direction of a determination range set for an original G. FIG. 原稿Gに設定される判定範囲の副走査方向の位置を示す平面図である。6 is a plan view showing a position in a sub-scanning direction of a determination range set for a document G. FIG. 濃度を変更するためのガンマテーブルを示すグラフである。It is a graph which shows the gamma table for changing a density | concentration. (a)および(b)は、判定範囲にインクが付着されているか否かの判定を行う際の、判定対象とする画素を説明する図であり、(c)は、地色を検出する際に作成されるヒストグラムである。(A) And (b) is a figure explaining the pixel used as judgment object at the time of judging whether ink has adhered to the judgment range, and (c) is when detecting a ground color. This is a histogram created in 複写処理を示すフローチャートである。It is a flowchart which shows a copy process. 第2実施形態における複写処理を示すフローチャートである。It is a flowchart which shows the copy process in 2nd Embodiment.

1 多機能周辺装置(MFP)
2 プリンタ(出力手段)
3 スキャナ
3a 画像読取ユニット(画像読取手段)
21 CPU
22 ROM
23 RAM
23a 画像メモリ(画像情報記憶手段)
1 Multifunctional peripheral device (MFP)
2 Printer (output means)
3 Scanner 3a Image reading unit (image reading means)
21 CPU
22 ROM
23 RAM
23a Image memory (image information storage means)

Claims (19)

原稿を少なくともモノクロ画像で読み取る画像読取手段と、その画像読取手段と原稿とを相対的に移動させる移動手段とを備え、前記画像読取手段による読取動作と前記移動手段による移動動作とを繰り返して前記原稿を読み取る画像読取装置において、
前記移動手段による移動方向における原稿の一端側に設けられ、その原稿の種類を判定するための判定範囲を前記画像読取手段を用いてモノクロ画像で読み取る判定範囲処理手段と、
その判定範囲処理手段により読み取られた前記判定範囲のモノクロ画像の明度を検出し、前記判定範囲内の画素の明度値を平均することにより平均明度値を算出する明度検出手段と、
その明度検出手段により算出された平均明度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断手段と、
前記判断手段により前記原稿が特殊原稿であると判断された場合は、前記画像読取手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力手段とを備えていることを特徴とする画像読取装置。
An image reading unit that reads at least a monochrome image; and a moving unit that relatively moves the image reading unit and the document. The reading operation by the image reading unit and the moving operation by the moving unit are repeated. In an image reading apparatus that reads a document,
A determination range processing unit that is provided on one end side of the document in the moving direction of the moving unit and that reads a determination range for determining the type of the document as a monochrome image using the image reading unit;
Brightness detection means for detecting the brightness value of the monochrome image in the determination range read by the determination range processing means and calculating the average brightness value by averaging the brightness values of the pixels in the determination range ;
A determination unit that determines that the document is a special document when the average brightness value calculated by the brightness detection unit is within a predetermined range;
When the determination unit determines that the document is a special document, an output unit that changes and outputs the density value of each pixel constituting the monochrome image read by the image reading unit so that the density is high An image reading apparatus comprising:
原稿をカラー画像あるいはモノクロ画像で読み取る画像読取手段と、その画像読取手段と原稿とを相対的に移動させる移動手段とを備え、前記画像読取手段による読取動作と前記移動手段による移動動作とを繰り返して前記原稿を読み取る画像読取装置において、
前記移動手段による移動方向における原稿の一端側に設けられ、その原稿の種類を判定するための判定範囲を前記画像読取手段を用いてカラー画像で読み取る判定範囲処理手段と、
その判定範囲処理手段により読み取られた前記判定範囲のカラー画像の明度値と彩度値とを検出し、前記判定範囲内の画素の明度値および彩度値をそれぞれ平均することにより平均明度値および平均彩度値を算出する色彩情報検出手段と、
その色彩情報検出手段により算出された平均明度値が所定の範囲に含まれ、且つ平均彩度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断手段と、
前記判断手段により前記原稿が特殊原稿であると判断された場合は、前記画像読取手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力手段とを備えていることを特徴とする画像読取装置。
An image reading unit that reads a document as a color image or a monochrome image, and a moving unit that relatively moves the image reading unit and the document, and the reading operation by the image reading unit and the moving operation by the moving unit are repeated. In the image reading apparatus for reading the document,
A determination range processing unit which is provided on one end side of the document in the moving direction by the moving unit and which reads a determination range for determining the type of the document with a color image using the image reading unit;
The brightness value and the saturation value of the color image in the determination range read by the determination range processing means are detected, and the average brightness value and the saturation value of the pixels in the determination range are averaged. Color information detecting means for calculating an average saturation value ;
Determining means for determining that the original is a special original when the average brightness value calculated by the color information detecting means is included in the predetermined range and the average saturation value is included in the predetermined range;
When the determination unit determines that the document is a special document, an output unit that changes and outputs the density value of each pixel constituting the monochrome image read by the image reading unit so that the density is high An image reading apparatus comprising:
前記原稿の一端を検出するエッジ検出手段を備え、
前記判定範囲処理手段は、そのエッジ検出手段により検出された前記原稿の一端から前記他端側へ向けて略3mmの幅の内側であって、そのエッジ検出手段により検出された一端に沿う帯状の範囲を前記判定範囲として画像を読み取るものであることを特徴とする請求項1または2に記載の画像読取装置。
An edge detecting means for detecting one end of the document;
The determination range processing means has a band-like shape that is inside the width of about 3 mm from one end of the document detected by the edge detection means toward the other end side, and extends along one end detected by the edge detection means. the image reading apparatus according to claim 1 or 2, characterized in that the range is intended to read the image as the determination range.
前記出力手段は、前記判断手段により前記原稿が特殊原稿であると判断された場合は、前記画像読取手段により読み取られたモノクロ画像のうち前記判定範囲を除く画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力するものであることを特徴とする請求項1からのいずれかに記載の画像読取装置。 When the determination unit determines that the document is a special document, the output unit calculates the density value of each pixel constituting the image excluding the determination range from the monochrome image read by the image reading unit. the image reading apparatus according to claim 1, characterized in that the output to change to a concentration of darker 3. 原稿を少なくともモノクロ画像で読み取る画像読取手段を備えた画像読取装置において、
前記画像読取手段により前記原稿の全範囲をモノクロ画像で読み取るプレスキャン処理手段と、
そのプレスキャン処理手段により読み取られたモノクロ画像に基づいて原稿の複数のエッジを検出するエッジ検出手段と、
そのエッジ検出手段により検出された複数のエッジに沿う原稿の内側の帯状の範囲を判定範囲とし、その判定範囲の明度を前記プレスキャン処理手段により読み取られたモノクロ画像に基づいて検出し、前記判定範囲内の画素の明度値を平均することにより平均明度値を算出する明度検出手段と、
その明度検出手段により算出された平均明度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断手段と、
前記プレスキャン処理手段によりモノクロ画像を読み取った後、前記画像読取手段により前記原稿を再度モノクロ画像で読み取る本スキャン処理手段と、
前記判断手段により前記原稿が特殊原稿であると判断された場合は、前記本スキャン処理手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力手段とを備えていることを特徴とする画像読取装置。
In an image reading apparatus provided with image reading means for reading a document at least as a monochrome image,
Pre-scan processing means for reading the entire range of the document as a monochrome image by the image reading means;
Edge detection means for detecting a plurality of edges of the document based on the monochrome image read by the pre-scan processing means;
A band-like range inside the document along a plurality of edges detected by the edge detection unit is set as a determination range, and a lightness value of the determination range is detected based on a monochrome image read by the prescan processing unit , Brightness detection means for calculating an average brightness value by averaging the brightness values of pixels within the determination range ;
Determining means for determining that the document is a special document when the average brightness value calculated by the brightness detection means is within a predetermined range;
A main scan processing unit that reads a monochrome image again by the image reading unit after the monochrome image is read by the pre-scan processing unit;
When the determination unit determines that the document is a special document, an output is output by changing the density value of each pixel constituting the monochrome image read by the main scan processing unit so as to increase the density. An image reading apparatus.
原稿をカラー画像あるいはモノクロ画像で読み取る画像読取手段を備えた画像読取装置において、
前記画像読取手段により前記原稿の全範囲をカラー画像で読み取るプレスキャン処理手段と、
そのプレスキャン処理手段により読み取られたカラー画像に基づいて原稿の複数のエッジを検出するエッジ検出手段と、
そのエッジ検出手段により検出された複数のエッジに沿う原稿の内側の帯状の範囲を判定範囲とし、その判定範囲の明度値と彩度値とを前記プレスキャン処理手段により読み取られたカラー画像に基づいて検出し、前記判定範囲内の画素の明度値および彩度値をそれぞれ平均することにより平均明度値および平均彩度値を算出する色彩情報検出手段と、
その色彩情報検出手段により算出された平均明度値が所定の範囲に含まれ、且つ平均彩度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断手段と、
前記プレスキャン処理手段によりカラー画像を読み取った後、前記画像読取手段により前記原稿を再度モノクロ画像で読み取る本スキャン処理手段と、
前記判断手段により前記原稿が特殊原稿であると判断された場合は、前記本スキャン処理手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力手段とを備えていることを特徴とする画像読取装置。
In an image reading apparatus provided with image reading means for reading a document as a color image or a monochrome image,
Pre-scan processing means for reading the entire range of the original document with a color image by the image reading means;
Edge detection means for detecting a plurality of edges of the document based on the color image read by the pre-scan processing means;
Based on the color image read by the pre-scan processing unit, the band-like range inside the document along the plurality of edges detected by the edge detection unit is set as the determination range, and the brightness value and the saturation value of the determination range are determined. Color information detecting means for calculating the average brightness value and the average saturation value by averaging the brightness value and the saturation value of the pixels within the determination range ,
Determining means for determining that the original is a special original when the average brightness value calculated by the color information detecting means is included in the predetermined range and the average saturation value is included in the predetermined range;
A main scan processing unit that reads a color image by the pre-scan processing unit and then reads the original again as a monochrome image by the image reading unit;
When the determination unit determines that the document is a special document, an output is output by changing the density value of each pixel constituting the monochrome image read by the main scan processing unit so as to increase the density. An image reading apparatus.
前記明度検出手段は、前記エッジ検出手段により検出されたエッジから、そのエッジに対向するエッジ側へ向けて略3mmの幅の内側であって、そのエッジ検出手段により検出されたエッジに沿う帯状の範囲を判定範囲として、その判定範囲の明度を検出するものであることを特徴とする請求項記載の画像読取装置。 The lightness detection means is a band-shaped inner side having a width of approximately 3 mm from the edge detected by the edge detection means toward the edge facing the edge, and along the edge detected by the edge detection means. 6. The image reading apparatus according to claim 5 , wherein a brightness value of the determination range is detected using the range as a determination range. 前記色彩情報検出手段は、前記エッジ検出手段により検出されたエッジから、そのエッジに対向するエッジ側へ向けて略3mmの幅の内側であって、そのエッジ検出手段により検出されたエッジに沿う帯状の範囲を判定範囲として、その判定範囲の明度値と彩度値とを検出するものであることを特徴とする請求項記載の画像読取装置。 The color information detecting means is a strip-shaped inner side having a width of approximately 3 mm from the edge detected by the edge detecting means toward the edge facing the edge, and along the edge detected by the edge detecting means. The image reading apparatus according to claim 6, wherein the lightness value and the saturation value of the determination range are detected with the range as a determination range. 前記プレスキャン処理手段により所定の解像度で読み取られた前記原稿の全範囲の画像を記憶する画像情報記憶手段を備え、
前記エッジ検出手段は、その画像情報記憶手段により記憶された画像に基づいて原稿の複数のエッジを検出し、
前記本スキャン処理手段は、前記プレスキャン処理手段の読み取り解像度より高い解像度で前記画像読取手段によりモノクロ画像を取得するものであることを特徴とする請求項5から8のいずれかに記載の画像読取装置。
Image information storage means for storing images of the entire range of the document read at a predetermined resolution by the prescan processing means;
The edge detection means detects a plurality of edges of the document based on the image stored by the image information storage means,
9. The image reading according to claim 5, wherein the main scanning processing unit acquires a monochrome image by the image reading unit at a resolution higher than a reading resolution of the pre-scan processing unit. apparatus.
前記画像読取手段により読み取られた画像を構成する画素の明度値が所定の明度値より大きい白色画素を検出する白色画素検出手段を備え、
前記明度検出手段は、前記判定範囲の画像を構成する画素から前記白色画素検出手段により検出された白色画素を除いた上で、前記判定範囲の画素の明度値を平均した平均明度値を算出するものであることを特徴とする請求項1またはに記載の画像読取装置。
White pixel detecting means for detecting white pixels having lightness values of pixels constituting the image read by the image reading means being larger than a predetermined lightness value;
The lightness detection means calculates an average lightness value obtained by averaging the lightness values of the pixels in the determination range after excluding the white pixels detected by the white pixel detection means from the pixels constituting the image of the determination range. the image reading apparatus according to claim 1 or 5, characterized in that it also of that.
前記画像読取手段により読み取られた画像に基づいて地色を検出する地色検出手段を備え、
前記明度検出手段は、前記判定範囲の画像を構成する画素から前記地色検出手段により検出された地色の画素を除いた上で、前記判定範囲の画素の明度値を平均した平均明度値を算出するものであることを特徴とする請求項1またはに記載の画像読取装置。
A ground color detecting means for detecting a ground color based on the image read by the image reading means;
The lightness detection means removes the ground color pixels detected by the ground color detection means from the pixels constituting the image of the determination range, and then calculates an average lightness value obtained by averaging the lightness values of the pixels in the determination range. the image reading apparatus according to claim 1 or 5, characterized in that you also calculated for the a.
前記画像読取手段により読み取られたカラー画像を構成する画素の明度値が所定の明度値より大きい白色画素を検出する白色画素検出手段を備え、
前記色彩情報検出手段は、前記判定範囲の画像を構成する画素から前記白色画素検出手段により検出された白色画素を除いた上で、前記判定範囲の画素の明度値および彩度値をそれぞれ平均した平均明度値および平均彩度値を算出するものであることを特徴とする請求項2,6,8のいずれか記載の画像読取装置。
White pixel detecting means for detecting white pixels having lightness values of pixels constituting the color image read by the image reading means being larger than a predetermined lightness value;
The color information detecting means removes white pixels detected by the white pixel detecting means from pixels constituting the image of the determination range, and then averages the brightness value and the saturation value of the pixels of the determination range. the image reading apparatus according to claim 2, 6, 8, characterized in that also that to calculate the average brightness value and the average saturation value of the is.
前記画像読取手段により読み取られたカラー画像を構成する画素の彩度値に基づいて、無彩色の画素を検出する無彩色画素検出手段を備え、
前記色彩情報検出手段は、前記判定範囲の画像を構成する画素から前記無彩色画素検出手段により検出された無彩色画素を除いた上で、前記判定範囲の画素の明度値及び彩度値をそれぞれ平均した平均明度値及び平均彩度値を算出するものであることを特徴とする請求項2,6,8のいずれか記載の画像読取装置。
Achromatic color pixel detection means for detecting achromatic pixels based on the saturation values of the pixels constituting the color image read by the image reading means,
The color information detection unit removes the achromatic color pixel detected by the achromatic color pixel detection unit from the pixels constituting the image of the determination range, and then determines the brightness value and the saturation value of the pixel in the determination range, respectively. the image reading apparatus according to claim 2, 6, 8, characterized in that also that to calculate the average brightness value was average and average saturation of the is.
前記画像読取手段により読み取られたカラー画像に基づいて地色を検出する地色検出手段を備え、
前記色彩情報検出手段は、前記判定範囲の画像を構成する画素から前記地色検出手段により検出された地色の画素を除いた上で、前記判定範囲の画素の明度値及び彩度値をそれぞれ平均した平均明度値及び平均彩度値を算出するものであることを特徴とする請求項2,6,8のいずれか記載の画像読取装置。
A ground color detecting means for detecting a ground color based on the color image read by the image reading means;
The color information detection means removes the ground color pixels detected by the ground color detection means from the pixels constituting the image of the determination range, and then determines the brightness value and the saturation value of the pixels of the determination range, respectively. the image reading apparatus according to claim 2, 6, 8, characterized in that also that to calculate the average brightness value was average and average saturation of the is.
前記色彩情報検出手段は、前記判定範囲の画像を構成する画素の色相値が所定の範囲内である画素を抽出し、その抽出した画素の明度値または彩度値をそれぞれ平均して前記平均明度値または平均彩度値を算出するものであることを特徴とする請求項12から14のいずれか記載の画像読取装置。 The color information detecting means extracts pixels whose hue values of pixels constituting the image in the determination range are within a predetermined range, and averages the brightness value or the saturation value of the extracted pixels, respectively. The image reading apparatus according to claim 12 , wherein the image reading apparatus calculates a value or an average saturation value. 原稿を少なくともモノクロ画像で読み取ることが可能な画像読取手段と、その画像読取手段と原稿とを相対的に移動させる移動手段とを備え、前記画像読取手段による読取動作と前記移動手段による移動動作とを繰り返して前記原稿を読み取る画像読取装置において実行される画像読取処理プログラムであって、
前記移動手段による移動方向における原稿の一端側に設けられ、その原稿の種類を判定するための判定範囲を前記画像読取手段を用いてモノクロ画像で読み取る判定範囲処理ステップと、
その判定範囲処理ステップにより読み取られた前記判定範囲のモノクロ画像の明度を検出し、前記判定範囲内の画素の明度値を平均することにより平均明度値を算出する明度検出ステップと、
その明度検出ステップにより算出された平均明度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断ステップと、
前記判断ステップにより前記原稿が特殊原稿であると判断された場合は、前記画像読取手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力ステップとを備えていることを特徴とする画像読取処理プログラム。
An image reading means capable of reading at least a monochrome image; and a moving means for relatively moving the image reading means and the original; a reading operation by the image reading means and a moving operation by the moving means; Is an image reading processing program that is executed in an image reading apparatus that reads the original by repeating
A determination range processing step that is provided on one end side of the document in the moving direction by the moving unit and reads a determination range for determining the type of the document as a monochrome image using the image reading unit;
A lightness detection step of detecting a lightness value of the monochrome image in the determination range read by the determination range processing step, and calculating an average lightness value by averaging the lightness values of the pixels in the determination range ;
A determination step of determining that the document is a special document when the average brightness value calculated by the brightness detection step is included in a predetermined range;
When the determination step determines that the original is a special original, an output step of changing and outputting the density value of each pixel constituting the monochrome image read by the image reading means so as to increase the density And an image reading processing program.
原稿をカラー画像あるいはモノクロ画像で読み取る画像読取手段と、その画像読取手段と原稿とを相対的に移動させる移動手段とを備え、前記画像読取手段による読取動作と前記移動手段による移動動作とを繰り返して前記原稿を読み取る画像読取装置において実行される画像読取処理プログラムであって、
前記移動手段による移動方向における原稿の一端側に設けられ、その原稿の種類を判定するための判定範囲を前記画像読取手段を用いてカラー画像で読み取る判定範囲処理ステップと、
その判定範囲処理ステップにより読み取られた前記判定範囲のカラー画像の明度値と彩度値とを検出し、前記判定範囲内の画素の明度値および彩度値をそれぞれ平均することにより平均明度値および平均彩度値を算出する色彩情報検出ステップと、
その色彩情報検出ステップにより算出された平均明度値が所定の範囲に含まれ、且つ平均彩度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断ステップと、
前記判断ステップにより前記原稿が特殊原稿であると判断された場合は、前記画像読取手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力ステップとを備えていることを特徴とする画像読取処理プログラム。
An image reading unit that reads a document as a color image or a monochrome image, and a moving unit that relatively moves the image reading unit and the document, and the reading operation by the image reading unit and the moving operation by the moving unit are repeated. An image reading processing program executed in an image reading apparatus that reads the original,
A determination range processing step that is provided on one end side of the document in the moving direction by the moving unit and reads a determination range for determining the type of the document with a color image using the image reading unit;
By detecting the brightness value and the saturation value of the color image in the determination range read by the determination range processing step, and averaging the brightness value and the saturation value of the pixels in the determination range, respectively, the average brightness value and A color information detection step for calculating an average saturation value ;
A determination step of determining that the original is a special original when the average brightness value calculated by the color information detection step is included in a predetermined range and the average saturation value is included in the predetermined range;
When the determination step determines that the original is a special original, an output step of changing and outputting the density value of each pixel constituting the monochrome image read by the image reading means so as to increase the density And an image reading processing program.
原稿を少なくともモノクロ画像で読み取ることが可能な画像読取手段を備えた画像読取装置において実行される画像読取処理プログラムであって、
前記画像読取手段により前記原稿の全範囲をモノクロ画像で読み取るプレスキャン処理ステップと、
そのプレスキャン処理ステップにより読み取られたモノクロ画像に基づいて原稿の複数のエッジを検出するエッジ検出ステップと、
そのエッジ検出ステップにより検出された複数のエッジに沿う原稿の内側の帯状の範囲を判定範囲とし、その判定範囲の明度を前記プレスキャン処理手段により読み取られたモノクロ画像に基づいて検出し、前記判定範囲内の画素の明度値を平均することにより平均明度値を算出する明度検出ステップと、
その明度検出ステップにより算出された平均明度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断ステップと、
前記プレスキャン処理ステップにより原稿を読み取った後、前記画像読取手段により前記原稿を再度モノクロ画像で読み取る本スキャン処理ステップと、
前記判断ステップにより前記原稿が特殊原稿であると判断された場合は、前記本スキャン処理手段により読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力ステップとを備えていることを特徴とする画像読取処理プログラム。
An image reading processing program executed in an image reading apparatus provided with an image reading unit capable of reading at least a monochrome image of a document,
A pre-scan processing step of reading the entire range of the document as a monochrome image by the image reading means;
An edge detection step for detecting a plurality of edges of the document based on the monochrome image read by the prescan processing step;
A band-like range inside the document along a plurality of edges detected by the edge detection step is set as a determination range, and a lightness value of the determination range is detected based on a monochrome image read by the prescan processing unit , A brightness detection step of calculating an average brightness value by averaging the brightness values of the pixels within the determination range ;
A determination step of determining that the document is a special document when the average brightness value calculated by the brightness detection step is included in a predetermined range;
A main scan processing step of reading the original again as a monochrome image by the image reading means after reading the original in the pre-scan processing step;
When the determination step determines that the original is a special original, the density value of each pixel constituting the monochrome image read by the main scan processing unit is changed so as to increase the output. And an image reading processing program.
原稿をカラー画像あるいはモノクロ画像で読み取る画像読取手段を備えた画像読取装置において実行される画像読取処理プログラムであって、
前記画像読取手段により前記原稿の全範囲をカラー画像で読み取るプレスキャン処理ステップと、
そのプレスキャン処理ステップにより読み取られたカラー画像に基づいて原稿の複数のエッジを検出するエッジ検出ステップと、
そのエッジ検出ステップにより検出された複数のエッジに沿う原稿の内側の帯状の範囲を判定範囲とし、その判定範囲の明度値と彩度値とを前記プレスキャン処理手段により読み取られたカラー画像に基づいて検出し、前記判定範囲内の画素の明度値および彩度値をそれぞれ平均することにより平均明度値および平均彩度値を算出する色彩情報検出ステップと、
その色彩情報検出ステップにより算出された平均明度値が所定の範囲に含まれ、且つ平均彩度値が所定の範囲に含まれる場合に、前記原稿が特殊原稿であると判断する判断ステップと、
前記プレスキャン処理ステップによりカラー画像を読み取った後、前記画像読取手段により前記原稿を再度モノクロ画像で読み取る本スキャン処理ステップと、
前記判断ステップにより前記原稿が特殊原稿であると判断された場合は、前記本スキャン処理ステップにより読み取られたモノクロ画像を構成する各画素の濃度値を濃度が濃くなるように変更して出力する出力ステップとを備えていることを特徴とする画像読取処理プログラム。
An image reading processing program executed in an image reading apparatus provided with an image reading means for reading a document as a color image or a monochrome image,
A pre-scan processing step of reading the entire range of the document with a color image by the image reading means;
An edge detection step for detecting a plurality of edges of the document based on the color image read by the prescan processing step;
Based on the color image read by the pre-scan processing means, the band-like range inside the document along the plurality of edges detected by the edge detection step is set as a determination range , and the brightness value and the saturation value of the determination range are determined. Detecting color information, and calculating an average brightness value and an average saturation value by averaging the brightness value and the saturation value of the pixels within the determination range, respectively ,
A determination step of determining that the original is a special original when the average brightness value calculated by the color information detection step is included in a predetermined range and the average saturation value is included in the predetermined range;
A main scan processing step of reading the original again as a monochrome image by the image reading means after reading the color image in the pre-scan processing step;
When the determination step determines that the original is a special original, the density value of each pixel constituting the monochrome image read by the main scan processing step is changed so as to increase the output. And an image reading processing program.
JP2007018985A 2007-01-30 2007-01-30 Image reading apparatus and image reading processing program Expired - Fee Related JP4479731B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007018985A JP4479731B2 (en) 2007-01-30 2007-01-30 Image reading apparatus and image reading processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007018985A JP4479731B2 (en) 2007-01-30 2007-01-30 Image reading apparatus and image reading processing program

Publications (2)

Publication Number Publication Date
JP2008187433A JP2008187433A (en) 2008-08-14
JP4479731B2 true JP4479731B2 (en) 2010-06-09

Family

ID=39730179

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007018985A Expired - Fee Related JP4479731B2 (en) 2007-01-30 2007-01-30 Image reading apparatus and image reading processing program

Country Status (1)

Country Link
JP (1) JP4479731B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7082426B2 (en) * 2020-01-31 2022-06-08 株式会社写真化学 Image processing device and image processing method

Also Published As

Publication number Publication date
JP2008187433A (en) 2008-08-14

Similar Documents

Publication Publication Date Title
JP4495201B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
JP4531606B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP4166744B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP4855458B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
US20080007785A1 (en) Image processing apparatus, image processing method, and program
JP5442701B2 (en) Image processing method, image processing apparatus, image forming apparatus including the same, image reading apparatus, program, and recording medium
US9406001B2 (en) Image processing apparatus, image forming apparatus, image forming method, and recording medium
US8437047B2 (en) Image processing apparatus, control method, and program
JP2008252700A (en) Image processing apparatus and image processing method
US8199361B2 (en) Image processing apparatus that performs color calibration
US8159690B2 (en) Image processing apparatus and control program for image processing apparatus
JP4797959B2 (en) Image reading device
JP4808281B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
CN102547013A (en) Image processing apparatus and method for processing image
JP2008305099A (en) Image processing method, image processor, image forming device, computer program and recording medium
JP4479731B2 (en) Image reading apparatus and image reading processing program
JP2009017208A (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and computer readable recording medium
JP5549836B2 (en) Image processing apparatus and image processing method
JP2006270148A (en) Image processing method, image processor and image forming apparatus
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP4432961B2 (en) Image processing apparatus and image processing program
JP4306758B2 (en) Copying apparatus and density adjustment program
JP2009182930A (en) Image processing device, image reading device, image forming device, image processing method, image processing program, and recording medium
JP2005142740A (en) Ink jet original discriminating method, image processing apparatus, image reading apparatus, image forming apparatus, ink jet original discriminating program and recording medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090331

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090818

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091013

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100308

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130326

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4479731

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130326

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140326

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees