JP3538939B2 - Document size detector - Google Patents

Document size detector

Info

Publication number
JP3538939B2
JP3538939B2 JP01372595A JP1372595A JP3538939B2 JP 3538939 B2 JP3538939 B2 JP 3538939B2 JP 01372595 A JP01372595 A JP 01372595A JP 1372595 A JP1372595 A JP 1372595A JP 3538939 B2 JP3538939 B2 JP 3538939B2
Authority
JP
Japan
Prior art keywords
pixel
document
pixels
reference pixel
size
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
JP01372595A
Other languages
Japanese (ja)
Other versions
JPH08204911A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP01372595A priority Critical patent/JP3538939B2/en
Publication of JPH08204911A publication Critical patent/JPH08204911A/en
Application granted granted Critical
Publication of JP3538939B2 publication Critical patent/JP3538939B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、デジタル複写機やファ
クシミリ等の画像読取装置における原稿サイズ検知装置
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document size detecting device in an image reading device such as a digital copying machine or a facsimile.

【0002】[0002]

【従来の技術】一般に、複写機等にセットされる原稿
は、A版やB版といった具合に規格化された所定の大き
さをもっている。このことから原稿サイズが特定されれ
ば、自動的に複写用紙のサイズを設定できるようになる
ため、現在では、複写機の多くに原稿サイズ検知装置が
備えられている。この種の原稿サイズ検知装置として
は、原稿面に光を照射した際に、その反射光を検知する
フォトセンサを各原稿サイズに対応した位置に複数個配
置し、これらのフォトセンサの各出力状態に基づいて行
うのが一般的であった。しかしながら、各々の原稿サイ
ズ毎にフォトセンサを配置したのではコスト高となる。
そのため、CCDイメージセンサ等の光電変換素子を用
いて画像の読み取りを行うデジタル複写機にあっては、
CCDイメージセンサを利用して主走査方向の原稿幅を
検出し、この検出した原稿幅とフォトセンサ出力とによ
って原稿サイズを検知するようにしたものが知られてい
る。具体的には、プラテンガラス上にセットされた原稿
の画像を、CCDイメージセンサを備えた画像読取ユニ
ットによって光学的に読み取り、その読み取った所定の
1ライン分の画像データに閾値を設定して2値化すると
ともに、2値化後の濃度レベルの変化点を原稿端の位置
として検出し、その検出出力に基づいて原稿サイズを検
知するのが一般的である。
2. Description of the Related Art Generally, an original set in a copying machine or the like has a predetermined size standardized to A or B plate. For this reason, if the document size is specified, the size of the copy sheet can be automatically set. Therefore, many copy machines now include a document size detection device. In this type of document size detection device, when light is irradiated on a document surface, a plurality of photosensors that detect reflected light are arranged at positions corresponding to each document size, and the output state of each of these photosensors is changed. It was generally performed based on. However, arranging a photo sensor for each document size increases costs.
Therefore, in a digital copying machine that reads an image using a photoelectric conversion element such as a CCD image sensor,
2. Description of the Related Art There is known an apparatus which detects a document width in a main scanning direction using a CCD image sensor and detects a document size based on the detected document width and a photosensor output. Specifically, an image of a document set on a platen glass is optically read by an image reading unit having a CCD image sensor, and a threshold is set for the read one line of image data to set a threshold. Generally, the binarization is performed, and a change point of the density level after binarization is detected as the position of the document edge, and the document size is generally detected based on the detected output.

【0003】[0003]

【発明が解決しようとする課題】ところが、単に濃度レ
ベルの変化点を原稿端として検出したのでは、数mm程
度の異物(紙片や汚れ等)がプラテンガラス上に付着し
ていた場合、そこで濃度レベルが変化するため、本来原
稿端ではない部分(紙片や汚れ等の付着部分)を原稿端
と認識してしまい、原稿サイズの誤検知が発生する虞れ
があった。この対策としては、原稿領域画素がある程度
連続的に存在することを認識することによって原稿領域
と原稿外領域との境界画素、すなわち原稿端の位置を検
出し、この原稿端の位置に基づいて原稿サイズを検知す
る方法も考えられる。すなわち、原稿外領域に原稿端検
出用の基準画素を設定するとともに、その基準画素から
原稿領域側の向かって所定画素おきに画素の値(濃度レ
ベル)を検出していき、例えば原稿外領域が「黒」で原
稿領域が「白」となる場合は「白」の画素値が連続して
規定回数検出された時点で基準画素に最も近い画素を原
稿端として認識するものである。
However, if a change point of the density level is simply detected as a document edge, if a foreign matter (paper piece, dirt, etc.) of about several mm adheres to the platen glass, the density of the foreign matter is detected there. Since the level changes, a portion that is not originally a document edge (a portion to which a piece of paper, dirt, or the like is attached) is recognized as a document edge, and there is a risk that erroneous detection of the document size may occur. As a countermeasure , a boundary pixel between the original area and the outside area, that is, the position of the original end is detected by recognizing that the original area pixels exist to some extent continuously, and the original is determined based on the position of the original end. A method of detecting the size is also conceivable. That is, a reference pixel for detecting the document edge is set in the area outside the document, and the pixel value (density level) is detected every predetermined pixel from the reference pixel toward the document area. When the document area is “white” in “black”, the pixel closest to the reference pixel is recognized as the document edge when the pixel value of “white” is continuously detected for the specified number of times.

