JPS62166649A - Original reader - Google Patents

Original reader

Info

Publication number
JPS62166649A
JPS62166649A JP61008629A JP862986A JPS62166649A JP S62166649 A JPS62166649 A JP S62166649A JP 61008629 A JP61008629 A JP 61008629A JP 862986 A JP862986 A JP 862986A JP S62166649 A JPS62166649 A JP S62166649A
Authority
JP
Japan
Prior art keywords
original
scanning
latch
image
time
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.)
Pending
Application number
JP61008629A
Other languages
Japanese (ja)
Inventor
Katsuyoshi Maejima
前島 克好
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 JP61008629A priority Critical patent/JPS62166649A/en
Publication of JPS62166649A publication Critical patent/JPS62166649A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To accurately discriminate the position of a movable body at the time of scanning and restoration, by providing a an original position recognizing means, original scanning time measuring means, and means for calculating the moving distance for scanning of the movable body from a measured scanning time and performing reading processes of binary coding, etc., corresponding to an original area. CONSTITUTION:In order to read the picture information of an original 102 placed on an original platen 101 and pressed down by an original cover 110, an image pickup element 103 of CCD, etc., is used and lighting rays of light from a light source 104 are reflected by the surface of the original 102 and caused to form an image on the image pickup element 103 by means of a lens 108 through mirrors 105-107. An optical unit is moved toward the right from the left at a fixed speed while PLL control is applied by a DC servo motor 109. The moving speed of the optical unit is variable in a range from 90mm/sec to 360mm/sec in the returning trip. Coordinates (X1, Y1), (X2, Y2), (X3, Y3), and (X4, Y4) of four points when the main scanning direction and auxiliary scanning direction from reference coordinates SP on the original platen 101 are respectively set to X and Y are detected by pre-scanning the optical system.

Description

【発明の詳細な説明】 (分野) 本発明は原稿読取装置に関する。[Detailed description of the invention] (Field) The present invention relates to a document reading device.

(従来技術) 従来、画像信号の最適2値化処理方式として、原稿を予
備走査して画像の濃度を判別しそれにより画像処理用の
本走査時のデータを2値化する方式が提案されている。
(Prior Art) Conventionally, as an optimal binarization processing method for image signals, a method has been proposed in which a document is pre-scanned to determine the density of the image, and then the data during main scanning for image processing is binarized. There is.

そして光学系又は原稿台を往復動させて行なう予備走査
による原稿濃度読み取りの手段として、(1)往動時に
原稿濃度を読み取る、(2)復動時に原稿濃度を読み取
る、という2種類の考え方がある。又、原稿圧板等原稿
以外の部分を読み取って画像濃度の判別に誤りを生じさ
せない為に、原稿濃度を判別する前に、原稿の位置、大
きさを認識し、原稿の部分だけの画像濃度を判別する事
が提案されている。
There are two methods of reading the original density using preliminary scanning performed by reciprocating the optical system or the original table: (1) reading the original density during forward movement, and (2) reading the original density during backward movement. be. In addition, in order to avoid errors in determining image density due to reading parts other than the original, such as the original pressure plate, the position and size of the original are recognized and the image density of only the original part is determined before determining the original density. It is proposed to determine.

しかし、(1)の方法を用いると原稿認識の走査。However, when method (1) is used, it is difficult to scan the original for recognition.

画像濃度を読みとる走査(以下AS走査と呼ぶ)1画像
形成の為の走査(以下本走査と呼ぶ)と3回の走査を行
なわねばならず、コピー開始迄の時間がかかり使用者は
不便を感じる事になる。
Scanning for reading image density (hereinafter referred to as AS scanning) and scanning for image formation (hereinafter referred to as main scanning) must be performed three times, and it takes time to start copying, causing inconvenience to the user. It's going to happen.

一方(2)の方法を用いた場合、予備走査の往動時に原
稿認識走査を行い、復動時にAS走査を行い、次の2回
目の走査が本走査となり、シーケンス的には、ムダがな
い。しかし、従来、光学系の反転位置には、コストダウ
ンの為反転位置のセンサは省略する方向にあり、反転位
置のセンサがない場合′b<多い。その場合、光学系の
往動から復動にうつる時の光学系のスピードの立上り時
間の変動により光学系の正確な位置がわからなくなる欠
点があった。又、更に、光学系の復動時は、画像形成に
寄与しない為又コスト低減の為、光学系の速度を制御し
ないで、モータのトルクや光学系の負荷に任せた速度で
復動することが行なわれている。この場合も、復動時の
光学系の位置が正確でなくなるという欠点を持っている
On the other hand, when method (2) is used, the document recognition scan is performed during the forward movement of the preliminary scan, the AS scan is performed during the backward movement, and the next second scan becomes the main scan, so there is no waste in the sequence. . However, conventionally, the sensor at the reversal position of the optical system has been omitted in order to reduce costs, and there are many cases where there is no sensor at the reversal position. In this case, there is a drawback that the exact position of the optical system cannot be determined due to fluctuations in the rise time of the speed of the optical system when the optical system changes from forward movement to backward movement. Furthermore, when the optical system moves back, the speed of the optical system is not controlled, and the speed is left to the motor torque and the load on the optical system, because it does not contribute to image formation and to reduce costs. is being carried out. This case also has the disadvantage that the position of the optical system during the backward movement is not accurate.

