[go: up one dir, main page]

JPH07115514A - Image reader - Google Patents

Image reader

Info

Publication number
JPH07115514A
JPH07115514A JP5259687A JP25968793A JPH07115514A JP H07115514 A JPH07115514 A JP H07115514A JP 5259687 A JP5259687 A JP 5259687A JP 25968793 A JP25968793 A JP 25968793A JP H07115514 A JPH07115514 A JP H07115514A
Authority
JP
Japan
Prior art keywords
original
document
pressure plate
image
result
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.)
Withdrawn
Application number
JP5259687A
Other languages
Japanese (ja)
Inventor
Koichi Ishimoto
高一 石本
Masahiro Funada
正広 船田
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP5259687A priority Critical patent/JPH07115514A/en
Publication of JPH07115514A publication Critical patent/JPH07115514A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

PURPOSE:To provide an image reader able to decide correctly an area of an original placed on an original pressing plate even when there is a flaw or a dirt on the original pressing plate. CONSTITUTION:A spatial distance calculation circuit 112 calculates a position on an RGB color space based on an RGB signal of a concerned pixel and the distance of the position from a color information representing point on an original pressing plate, an original decision circuit 113 decides whether or not the concerned pixel is resident on an original based on an output of the spatial distance calculation circuit 112. A spatial frequency filter 118 outputs the result applying predetermined filtering to the concerned pixel and pixels in the vicinity, and an original decision circuit 119 decides whether or not the concerned pixel is resident on the original based on an output of the spatial frequency filter 118. A mis-decision prevention circuit 114 stores the result of decision by original decision circuits 113, 119 when the surface of the original pressing plate is read in advance and the area of the original is decided based on the storage, and the decision result by the original decision circuits 113, 119 ANDed by an AND gate 120.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業所の利用分野】本発明は画像読取装置に関し、例
えば、原稿を検知する機能を備えた画像読取装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reading apparatus, for example, an image reading apparatus having a function of detecting a document.

【0002】[0002]

【従来の技術】現行の複写機、例えばキヤノン社製NP91
30,PIXEL-Dio,PIXEL-EPOなどにおいては、原稿圧板と
原稿の輝度信号の差異によって原稿を検知している。す
なわち、これらの複写機の原稿検知方法は、原稿圧板を
CCDで読取った場合、輝度レベルが極低いということを
利用して、一定の小区域内のすべての画素の輝度レベル
がある閾値以上になった場合、原稿として検出するもの
である。
2. Description of the Related Art Current copying machines such as Canon NP91
In 30, PIXEL-Dio, PIXEL-EPO, etc., the original is detected by the difference in the luminance signal between the original pressure plate and the original. That is, the document detection method of these copying machines uses the document pressure plate.
Utilizing the fact that the brightness level is extremely low when read by CCD, if the brightness level of all pixels in a certain small area exceeds a certain threshold value, it is detected as a document.

【0003】ところが、銀塩写真などの暗い背景は、原
稿圧板と同程度かそれ以下の輝度レベルになるため、原
稿圧板と原稿領域との判別が正しく行われず、うまく原
稿が検知できないことがあり、これを解決するため、読
取った画像信号と原稿圧板との、色空間上での差異、お
よび、空間周波数上での差異を用いて、原稿を検知する
方法が提案されている。すなわち、読取った画像の色味
情報,空間周波数情報と、予め保持しておいた原稿圧板
特有の色味情報および縞模様の空間周波数情報とをそれ
ぞれ比較して、比較結果に基づいて原稿を検知しようと
いうものである。また、この方法における、原稿圧板上
の傷や汚れによる誤検知改善のために、初期に原稿圧板
表面を画像として読取った結果に基づいて、予め保持し
ておく個々の原稿圧板特有の特徴を補正する方法も提案
されている。
However, since a dark background such as a silver halide photograph has a brightness level that is about the same as or lower than that of the original pressure plate, the original pressure plate and the original area may not be correctly discriminated, and the original may not be detected properly. In order to solve this, there has been proposed a method of detecting a document by using the difference in the color space and the difference in the spatial frequency between the read image signal and the document pressure plate. That is, the tint information and the spatial frequency information of the read image are compared with the tint information peculiar to the original platen and the spatial frequency information of the striped pattern which are held in advance, and the original is detected based on the comparison result. It is to try. In addition, in order to improve erroneous detection due to scratches and stains on the document pressure plate in this method, based on the result of reading the surface of the document pressure plate as an image in the initial stage, the characteristic peculiar to each document pressure plate held in advance is corrected. The method of doing is also proposed.

【0004】このような方法で、読取画像信号が表す一
画素(または一定小区域)毎に原稿か否かを判定して、
その結果に基づいて原稿の位置および寸法を検出するこ
とになるが、その方法については特開昭59-67764号公報
に記載された提案がある。同提案は、CCDラインセンサ
の主走査方向の出力ビット数を計数するカウンタと、副
走査方向のライン数を計数するカウンタとを、原稿台の
基準位置に同期させて動作させ、判定結果に基づいて主
走査方向および副走査方向の計数値を保持することによ
り、原稿が置かれている原稿台上の位置および原稿寸法
を検出するものである。
By such a method, it is determined whether or not the original is for each pixel (or a fixed small area) represented by the read image signal,
The position and size of the document are detected based on the result, and there is a proposal described in JP-A-59-67764 for the method. The same proposal operates a counter that counts the number of output bits of the CCD line sensor in the main scanning direction and a counter that counts the number of lines in the sub scanning direction in synchronization with the reference position of the document table, and based on the determination result. By holding the count values in the main scanning direction and the sub-scanning direction, the position on the document table on which the document is placed and the document size are detected.

【0005】図20は同提案による原稿の位置および寸
法の検出方法を説明する図で、原稿台S上に原稿Mが載置
されている。xおよびyはラインセンサの主走査方向およ
び副走査方向を、SPは原稿台S上の基準位置を示してい
る。このような状態において、最初に原稿Mだと判定さ
れた読取画像信号を示す点P1、原稿Mだと判定されたx方
向で最も位置SPに近い点P2、原稿Mだと判定されたx方向
で最も位置SPから遠い点P3、最後に原稿Mだと判定され
た読取画像信号を示す点P4の四点の座標を、主走査方向
および副走査方向の出力ビット数カウンタによって求
め、原稿Mの位置および寸法を検出する。具体的には、
四点すべてを含み、その四辺がxまたはyに平行な最小の
矩形領域を原稿領域にする。
FIG. 20 is a view for explaining the method of detecting the position and size of a document according to the proposal, in which a document M is placed on a document table S. x and y indicate the main scanning direction and the sub scanning direction of the line sensor, and SP indicates the reference position on the document table S. In such a state, a point P1 indicating the read image signal initially determined to be the original M, a point P2 closest to the position SP in the x direction determined to be the original M, an x direction determined to be the original M Of the point P3 farthest from the position SP, and the point P4 indicating the read image signal finally determined to be the original M, the coordinates of the four points are obtained by the output bit number counters in the main scanning direction and the sub-scanning direction. Detect position and dimensions. In particular,
The minimum rectangular area that includes all four points and is parallel to x or y is the original area.

【0006】[0006]

【発明が解決しようとする課題】しかし、上記従来例に
おいては、次のような問題点があった。すなわち、上記
従来例においても誤判定がまったく起こり得ないわけで
はなく、もし誤判定が起きた場合は、それがたった一画
素であっても、実際の原稿よりも大きな領域を原稿だと
判定してしまうことになる。図21はこの誤判定の一例
を示す図で、原稿圧板438に付いた傷に影響されて、
その下に置かれた原稿402の領域を439と判定して
しまう例である。
However, the above-mentioned conventional example has the following problems. That is, even in the above-mentioned conventional example, the erroneous determination cannot be completely prevented.If the erroneous determination occurs, even if it is only one pixel, it is determined that the area larger than the actual original is the original. Will be lost. FIG. 21 is a diagram showing an example of this erroneous determination, which is affected by scratches on the document pressure plate 438,
This is an example in which the area of the original document 402 placed below it is determined to be 439.

【0007】[0007]

【課題を解決するための手段】本発明は、前記の課題を
解決することを目的としたもので、前記の課題を解決す
る一手段として、以下の構成を備える。すなわち、原稿
圧板によって押圧された原稿を光学的に走査して該原稿
の画像を読取る画像読取装置であって、前記原稿圧板表
面の画像情報の特徴を予め記憶する第1の記憶手段と、
読取った画像情報の特徴を抽出する抽出手段と、前記抽
出手段の抽出結果と前記第1の記憶手段に記憶された特
徴とを比較する比較手段と、前記比較手段の比較結果を
主走査方向,副走査方向にそれぞれ累積する累積手段
と、前記累積手段の累積結果を記憶する第2の記憶手段
と、前記累積手段の累積結果と前記第2の記憶手段に記
憶された累積結果とに基づいて原稿領域を判定する判定
手段とを備え、第2の記憶手段は、予め、前記原稿圧板
表面を読取った画像情報について前記累積手段で累積さ
れた結果を記憶することを特徴とする。
SUMMARY OF THE INVENTION The present invention is intended to solve the above problems, and has the following structure as one means for solving the above problems. That is, an image reading device that optically scans a document pressed by a document pressure plate to read an image of the document, and first storage means that stores in advance the characteristics of image information on the surface of the document pressure plate,
Extracting means for extracting the characteristics of the read image information; comparing means for comparing the extraction result of the extracting means with the characteristics stored in the first storage means; and comparing results of the comparing means with the main scanning direction, Based on the accumulating means for accumulating in the sub-scanning direction, the second storing means for storing the accumulating result of the accumulating means, the accumulating result of the accumulating means and the accumulating result stored in the second storing means. The second storage means stores, in advance, the result of the image information obtained by reading the surface of the original pressure plate accumulated by the accumulating means.