【0004】しかしながら、この原稿サイズの検知方法
にあっては、数mm程度の比較的大きな異物に対しては
顕著な効果が得られるものの、例えば目で確認しにくい
極小(およそ0.3mm以下)の異物が画素値の検出点
に存在した場合、本来では連続すべきデータが不連続と
して検出されたり、逆に不連続となるべきデータが連続
して検出され、これによって原稿サイズの誤検知が生じ
るという問題があった。また、CCDイメージセンサの
劣化等によって出現した孤立点が画素値の検出点に存在
した場合にも、そこの画素値が常に孤立点の濃度レベル
に依存してしまい、これも原稿サイズの誤検知を発生さ
せる一つの要因になっていた。
However, in this document size detection method, although a remarkable effect can be obtained for a relatively large foreign matter of about several mm, for example, a very small foreign matter (about 0.3 mm or less) which is difficult to visually confirm. If there is any foreign matter at the pixel value detection point, data that should be continuous should be detected as discontinuous, or data that should be discontinuous should be detected continuously, which could lead to false detection of the original size. There was a problem that occurred. Further, even when an isolated point that appears due to deterioration of the CCD image sensor exists at a pixel value detection point, the pixel value always depends on the density level of the isolated point. Was one of the factors that caused this.

【0005】本発明は、上記問題を解決するためになさ
れたもので、その目的とするところは、プラテンガラス
(原稿台)への異物の付着や孤立点の出現などに惑わさ
れることなく、原稿サイズを正確に検知することができ
る原稿サイズ検知装置を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and an object of the present invention is to prevent a foreign object from adhering to a platen glass (original platen) and the appearance of an isolated point without being misled. An object of the present invention is to provide a document size detecting device capable of accurately detecting a size.

【0006】[0006]

【課題を解決するための手段】本発明は、上記目的を達
するするためになされてもので、原稿の画像情報を光学
的に読み取る画像読取ユニットにセットされた原稿のサ
イズを検知する原稿サイズ検知装置において、画像読取
ユニットによって読み取られた所定の1ライン分の画像
データの画素列に対して原稿外領域に原稿端検出用の基
準画素を設定する基準画素設定手段と、この基準画素設
定手段により設定された基準画素から原稿領域側に向か
って所定画素おきに画素の値を検出する画素値検出手段
と、基準画素と異なる濃度値が所定数連続する画素を抽
出する画素抽出手段と、この画素抽出手段により抽出さ
れた画素の中から基準画素に近い画素を原稿端として認
識する原稿端認識手段と、原稿端認識手段により認識さ
れた原稿端の位置に基づいて原稿サイズを判別する原稿
サイズ判別手段とを備えた構成となっている。
SUMMARY OF THE INVENTION The present invention has been made in order to achieve the above-mentioned object, and therefore a document size detecting device for detecting the size of a document set in an image reading unit for optically reading image information of the document. In the apparatus, reference pixel setting means for setting a reference pixel for detecting a document edge in a non-document area with respect to a pixel row of image data for a predetermined line read by the image reading unit, and the reference pixel setting means Pixel value detection means for detecting a value of a pixel every predetermined pixel from the set reference pixel toward the document area side; pixel extraction means for extracting a pixel having a density value different from the reference pixel by a predetermined number of consecutive pixels; recognizing document end recognition means as document end pixels close to the reference pixels among the pixels extracted by the extraction means, the position of the recognized document edge by the sheet edge recognition means Based on it has a configuration including a document size determination means for determining document size.

【0007】[0007]

【作用】本発明の原稿サイズ検知装置においては、画像
読取ユニットによって読み取られた所定の1ライン分の
画像データの画素列に対して原稿端検出用の基準画素
設定され、この基準画素から原稿領域側に向かって所定
画素おきに各々の画素の値が検出されていく。このと
き、基準画素と異なる濃度値が所定数連続する画素が抽
出された場合は、それらの画素の中から基準画素に近い
画素が原稿外領域と原稿領域との境界画素となるため、
これが原稿端として認識されるとともに、その原稿端の
位置から原稿サイズが判別される。
[Action] In the document size detecting device of the present invention, the image reading reference pixels for document end detection for a pixel column of the predetermined image data for one line read by the unit
Then, the value of each pixel is detected every predetermined pixel from the reference pixel toward the document area. At this time, if a predetermined number of consecutive pixels having different density values from the reference pixel are extracted, a pixel close to the reference pixel among those pixels is a boundary pixel between the non-document area and the document area. For,
This is recognized as a document edge, and the size of the document is determined from the position of the document edge.

【0008】[0008]

【実施例】以下、例えばデジタル複写機に適用した場合
の本発明の実施例につき、図面を参照しながら詳細に説
明する。なお、本発明に係わる原稿サイズ検知装置は、
複写機への適用に限定されるものではなく、原稿の画像
情報を光学的に読み取る画像読取ユニットを備えた電子
機器全般に適用できるものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention applied to, for example, a digital copying machine will be described below in detail with reference to the drawings. Note that the document size detection device according to the present invention includes:
The present invention is not limited to the application to a copying machine, but can be applied to all electronic devices having an image reading unit that optically reads image information of a document.

【0009】図1は、本発明が適用されるデジタル複写
機の概略構成図である。図1において、CCDイメージ
センサ1から出力されるアナログ画像信号は、画像デー
タ生成回路2にてデジタルデータに変換されたのち、画
像データとして補正/フィルタ回路3に供給される。補
正/フィルタ回路3は、入力される画像データに対して
シェーディング補正を行い、さらにシェーディング補正
後の画像データに対してフィルタリング処理を行うもの
である。編集加工回路4は、例えばフィルタリング後の
画像データに対して縮小や拡大などを編集加工を行うも
ので、この処理では画像データの記憶手段としてRAM
5が用いられる。所定の編集加工が施された画像データ
は出力インターフェイス回路6に送られ、そこからプリ
ンタ等の画像形成部7に供給される。
FIG. 1 is a schematic configuration diagram of a digital copying machine to which the present invention is applied. In FIG. 1, an analog image signal output from a CCD image sensor 1 is converted into digital data by an image data generation circuit 2 and then supplied to a correction / filter circuit 3 as image data. The correction / filter circuit 3 performs shading correction on the input image data, and performs a filtering process on the image data after the shading correction. The editing processing circuit 4 performs, for example, editing processing such as reduction or enlargement on the filtered image data. In this processing, a RAM is used as image data storage means.
5 is used. The image data that has been subjected to the predetermined editing processing is sent to the output interface circuit 6, and is supplied therefrom to the image forming unit 7 such as a printer.