(目的) 本発明は以上の欠点を除去するもので、高精度の原稿濃
度又は原稿内容判定を行なうことを目的として、原稿位
置認識手段と、原稿走査時間の測定手段と、測定走査時
間から走査移動距離を演算する手段とを有し、原稿領域
に対応した2値化等の読取処理を行なうことを特徴とす
るもので、それにより走査位置、復動時の可動体位置を
正確に判別でき、従って反転位置毎に位置センサを全て
設ける必要はなく、又復動時の速度制御を量小限のもの
ですますことができる。
(Objective) The present invention has been made to eliminate the above-mentioned drawbacks, and for the purpose of highly accurate document density or document content determination, the present invention includes a document position recognition means, a document scanning time measuring means, and a scanning method based on the measured scanning time. It is characterized by having means for calculating the moving distance and performing reading processing such as binarization corresponding to the document area, thereby making it possible to accurately determine the scanning position and the position of the movable body during backward movement. Therefore, it is not necessary to provide all position sensors for each reversal position, and speed control during reverse movement can be performed with a limited amount.

(実施例) 以下本発明の実施例を図面を参照して詳細に説明する。(Example) Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明が適用できる原稿読取装置の概略図であ
る。原稿かバー110により押えられ、原稿台101上
に置かれた原稿102の画像情報を読取る為に、CCD
等の撮像素子103が使用され、光源104からの照明
光が原稿102面上で反射されて、ミラー105.10
6,107を介してレンズ108により撮像素子103
上に結像される。光源104.ミラー105とミラー1
06,107は2:lの相対速度で移動するようになっ
ている。この光学ユニットはDCサーボモータ109に
よってPLL制御をかけながら一定速度で左から右へ移
動する。この移動速度は往路では倍率に応じて90 m
 m / s e cから360 m m / s e
 cまで可変であり、復路では中心値として360 m
 m / s e cになるように設計されている。こ
の光学ユニットの移動する副走査方向へに直交する主走
査ラインを撮像素子によりl 6 p e I / m
 mの解像度で読取りながら光学ユニットを左端から右
端まで往動させた後、再び左端まで復動させて1回の走
査を終える。
FIG. 1 is a schematic diagram of a document reading device to which the present invention can be applied. In order to read the image information of the original 102 which is pressed by the original bar 110 and placed on the original platen 101, a CCD is used.
The illumination light from the light source 104 is reflected on the surface of the original 102, and the mirror 105.10
6, 107 and the image sensor 103 by the lens 108.
imaged on top. Light source 104. Mirror 105 and Mirror 1
06 and 107 are designed to move at a relative speed of 2:l. This optical unit moves from left to right at a constant speed while being subjected to PLL control by a DC servo motor 109. This movement speed is 90 m depending on the magnification on the outward journey.
m/sec to 360 m/sec
It is variable up to c, and on the return trip, the center value is 360 m.
It is designed to be m/sec. The main scanning line perpendicular to the sub-scanning direction in which this optical unit moves is captured by an image sensor at l 6 p e I / m
The optical unit is moved forward from the left end to the right end while reading at a resolution of m, and then moved back to the left end to complete one scan.

第2図に撮像素子10.3からの画信号を処理する回路
の概略のブロック図を示す。撮像素子103で読取られ
た画信号VDはA/Dコンバータ201で6ビツトのデ
ジタル信号に変換され、ラッチ202を介してサンプリ
ングクロックSCLに同期してラッチ203.コンパレ
ータ204,207.ラッチ205,208に送られる
。コンパレータ204ではラッチ202から送られてき
た6ビツトの画信号とラッチ203から送られてきたl
クロック前の6ビツトの画信号を比較して、もしラッチ
202から送られてきた新しい画信号の方が小さければ
、アンドゲート206へコバレート出力を出す。アンド
ゲート206はコンパレータ204からのコンパレート
出力をサンプリングクロックSCLと同期させてラッチ
205へ送る。
FIG. 2 shows a schematic block diagram of a circuit that processes image signals from the image sensor 10.3. The image signal VD read by the image sensor 103 is converted into a 6-bit digital signal by the A/D converter 201, and sent through the latch 202 to the latch 203. Comparators 204, 207. It is sent to latches 205 and 208. The comparator 204 receives the 6-bit image signal sent from the latch 202 and the l sent from the latch 203.
The 6-bit image signal before the clock is compared, and if the new image signal sent from the latch 202 is smaller, a cover output is output to the AND gate 206. AND gate 206 sends the comparison output from comparator 204 to latch 205 in synchronization with sampling clock SCL.