【0008】[0008]

【作用】以上の構成によって、読取った画像情報の特徴
と、予め記憶した原稿圧板表面の画像情報の特徴との比
較結果を、主走査方向と副走査方向にそれぞれ累積した
結果と、予め、前記原稿圧板表面を読取った画像情報に
ついて前記累積手段で累積された結果とに基づいて原稿
領域を判定する画像読取装置を提供でき、例えば、原稿
圧板上の傷や汚れを読取った原稿領域と誤判定される画
像情報をキャンセルして、原稿圧板と原稿領域とを正し
く判別することができる。
With the above structure, the comparison result of the characteristic of the read image information and the previously stored characteristic of the image information on the surface of the original plate is accumulated in the main scanning direction and the sub-scanning direction, respectively, and It is possible to provide an image reading device that determines the original area based on the result of the image information obtained by reading the surface of the original pressure plate accumulated by the accumulating means. By canceling the image information displayed, the document pressure plate and the document area can be correctly discriminated.

【0009】[0009]

【実施例】以下、本発明にかかる一実施例の画像読取装
置を図面を参照して詳細に説明する。なお、以下の説明
では、本発明に係る一実施例の画像読取装置を備えた複
写機を説明するが、本発明は複写機に限定されるもので
はなく、本発明の要旨を逸脱しない範囲において、種々
なる態様で実施しうることは勿論である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An image reading apparatus according to an embodiment of the present invention will be described in detail below with reference to the drawings. In the following description, a copying machine equipped with an image reading apparatus according to an embodiment of the present invention will be described. However, the present invention is not limited to the copying machine and does not depart from the gist of the present invention. Of course, it can be implemented in various modes.

【0010】[0010]

【第1実施例】図1は本実施例の複写機の構成例を示す
装置概念図である。同図において、401は原稿台ガラ
ス、438は原稿圧板で、両者の間に原稿402が載置
される。403は照明で、原稿402を照射し、原稿4
02からの反射光は、ミラー404〜406を経て、光
学系407によってCCD408上に結像する。
[First Embodiment] FIG. 1 is a conceptual diagram of an apparatus showing a configuration example of a copying machine of the present embodiment. In the figure, 401 is a platen glass and 438 is a platen for pressing a document 402 between them. Numeral 403 denotes illumination, which illuminates the original document 402 and the original document 4
The reflected light from 02 passes through mirrors 404 to 406 and is imaged on the CCD 408 by the optical system 407.

【0011】さらに、409はモータで、ミラー40
4,照明403を含むミラーユニット410を速度V
で、ミラ405,406を含む第2ミラーユニット41
1を速度V/2でそれぞれ駆動することによって、原稿4
02の全面を走査する。437は原稿検知部で、詳細は
後述するが、CCD408で読取った画像が原稿402の
ものか否かを判定して、原稿402のものであれば画像
情報を画像処理部412へ送る。
Further, 409 is a motor, which is a mirror 40.
4, the mirror unit 410 including the illumination 403 is moved to the speed V
Then, the second mirror unit 41 including the mirrors 405 and 406
By driving 1 at speed V / 2 respectively,
The entire surface of 02 is scanned. An original detection unit 437, which will be described in detail later, determines whether the image read by the CCD 408 belongs to the original 402 and, if the original 402 exists, sends image information to the image processing unit 412.

【0012】412は画像処理部で、原稿検知部437
から入力された画像情報を処理して、印刷信号として出
力する。413〜416はそれぞれ半導体レーザ、41
7〜420はそれぞれポリゴンミラー、425〜428
はそれぞれ感光ドラムで、画像処理部412からの印刷
信号によって駆動される半導体レーザ413で発光され
たレーザ光は、ポリゴンミラー417によって感光ドラ
ム425上を走査して、感光ドラム425上に潜像を形
成する。以下同様に、半導体レーザ414〜416から
発光されたレーザ光も、感光ドラム426〜428上に
それぞれ潜像を形成する。
An image processing unit 412 is an original detection unit 437.
The image information input from is processed and output as a print signal. 413 to 416 are semiconductor lasers and 41, respectively.
7 to 420 are polygon mirrors and 425 to 428, respectively.
Each of the photosensitive drums is a photosensitive drum, and the laser light emitted from the semiconductor laser 413 driven by the print signal from the image processing unit 412 scans the photosensitive drum 425 by the polygon mirror 417 to form a latent image on the photosensitive drum 425. Form. Similarly, the laser beams emitted from the semiconductor lasers 414 to 416 also form latent images on the photosensitive drums 426 to 428, respectively.

【0013】421〜424はそれぞれ現像器で、それ
ぞれ黒(Bk),イエロー(Y),シアン(C),マゼンタ(M)の
トナーで、それぞれ対応する感光ドラム上に形成された
潜像を現像する。一方、429〜431はそれぞれ記録
紙カセット、432は手差しトレイで、記録紙カセット
429〜431,手差しトレイ432の何れかから供給
された記録紙は、レジスタローラ433を経て、転写ベ
ルト434上に吸着され搬送される。
Numerals 421 to 424 denote developing units for developing black and white (Y), cyan (C), and magenta (M) toners, respectively, to develop the latent images formed on the corresponding photosensitive drums. To do. On the other hand, 429 to 431 are recording paper cassettes, and 432 is a manual feed tray. And then transported.

【0014】給紙タイミングと同期して、予め感光ドラ
ム428〜425上にトナー像が形成されていて、記録
紙の搬送とともにMCYKの順にトナー像が記録紙へ転
写される。各色トナー像が転写された記録紙は、転写ベ
ルト434から分離され搬送され、定着器435によっ
てトナーが記録紙に定着された後、排紙トレイ436へ
排出されて、フルカラーの印刷出力が得られる。
A toner image is previously formed on the photosensitive drums 428 to 425 in synchronization with the sheet feeding timing, and the toner image is transferred to the recording sheet in the order of MCYK as the recording sheet is conveyed. The recording paper on which the toner images of the respective colors have been transferred is separated from the transfer belt 434 and conveyed, and after the toner is fixed on the recording paper by the fixing device 435, the recording paper is ejected to the paper ejection tray 436 to obtain a full-color print output. .

【0015】図2は原稿検知部437の構成例を示すブ
ロック図である。同図において、104〜106はそれ
ぞれ増幅器で、CCD408から入力されたRGBアナログ画
像信号を増幅する。107〜109はそれぞれA/D変換
器で、増幅器104〜106から入力されたRGBアナロ
グ画像信号を、それぞれ多値のRGBディジタル画像信号
に変換する。
FIG. 2 is a block diagram showing an example of the arrangement of the document detecting section 437. In the figure, 104 to 106 are amplifiers, respectively, which amplify the RGB analog image signals input from the CCD 408. Reference numerals 107 to 109 denote A / D converters, respectively, which convert the RGB analog image signals input from the amplifiers 104 to 106 into multivalued RGB digital image signals.

【0016】110,111はそれぞれディレイで、デ
ィレイ110はA/D変換器107の出力を、ディレイ1
10はA/D変換器108の出力をそれぞれ所定量遅延す
ることによって、三つのCCD、すなわちCCD408r,4
08g,408b相互の空間的ずれを補正する。112
は空間距離算出回路で、詳細は後述するが、当該画素の
RGB信号から、それらが示すRGB色空間上の位置と、該RG
B空間上の所定位置との距離を算出する。
Reference numerals 110 and 111 respectively denote delays. The delay 110 outputs the output of the A / D converter 107 to the delay 1
10 delays the output of the A / D converter 108 by a predetermined amount, so that three CCDs, that is, CCDs 408r, 4 are provided.
Correct the spatial deviation between 08g and 408b. 112
Is a spatial distance calculation circuit, which will be described in detail later.
From the RGB signal, the position in the RGB color space indicated by them and the RG
Calculate the distance to the specified position in B space.

【0017】113は原稿判定回路で、詳細は後述する
が、空間距離算出回路112の出力から当該画素が原稿
402上のものか否かを判定する。118は空間周波数
フィルタで、詳細は後述するが、当該画素とその近傍画
素に所定のフィルタリングを施した結果を出力する。1
19は原稿判定回路で、詳細は後述するが、空間周波数
フィルタ118の出力から当該画素が原稿402上のも
のか否かを判定する。
Reference numeral 113 denotes an original determination circuit, which will be described in detail later, and determines whether or not the pixel is on the original 402 from the output of the spatial distance calculation circuit 112. Reference numeral 118 denotes a spatial frequency filter, which will be described later in detail, and outputs a result of performing predetermined filtering on the pixel and its neighboring pixels. 1
Reference numeral 19 denotes an original determination circuit, which will be described in detail later, and determines from the output of the spatial frequency filter 118 whether the pixel is on the original 402.