【0010】CPU8は、データ/アドレスバス(CP
Uバス)9を介して上述した各回路の制御を行うもの
で、そのための制御プログラムがROM10に格納され
ている。また、CPU8の各種の処理動作(例えばシェ
ーディング補正処理)にあたっては、データの一時的な
保存にRAM11が用いられる。このCPU8は、光学
系を駆動するキャリッジのキャリッジモータ12に対
し、モータドライバ回路13を介してモータドライブ信
号を、また図示せぬ搬送ローラの駆動源となる搬送モー
タに対し、モータドライバ回路を介してモータドライブ
信号をそれぞれ供給し、これによって通常の原稿画像の
読取処理を実行する他、後述する画像読取ユニットにセ
ットされた原稿サイズの検知処理を行う。この原稿サイ
ズの検知処理については後段で詳しく説明する。
The CPU 8 has a data / address bus (CP)
The above-mentioned circuits are controlled via a U bus 9, and a control program therefor is stored in a ROM 10. In various processing operations (for example, shading correction processing) of the CPU 8, the RAM 11 is used for temporarily storing data. The CPU 8 receives a motor drive signal via a motor driver circuit 13 for a carriage motor 12 of a carriage for driving an optical system, and receives a motor drive signal via a motor driver circuit for a transport motor serving as a drive source for a transport roller (not shown). In addition to supplying a motor drive signal, a normal document image reading process is performed, and a document size detection process set in an image reading unit described later is performed. This document size detection processing will be described later in detail.

【0011】図2はデジタル複写機における画像読取ユ
ニットの概略構成図である。図示のように、ユニット本
体30の上面には、原稿Pを載置するためのプラテンガ
ラス(原稿台)31が設けられており、そこに載置され
た原稿Pはプラテンカバー32によって上方から押え込
まれるようになっている。プラテンカバー32は、その
下面側に白色の原稿押え面を有しており、またユニット
本体30に対しては一端側を回動支点に開閉自在に取り
付けられている。
FIG. 2 is a schematic configuration diagram of an image reading unit in a digital copying machine. As shown in the figure, a platen glass (document table) 31 on which the document P is placed is provided on the upper surface of the unit body 30, and the document P placed there is pressed from above by a platen cover 32. Is to be included. The platen cover 32 has a white document pressing surface on the lower surface thereof, and is attached to the unit main body 30 at one end side so as to be freely opened and closed at a pivot point.

【0012】一方、プラテンガラス31の下方には、プ
ラテンガラス31上に載置された原稿Pに光を照射する
ための露光ランプ33と、原稿Pからの反射光を所定の
方向に反射させる反射ミラー34,35と、ミラーから
の反射光を結像レンズ36を介して取り込むCCDイメ
ージセンサ1とからなる光学系が設けられている。こう
した光学系の構成要素のうち、露光ランプ33と反射ミ
ラー34,35とは図示せぬキャリッジに搭載されてお
り、キャリッジとともに図中左右方向、すなわち副走査
方向に移動しつつ、原稿面を光学走査し得る構成となっ
ている。また、CCDイメージセンサ1としては多数の
画素が直線状に配列されたラインセンサが採用されてお
り、上記副走査方向と直交する方向、すなわち主走査方
向に対しては固定状態のままで電気的に走査し得る構成
となっている。
On the other hand, below the platen glass 31, an exposure lamp 33 for irradiating the original P placed on the platen glass 31 with light, and a reflection lamp for reflecting the reflected light from the original P in a predetermined direction. An optical system including mirrors 34 and 35 and a CCD image sensor 1 that captures reflected light from the mirrors via an imaging lens 36 is provided. Among the components of such an optical system, the exposure lamp 33 and the reflection mirrors 34 and 35 are mounted on a carriage (not shown), and move the document surface optically with the carriage in the horizontal direction in the figure, that is, in the sub-scanning direction. It is configured to be able to scan. The CCD image sensor 1 employs a line sensor in which a large number of pixels are arranged in a straight line, and is electrically fixed in a direction orthogonal to the sub-scanning direction, that is, in the main scanning direction. It is configured so that scanning can be performed.

【0013】これに加えて、装置本体30の上部には、
プラテンカバー32と一体構造で原稿送り機構37が取
り付けられている。この原稿送り機構37は、原稿Pを
セットするための原稿トレイ38と、この原稿トレイ3
8から一枚ずつ分離された原稿Pを所定の搬送経路に沿
って給送する搬送ローラ39と、原稿トレイ38から繰
り出された原稿Pの先端位置を検知する原稿検知センサ
(不図示)とを有しており、原稿トレイ38から繰り出
された原稿Pは搬送ローラ39の回転によって給送され
るようになっている。
In addition to this, on the upper part of the apparatus main body 30,
A document feed mechanism 37 is mounted integrally with the platen cover 32. The document feed mechanism 37 includes a document tray 38 for setting a document P, and a document tray 3.
A conveyance roller 39 for feeding the originals P separated one by one from the sheet tray 8 along a predetermined conveyance path, and an original detection sensor (not shown) for detecting the leading end position of the originals P fed from the original tray 38. The document P fed from the document tray 38 is fed by the rotation of the transport roller 39.