コンパレータ207ではラッチ202から送られてきた
6ビツトの画信号とラッチ203から送られてきた1ク
ロツク前の6ビツトの画信号を比較して、もしラッチ2
02から送られてきた新しい画信号の方が大きければア
ンドゲート209ヘコンパレート出力をし、アンドゲー
ト209はコンパレータ207からのコンパレート出力
をサンプリングクロックSCLと同期させてラッチ20
8へ送る。
The comparator 207 compares the 6-bit image signal sent from the latch 202 with the 6-bit image signal sent from the latch 203 one clock ago.
If the new image signal sent from 02 is larger, it is compared and outputted to the AND gate 209, and the AND gate 209 synchronizes the comparison output from the comparator 207 with the sampling clock SCL and outputs it to the latch 20.
Send to 8.

ラッチ205,208はコンパレート出力を受けるとラ
ッチ202から送られてきた画信号をCPU211へ送
る。
When the latches 205 and 208 receive the comparator output, they send the image signal sent from the latch 202 to the CPU 211.

又、アンドゲート206,209にはコンパレート出力
とサンプリングクロックSCLの他に、撮像繋子103
からの画信号の有効区間を示すイネーブル信号ENが入
り、主走査ライン毎の所定区間の画信号のコンパレート
結果をラッチ205,208からCPU211に送るよ
うになっている。CPU211は主走査ライン同期信号
MSに同期してラッチ205,208からの画信号をと
りこむことで各主走査ラインの最も低い濃度レベル(以
下白ピークと呼ぶ)と最も高い濃度レベル(以下黒ピー
クと呼ぶ)を検出できる。
In addition to the comparator output and sampling clock SCL, the AND gates 206 and 209 also have an imaging connector 103.
An enable signal EN indicating a valid section of the image signal from the latches 205 and 208 is sent to the CPU 211 from the latches 205 and 208. The CPU 211 takes in the image signals from the latches 205 and 208 in synchronization with the main scanning line synchronization signal MS, thereby determining the lowest density level (hereinafter referred to as white peak) and the highest density level (hereinafter referred to as black peak) of each main scanning line. ) can be detected.

CPU211は各ライン毎に検出した白ピークと黒ピー
クをもとに後述するアルゴリズムでスライス・レベルを
決定し、コンパレータ210に送る。コンパレータ21
0ではラッチ203からの両信号とCPU’211から
のスライスレベルを比較し2値化信号(VIDEO)を
生成する。
The CPU 211 determines a slice level based on the white peak and black peak detected for each line using an algorithm described later, and sends it to the comparator 210. Comparator 21
0, both signals from the latch 203 and the slice level from the CPU'211 are compared to generate a binary signal (VIDEO).

第3図には原稿読取装置(第1図)の原稿台101上に
原稿が置かれている状態を示す。この場合原稿台101
上の基準座標spから主走査方向をX、副走査方向をY
とした時の4点の座標(XI、Yl)、(X2゜Y2)
、(X3.Y3)、(X4.Y4)を光学系を前走査し
て検出する。
FIG. 3 shows a state in which a document is placed on the document table 101 of the document reading device (FIG. 1). In this case, the manuscript table 101
From the above reference coordinate sp, the main scanning direction is X, and the sub-scanning direction is Y.
The coordinates of the four points (XI, Yl), (X2°Y2)
, (X3.Y3), and (X4.Y4) are detected by pre-scanning the optical system.

原稿の置かれている領域外の画像データは必ず黒データ
になる様に、原稿カバー110 (第1図)が鏡面処理
されている。前走査はガラス面全域を行なうべく、主走
査、副走査を行なう。
The document cover 110 (FIG. 1) is mirror-finished so that image data outside the area where the document is placed is always black data. In order to perform the pre-scanning over the entire glass surface, main scanning and sub-scanning are performed.

第4図の回路図に前記座標を検出する論理を示す。The circuit diagram of FIG. 4 shows the logic for detecting the coordinates.

前走査により2値化された画像データVIDEOはシフ
ト・レジスタ301に8ビット単位で入力される。8ビ
ツト入力が完了した時点で、ゲート回、路302は8ビ
ツトデータの全てが白画像かのチェックを行ない、Ye
sならば信号ライン303に1を出力する。
The image data VIDEO that has been binarized by the previous scan is input to the shift register 301 in units of 8 bits. When the 8-bit input is completed, the gate circuit 302 checks whether all of the 8-bit data is a white image, and
If s, 1 is output to the signal line 303.