【0018】120はANDゲートで、原稿判定回路11
3の判定結果と、原稿判定回路119の判定結果との論
理積を出力する。114は誤判定防止回路で詳細は後述
する。115〜117はそれぞれANDゲート回路で、画
像データと、誤判定防止回路114からの判定結果との
論理積を出力する。
Reference numeral 120 denotes an AND gate, which is the original decision circuit 11
The logical product of the determination result of No. 3 and the determination result of the document determination circuit 119 is output. Reference numeral 114 denotes an erroneous determination prevention circuit, which will be described in detail later. AND gate circuits 115 to 117 each output a logical product of the image data and the determination result from the erroneous determination prevention circuit 114.

【0019】図3は空間距離算出回路112の構成例を
示すブロック図である。空間距離算出回路112は、RG
B色空間上の所定点(r,g,b)と、当該画素(R,G,B)との空
間距離Lを次式に基づいて求めるものである。 L2=(R-r)2+(G-g)2+(B-b)2 …(1) 図3において、201〜203はレジスタで、RGB空間
上の所定点の座標(r,g,b)が予めセットされている。
FIG. 3 is a block diagram showing a configuration example of the spatial distance calculation circuit 112. The spatial distance calculation circuit 112 uses the RG
The spatial distance L between the predetermined point (r, g, b) on the B color space and the pixel (R, G, B) is calculated based on the following equation. L 2 = (Rr) 2 + (Gg) 2 + (Bb) 2 (1) In FIG. 3, 201 to 203 are registers, and the coordinates (r, g, b) of a predetermined point on the RGB space are preset. Has been done.

【0020】204〜206はそれぞれ減算器で、減算
器204は、入力された当該画素のデータRと、レジス
タ201の所定値Rとの差の絶対値|R-r|を出力する。以
下同様に、減算器205は差の絶対値|G-g|を、減算器
206は差の絶対値|B-b|を出力する。207〜209
はそれぞれ乗算器で、対応する減算器204〜206か
ら入力された値を自乗する。
Reference numerals 204 to 206 denote subtractors, and the subtractor 204 outputs the absolute value | Rr | of the difference between the input data R of the pixel and the predetermined value R of the register 201. Similarly, the subtractor 205 outputs the absolute value of difference | Gg |, and the subtractor 206 outputs the absolute value of difference | Bb |. 207-209
Are multipliers, and square the values input from the corresponding subtractors 204 to 206.

【0021】210は加算器で、乗算器207〜209
から入力された値を加算する。すなわち、加算器210
は空間距離L2を出力する。211はディレイで、空間距
離算出回路112の出力と、空間周波数フィルタ118
の出力とのタイミングをとる。図4は原稿判定回路11
3の構成例を示すブロック図である。
Reference numeral 210 denotes an adder, which is a multiplier 207-209.
Add the value input from. That is, the adder 210
Outputs the spatial distance L 2 . Reference numeral 211 denotes a delay, which is the output of the spatial distance calculation circuit 112 and the spatial frequency filter 118.
Take timing with the output of. FIG. 4 shows a document determination circuit 11
It is a block diagram which shows the structural example of 3.

【0022】原稿判定回路113は、当該画素が次式の
条件を満たす場合、当該画素が原稿402上のものであ
ると判定する。 L2>λ2 …(2) 図4において、301はレジスタで(2)式の右辺の
値、すなわち、所定点(r,g,b)からのある距離λが予め
セットされている。
The original determination circuit 113 determines that the pixel is on the original 402 when the pixel satisfies the following condition. L 2 > λ 2 (2) In FIG. 4, reference numeral 301 denotes a register in which a value on the right side of the equation (2), that is, a certain distance λ from a predetermined point (r, g, b) is preset.

【0023】302は比較器で、空間距離算出回路11
2から入力された空間距離L2と、レジスタ301から入
力された距離λ2とを比較して、(2)式の条件を満足
する場合は‘1’を出力する。図5は色味情報による原
稿判定原理を説明する図で、所定点C(r,g,b)は、RGB色
空間上の原稿圧板438を代表する点であり、また、点
C(r,g,b)を中心とする半径λの球S内は、原稿圧板43
8を読取った結果のばらつき範囲である。
Reference numeral 302 denotes a comparator, which is a spatial distance calculating circuit 11
The spatial distance L 2 input from 2 is compared with the distance λ 2 input from the register 301, and if the condition of the expression (2) is satisfied, '1' is output. FIG. 5 is a diagram for explaining the principle of document determination based on the tint information. The predetermined point C (r, g, b) is a point representing the document pressure plate 438 in the RGB color space, and
Inside the sphere S of radius λ centered on C (r, g, b), the original pressure plate 43
It is a variation range of the result of reading 8.

【0024】すなわち、本実施例は、当該画素D(R,G,B)
と点C(r,g,b)との空間距離Lを、空間距離算出回路11
2によって算出することによって、当該画素Dが球S内に
あるか否かを原稿判定回路113で判定して、(2)式
を満足する場合、当該画素Dが原稿402上のものであ
ると判定し、また、(2)式を満足しない場合、当該画
素Dは原稿圧板438を読取った結果であると判定す
る。
That is, in this embodiment, the pixel D (R, G, B)
The spatial distance L between the point C (r, g, b) and the spatial distance calculation circuit 11
By calculating according to 2, the document determination circuit 113 determines whether or not the pixel D is within the sphere S, and when the formula (2) is satisfied, the pixel D is on the document 402. If it is determined that the expression (2) is not satisfied, it is determined that the pixel D is the result of reading the original pressure plate 438.

【0025】なお、上記説明においては、RGB色空間上
の空間距離による例を説明したが、本実施例はこれに限
定されるものではなく、例えばL*a*b*色空間など、他の
色空間上の空間距離を用いてもよい。図6は空間周波数
フィルタ118の構成例を示すブロック図である。同図
において、612はグレースケール化回路で、例えば次
式によって、入力されたRGB画素データをグレースケー
ル画素データに変換する。
In the above description, an example in which the spatial distance in the RGB color space is used is described, but the present embodiment is not limited to this, and other examples such as the L * a * b * color space can be used. A spatial distance on the color space may be used. FIG. 6 is a block diagram showing a configuration example of the spatial frequency filter 118. In the figure, 612 is a gray scale conversion circuit, which converts the input RGB pixel data into gray scale pixel data, for example, by the following equation.

【0026】 Gy=(R+2G+B)/4 …(3) 601〜607はそれぞれフリップフロップF/Fで、画
素同期信号CLKに同期して、グレースケール化回路61
2から入力された画素データを、それぞれ一画素分ずつ
遅延する。608は乗算器で、F/F604から出力され
た、すなわち四画素分遅延された画素データ(注目画
素)に例えば“−6”を掛ける。
Gy = (R + 2G + B) / 4 (3) Reference numerals 601 to 607 are flip-flops F / F, which are synchronized with the pixel synchronization signal CLK and which are grayscale circuits 61.
The pixel data input from 2 is delayed by one pixel each. Reference numeral 608 denotes a multiplier, which multiplies the pixel data (pixel of interest) output from the F / F 604, that is, delayed by four pixels, by "-6", for example.

【0027】609は加算器で、F/F601〜603,6
05〜607と乗算器608から出力された七つの画素
データの総和を出力する。610は絶対値回路で、加算
器609から入力された画素データの絶対値を出力す
る。絶対値回路610の出力は、注目画素近傍を図7に
示すフィルタで処理したものになる。
Reference numeral 609 denotes an adder, which is F / F 601-603,6
05-607 and the sum total of seven pixel data output from the multiplier 608 are output. An absolute value circuit 610 outputs the absolute value of the pixel data input from the adder 609. The output of the absolute value circuit 610 is obtained by processing the vicinity of the target pixel with the filter shown in FIG.

【0028】611はローパスフィルタLPFである。図
8は原稿判定回路119の構成例を示すブロック図であ
る。701はレジスタで、予め原稿か否かを判定する閾
値tがセットされている。702は比較器で、空間周波
数フィルタ118から入力されたデータFと、レジスタ
701から入力された閾値tとを比較して、次式の条件
を満足する場合は‘1’を出力する。
Reference numeral 611 is a low pass filter LPF. FIG. 8 is a block diagram showing a configuration example of the document determination circuit 119. Reference numeral 701 is a register, and a threshold value t for determining whether a document is a document is set in advance. A comparator 702 compares the data F input from the spatial frequency filter 118 with the threshold value t input from the register 701, and outputs “1” when the condition of the following equation is satisfied.

【0029】F<t …(4) すなわち、原稿判定回路119は、当該画素が(4)式
の条件を満たす場合、当該画素が原稿402上のもので
あると判定する。次に、空間周波数情報による原稿検知
の原理を説明する。本実施例は、画像データから原稿圧
板438に特有の縞模様を抽出することによって、該画
像データが原稿圧板438のものか原稿402のものか
を判定する。
F <t (4) That is, the original determination circuit 119 determines that the pixel is on the original 402 when the pixel satisfies the condition of the expression (4). Next, the principle of document detection based on spatial frequency information will be described. In this embodiment, a striped pattern peculiar to the document pressure plate 438 is extracted from the image data to determine whether the image data belongs to the document pressure plate 438 or the document 402.