【0014】上記構成からなるデジタル複写機において
は、装置電源が投入(ON)されると、図示せぬキャリ
ッジに搭載された露光ランプ33及び反射ミラー34,
35等を含む光学系が主走査原稿読取位置に移動する。
そして、この光学系がプラテンガラス31上にセットさ
れた原稿Pを光学走査することにより、その原稿画像が
CCDイメージセンサ1に取り込まれ、そこで光電変換
されてアナログ画像信号に変換される。このアナログ画
像信号は、画像データ生成回路2によってデジタルデー
タに変換され、さらに変換後の画像データは、補正/フ
ィルタ回路3及び編集加工回路4にてシェーディング補
正、フィルタリング処理、縮小/拡大等の処理がなされ
たのち、出力インターフェイス回路6を介して画像形成
部7に与えられ、そこで複写用紙上に印字形成される。
In the digital copying machine having the above configuration, when the apparatus power is turned on (ON), the exposure lamp 33 and the reflection mirror 34 mounted on a carriage (not shown) are provided.
The optical system including 35 moves to the main scanning original reading position.
Then, the optical system optically scans the original P set on the platen glass 31, and the original image is captured by the CCD image sensor 1, where it is photoelectrically converted and converted into an analog image signal. The analog image signal is converted into digital data by the image data generation circuit 2, and the converted image data is processed by the correction / filter circuit 3 and the editing / processing circuit 4 such as shading correction, filtering processing, and reduction / enlargement. After that, the image data is supplied to the image forming unit 7 via the output interface circuit 6, where the image is formed on a copy sheet.

【0015】次に、原稿画像の読み取りに先立って行わ
れる原稿サイズの検知処理について説明する。この原稿
サイズの検知処理はCPU8によって行われるものであ
り、その検知処理のための機能ブロック図を図3に示
す。図3において、RAM5には上記画像読取ユニット
によって読み取られた1ライン分の画像データが記憶さ
れる。このRAM5に記憶される記憶内容は、図8に示
すように、主走査方向Xにならって規定された読取ライ
ンL上の画像データとなる。一般に、原稿としては白色
系のものが使用されるため、原稿サイズ検知時の画像読
取動作はプラテンカバー32が閉じかけの状態で行われ
る。したがって、RAM5に記憶される画像データにお
いては、プラテンカバー32が未だ開いた状態にあって
反射光がないことから、原稿外領域の背景色が「黒」の
データとなり、原稿領域が「白」のデータとなる。
Next, a description will be given of a document size detection process performed prior to reading a document image. This document size detection process is performed by the CPU 8, and a functional block diagram for the detection process is shown in FIG. In FIG. 3, the RAM 5 stores one line of image data read by the image reading unit. The storage content stored in the RAM 5 is image data on the read line L defined along the main scanning direction X, as shown in FIG. Generally, a white document is used as a document. Therefore, the image reading operation at the time of document size detection is performed with the platen cover 32 being closed. Therefore, in the image data stored in the RAM 5, since the platen cover 32 is still open and there is no reflected light, the background color of the area outside the original is "black" and the original area is "white". Data.

【0016】基準画素設定手段40は、RAM5に記憶
された画像データの画素列に対して原稿外領域に原稿端
検出用の基準画素を複数個設定するもので、これは例え
ば、RAM5内の画素列に対して基準画素の位置を指定
する基準画素設定部41と、この基準画素設定部41に
よって指定された基準画素を抽出して、その画素値(濃
度レベル)を出力する基準画素出力部42とから構成さ
れる。画素値検出手段43は、上記基準画素設定手段4
0によって設定された複数個の基準画素から原稿領域側
に向かって所定画素おきに比較画素(画素)の値を検出
するもので、これは例えば、RAM5内の画素列に対し
て上記基準画素を基点に比較画素の位置を指定する比較
画素設定部44と、この比較画素設定部44によって指
定された比較画素を抽出して、その画素値(濃度レベ
ル)を出力する基準画素出力部45とから構成される。
The reference pixel setting means 40 sets a plurality of reference pixels for detecting a document edge in a region outside the document with respect to a pixel row of the image data stored in the RAM 5. A reference pixel setting unit 41 that specifies a position of a reference pixel with respect to a column, and a reference pixel output unit 42 that extracts a reference pixel specified by the reference pixel setting unit 41 and outputs the pixel value (density level). It is composed of The pixel value detecting means 43 is provided with the reference pixel setting means 4.
The value of the comparison pixel (pixel) is detected every predetermined pixel from the plurality of reference pixels set by 0 toward the document area side. A comparison pixel setting unit 44 that specifies the position of the comparison pixel as a base point, and a reference pixel output unit 45 that extracts the comparison pixel specified by the comparison pixel setting unit 44 and outputs the pixel value (density level) Be composed.

【0017】さらに具体的に説明すると、先ず、基準画
素設定手段40は、図4(a),(b)に示すように、
主走査方向の原稿先端側と原稿後端側においてそれぞれ
原稿外領域に複数個、図例では5個の基準画素(0〜4
番)を基準画素設定部41にて指定するとともに、各々
の基準画素の画素値を基準画素出力部42にて検出し、
これを後述する比較手段46に供給する。一方、画素値
検出手段43は、個々の基準画素(0〜4番)から原稿
領域側に向かって所定画素おき、例えば16画素→8画
素→8画素・・→8画素おきにそれぞれ比較画素(16
〜20、24〜28、32〜36、40〜44、48〜
52、56〜60番)を比較画素設定部44にて指定す
るとともに、各々の比較画素の画素値を比較画素出力部
45にて検出し、これを後述する比較手段46に供給す
る。
More specifically, first, the reference pixel setting means 40, as shown in FIGS.
A plurality of, in the example shown, five reference pixels (0 to 4)
No.) is designated by the reference pixel setting unit 41, and the pixel value of each reference pixel is detected by the reference pixel output unit 42.
This is supplied to the comparing means 46 described later. On the other hand, the pixel value detection unit 43 sets the comparison pixels (every 16 pixels → 8 pixels → 8 pixels... → 8 pixels) from the respective reference pixels (0 to 4) toward the document area side. 16
-20, 24-28, 32-36, 40-44, 48-
52, 56 to 60) are designated by the comparison pixel setting unit 44, and the pixel value of each comparison pixel is detected by the comparison pixel output unit 45, and is supplied to the comparison unit 46 described later.