原稿走査開始後、最初の8ビツト白が現われた時F/F
304がセットする。このF/FはVSYNC(画像先
端信号)によって予めリセットされている。以後、次の
VSYNCの来るまでセットし放しである。
F/F when the first 8-bit white appears after scanning the original
304 is set. This F/F is reset in advance by VSYNC (image leading edge signal). After that, it is left set until the next VSYNC comes.

F/F304がセットした時点でラッチF/F305に
その時の主走査カウンタ351の値がロードされる。
When the F/F 304 is set, the value of the main scanning counter 351 at that time is loaded into the latch F/F 305.

これがx1座標値になる。又ラッチ306にその時の副
走査カウンタ305の値がロードされる。こねがY1座
標値になる。従ってP+ (XI、Yl)が求まる。
This becomes the x1 coordinate value. Also, the value of the sub-scanning counter 305 at that time is loaded into the latch 306. The kneading becomes the Y1 coordinate value. Therefore, P+ (XI, Yl) is found.

又信号303に1が出力する度に主走査からの値をラッ
チ307にロードする。この値は直ちに(次の8ビツト
がシフトレジスタ301に入る迄にラッチ308に記憶
される。最初の8ビツトの白が現われた時の主走査から
の値がラッチ308にロードされると、ラッチ31O(
これはVSYNC時点で“0”にされている)のデータ
とコンパレータ309で大小比較される。もしラッチ3
08のデータの方が大ならばラッチ308のデータすな
わちラッチ307のデータがラッチ310にロードされ
る。又、この時副走査カウンタの値がラッチ311にロ
ードされる。
Also, each time 1 is output to the signal 303, the value from the main scanning is loaded into the latch 307. This value is immediately stored in latch 308 (until the next 8 bits enter shift register 301). When the value from the main scan when the first 8 bits of white appear is loaded into latch 308, 31O(
This is compared in magnitude with the data (which is set to "0" at the time of VSYNC) by a comparator 309. If latch 3
If the data in latch 308 is larger, the data in latch 308, that is, the data in latch 307, is loaded into latch 310. Also, at this time, the value of the sub-scanning counter is loaded into the latch 311.

この動作は次の8ビツトがシフト・レジスタ301に入
る迄に処理される。この様にラッチ308とラッチ31
0のデータを全画像領域について行なえば、ラッチ31
0には原稿領域X方向の最大値が残り、この時のY方向
の座標がラッチ311に残ることになる。これがP2 
(X2.Y2)座標である。
This operation is processed until the next 8 bits enter shift register 301. Like this, latch 308 and latch 31
If 0 data is applied to the entire image area, the latch 31
The maximum value of the document area in the X direction remains at 0, and the coordinate in the Y direction at this time remains in the latch 311. This is P2
(X2.Y2) coordinates.

F/F312は各主走査ライン毎に最初に8ビツト白が
現われた時点でセットするF/Fで水平同期信号HS 
Y N Cでリセットされ最初の8ビツト白でセットし
、次のH8YNCまで保持する。このF/F312がセ
ットする時点で主走査カウンタの値をラッチ313にセ
ットし、次のH3YNC迄の間にラッチ314にロード
する。そしてラッチ315とコンパレータ316で大小
比較される。ラッチ315にはVSYNC発生時点でX
方向のm a x値がプリセットされている。もしラッ
チ315のデータの方がラッチ314のデータより大き
いならば信号317がアクティブになりラッチ314す
なわちラッチ313のデータがラッチ315にロードさ
れる。この動作はH5YNC−H3YNC間で行なわれ
る。
F/F 312 is an F/F that is set when 8-bit white appears for the first time in each main scanning line and outputs the horizontal synchronizing signal HS.
It is reset by YNC and the first 8 bits are set to white and held until the next H8YNC. When the F/F 312 is set, the value of the main scanning counter is set in the latch 313, and is loaded into the latch 314 until the next H3YNC. Then, the latch 315 and the comparator 316 compare the magnitude. The latch 315 has an X value when VSYNC occurs.
The max value of the direction is preset. If the data in latch 315 is greater than the data in latch 314, signal 317 becomes active and the data in latch 314 or latch 313 is loaded into latch 315. This operation is performed between H5YNC and H3YNC.

以上の比較動作を全画像領域について行なうとラッチ3
15には原稿座標のX方向の最小値が残ることになる。
If the above comparison operation is performed for the entire image area, latch 3
15 remains the minimum value of the document coordinates in the X direction.

これがx3である。又、信号ライン317が出力する時
、副走査からの値がラッチ318にロードされる。これ
がY3になる。
This is x3. Also, when signal line 317 outputs, the value from the sub-scan is loaded into latch 318. This will be Y3.

ラッチ319と320は全画像領域において8ビツト白
が現われる度にその時の主走査カウンタの値と副走査カ
ウンタの値がロードされる。従って、原稿前走査完了時
では最後に8ビツト白が現われた時点でのカウント値が
カウンタに残っていることになる。これが(X4.Y4
)である。
Latches 319 and 320 are loaded with the main scanning counter value and sub-scanning counter value at that time every time 8-bit white appears in the entire image area. Therefore, when the document pre-scanning is completed, the count value at the time when 8-bit white appears last remains on the counter. This is (X4.Y4
).

以上の8つのラッチ(6,11,20,18,5,1,
0,15゜19)のデータラインはCpLlのパスライ
ンBUSに接続され、Cpuは前走査終了時にこのデー
タを読み込むことになる。
The above eight latches (6, 11, 20, 18, 5, 1,
The data line 0.15°19) is connected to the pass line BUS of CpLl, and the CPU reads this data at the end of the previous scan.

第5図に原稿読み取りシーケンスのフローを示す。FIG. 5 shows the flow of the document reading sequence.

まず、ステップ501において光学系は第1図の左端か
ら右端まで往動走査を行なって先に述べたように原稿台
上に原稿の座標を検出する。
First, in step 501, the optical system performs forward scanning from the left end to the right end in FIG. 1 to detect the coordinates of the document on the document table as described above.

次にステップ502において2値化のためのスライスレ
ベル決定のためのピーク値をサンプルすべきエリアをス
テップ501で検出した座標データから算出する。例え
ば第3図の斜線部のような原稿について検出した座標か
らこの原稿のピーク値サンプリングエリアとしてY3.
Y2及びXI、X4で囲まれる長方形エリアを選択する
ことは現実に促している。それは通常原稿は原稿台に極
力平行に載置されるものであり、またたとえ第3図のよ
うに多少傾いて載置されても原稿外の不要な情報をひろ
うおそれはないからである。当然能の方法でサンプリン
グエリアを決定してもよい。
Next, in step 502, the area in which the peak value for determining the slice level for binarization should be sampled is calculated from the coordinate data detected in step 501. For example, from the coordinates detected for a document such as the shaded area in FIG. 3, the peak value sampling area of this document is Y3.
Choosing the rectangular area bounded by Y2 and XI, X4 is actually prompting. This is because the original is normally placed as parallel as possible on the original table, and even if the original is placed at a slight angle as shown in FIG. 3, there is no risk of picking up unnecessary information from outside the original. The sampling area may be determined in a natural manner.

第6図から分かるように原稿座標検出を終えると光学系
は副走査方向Ymaxの点にあり、ピーク値サンプリン
グ開始点Y2と終了点Y3が分っているので、ステップ
504と505及び506を実行するスケジュールをた
てることができる。すなわちステップ503において復
動を開始したらCPU211は距離(Y m a x 
−Y 2 )相当分だけ主走査ライン同期信号を数えた
後(主走査ライン同期信号と移動距離は後述する)、前
述した白ピーク値、黒ピーク値の検出を開始lノ、さら
にその点から距離(Y2〜Y3)相当分だけ主走査ライ
ン同期信号を数えた後、ピーク値の検出を終了し、さら
に距離Y3相当分だけ主走査ライン同期信号を数えた後
復動を停止する。
As can be seen from FIG. 6, when the document coordinate detection is completed, the optical system is at the point in the sub-scanning direction Ymax, and the peak value sampling start point Y2 and end point Y3 are known, so steps 504, 505, and 506 are executed. You can make a schedule to do so. That is, when the backward movement is started in step 503, the CPU 211 calculates the distance (Y m a x
-Y 2) After counting the main scanning line synchronization signals for a corresponding amount (main scanning line synchronization signals and moving distance will be described later), start detecting the white peak value and black peak value described above, and then proceed from that point. After counting the main scanning line synchronizing signals corresponding to the distance (Y2 to Y3), peak value detection is finished, and after counting the main scanning line synchronizing signals corresponding to the distance Y3, the backward movement is stopped.

またステップ504においてピーク値検出開始時には、
先に述べたイネーブル信号ENを第6図のように検出座
標XI・、X4に対応して設定しておくことはいうまで
もない。
Furthermore, when starting peak value detection in step 504,
It goes without saying that the enable signal EN mentioned above is set corresponding to the detected coordinates XI. and X4 as shown in FIG.

以上の動作で原稿台上の任意の位置にある原稿内の主走
査ライン毎の画像濃度の白ピークと黒ピークを検出でき
る。
With the above operations, the white peak and black peak of the image density can be detected for each main scanning line in the document located at any position on the document table.

次に2値化のためのスライスレベル決定のアルゴリズム
について説明する。前述した手段によりCPU211は
原稿領域内から各主走査ライン毎に黒ピーク値と白ピー
ク値をとりこむ。今第i主走査うイン上の黒ピークをB
Pi、白ピークをW P iとすると、画像データは6
ビツト値であるから各々00 (HEX)から3F(H
EX)までのいずれかの値をとり、かつ、BPi> W
 P iである。CPUはRAM内に用意された64×
2バイトの黒ピークヒストグラム用エリアと64×2バ
イトの白ピークヒストグラム用エリア内の検出したデー
タBPiとWPiに対応した2バイトエリアの内容を各
々1つずつカウントアツプして、次の主走査ライン同期
信号MSを待ち、第i+1ラインからのデータBPi+
IとW P ++1をとりこんで、再びヒストグラムの
対応エリアをカウントアツプして以下ステップ505の
サンプル終了まで続ける。
Next, an algorithm for determining slice levels for binarization will be explained. Using the above-described means, the CPU 211 takes in the black peak value and white peak value for each main scanning line from within the document area. Now the black peak on the i-th main scan is B
Pi and the white peak as W P i, the image data is 6
Since they are bit values, they each range from 00 (HEX) to 3F (H
EX), and BPi > W
It is Pi. The CPU is 64x prepared in RAM.
The contents of the 2-byte area corresponding to the detected data BPi and WPi in the 2-byte black peak histogram area and the 64 x 2-byte white peak histogram area are counted up one by one, and the next main scanning line is counted up. Waiting for synchronization signal MS, data BPi+ from i+1st line
I and W P ++1 are taken in, the corresponding area of the histogram is counted up again, and the process continues until the sample is completed in step 505.

但し、この時、検出したBPiとW P iを必らずし
もヒストグラムデータとして用いるとは限らない。
However, at this time, the detected BPi and W P i are not necessarily used as histogram data.

例えば主走査ライン方向に一様な濃度の帯があれば、例
えそれがまっ白であろうとまり黒であろうと、また他の
濃度でもそこからのサンプル値BPiとW P iは殆
ど等しいものになり地肌と情報を区別するデータを必要
とする2値化の為の情報としてはふされしくない。その
為CPTJはB P i −W P i <αの時には
B P i 、 W P iはヒストグラムデータとし
て用いず捨ててしまい、B P i++ 、 W P 
i++を待つことになる。このαは経験的に設定される
定数で例えば4とか3である。又ステップ504により
サンプル開始する以前に全ヒストグラムエリア64X2
X2バ、 イトをOクリアしておくのは当然の事である
For example, if there is a band of uniform density in the main scanning line direction, the sample values BPi and WPi from that band will be almost equal, regardless of whether it is pure white or completely black, or even at other densities. This is not suitable as information for binarization, which requires data that distinguishes background information from information. Therefore, in CPTJ, when B P i −W P i <α, B P i and W P i are not used as histogram data and are discarded, and B P i++, W P
I'll have to wait for i++. This α is a constant set empirically, and is, for example, 4 or 3. Also, in step 504, before starting sampling, the entire histogram area 64×2
It is natural to clear the X2 bar and light to O.

この結果ステップ505でサンプル終了した時には例え
ば第7図に示すようなヒストグラムが黒ピーク/白ピー
クの各々について構成されている。サンプルを終了した
後光学系がスタート地点に戻りステップ506で復動を
終了したら次にステップ507でスライスレベルを設定
する。まず各ヒストグラムの度数のピークを示す濃度レ
ベルを各々の代表値と考える。
As a result, when the sample is completed in step 505, a histogram as shown in FIG. 7, for example, is constructed for each of the black peak and white peak. After completing the sample, the optical system returns to the starting point and completes the backward movement in step 506. Next, in step 507, the slice level is set. First, the density level showing the peak frequency of each histogram is considered to be the respective representative value.

第7図の例によれば原稿情報部の濃度を36 H1原稿
地肌部の濃度をOA Hとし、例えばその中央値20H
をスライスレベルとする。このスライスレベルの決定に
ついては他にも考えられる。最後にステップ508で原
稿読取スキャンを行なって動作を終了する。
According to the example in FIG. 7, the density of the document information area is 36 H1, and the density of the background area of the document is OA H, and for example, the median value is 20H.
Let be the slice level. There are other ways to consider determining this slice level. Finally, in step 508, the document is read and scanned, and the operation ends.

次に、復動時の光学系の位置と、主走査ライン同期信号
の関係について説明する(第8図)。
Next, the relationship between the position of the optical system during backward movement and the main scanning line synchronization signal will be explained (FIG. 8).

主走査ライン同期信号(H3YNC)は、水晶発振器等
によって生成される規則正しい信号であり、1周期の時
間が乱れる様な事はな(、完全なタイマとも考える事が
出来る。従って光学系の位置と主走査ライン同期信号と
の関係は、光学系の位置と時間という関係に置き換えて
考える事が出来る。
The main scanning line synchronization signal (H3YNC) is a regular signal generated by a crystal oscillator, etc., and there is no disturbance in the time of one cycle (it can also be thought of as a complete timer. Therefore, the position of the optical system The relationship with the main scanning line synchronization signal can be considered in terms of the relationship between the position and time of the optical system.

光学系は、光学系駆動モータオン信号が出されて11時
間後に、ある加速度で動き始め、t2時間後に一定速度
になり、その後は等速運動を続ける(第8図(a)、(
b))。
The optical system starts moving at a certain acceleration 11 hours after the optical system drive motor ON signal is issued, reaches a constant speed after t2 hours, and continues to move at a constant speed thereafter (Figure 8 (a), (
b)).

しかし、Bの区間は等加速度運動のモデルと考える事が
出来る為第8図(C)のように、A:静止区間、B:等
加速度運動区間、C:等速度運動区間と分けて考える事
が出来る。
However, since section B can be considered as a model of uniform acceleration motion, it can be considered separately as A: stationary section, B: uniform acceleration motion section, and C: uniform velocity motion section, as shown in Figure 8 (C). I can do it.

又、モータのトルクの違い、光学系の負荷の違いは、C
区間(等速度運動区間)のスピードの違いとして近似す
る事が出来る。
Also, the difference in motor torque and optical system load is due to C.
It can be approximated as the difference in speed between sections (uniform motion sections).

従って、A区間、B区間の時間は、機械間による差異は
ほとんどなく、一定と考える事が可能となる。つまり、
同一タイプの機械を量産した場合、tl。
Therefore, the times in section A and section B have almost no difference between machines and can be considered constant. In other words,
When mass producing the same type of machine, tl.

t2の値は機械間による差はほとんど無く、ある機械の
値を測定しておけば、その値が他の機械へも適用出来る
。従って、光学系駆動信号が出されて、光学系が復動終
了(画像先端信号第8図(d)の終わる迄の時間を測定
する事によりC区間の速度も算出する事が出来る。つま
り、X:移動距離、V:t3秒後のスピードとすると、
 tl<t<t2の場合、t > T2の場合 よって、t3の時間を測定する事により、■を求める事
が出来、時間tと移動距離Xの関係が求まる。
There is almost no difference in the value of t2 between machines, and if the value of one machine is measured, that value can be applied to other machines. Therefore, by measuring the time from when the optical system drive signal is issued to when the optical system completes its backward movement (image leading edge signal (FIG. 8(d)), it is possible to calculate the speed in section C. In other words, Assuming that X: distance traveled, V: speed after t3 seconds,
When tl<t<t2, when t>T2 Therefore, by measuring the time t3, it is possible to obtain ■, and the relationship between the time t and the moving distance X can be obtained.

又、時間t3の測定の方法は、シーケンスを制御するマ
イコンにより、光学系の移動スタート信号から、画像先
端信号(原稿先端に対応する位置に設けた光学系センサ
からの信号)を受ける迄の時間をH3YNCをカウント
することによる内部タイマ又は外部タイマで測定する事
により求められる。
The time t3 is measured by measuring the time from the optical system movement start signal to the reception of the image leading edge signal (signal from the optical system sensor located at the position corresponding to the leading edge of the document) by the microcomputer that controls the sequence. can be obtained by measuring with an internal timer by counting H3YNC or an external timer.

又、この測定は、機械の工場出荷時又は、設置時等にサ
ービスマン等が特殊モードで行なえばよく、ユーザには
隠れたモードとなる。
Further, this measurement may be performed by a service person or the like in a special mode when the machine is shipped from the factory or installed, and the mode is hidden from the user.

又、この測定した値t3は、不揮発性メモリ又は、バッ
テリバックアップされたメモリ等に記憶させることで電
源のオン、オフにより消去しないようにできる。
Further, this measured value t3 can be stored in a non-volatile memory or a battery-backed memory so that it will not be erased when the power is turned on and off.

又、この測定モードを隠れた所に配置しているスイッチ
、又は特殊なキー操作又は、前記の組合せにより行なう
ことにより、一般ユーザのわずられしさを防止できる。
Further, by performing this measurement mode using a switch located in a hidden location, a special key operation, or a combination of the above, general users can be prevented from being bothered.

この測定によるt3のデータをもとに原稿座標YMAX
に必要な反転タイミングを求め第5図のステップ503
において復動開始する。尚、記憶しておくデータとして
はt3に限らず反転タイミングを決定するに必要な初期
パラメータtI+j2.X等であればよい。
Based on the data at t3 from this measurement, the document coordinates YMAX
Step 503 of Fig. 5 calculates the reversal timing necessary for
The return movement begins at . Note that the data to be stored is not limited to t3, but also the initial parameters tI+j2, . It suffices if it is X, etc.

又Y MAXではなく記憶パラメータによりY2で反転
させることも可能である。
It is also possible to invert at Y2 using a storage parameter instead of YMAX.

(効果) 以上のように反転時の時間を測定することにより走査系
反転位置センサを反転毎に全て設けなくても、又復動時
さほどの速度制御をすることなく、走査系の位置を正確
に把握する事が出来、原稿の画像情報を誤りな(取り込
む事が出来る。
(Effects) By measuring the time during reversal as described above, the position of the scanning system can be accurately determined without having to install a scanning system reversal position sensor for each reversal, and without having to perform significant speed control during reverse movement. It is possible to understand the error in the image information of the original (and import it).

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

第3図は原稿載置図、 第5図は判別フローチャート図、 第6図は走査説明図、 第7図はヒストグラム図、 第8図はタイムチャート図であり、 lOlはプラテン、 103は読取センサである。 Figure 3 is a drawing of the manuscript placement; Figure 5 is a discrimination flowchart; Fig. 6 is a scanning explanatory diagram; Figure 7 is a histogram diagram. Figure 8 is a time chart diagram, lOl is the platen, 103 is a reading sensor.

Claims (2)

【特許請求の範囲】[Claims] (1)原稿位置認識手段と、原稿走査時間の測定を行う
手段と、前記走査時間により、走査移動距離を演算する
手段とを有し、原稿の領域に対応した適正出力決定の為
の画像信号取り込み等の処理を行うようにしたことを特
徴とする原稿読取装置。
(1) It has an original position recognition means, a means for measuring the original scanning time, and a means for calculating the scanning movement distance based on the scanning time, and the image signal is used to determine the appropriate output corresponding to the area of the original. A document reading device characterized in that it performs processing such as importing.
(2)第1項において、走査時の上記時間測定は、特殊
モードにおいて測定しその値を電源をオフ又は装置クリ
アしても保持することを特徴とする原稿読取装置。
(2) The document reading device according to item 1, wherein the time measurement during scanning is measured in a special mode and the value is retained even when the power is turned off or the device is cleared.
JP61008629A 1986-01-17 1986-01-17 Original reader Pending JPS62166649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61008629A JPS62166649A (en) 1986-01-17 1986-01-17 Original reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61008629A JPS62166649A (en) 1986-01-17 1986-01-17 Original reader

Publications (1)

Publication Number Publication Date
JPS62166649A true JPS62166649A (en) 1987-07-23

Family

ID=11698241

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61008629A Pending JPS62166649A (en) 1986-01-17 1986-01-17 Original reader

Country Status (1)

Country Link
JP (1) JPS62166649A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01225282A (en) * 1988-03-04 1989-09-08 Fuji Photo Film Co Ltd Picture processor
JPH01225284A (en) * 1988-03-04 1989-09-08 Fuji Photo Film Co Ltd Picture processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01225282A (en) * 1988-03-04 1989-09-08 Fuji Photo Film Co Ltd Picture processor
JPH01225284A (en) * 1988-03-04 1989-09-08 Fuji Photo Film Co Ltd Picture processor

Similar Documents

Publication Publication Date Title
JP3254272B2 (en) Apparatus and method for determining background level of an image
US4899227A (en) Image processing apparatus detecting the size or position of an information portion of an original
US4672461A (en) Image processing apparatus
JPH0334713B2 (en)
JPS61214867A (en) Picture processing device
JPS62166649A (en) Original reader
JPS62115973A (en) Picture processing method and its device
JPH02308234A (en) Image reader
JPS59189784A (en) Picture signal processing device
JPS59189783A (en) Picture signal processing system
JPS6173480A (en) Picture processing system
JPS62239662A (en) Original document processor
JPH084311B2 (en) Image processing device
JPH0582782B2 (en)
JPS61214865A (en) Picture processing device
JP2963113B2 (en) Document size detector
JP2630384B2 (en) Image reading device
JP3882316B2 (en) Image reading device
JP3464736B2 (en) Pixel position error measuring device
JPH085468Y2 (en) Document size detector
JP2608264B2 (en) Image reading device
JP2823886B2 (en) Document size detection method
JP2862235B2 (en) Document processing device
JPH0584974B2 (en)
JPH05136996A (en) Document reader