【0030】図9は原稿圧板438によって押圧された
原稿402をミラーユニット410側から視た状態の図
である。また、図10は空間周波数フィルタ118の各
部における図9に示すラインAの画像信号の一例を示す
図で、縦軸は輝度を、横軸は原稿上の位置を表す。な
お、具体的には、図10(a)の信号はグレースケール
化回路612の出力、図10(b)の信号は絶対値回路
610の出力、図10(c)の信号はLPF611の出力
である。
FIG. 9 is a view of the document 402 pressed by the document pressure plate 438 as viewed from the mirror unit 410 side. Further, FIG. 10 is a diagram showing an example of the image signal of the line A shown in FIG. 9 in each part of the spatial frequency filter 118, in which the vertical axis represents the luminance and the horizontal axis represents the position on the document. 10A is the output of the grayscale circuit 612, the signal of FIG. 10B is the output of the absolute value circuit 610, and the signal of FIG. 10C is the output of the LPF 611. is there.

【0031】図9に示すラインAが読取られて、画像信
号として原稿検知部437へ送られてくると、空間周波
数フィルタ118によって、該画像信号はフィルタリン
グされる。すなわち、空間周波数フィルタ118は、図
10に一例を示すように、原稿圧板438に対応する信
号を強調する。また、原稿圧板438に近似した空間周
波数をもつ領域が、原稿402中に部分的に存在する場
合もあり、空間周波数フィルタ118は、これらをノイ
ズとしてLPF611で除去することによって、図10
(c)に一例を示す出力を得る。
When the line A shown in FIG. 9 is read and sent as an image signal to the document detecting section 437, the spatial frequency filter 118 filters the image signal. That is, the spatial frequency filter 118 emphasizes the signal corresponding to the original platen 438, as shown in FIG. Further, there may be a case where a region having a spatial frequency similar to that of the document pressure plate 438 is partially present in the document 402, and the spatial frequency filter 118 removes these as noises by the LPF 611, so that FIG.
An output is obtained, an example of which is shown in (c).

【0032】従って、図10(c)において、閾値t以
上の信号は原稿圧板438を、閾値t未満の信号は原稿
402をそれぞれ示すことになり、本実施例は原稿40
2を検知することができる。図11は原稿圧板からの信
号を強調する原理をより一般的に説明する図で、同図
(a)は一般的な原稿圧板の周波数スペクトルを、同図
(b)は一般的な原稿の周波数スペクトルを、同図
(c)は図7に示した空間周波数フィルタの周波数特性
を示す図である。なお、図11の横軸は周波数を、縦軸
は信号強度を表す。すなわち、同図(a)に示す原稿圧
板の画像信号を、同図(c)のような特性をもったフィ
ルタで処理すると、同図(a)の斜線部分の周波数帯域
の信号が強調される。しかし、同図(b)に示す原稿の
画像信号の場合、該フィルタの通過帯域の信号強度分布
が希なので、該信号は強調されない。なお、原稿圧板4
38の縞模様がもつ周波数特性に応じて、空間周波数フ
ィルタの大きさおよび係数の値を変えることによって、
各種原稿圧板に対応することができる。
Therefore, in FIG. 10 (c), a signal above the threshold t indicates the original platen 438, and a signal below the threshold t indicates the original 402. In this embodiment, the original 40 is shown.
2 can be detected. 11A and 11B are views for generally explaining the principle of emphasizing the signal from the original platen. FIG. 11A shows the frequency spectrum of a general original platen, and FIG. 11B shows the frequency of a general original plate. FIG. 7C is a diagram showing a spectrum and frequency characteristics of the spatial frequency filter shown in FIG. The horizontal axis of FIG. 11 represents frequency and the vertical axis represents signal intensity. That is, when the image signal of the original platen shown in FIG. 7A is processed by the filter having the characteristic shown in FIG. 6C, the signal in the frequency band in the shaded portion of FIG. . However, in the case of the image signal of the original shown in FIG. 7B, the signal strength distribution in the pass band of the filter is rare, so the signal is not emphasized. The original pressure plate 4
By changing the size of the spatial frequency filter and the value of the coefficient according to the frequency characteristic of the striped pattern of 38,
It can be used with various document pressure plates.

【0033】しかし、複写機の利用が進むに連れて、原
稿圧板438の表面には、多かれ少なかれ傷や汚れが付
着する。こうなると、上記の判定方法では、原稿圧板4
38の色味や周波数成分が、傷や汚れによって変化して
しまい、画像信号による原稿402との区別が難しくな
る。そのままでは、図21に示したような誤判定を起こ
し、原稿圧板438の傷も原稿402の一部と判定し
て、同図に破線で示す領域439を原稿領域と判定して
しまう。
However, as the use of the copying machine progresses, the surface of the original pressure plate 438 is more or less scratched or soiled. In this case, according to the above determination method, the document pressure plate 4
The tint and frequency component of 38 change due to scratches and stains, making it difficult to distinguish from the original 402 by the image signal. If left as it is, the erroneous determination as shown in FIG. 21 occurs, the flaw on the document pressure plate 438 is also determined to be a part of the document 402, and the region 439 indicated by the broken line in the figure is determined to be the document region.

【0034】そこで、本実施例は、図12に示す方法に
よって、原稿圧板438に付いた傷や汚れの影響を除去
して誤判定を防ぎ、正しい原稿領域を抽出しようとする
ものである。まず、電源投入の際などに原稿圧板438
表面を画像として読取って、原稿だと誤判定してしまう
画素を主走査方向,副走査方向それぞれについて計数
し、その個数(誤判定画素数)を各座標毎に記憶する
(図12(a)参照)。同様に、原稿402を読取る際
に、原稿だと判定した画素を主走査方向,副走査方向そ
れぞれについて計数し(同図(b)参照)、その個数
(原稿信号数)から予め記憶した誤判定画素数を引いた
結果が、所定の閾値tより大きい場合その座標が原稿領
域に含まれるとする(同図(c)参照)。その後、図2
0に示した方法によって、前述した点P1,P2,P3およびP4
を求め、この四点の座標から原稿402の位置および寸
法を検出する。
Therefore, in this embodiment, the method shown in FIG. 12 is used to remove the influence of scratches and stains on the original pressure plate 438 to prevent erroneous determination and to extract the correct original area. First, when the power is turned on, the document pressure plate 438 is
Pixels that are erroneously determined to be a document are read in the main scanning direction and the sub-scanning direction by reading the front surface as an image, and the number (the number of erroneously determined pixels) is stored for each coordinate (FIG. 12A). reference). Similarly, when the document 402 is read, the pixels determined to be the document are counted in each of the main scanning direction and the sub-scanning direction (see FIG. 7B), and the erroneous determination stored in advance from the number thereof (document signal number) If the result obtained by subtracting the number of pixels is larger than a predetermined threshold value t, the coordinates are included in the original area (see FIG. 7C). After that, Figure 2
0, the points P1, P2, P3 and P4
Then, the position and size of the original 402 are detected from the coordinates of these four points.

【0035】図13は誤判定防止回路114の構成例を
示すブロック図である。同図において、1901は主走
査方向カウンタ、1902は副走査方向カウンタで、原
稿台ガラス401のそれぞれの方向の画素数分に対応す
るメモリがカウンタとして用意されていて、当該画素が
原稿であると判定されると、その座標に対応するメモリ
の値に1を加算することで、カウンタとして機能する。
例えば、基準位置SPから主走査方向にi画素目,副走査
方向にj画素目の画素が原稿だと判定された場合、i画素
目に対応する主走査カウンタ1901のカウンタxiと、
j画素目に対応する副走査カウンタ1902のカウンタy
jとに1が加算される。なお、どのカウンタに加算するか
は、不図示のCPUから与えられるアドレス信号によって
制御される。
FIG. 13 is a block diagram showing a configuration example of the erroneous determination prevention circuit 114. In the figure, reference numeral 1901 is a main scanning direction counter, 1902 is a sub scanning direction counter, and a memory corresponding to the number of pixels in each direction of the platen glass 401 is prepared as a counter, and the pixel is an original. When it is determined, it functions as a counter by adding 1 to the value of the memory corresponding to the coordinate.
For example, when it is determined that the i-th pixel in the main scanning direction from the reference position SP and the j-th pixel in the sub-scanning direction are originals, the counter x i of the main scanning counter 1901 corresponding to the i-th pixel,
Counter y of sub-scanning counter 1902 corresponding to the j-th pixel
1 is added to j and. The counter to be added is controlled by an address signal given from a CPU (not shown).

【0036】1905〜1910,1918および19
20はそれぞれトライステートゲートで、それぞれに供
給されるゲート信号OE2,OE1,OE3,OE2',OE1',OE3',OE6お
よびOE7が‘0’の場合に入力信号を出力する。190
3,1904はそれぞれメモリで、それぞれトライステ
ートゲート1906,1909を介して入力された前述
した誤判定画素数を、主走査方向,副走査方向について
それぞれ記憶するためのものである。なお、これらのメ
モリは、不図示のCPUから与えられるアドレス信号によ
って同期がとられている。
1905-1910, 1918 and 19
Reference numeral 20 is a tri-state gate, which outputs an input signal when the gate signals OE2, OE1, OE3, OE2 ', OE1', OE3 ', OE6 and OE7 supplied to them are' 0 '. 190
Reference numerals 3 and 1904 denote memories for respectively storing the above-described erroneous determination pixel numbers input via the tristate gates 1906 and 1909 in the main scanning direction and the sub-scanning direction. Note that these memories are synchronized by an address signal given by a CPU (not shown).