【0018】比較手段46は、基準画素設定手段40か
ら供給された基準画素と画素値検出手段43から供給さ
れた比較画素とを比較する。ちなみに本実施例において
は、先の図4で示したように、基準画素設定手段40か
ら供給される複数個の基準画素(0〜4番)のうち、1
個の基準画素、例えば0番の基準画素に対して16、2
4、32、40、48、56番といった計6個の比較画
素が画素値検出手段43から供給されるようになってい
るため、基準画素1個に対してそれぞれ6回の比較動作
が行われることになる。すなわち、1番の基準画素に対
しては17、25、33、41、49、57番の比較画
素、2番の比較画素に対しては18、26、34、4
2、50、58番の比較画素、3番の基準画素に対して
は19、27、35、43、51、59番の比較画素、
4番の比較画素に対しては20、28、36、44、5
2、60番の比較画素が比較される。
The comparing means 46 compares the reference pixel supplied from the reference pixel setting means 40 with the comparison pixel supplied from the pixel value detecting means 43. Incidentally, in this embodiment, as shown in FIG. 4, one of the plurality of reference pixels (0 to 4) supplied from the reference pixel
16, 2 for the 0th reference pixel, for example,
Since a total of six comparison pixels such as Nos. 4, 32, 40, 48, and 56 are supplied from the pixel value detection unit 43, six comparison operations are performed for each reference pixel. Will be. That is, for the first reference pixel, 17, 25, 33, 41, 49, and 57 comparison pixels, and for the second comparison pixel, 18, 26, 34, and 4
No. 2, 50, and 58 comparative pixels, No. 19, 27, 35, 43, 51, and 59 comparative pixels for the third reference pixel;
20, 28, 36, 44, 5 for the fourth comparison pixel
The comparison pixels No. 2 and 60 are compared.

【0019】画素抽出手段47は、基準画素と異なる濃
度値が所定数連続する画素(比較画素)を抽出するもの
である。具体的には図4に示すように、基準画素設定手
段40にて設定された複数個の基準画素(0〜4番)が
例えば「黒」のデータであった場合に、それらの基準画
素(0〜4番)から設定された個々の比較画素(16〜
20、24〜28、32〜36、40〜44、48〜5
2、56〜60番の画素)が全て「白」のデータである
条件を満たす画素を抽出する。なお、この画素の抽出過
程において、上述した抽出条件が満たされなかった場合
は、その都度、基準画素設定手段40において基準画素
の設定変更(位置の変更)がなされ、それに基づいて画
素値検出手段43においても比較画素の設定変更がなさ
れる。ちなみに本実施例においては、上記抽出条件が満
たされなかった場合、基準画素の位置を原稿領域側に向
かって1画素ずつずらし、これにしたがって比較画素の
位置も1画素ずつずらすようにしている。
The pixel extracting means 47 extracts a pixel (comparative pixel) having a predetermined number of consecutive density values different from the reference pixel. Specifically, as shown in FIG. 4, when the plurality of reference pixels (No. 0 to No. 4) set by the reference pixel setting unit 40 are, for example, “black” data, the reference pixels (No. 0 to 4), the individual comparison pixels (16 to 4)
20, 24 to 28, 32 to 36, 40 to 44, 48 to 5
Pixels satisfying the condition that all the data are the “white” data are extracted. In the process of extracting pixels, if the above-described extraction conditions are not satisfied, the reference pixel setting means 40 changes the setting (position change) of the reference pixel each time. At 43 also, the setting of the comparison pixel is changed. By the way, in this embodiment, when the above extraction condition is not satisfied, the position of the reference pixel is shifted by one pixel toward the document area side, and the position of the comparison pixel is shifted by one pixel accordingly.