【0037】1911,1912はそれぞれ減算器で、
それぞれトライステートゲート1905,1908を介
して入力された前述した原稿信号数と、それぞれトライ
ステートゲート1907,1910を介して入力された
前述した誤判定画素数との差を、主走査方向,副走査方
向それぞれについて各座標毎に計算するためのものであ
る。
1911 and 1912 are subtractors, respectively.
The difference between the number of original signals input via the tristate gates 1905 and 1908 and the number of erroneous determination pixels input via the tristate gates 1907 and 1910, respectively, is calculated in the main scanning direction and the sub-scanning direction. This is for calculating each direction for each coordinate.

【0038】1913,1914はそれぞれレジスタ
で、主走査方向,副走査方向それぞれについて1ライン
当りの閾値tがセットされている。1915,1916は
それぞれ比較器で、主走査方向,副走査方向それぞれに
ついて当該ラインが原稿領域に含まれるか否かを、レジ
スタ1913,1914にセットされた閾値tとの比較に
よって判定する。つまり、比較器1915,1916
は、減算器1911,1912から入力された値が、レ
ジスタ1913,1914にセットされた閾値tより大き
ければ、当該ラインが原稿領域に含まれることを示す信
号‘1’を出力する。
Numerals 1913 and 1914 are registers, and the threshold value t per line is set in each of the main scanning direction and the sub scanning direction. Reference numerals 1915 and 1916 denote comparators that determine whether or not the line is included in the original area in the main scanning direction and the sub-scanning direction, respectively, by comparing with thresholds t set in the registers 1913 and 1914. That is, the comparators 1915 and 1916
Outputs a signal "1" indicating that the line is included in the original area if the values input from the subtracters 1911 and 1912 are larger than the threshold value t set in the registers 1913 and 1914.

【0039】1917は領域抽出部で、不図示のCPUか
ら与えられたアドレス信号によってメモリ1903,1
904の出力と同期し、原稿領域に含まれると判定され
た主走査方向および副走査方向のラインの最大および最
小の座標に基づいて、原稿領域を抽出してそのアドレス
情報を出力する。1919は判定部で、トライステート
ゲート1918を介して領域抽出部1917から入力さ
れた原稿領域のアドレス情報に基づいて、不図示のCPU
から与えられたアドレス信号によって示される画素が原
稿領域にあるか否かを判定する。この判定結果は、トラ
イステートゲート1920を介して出力される。
Reference numeral 1917 denotes an area extracting unit, which stores the memory 1903, 1 in response to an address signal given from a CPU (not shown).
In synchronization with the output of 904, the original area is extracted based on the maximum and minimum coordinates of the lines in the main scanning direction and the sub-scanning direction that are determined to be included in the original area, and the address information is output. A determination unit 1919 is a CPU (not shown) based on the address information of the document area input from the area extraction unit 1917 via the tristate gate 1918.
Then, it is determined whether or not the pixel indicated by the address signal given by is in the original area. This determination result is output via the tri-state gate 1920.

【0040】図14は電源投入時などにおける誤判定防
止手順の一例を示すフローチャートである。同図におい
て、電源が投入されると、ステップS1で装置自体の初
期設定を実行する。例えば、ミラーユニット410など
をホームポジションにセットし、主走査方向カウンタ1
901,副走査方向カウンタ1902,メモリ190
3,1904は0に初期化される。
FIG. 14 is a flow chart showing an example of an erroneous determination prevention procedure when the power is turned on. In the figure, when the power is turned on, initial setting of the apparatus itself is executed in step S1. For example, when the mirror unit 410 or the like is set at the home position, the main scanning direction counter 1
901, sub-scanning direction counter 1902, memory 190
3,1904 is initialized to 0.

【0041】続いて、ステップS2で、誤判定防止回路
114のトライステートゲートの制御信号を、OE1=
‘0’,OE2=‘1’,OE3=‘1’, OE1'=‘0’,OE2'=
‘1’,OE3'=‘1’, OE6=‘1’,OE7=‘1’にセットし
て、ステップS3でスキャンを開始して1ラインをスキ
ャンし、ステップS4で、前述した方法によって誤判定
画素を検出して、誤判定画素が検出された場合、ステッ
プS5で主走査方向カウンタ1901,副走査方向カウ
ンタ1902それぞれの当該画素の座標に対応するメモ
リに1を加算する。また、誤判定画素が検出されなけれ
ばステップS6へジャンプする。
Then, in step S2, the control signal of the tristate gate of the erroneous determination prevention circuit 114 is changed to OE1 =
'0', OE2 = '1', OE3 = '1', OE1 '=' 0 ', OE2' =
Set to "1", OE3 '= "1", OE6 = "1", OE7 = "1", start scanning in step S3 to scan one line, and in step S4, make an error by the method described above. When a determination pixel is detected and an erroneous determination pixel is detected, 1 is added to the memory corresponding to the coordinates of the pixel of each of the main scanning direction counter 1901 and the sub scanning direction counter 1902 in step S5. If no misjudged pixel is detected, the process jumps to step S6.

【0042】続いて、ステップS6で、1ラインの判定
が終了したか否かを判定して、未了であればステップS
4へ戻り、また、終了であればステップS7へ進む。1
ラインの判定が終了すると、ステップS7で、全面のス
キャンが終了したか否かを判定して、未了であればステ
ップS3へ戻り、また、終了であればステップS8へ進
む。
Subsequently, in step S6, it is determined whether or not the determination for one line is completed.
4. If it is completed, the process proceeds to step S7. 1
When the line determination is completed, it is determined in step S7 whether or not the scanning of the entire surface is completed. If it is not completed, the process returns to step S3, and if it is completed, the process proceeds to step S8.

【0043】全面のスキャンが終了した場合、ステップ
S8で、トライステートゲートの制御信号を、OE1=
‘1’,OE2=‘0’,OE3=‘0’, OE1'=‘1’,OE2'=
‘0’,OE3'=‘0’, OE6=‘0’,OE7=‘1’にセットし
て誤判定防止手順を終了し、本実施例はコピー可能な状
態で待機する。なお、主走査方向カウンタ1901,副
走査方向カウンタ1902それぞれの値は、メモリ19
03,1904へ格納される。
When the scanning of the entire surface is completed, in step S8, the control signal of the tri-state gate is changed to OE1 =
'1', OE2 = '0', OE3 = '0', OE1 '=' 1 ', OE2' =
'0', OE3 '=' 0 ', OE6 =' 0 ', OE7 =' 1 'are set to complete the erroneous determination prevention procedure, and this embodiment waits in a copyable state. The values of the main scanning direction counter 1901 and the sub scanning direction counter 1902 are stored in the memory 19 respectively.
It is stored in 03,1904.

【0044】図15はコピー実行時などにおける誤判定
防止手順の一例を示すフローチャートである。同図にお
いて、コピー開始キーなどが押されると、ステップS2
1で装置自体の初期設定を実行する。例えば、ミラーユ
ニット410などをホームポジションにセットし、主走
査方向カウンタ1901,副走査方向カウンタ1902
は0に初期化される。
FIG. 15 is a flow chart showing an example of an erroneous determination prevention procedure at the time of executing a copy. In the figure, when the copy start key or the like is pressed, step S2
At 1, the device itself is initialized. For example, the mirror unit 410 or the like is set to the home position, and the main scanning direction counter 1901 and the sub scanning direction counter 1902 are set.
Is initialized to 0.

【0045】続いて、ステップS22で、誤判定防止回
路114のトライステートゲートの制御信号を、OE1=
‘1’,OE2=‘0’,OE3=‘0’, OE1'=‘1’,OE2'=
‘0’,OE3'=‘0’, OE6=‘0’,OE7=‘1’にセットし
て、ステップS23でスキャンを開始して1ラインをス
キャンし、ステップS24で、前述した方法によって、
読取画像信号の各画素に対して原稿か否かの判定を行
う。判定結果が「原稿」であれば、ステップS25で主
走査方向カウンタ1901,副走査方向カウンタ190
2それぞれの判定画素の座標に対応するメモリに1を加
算する。また、判定結果が「原稿」でなければステップ
S26へジャンプする。
Then, in step S22, the control signal of the tristate gate of the erroneous determination prevention circuit 114 is changed to OE1 =
'1', OE2 = '0', OE3 = '0', OE1 '=' 1 ', OE2' =
Set "0", OE3 '= "0", OE6 = "0", OE7 = "1", start scanning in step S23 to scan one line, and in step S24, by the method described above,
It is determined whether or not each pixel of the read image signal is a document. If the determination result is "original", the main scanning direction counter 1901 and the sub scanning direction counter 190 are checked in step S25.
2 1 is added to the memory corresponding to the coordinates of each determination pixel. If the determination result is not "original", the process jumps to step S26.