【0020】原稿端認識手段48は、上記画素抽出手段
47により抽出された画素の中から基準画素に最も近い
画素を原稿端として認識するものである。さらに図4を
用いて詳述すると、基準画素設定手段40にて設定され
た複数個の基準画素(0〜4番)に対し、上記抽出条件
を満たす画素(16〜20、24〜28、32〜36、
40〜44、48〜52、56〜60番)が画素抽出手
段47において抽出された場合は、これらの画素(16
〜20、24〜28、32〜36、40〜44、48〜
52、56〜60番)のうち、最も基準画素(例えば、
0番)に近い画素(16〜20番)の中から、より基準
画素(0番)に近い16番目の画素を、図8に示す原稿
端の位置X1,X2として認識する。原稿サイズ判別手
段49は、上記原稿端認識手段48により認識された原
稿端の位置X1,X2から主走査方向の原稿幅を求める
とともに、図示せぬフォトセンサから供給される情報か
ら副走査方向の原稿幅を求め、これによって両走査方向
の原稿幅から原稿サイズを判別する。
The document edge recognition means 48 recognizes a pixel closest to the reference pixel among the pixels extracted by the pixel extraction means 47 as a document edge. More specifically, referring to FIG. 4, pixels (16 to 20, 24 to 28, and 32) satisfying the above-described extraction conditions are set for a plurality of reference pixels (0 to 4) set by the reference pixel setting unit 40. ~ 36,
When pixels 40 to 44, 48 to 52, and 56 to 60 are extracted by the pixel extracting means 47, these pixels (16
-20, 24-28, 32-36, 40-44, 48-
52, 56 to 60), the reference pixel (for example,
The 16th pixel closer to the reference pixel (0th) among the pixels (16th to 20th) close to the 0th (0th) is recognized as the document end positions X1 and X2 shown in FIG. The document size discriminating means 49 obtains the document width in the main scanning direction from the document end positions X1 and X2 recognized by the document edge recognizing means 48, and obtains the document width in the sub-scanning direction from information supplied from a photo sensor (not shown). The document width is determined, and the document size is determined from the document width in both scanning directions.

【0021】このように本実施例の原稿サイズ検知装置
では、複数個の基準画素から所定画素おきに画素の値を
検出した際、基準画素と異なる濃度値が所定数連続する
画素を抽出した場合のみ、それらの画素の中から基準画
素に最も近い画素を原稿端として認識するため、例えば
図4において24番の画素が実際の原稿端であるにもか
かわらず、16番画素が微小な異物(3画素分程度の大
きさ)の付着によって原稿領域と同じ「白」のデータと
なっている場合でも、上述のごとく複数個の基準画素を
設定することにより、16〜20番で示される画素の中
に原稿外領域と同じ「黒」のデータとなる画素が必ず存
在するようになるため、従来のように16番目の画素を
原稿端として誤認することがなくなる。また、CCDイ
メージセンサ1の劣化等による孤立点の出現によって、
例えば図4に示す画素列の中で実際には原稿領域の中に
存在する32番及び33番目(通常、孤立点は1〜2画
素の範囲に及ぶため)の画素が原稿外領域と同じ「黒」
のデータとなった場合でも、基準画素の取込位置が原稿
領域側に移動していく過程において、各々の比較画素の
間に確保される空き領域(本実施例では3画素分を確
保)に上記32番及び33番目の画素が必ず存在するこ
とになるため、孤立点による異常データを比較画素の中
から排除したかたちで原稿端を正確に認識することがで
きる。
As described above, in the document size detecting apparatus according to the present embodiment, when a pixel value having a predetermined number of different density values from the reference pixel is extracted when a pixel value is detected every predetermined pixel from a plurality of reference pixels. Only the pixel closest to the reference pixel among these pixels is recognized as the document edge, so for example, in FIG. Even if the data is “white”, which is the same as that of the document area, due to the attachment of a size of about three pixels), by setting a plurality of reference pixels as described above, Since there is always a pixel having the same "black" data as the area outside the document, the 16th pixel is not erroneously recognized as the document end as in the related art. Also, the appearance of an isolated point due to deterioration of the CCD image sensor 1 or the like causes
For example, in the pixel row shown in FIG. 4, the 32nd and 33rd pixels actually present in the document area (since the isolated point usually ranges from 1 to 2 pixels) are the same as those in the non-document area. black"
In the process of moving the reference pixel fetch position to the original area side even when the data of the reference pixel is moved, the empty area (3 pixels in this embodiment) is secured between the respective comparison pixels. Since the 32nd and 33rd pixels always exist, it is possible to accurately recognize the edge of the document by excluding the abnormal data due to the isolated point from the comparison pixels.

【0022】次に、CPU8によって実行される原稿サ
イズの検知処理の手順につき、図5〜図7のフローチャ
ートにしたがって説明する。先ず、原稿サイズの検知処
理にあたっては、図8に示す主走査方向Xの読取ライン
Lの画像データ、つまり画像読取ユニットによって読み
取られた1ライン分の画像データをRAM5に格納する
(ステップS1)。次に、RAM5に格納された画像デ
ータの中から、n画素目の基準データ(濃度データ)を
基準画素として取り込むとともに(ステップS2)、そ
の基準画素から原稿領域側に16画素分隔てたn+16
画素目の基準データを比較画素として取り込む(ステッ
プS3)。続いて、先に取り込んだn画素目の基準デー
タとn+16画素目の基準データとを比較する(ステッ
プS4)。このとき、n画素目の基準データよりもn+
16画素目の基準データが小さい場合、例えばn画素目
の基準データが「黒」でn+16画素目の基準データ
「白」であった場合は、基準画素であるn番目の画素に
対して比較画素であるn+16番目の画素が濃度変化し
ているとみなしてステップS5に進む。
Next, the procedure of the document size detection process executed by the CPU 8 will be described with reference to the flowcharts of FIGS. First, in the document size detection processing, the image data of the read line L in the main scanning direction X shown in FIG. 8, that is, the image data of one line read by the image reading unit is stored in the RAM 5 (step S1). Next, from the image data stored in the RAM 5, the reference data (density data) of the nth pixel is taken in as a reference pixel (step S2), and n + 16 pixels separated from the reference pixel by 16 pixels toward the document area.
The reference data of the pixel is taken in as a comparison pixel (step S3). Then, the previously acquired reference data of the nth pixel and the reference data of the (n + 16) th pixel are compared (step S4). At this time, the reference data is n +
When the reference data of the 16th pixel is small, for example, when the reference data of the nth pixel is “black” and the reference data of the (n + 16) th pixel is “white”, the reference pixel is compared with the nth pixel. The process proceeds to step S5 on the assumption that the (n + 16) th pixel is changed in density.

【0023】ステップS5では、n+16番目の画素か
ら8画素分隔てたn+24画素目の基準データを取り込
み、その後、基準画素として取り込んだn画素目の基準
データとn+24画素目の基準データとを比較し、上記
同様にn画素目の基準データに対してn+24画素目の
基準データが濃度変化しているか否かを判定する(ステ
ップS6)。以降、ステップS7〜S14においては、
上記同様に原稿領域側に向かってそれぞれ8画素おきに
n+32画素目、n+40画素目、n+48画素目、n
+56画素目の基準データを順に取り込むとともに、そ
の都度、基準画素であるn画素目の基準データとの比較
を行う。
In step S5, the reference data of the (n + 24) th pixel which is separated by 8 pixels from the (n + 16) th pixel is fetched, and then the criterion data of the nth pixel fetched as the reference pixel is compared with the reference data of the (n + 24) th pixel. In the same manner as above, it is determined whether or not the density of the reference data of the (n + 24) th pixel has changed with respect to the reference data of the nth pixel (step S6). Hereinafter, in steps S7 to S14,
In the same manner as described above, the n + 32th pixel, the n + 40th pixel, the n + 48th pixel, and the nth
The reference data of the + 56th pixel is sequentially taken in, and each time it is compared with the reference data of the nth pixel which is the reference pixel.