【0046】続いて、ステップS26で、1ラインの判
定が終了したか否かを判定して、未了であればステップ
S24へ戻り、また、終了であればステップS27へ進
む。1ラインの判定が終了すると、ステップS27で、
全面のスキャンが終了したか否かを判定して、未了であ
ればステップS23へ戻り、また、終了であればステッ
プS28へ進む。
Subsequently, in step S26, it is determined whether or not the determination for one line is completed. If not completed, the process returns to step S24, and if completed, the process proceeds to step S27. When the determination of one line is completed, in step S27,
It is determined whether or not the scanning of the entire surface is completed. If it is not completed, the process returns to step S23, and if it is completed, the process proceeds to step S28.

【0047】全面のスキャンが終了した場合、ステップ
S28で、主走査方向カウンタ1901,副走査方向カ
ウンタ1902それぞれの値と、電源投入時などにメモ
リ1903,1904それぞれに格納された値とから、
前述した方法によって原稿領域を抽出しその四隅の座標
を求める。その後、本実施例は原稿領域内の画像信号を
得るために再度スキャンを実行する。
When the scanning of the entire surface is completed, in step S28, from the values of the main scanning direction counter 1901 and the sub scanning direction counter 1902 and the values stored in the memories 1903 and 1904 when the power is turned on,
The document area is extracted by the method described above, and the coordinates of the four corners are obtained. Then, in this embodiment, the scan is performed again to obtain the image signal in the original area.

【0048】ステップS29で再び装置自体の初期設定
を実行する。例えば、ミラーユニット410などをホー
ムポジションにセットし、主走査方向カウンタ190
1,副走査方向カウンタ1902は0に初期化される。
続いて、ステップS30で、誤判定防止回路114のト
ライステートゲートの制御信号を、OE1=‘1’,OE2=
‘1’,OE3=‘1’, OE1'=‘1’,OE2'=‘1’,OE3'=
‘1’, OE6=‘1’,OE7=‘0’にセットして、ステップ
S31でスキャンを開始して1ラインをスキャンし、ス
テップS32で、読取画像信号の各画素に対して原稿領
域に含まれるか否かの判定を行う。判定結果が「領域
内」であればステップS33で‘1’を、「領域内」で
なければステップS34で‘0’を出力する。
In step S29, the initialization of the apparatus itself is executed again. For example, when the mirror unit 410 or the like is set at the home position, the main scanning direction counter 190
1, the sub-scanning direction counter 1902 is initialized to 0.
Then, in step S30, the control signal of the tri-state gate of the misjudgment prevention circuit 114 is changed to OE1 = '1', OE2 =
'1', OE3 = '1', OE1 '=' 1 ', OE2' = '1', OE3 '=
Set "1", OE6 = "1", OE7 = "0", start scanning in step S31 to scan one line, and in step S32, set each pixel of the read image signal in the original area. It is determined whether or not it is included. If the determination result is "inside the area", "1" is output in step S33, and if it is not "inside the area", "0" is output in step S34.

【0049】続いて、ステップS35で、1ラインの判
定が終了したか否かを判定して、未了であればステップ
S32へ戻り、また、終了であればステップS36へ進
む。1ラインの判定が終了すると、ステップS36で、
全面のスキャンが終了したか否かを判定して、未了であ
ればステップS31へ戻り、また、終了であれば誤判定
防止手順を終了する。
Subsequently, in step S35, it is determined whether or not the determination of one line is completed. If not completed, the process returns to step S32, and if completed, the process proceeds to step S36. When the determination of one line is completed, in step S36,
It is determined whether or not the scanning of the entire surface is completed. If it is not completed, the procedure returns to step S31, and if it is completed, the erroneous determination prevention procedure is completed.

【0050】なお、以上の説明および図においては、原
稿圧板438の傷や汚れについて言及したが、原稿台ガ
ラス401表面の傷や汚れについても全く同様である。
また、原稿圧板438の判定結果を記憶するタイミング
は、電源投入時だけに限定されるものではなく、例え
ば、本実施例のリセット時や、オペレータの指示による
任意の時点でもよい。
Although scratches and stains on the original pressure plate 438 have been mentioned in the above description and drawings, the same applies to scratches and stains on the surface of the original platen glass 401.
Further, the timing of storing the determination result of the document pressure plate 438 is not limited to the time of turning on the power, and may be, for example, the time of resetting in the present embodiment or any time point instructed by the operator.

【0051】以上説明したように、本実施例によれば、
初期設定において原稿圧板表面の画像を読取って、該画
像の特徴を記憶するので、原稿圧板個々の表面の特徴を
記憶でき誤判定を防止するとともに、記憶した特徴に基
づいて誤判定画素をキャンセルしながら原稿領域を抽出
するので、原稿圧板と原稿領域とを正しく判別すること
ができる。
As described above, according to this embodiment,
In the initial setting, the image on the surface of the original pressure plate is read and the characteristics of the image are stored. Therefore, the characteristics of the surface of each original pressure plate can be stored to prevent erroneous determination, and the erroneous determination pixels are canceled based on the stored features. However, since the original area is extracted, the original pressure plate and the original area can be correctly discriminated.

【0052】[0052]

【第2実施例】以下、本発明にかかる第2実施例の画像
読取装置を説明する。なお、第2実施例において、第1
実施例と略同様の構成については、同一符号を付して、
その詳細説明を省略する。図16は本実施例の空間周距
離算出回路112の構成例を示すブロック図である。
[Second Embodiment] An image reading apparatus according to a second embodiment of the present invention will be described below. In the second embodiment, the first
About the same configuration as the embodiment, the same reference numerals are given,
Detailed description thereof will be omitted. FIG. 16 is a block diagram showing a configuration example of the spatial circumference distance calculation circuit 112 of this embodiment.

【0053】同図において、221〜223はルックア
ップテーブルLUTで、例えばROMで構成する。LUT221
は、減算器204からアドレス端子Aへ入力された信号|
R-r|に対応する信号(R-r)2をデータ端子Dから出力す
る。以下同様に、LUT222は信号(G-g)2を、LUT223
は信号(B-b)2を出力する。以上説明したように、本実施
例によれば、第1実施例と同様の効果があるほか、空間
距離算出回路112における自乗演算を乗算器でなくRO
MなどのLUTで実現するので、よりコストを低減できる効
果がある。
In the figure, reference numerals 221 to 223 are lookup table LUTs, which are constituted by ROMs, for example. LUT221
Is the signal input to the address terminal A from the subtractor 204 |
The signal (Rr) 2 corresponding to Rr | is output from the data terminal D. Similarly, the LUT 222 outputs the signal (Gg) 2 to the LUT 223.
Outputs the signal (Bb) 2 . As described above, according to the present embodiment, in addition to the same effect as the first embodiment, the square calculation in the spatial distance calculation circuit 112 is performed by the RO instead of the multiplier.
Since it is realized by LUT such as M, it has the effect of further reducing the cost.

【0054】[0054]

【第3実施例】以下、本発明にかかる第3実施例の画像
読取装置を説明する。なお、第3実施例において、第1
実施例と略同様の構成については、同一符号を付して、
その詳細説明を省略する。個々の原稿圧板において、傷
や汚れが異なるのは当然のことであるが、色味も若干な
がら異なっている。従って、すべての原稿圧板を代表す
る色空間上で色味代表点Cや、色味ばらつき範囲λを定
めることは難しい。つまり、図17に示すように、原稿
圧板Aに対しては球SA(代表点C(r,g,b),ばらつき範囲
λ)が、原稿圧板Bに対しては球SB(代表点C'(r',g',
b'),ばらつき範囲λ')が最適である。
[Third Embodiment] An image reading apparatus according to a third embodiment of the present invention will be described below. In the third embodiment, the first
About the same configuration as the embodiment, the same reference numerals are given,
Detailed description thereof will be omitted. Obviously, each original plate has different scratches and stains, but the colors are slightly different. Therefore, it is difficult to determine the tint representative point C and the tint variation range λ in the color space that represents all the original pressure plates. That is, as shown in FIG. 17, a sphere S A (representative point C (r, g, b), variation range λ) for the original pressure plate A, and a sphere S B (representative point for the original pressure plate B). C '(r', g ',
b ') and variation range λ') are optimal.

【0055】そこで、本実施例は、電源投入の際などに
読取った原稿圧板438の画像信号を基に、原稿圧板4
38の代表点Cおよびばらつき範囲λを設定することに
よって、個々の原稿圧板に対応しようとするものであ
る。すなわち、原稿圧板438の画像信号の色空間上の
分布を調べ、該分布が最も集中する点を代表点Cとし、
R,G,Bそれぞれの標準偏差値を基にばらつき範囲λを決
定する。
Therefore, in this embodiment, based on the image signal of the document pressure plate 438 read when the power is turned on, the document pressure plate 4 is read.
By setting the representative point C of 38 and the variation range λ, it is intended to correspond to each original pressure plate. That is, the distribution of the image signals of the document pressure plate 438 in the color space is examined, and the point where the distribution is most concentrated is set as the representative point C,
The variation range λ is determined based on the standard deviation values of R, G, and B respectively.