【0024】こうした処理過程において、原稿端検出用
の基準画素であるn画素に対して設定された6個の比較
画素n+16、n+24、n+32、n+40、n+4
8、n+56のうち、いずれか1個でもn画素目の基準
データと同レベル又はそれ以上の基準データが取り込ま
れた場合は、その時点でステップS15に移行し、そこ
でカウンタの値をゼロリセットしたのち、nの値を1イ
ンクリメントする(ステップS16)。そして、これに
続くステップS17では、後述する完了ビットがセット
されているか否かの他に、nの値が規定の許容範囲内に
あるか否か、つまりnの値によって規定される画素位置
が検知対象となる最小原稿のエッジ位置よりも外側領域
にあるか否かの判定を行い、完了でない場合はステップ
S2に戻って上記の処理を繰り返す。
In such a process, six comparison pixels n + 16, n + 24, n + 32, n + 40, n + 4 set for n pixels which are reference pixels for document edge detection.
If any one of 8, n + 56 has the same or higher level of reference data as the reference data of the n-th pixel, the process proceeds to step S15 at that point, and the counter value is reset to zero there. Thereafter, the value of n is incremented by 1 (step S16). Then, in step S17 following this, in addition to whether or not a completion bit described later is set, whether or not the value of n is within a specified allowable range, that is, the pixel position specified by the value of n is determined. A determination is made as to whether or not the area is outside the edge position of the minimum document to be detected. If not, the process returns to step S2 to repeat the above processing.

【0025】一方、ステップS14においても、n画素
目の基準データに対してn+56画素目の基準データが
上記同様に濃度変化していると判断した場合は、n画素
目の基準データ(基準画素)に対してn+16、n+2
4、n+32、n+40、n+48、n+56画素目の
基準データ(比較画素)が全て濃度変化しているとみな
してカウンタの値を1インクリメントし(ステップS1
8)する。このカウンタ値は、1個の基準データに対し
て、その濃度レベルの変化形態が同一である規定数(本
実施例では6個)の比較画素が抽出された回数となる。
On the other hand, also in step S14, if it is determined that the reference data of the (n + 56) th pixel has changed in density similarly to the reference data of the nth pixel, the reference data of the nth pixel (reference pixel) N + 16, n + 2
Assuming that all the reference data (comparative pixels) of the 4, n + 32, n + 40, n + 48, and n + 56 pixels have changed in density, the value of the counter is incremented by 1 (step S1).
8) Yes. This counter value is the number of times that a specified number (six in this embodiment) of comparison pixels having the same density level change form are extracted for one piece of reference data.

【0026】続いて、カウンタ値が規定の回数(本実施
例では5回)に到達したか否か、すなわち基準データに
対して変化が同一である規定数(本実施例では6個)の
比較画素が連続して5回抽出されたか否かの判定を行う
(ステップS19)。ここで、カウンタ値が「5」に到
達していない場合はそのままステップS16に移行し、
そこでnの値を1インクリメントする。そして、この場
合は完了ビットがセットされていないためステップS1
7からステップS2に戻り、上記処理を繰り返す。一
方、ステップS19においてカウンタ値が「5」に到達
した場合は、その時点で「画素の抽出が完了した旨」を
示す完了ビットをセットする(ステップS20)。な
お、上述した規定回数「5」は、基準画素の設定個数に
依存する値であり、その設定に際してはCCDイメージ
センサ1の特性や読取解像度、さらには原稿サイズ誤検
知の要因となる異物(汚れ、キズ等)の大きさなどによ
って変わってくる。
Next, a comparison is made as to whether or not the counter value has reached a prescribed number of times (5 in this embodiment), that is, a comparison of a prescribed number (6 in this embodiment) having the same change with respect to the reference data. It is determined whether the pixel has been extracted five times in a row (step S19). Here, if the counter value has not reached "5", the process directly proceeds to step S16,
Therefore, the value of n is incremented by one. In this case, since the completion bit has not been set, step S1 is executed.
7 returns to step S2, and repeats the above processing. On the other hand, if the counter value has reached "5" in step S19, a completion bit indicating that "pixel extraction has been completed" is set at that time (step S20). Note that the specified number of times “5” is a value that depends on the set number of reference pixels, and in setting the number, the characteristics and reading resolution of the CCD image sensor 1 and foreign matter (dirt) that may cause an erroneous document size detection are set. , Scratches, etc.).

【0027】こうして画素の抽出がなされると、先のス
テップS20にて完了ビットがセットされていることか
らステップS21に進み、そこで先に抽出した画素(比
較画素)の中から基準画素(n−5)に最も近い画素
〔(n−5)+16〕を原稿端として認識する(ステッ
プS21)。次いで、原稿端として認識した〔(n−
5)+16画素〕の位置から主走査方向の原稿幅を求め
(ステップS22)、最後にこの主走査方向の原稿幅と
副走査方向に配置されたフォトセンサ出力とによって原
稿サイズを判別する(ステップS23)。
When the pixels are extracted in this manner, the process proceeds to step S21 because the completion bit is set in the previous step S20, in which the reference pixel (n−n) is selected from the pixels (comparative pixels) extracted earlier. The pixel [(n-5) +16] closest to 5) is recognized as the document edge (step S21). Then, it was recognized as the document edge [(n-
5) +16 pixels], the document width in the main scanning direction is obtained (step S22). Finally, the document size is determined based on the document width in the main scanning direction and the output of the photo sensor arranged in the sub-scanning direction (step S22). S23).

【0028】[0028]