【0056】図18は第3実施例の構成例を示すブロッ
ク図である。なお、本実施例は、図2に示した第1実施
例の構成に、その詳細を後述する二つのトライステート
ゲート,データ演算回路および閾値算出回路を追加した
ものであり、追加された構成について説明して他の構成
の説明は省略する。図18において、131,132は
トライステートゲートで、それぞれ信号OE4,OE5が‘0’
の場合に入力された信号を出力する。なお、信号OE4,OE
5は、電源投入直後などはそれぞれ‘0’,‘1’になり、
代表点Cおよびばらつき範囲λがセットされた後はそれ
ぞれ‘1’,‘0’になる。
FIG. 18 is a block diagram showing a configuration example of the third embodiment. The present embodiment is obtained by adding two tristate gates, a data operation circuit and a threshold value calculation circuit, the details of which will be described later, to the configuration of the first embodiment shown in FIG. However, the description of other configurations will be omitted. In FIG. 18, 131 and 132 are tristate gates, and the signals OE4 and OE5 are "0".
In the case of, the signal input is output. Signals OE4 and OE
5 becomes '0' and '1' immediately after turning on the power,
After the representative point C and the variation range λ are set, they become '1' and '0', respectively.

【0057】133はデータ計数回路で、トライステー
トゲート132へ介して入力されたRGBデータそれぞれ
について、例えば0から255の各レベルのデータ数を計
数して、RGBデータそれぞれについて頻度の最も高いレ
ベル、すなわち代表点C(r,g,b)を出力する。すなわち、
データ計数回路133は、RGBデータそれぞれについて
例えば256個のカウンタを備え、データの値に応じたカ
ウンタをカウントアップすることによって、最終的に、
入力画像全体のRGBデータそれぞれの数を計数するもの
である。
A data counting circuit 133 counts, for each of the RGB data input to the tri-state gate 132, the number of data of each level from 0 to 255, for example, and outputs the highest frequency level of each RGB data. That is, the representative point C (r, g, b) is output. That is,
The data counting circuit 133 includes, for example, 256 counters for each of the RGB data, and finally counts up the counter according to the value of the data, so that finally,
The number of each RGB data of the entire input image is counted.

【0058】134はばらつき範囲算出部で、データ計
数回路133の計数結果から算出したRGBデータそれぞ
れの標準偏差値の最大のものに基づいて、ばらつき範囲
λ2を決定する。なお、データ計数回路133の出力
は、図3または図16に示したレジスタ201〜203
へそれぞれセットされ、ばらつき範囲算出部134の出
力は、図4に示したレジスタ301へセットする。
A variation range calculator 134 determines the variation range λ 2 based on the maximum standard deviation value of the RGB data calculated from the counting result of the data counting circuit 133. The output of the data counting circuit 133 is the registers 201 to 203 shown in FIG.
Respectively, and the output of the variation range calculation unit 134 is set in the register 301 shown in FIG.

【0059】図19は電源投入時などにおける誤判定防
止手順の一例を示すフローチャートである。同図におい
て、電源が投入されると、ステップS11で装置自体の
初期設定を実行し、例えば、ミラーユニット410など
をホームポジションにセットし、主走査方向カウンタ1
901,副走査方向カウンタ1902,メモリ190
3,1904は0に初期化される。
FIG. 19 is a flow chart showing an example of an erroneous determination prevention procedure when the power is turned on. In the figure, when the power is turned on, the initial setting of the apparatus itself is executed in step S11, for example, the mirror unit 410 is set to the home position, and the main scanning direction counter 1
901, sub-scanning direction counter 1902, memory 190
3,1904 is initialized to 0.

【0060】続いて、ステップS12で、トライステー
トゲート131,132の制御信号をOE4=‘0’,OE5=
‘1’にセットして、ステップS13でスキャンを開始
して1ラインをスキャンする。続いて、ステップS14
で、データ計数回路133において、読取った原稿圧板
438のデータ分布を計数する。
Then, in step S12, the control signals of the tri-state gates 131 and 132 are changed to OE4 = '0', OE5 =.
Set to "1", and in step S13, scanning is started to scan one line. Then, step S14
Then, the data counting circuit 133 counts the data distribution of the read document pressure plate 438.

【0061】続いて、ステップS15で、1ラインの計
数が終了したか否かを判定して、未了であればステップ
S14へ戻り、また、終了であればステップS16へ進
む。1ラインの計数が終了した場合、ステップS16
で、全面のスキャンが終了したか否かを判定して、未了
であればステップS13へ戻り、また、終了であればス
テップS17へ進む。
Subsequently, in step S15, it is determined whether or not counting of one line is completed, and if not completed, the process returns to step S14, and if completed, the process proceeds to step S16. When the counting of one line is completed, step S16
Then, it is determined whether or not the scanning of the entire surface is completed. If it is not completed, the process returns to step S13, and if it is completed, the process proceeds to step S17.

【0062】全面のスキャンが終了した場合、ステップ
S17で空間距離算出回路112のレジスタ201〜2
03へ代表点Cをセットし、ステップS18で原稿判定
回路113のレジスタ301へばらつき範囲λ2をセッ
トし、ステップS19で、トライステートゲート13
1,132の制御信号をOE4=‘1’,OE5=‘0’にセット
する。
When the scanning of the entire surface is completed, the registers 201 to 2 of the spatial distance calculating circuit 112 are processed in step S17.
03, the representative point C is set, the variation range λ 2 is set in the register 301 of the document determination circuit 113 in step S18, and the tristate gate 13 is set in step S19.
The control signals of 1,132 are set to OE4 = '1' and OE5 = '0'.

【0063】以上によって、空間距離算出回路112の
レジスタ201〜203へ代表点Cが、原稿判定回路1
13のレジスタ301へばらつき範囲λ2がセットさ
れ、原稿圧板438の誤判定画素検出準備が整う。続い
て、ステップS20で、再び原稿圧板438をスキャン
して、読取った原稿圧板438の誤判定画素を検出した
後、誤判定防止手順を終了する。なお、同ステップは、
図14に示したステップS2〜S8と同様なので説明を
省略する。
As described above, the representative point C in the registers 201 to 203 of the spatial distance calculation circuit 112 is set to the original determination circuit 1.
The variation range λ 2 is set in the register 301 of No. 13, and the preparation for detecting the erroneously determined pixels of the document pressure plate 438 is completed. Subsequently, in step S20, the document pressure plate 438 is scanned again to detect erroneous determination pixels of the read document pressure plate 438, and then the erroneous determination prevention procedure ends. In addition, the same step
Since it is similar to steps S2 to S8 shown in FIG. 14, description thereof will be omitted.

【0064】以上によって、誤判定防止回路114のメ
モリ1903,1904には、原稿圧板438の誤判定
画素が記憶され、誤判定防止の準備が整う。以上説明し
たように、本実施例によれば、第1実施例と同様の効果
があるほか、原稿圧板438の代表値Cとそのばらつき
範囲λとを、予め求めて設定する必要がない上、修理な
どによって原稿圧板438が交換された場合でも、代表
値Cとそのばらつき範囲λを正しく設定できる。
As described above, the misjudgment pixels of the document pressure plate 438 are stored in the memories 1903 and 1904 of the misjudgment prevention circuit 114, and the preparation for the misjudgment prevention is completed. As described above, according to the present embodiment, in addition to the same effects as the first embodiment, it is not necessary to previously obtain and set the representative value C of the document pressure plate 438 and its variation range λ. Even if the original pressure plate 438 is replaced due to repair or the like, the representative value C and its variation range λ can be set correctly.

【0065】なお、本発明は、複数の機器から構成され
るシステムに適用しても、一つの機器からなる装置に適
用してもよい。また、本発明は、システムあるいは装置
にプログラムを供給することによって達成される場合に
も適用できることはいうまでもない。
The present invention may be applied to a system including a plurality of devices or an apparatus including a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0066】[0066]

【発明の効果】以上、本発明によれば、読取った画像情
報の特徴と、予め記憶した原稿圧板表面の画像情報の特
徴との比較結果を、主走査方向と副走査方向にそれぞれ
累積した結果と、予め、前記原稿圧板表面を読取った画
像情報について前記累積手段で累積された結果とに基づ
いて原稿領域を判定する画像読取装置を提供でき、例え
ば、原稿圧板上の傷や汚れを読取った原稿領域と誤判定
される画像情報をキャンセルして、原稿圧板と原稿領域
とを正しく判別する効果がある。
As described above, according to the present invention, the comparison results of the characteristics of the read image information and the previously stored characteristics of the image information on the surface of the original pressure plate are accumulated in the main scanning direction and the sub scanning direction, respectively. It is possible to provide an image reading apparatus that determines a document area based on the result of the image information obtained by previously reading the surface of the document pressure plate accumulated by the accumulating unit. For example, a scratch or stain on the document pressure plate is read. This has the effect of canceling image information that is erroneously determined as the original area and correctly determining the original pressure plate and the original area.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明にかかる一実施例の画像読取装置を備え
た複写機の構成例を示す装置概念図である。
FIG. 1 is a conceptual diagram of an apparatus showing a configuration example of a copying machine equipped with an image reading apparatus according to an embodiment of the present invention.

【図2】本実施例の原稿検知部の構成例を示すブロック
図である。
FIG. 2 is a block diagram illustrating a configuration example of a document detection unit according to the present exemplary embodiment.

【図3】図2の空間距離算出回路の構成例を示すブロッ
ク図である。
FIG. 3 is a block diagram showing a configuration example of a spatial distance calculation circuit in FIG.

【図4】図2の原稿判定回路113の構成例を示すブロ
ック図である。
FIG. 4 is a block diagram showing a configuration example of a document determination circuit 113 in FIG.

【図5】本実施例の色味情報による原稿判定原理を説明
する図である。
FIG. 5 is a diagram illustrating a principle of document determination based on tint information according to the present exemplary embodiment.

【図6】図2の空間周波数フィルタの構成例を示すブロ
ック図である。
FIG. 6 is a block diagram showing a configuration example of the spatial frequency filter of FIG.

【図7】図2の空間周波数フィルタの形を示す図であ
る。
7 is a diagram showing the shape of the spatial frequency filter of FIG.

【図8】図2の原稿判定回路119の構成例を示すブロ
ック図である。
FIG. 8 is a block diagram showing a configuration example of a document determination circuit 119 of FIG.

【図9】原稿圧板によって押圧された原稿をミラーユニ
ット側から視た状態の図である。
FIG. 9 is a view of a document pressed by a document pressure plate as viewed from the mirror unit side.

【図10】図6の空間周波数フィルタの各部における画
像信号の一例を示す図である。
10 is a diagram showing an example of an image signal in each unit of the spatial frequency filter of FIG.

【図11】本実施例の原稿圧板からの信号を強調する原
理をより一般的に説明する図である。
FIG. 11 is a diagram for more generally explaining the principle of emphasizing a signal from the document pressure plate of the present embodiment.

【図12】本実施例は原稿圧板に付いた傷や汚れの影響
を除去する方法を説明する図である。
FIG. 12 is a diagram illustrating a method of removing the influence of scratches and stains on the document pressure plate according to the present embodiment.

【図13】図2の誤判定防止回路の構成例を示すブロッ
ク図である。
FIG. 13 is a block diagram showing a configuration example of an erroneous determination prevention circuit in FIG.

【図14】本実施例の電源投入時などにおける誤判定防
止手順の一例を示すフローチャートである。
FIG. 14 is a flowchart showing an example of an erroneous determination prevention procedure when the power is turned on according to the present embodiment.

【図15】本実施例のコピー実行時などにおける誤判定
防止手順の一例を示すフローチャートである。
FIG. 15 is a flowchart showing an example of an erroneous determination prevention procedure at the time of executing copying according to the present embodiment.

【図16】本発明にかかる第2実施例の空間周距離算出
回路の構成例を示すブロック図である。
FIG. 16 is a block diagram showing a configuration example of a space circumferential distance calculation circuit according to a second embodiment of the present invention.

【図17】原稿圧板によって色味代表点が異なることを
示す図である。
FIG. 17 is a diagram showing that the representative color point is different depending on the original pressure plate.

【図18】本発明にかかる第3実施例の構成例を示すブ
ロック図である。
FIG. 18 is a block diagram showing a configuration example of a third embodiment according to the present invention.

【図19】第3実施例の電源投入時などにおける誤判定
防止手順の一例を示すフローチャートである。
FIG. 19 is a flowchart showing an example of an erroneous determination prevention procedure when the power is turned on in the third embodiment.

【図20】提案されている原稿の位置および寸法の検出
方法を説明する図である。
FIG. 20 is a diagram illustrating a proposed method of detecting the position and size of a document.

【図21】誤判定の一例を示す図である。FIG. 21 is a diagram showing an example of erroneous determination.

【符号の説明】[Explanation of symbols]

401 原稿台ガラス 402 原稿 437 原稿検知部 438 原稿圧板 112 空間距離算出回路 113 原稿判定回路 114 誤判定防止回路 118 空間周波数フィルタ 119 原稿判定回路 120 ANDゲート 133 データ計数回路 134 ばらつき範囲算出部 401 Document Platen Glass 402 Document 437 Document Detection Unit 438 Document Pressure Plate 112 Spatial Distance Calculation Circuit 113 Document Determination Circuit 114 Misjudgment Prevention Circuit 118 Spatial Frequency Filter 119 Document Determination Circuit 120 AND Gate 133 Data Counting Circuit 134 Variation Range Calculation Unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 原稿圧板によって押圧された原稿を光学
的に走査して該原稿の画像を読取る画像読取装置であっ
て、 前記原稿圧板表面の画像情報の特徴を予め記憶する第1
の記憶手段と、 読取った画像情報の特徴を抽出する抽出手段と、 前記抽出手段の抽出結果と前記第1の記憶手段に記憶さ
れた特徴とを比較する比較手段と、 前記比較手段の比較結果を主走査方向,副走査方向にそ
れぞれ累積する累積手段と、 前記累積手段の累積結果を記憶する第2の記憶手段と、 前記累積手段の累積結果と前記第2の記憶手段に記憶さ
れた累積結果とに基づいて原稿領域を判定する判定手段
とを備え、 第2の記憶手段は、予め、前記原稿圧板表面を読取った
画像情報について前記累積手段で累積された結果を記憶
することを特徴とする画像読取装置。
1. An image reading device for optically scanning a document pressed by a document pressure plate to read an image of the document, the first image reading device pre-storing characteristics of image information on the surface of the document pressure plate.
Storage means, extraction means for extracting the characteristics of the read image information, comparison means for comparing the extraction result of the extraction means with the characteristics stored in the first storage means, comparison results of the comparison means Accumulating means for accumulating in each of the main scanning direction and the sub-scanning direction, second storage means for storing the accumulation result of the accumulating means, accumulation result of the accumulating means and accumulation stored in the second storing means. The second storage means stores, in advance, a result accumulated by the accumulating means with respect to image information obtained by reading the surface of the original pressure plate. Image reading device.
【請求項2】 前記第1の記憶手段は前記原稿圧板表面
の色味情報および空間周波数情報を記憶し、 前記抽出手段は画像情報の色味情報および空間周波数情
報を抽出することを特徴とする請求項1記載の画像読取
装置。
2. The first storage means stores tint information and spatial frequency information on the surface of the original pressure plate, and the extracting means extracts tint information and spatial frequency information of image information. The image reading apparatus according to claim 1.
【請求項3】 前記判定手段は前記累積手段の累積結果
と前記第2の記憶手段に記憶された累積結果との差に基
づいて原稿領域を判定することを特徴とする請求項1記
載の画像読取装置。
3. The image according to claim 1, wherein the determination unit determines the document area based on a difference between the cumulative result of the cumulative unit and the cumulative result stored in the second storage unit. Reader.
JP5259687A 1993-10-18 1993-10-18 Image reader Withdrawn JPH07115514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5259687A JPH07115514A (en) 1993-10-18 1993-10-18 Image reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5259687A JPH07115514A (en) 1993-10-18 1993-10-18 Image reader

Publications (1)

Publication Number Publication Date
JPH07115514A true JPH07115514A (en) 1995-05-02

Family

ID=17337526

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5259687A Withdrawn JPH07115514A (en) 1993-10-18 1993-10-18 Image reader

Country Status (1)

Country Link
JP (1) JPH07115514A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7539344B2 (en) 2002-12-20 2009-05-26 Fujitsu Limited Boundary detection method between areas having different features in image data
JP2017515401A (en) * 2014-04-29 2017-06-08 ヒューレット−パッカード デベロップメント カンパニー エル.ピー.Hewlett‐Packard Development Company, L.P. Scanner with background

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7539344B2 (en) 2002-12-20 2009-05-26 Fujitsu Limited Boundary detection method between areas having different features in image data
JP2017515401A (en) * 2014-04-29 2017-06-08 ヒューレット−パッカード デベロップメント カンパニー エル.ピー.Hewlett‐Packard Development Company, L.P. Scanner with background
US10009510B2 (en) 2014-04-29 2018-06-26 Hewlett-Packard Development Company, L.P. Scanner with a background

Similar Documents

Publication Publication Date Title
US5434683A (en) Color image editing apparatus
RU2414088C1 (en) Image processing apparatus, image processing method, computer programme and storage medium
JP2000316097A (en) Image processing method and image processor
US20070236707A1 (en) Image processing apparatus, image processing method and image processing program
JP2001128013A (en) Processing method for color picture
JP3882803B2 (en) Image processing apparatus and image processing method
JP2002271616A (en) Image processing unit and imaging device
JP2002281313A (en) Image processor and image forming apparatus having the same
JP3262326B2 (en) Image processing apparatus and image processing method
JP2001036752A (en) Picture processor and its method
JPH05252527A (en) Picture processor
JPH07115514A (en) Image reader
JP2008103917A (en) Image processor
JP3334925B2 (en) Image reading device
JP2000358166A (en) Image process, image reader with the processor, image forming device, image processing method and computer readable storage medium storing image processing procedure
JP2002262078A (en) Image processing unit and image forming device
JPH0541796A (en) Copying machine
JP3449502B2 (en) Image processing device
JP2002262035A (en) Image reader
JP2738412B2 (en) Color image information processing device
JP2002262077A (en) Image processing unit and image forming device
JP3316077B2 (en) Background density level detector
JP3700456B2 (en) Color image processing device
JP3245154B2 (en) Image processing device
JPH0556287A (en) Full color image reproducing device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20001226