【発明の効果】以上説明したように本発明の原稿サイズ
検知装置によれば、プラテンガラス(原稿台)への異物
の付着やCCDイメージセンサの劣化等による孤立点の
出現に惑わされることなく、原稿サイズを検知すること
が可能となる。
As described above , according to the document size detecting apparatus of the present invention, the appearance of isolated points due to the attachment of foreign matter to the platen glass (document table) and the deterioration of the CCD image sensor can be prevented. The document size can be detected .

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

【図1】 本発明が適用されるデジタル複写機の概略構
成図である。
FIG. 1 is a schematic configuration diagram of a digital copying machine to which the present invention is applied.

【図2】 実施例における画像読取ユニットの概略構成
図である。
FIG. 2 is a schematic configuration diagram of an image reading unit in the embodiment.

【図3】 原稿サイズ検知のための機能ブロック図であ
る。
FIG. 3 is a functional block diagram for document size detection.

【図4】 原稿サイズ検知の処理動作を説明する模式図
である。
FIG. 4 is a schematic diagram illustrating a processing operation of document size detection.

【図5】 原稿サイズ検知のフローチャート(その1)
である。
FIG. 5 is a flowchart of document size detection (part 1).
It is.

【図6】 原稿サイズ検知のフローチャート(その2)
である。
FIG. 6 is a flowchart of document size detection (part 2).
It is.

【図7】 原稿サイズ検知のフローチャート(その3)
である。
FIG. 7 is a flowchart of document size detection (part 3).
It is.

【図8】 原稿サイズ検知の基本概念図である。FIG. 8 is a basic conceptual diagram of document size detection.

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

40 基準画素設定手段 43 画素値検出手段 47 画素抽出手段 48 原稿端認識手段 49 原稿サイズ判別手段 40 Reference pixel setting means 43 pixel value detecting means 47 Pixel extraction means 48 Original edge recognition means 49 Document Size Determination Means

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 原稿の画像情報を光学的に読み取る画像
読取ユニットにセットされた原稿のサイズを検知する原
稿サイズ検知装置において、 前記画像読取ユニットによって読み取られた所定の1ラ
イン分の画像データの画素列に対して原稿外領域に原稿
端検出用の基準画素を設定する基準画素設定手段と、 前記基準画素設定手段により設定された基準画素から原
稿領域側に向かって所定画素おきに画素の値を検出する
画素値検出手段と、 前記基準画素と異なる濃度値が所定数連続する画素を抽
出する画素抽出手段と、 前記画素抽出手段により抽出された画素の中から前記基
準画素に近い画素を原稿端として認識する原稿端認識手
段と、 前記原稿端認識手段により認識された原稿端の位置に基
づいて原稿サイズを判別する原稿サイズ判別手段とを備
えたことを特徴とする原稿サイズ検知装置。
An original size detecting device for detecting the size of an original set in an image reading unit for optically reading image information of the original, wherein the image data of a predetermined one line read by the image reading unit is Reference pixel setting means for setting a reference pixel for document edge detection in a region outside the document with respect to the pixel row; and a pixel value at predetermined pixels from the reference pixel set by the reference pixel setting means toward the document area. Pixel value detecting means for detecting a pixel, a pixel extracting means for extracting a pixel having a predetermined number of consecutive density values different from the reference pixel, and a pixel close to the reference pixel among the pixels extracted by the pixel extracting means. Document edge recognition means for recognizing an edge, and document size determination means for determining a document size based on the position of the document edge recognized by the document edge recognition means. Document size detection apparatus characterized by comprising a.
【請求項2】 前記基準画素設定手段は、前記原稿外領
域に複数個の基準画素を設定することを特徴とする請求
項1記載の原稿サイズ検知装置。
2. The document size detecting device according to claim 1, wherein said reference pixel setting means sets a plurality of reference pixels in the area outside the document.
JP01372595A 1995-01-31 1995-01-31 Document size detector Expired - Fee Related JP3538939B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01372595A JP3538939B2 (en) 1995-01-31 1995-01-31 Document size detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01372595A JP3538939B2 (en) 1995-01-31 1995-01-31 Document size detector

Publications (2)

Publication Number Publication Date
JPH08204911A JPH08204911A (en) 1996-08-09
JP3538939B2 true JP3538939B2 (en) 2004-06-14

Family

ID=11841227

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01372595A Expired - Fee Related JP3538939B2 (en) 1995-01-31 1995-01-31 Document size detector

Country Status (1)

Country Link
JP (1) JP3538939B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6834906B2 (en) * 2017-10-24 2021-02-24 ブラザー工業株式会社 Image reader

Also Published As

Publication number Publication date
JPH08204911A (en) 1996-08-09

Similar Documents

Publication Publication Date Title
US8134753B2 (en) Original size detecting apparatus, original size detecting method, and program for original size detection
JP2502591B2 (en) Document position detector
JPH11252351A (en) Image reader
JP3089133B2 (en) Image processing device
JP2007028185A (en) Original document reading apparatus and method for detecting original document size
JP5180054B2 (en) Image reading apparatus, image reading system, and contour detection method
JP3404955B2 (en) Document size detector
JPH0147828B2 (en)
JP3538939B2 (en) Document size detector
JP3453197B2 (en) Document size detector
JP3417723B2 (en) Image reading device
JP3569059B2 (en) Image reading device
JPH10145556A (en) Image reader
JP4012096B2 (en) Image reading device
JP2000078409A (en) Device and method for reading image
US6643037B1 (en) Apparatus and method for detecting the presence of a page in an image scanner
JP3907033B2 (en) Image reading device
JP2001358914A (en) Image reader
JP3538938B2 (en) Image reading device
JP3493086B2 (en) Image reading device
JPH09135332A (en) Image reader
JP3322050B2 (en) Image reading device
JP3011942B2 (en) Digital image output device
JP2003302714A (en) Original front end detector
JPH01123567A (en) Picture reader

Legal Events

Date Code Title Description
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: 20040302

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040315

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080402

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090402

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100402

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees