JPH09200437A - Double-sided document reader - Google Patents

Double-sided document reader

Info

Publication number
JPH09200437A
JPH09200437A JP8023040A JP2304096A JPH09200437A JP H09200437 A JPH09200437 A JP H09200437A JP 8023040 A JP8023040 A JP 8023040A JP 2304096 A JP2304096 A JP 2304096A JP H09200437 A JPH09200437 A JP H09200437A
Authority
JP
Japan
Prior art keywords
reading
line
encoded
document
encoding
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
JP8023040A
Other languages
Japanese (ja)
Inventor
Yasunori Tsukioka
康訓 月岡
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP8023040A priority Critical patent/JPH09200437A/en
Publication of JPH09200437A publication Critical patent/JPH09200437A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

(57)【要約】 【課題】 装置を大型化することなく1つの符号化器で
両面原稿の各面の画データを符号化してそれら各面毎の
符号化画データを得ることができる両面原稿読取装置を
提供すること。 【解決手段】 両面原稿の各面をそれぞれ読み取る第1
及び第2読取手段からのラインデータを符号化手段で交
互に符号化し、その符号化ラインデータを第1読取手段
側符号化ラインデータと第2読取手段側符号化ラインデ
ータとに分離して、それぞれの符号化ラインデータを第
1及び第2の符号化画データ蓄積手段にそれぞれ順次蓄
積することにより前記両面原稿の一方の面の符号化画デ
ータと他方の面の符号化画データとをそれぞれ得ること
を特徴とする。
(57) Abstract: A double-sided original in which the image data of each side of a double-sided original can be encoded by a single encoder and the encoded image data for each side can be obtained without increasing the size of the device. Providing a reader. A first side for reading each side of a double-sided original
And the line data from the second reading means are alternately encoded by the encoding means, and the encoded line data is separated into the first reading means side encoded line data and the second reading means side encoded line data, By sequentially accumulating the respective encoded line data in the first and second encoded image data accumulating means, the encoded image data on one side and the encoded image data on the other side of the double-sided original are respectively obtained. It is characterized by obtaining.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、原稿の両面を読み
取って各面毎の画データを得る両面原稿読取装置に関
し、特に、相対的に副走査される原稿の両面のうちの一
方の面を第1読取手段によりライン単位で読み取って得
た画データと、前記原稿の他方の面を第2読取手段によ
りライン単位で読み取って得た画データとをそれぞれ符
号化して前記各面毎の符号化画データを得る両面原稿読
取装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a double-sided document reading device for reading both sides of a document to obtain image data for each side, and more particularly to one side of both sides of a document which is relatively sub-scanned. Image data obtained by reading in line units by the first reading unit and image data obtained by reading the other face of the document in line units by the second reading unit are coded to encode each face. The present invention relates to a double-sided document reading device for obtaining image data.

【0002】[0002]

【従来の技術】特開平2−124680号広報に見られ
るような、副走査される原稿の両面を同時的に読み取る
従来の装置では、原稿の両面を画面毎に読み取るため
に、画面毎の読取部を備える必要がある。その各面毎の
読取部からは、原稿の各面を読み取って得た画データが
それぞれ出力される。
2. Description of the Related Art In a conventional apparatus for simultaneously reading both sides of a document to be sub-scanned, as disclosed in Japanese Patent Laid-Open No. 2-124680, both sides of the document are read for each screen, so that reading is performed for each screen. It is necessary to have a section. Image data obtained by reading each side of the document is output from the reading unit for each side.

【0003】一般に、原稿読取装置の読取部が出力する
画データの情報量は膨大であり、そのまま処理するとす
ると、その画データを記憶するためのメモリや、その画
データを伝送するための伝送容量を多量に確保しなけれ
ばならない。そのため、通常は、読取部が出力する画デ
ータの情報量を圧縮するために符号化して、ページ単位
の符号化画データに変換し、その符号化画データをペー
ジ単位でメモリに蓄積したり伝送したりすることによ
り、メモリや伝送容量の節約を計っている。
Generally, the information amount of the image data output by the reading section of the document reading apparatus is enormous, and if it is processed as it is, a memory for storing the image data and a transmission capacity for transmitting the image data. Must be secured in large quantities. Therefore, it is usually encoded to compress the information amount of the image data output by the reading unit, converted into encoded image data in page units, and the encoded image data is stored in a memory in page units or transmitted. By doing so, we are trying to save memory and transmission capacity.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来の両面原稿を読み取る装置では、両面原稿の各面毎の
読取部が原稿の長さ(副走査範囲)以内の差をもって配
置された場合は、それらの読取部が、両面原稿のそれぞ
れの面を同時に読み取っている期間が存在するために、
各読取部から出力される画データを同時に符号化処理し
なければならない期間が存在する。
However, in the above-mentioned conventional apparatus for reading a double-sided original, when the reading portions for each side of the double-sided original are arranged with a difference within the length of the original (sub-scanning range), Since there is a period in which those reading units are reading each side of the double-sided original at the same time,
There is a period in which the image data output from each reading unit must be simultaneously encoded.

【0005】そのため、各面毎の読取部からの画データ
をそれぞれ符号化するためには2つの符号化器が必要で
コストが嵩む問題があった。
Therefore, there is a problem that two encoders are required to encode the image data from the reading unit for each surface, which increases the cost.

【0006】一方、上記従来の両面原稿を読み取る装置
において、両面原稿の各面毎の読取部が原稿の長さ以上
の差をもって配置された場合は、1枚の両面原稿のそれ
ぞれの面を同時に読み取っている期間が存在しないため
に各読取部から出力される画データを同時に符号化処理
する必要はなくなるが、その分各読取部に原稿を読み取
らせるために必要な、原稿の副走査のための搬送経路が
長くなるため、装置が大型化することになり、やはりコ
ストが嵩んでしまう問題があった。
On the other hand, in the above-mentioned conventional apparatus for reading a double-sided original, when the reading units for each side of the double-sided original are arranged with a difference of not less than the length of the original, both sides of one double-sided original are simultaneously printed. Since there is no reading period, it is not necessary to encode the image data output from each reading unit at the same time, but because of the sub-scanning of the document that is required to cause each reading unit to read the document. However, since the transport path of the device becomes long, the device becomes large in size, and there is a problem that the cost also increases.

【0007】本発明は係る事情に鑑みてなされたもので
あり、装置を大型化することなく1つの符号化器で両面
原稿の各面の画データを符号化してそれら各面毎の符号
化画データを得ることができる両面原稿読取装置を提供
することを目的とする。
The present invention has been made in view of such circumstances, and the image data of each side of a double-sided original is encoded by one encoder without increasing the size of the apparatus, and the encoded image of each side is encoded. An object of the present invention is to provide a double-sided document reading device that can obtain data.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の両面原稿読取装置は、相対的に副走
査される原稿の両面のうちの一方の面を第1読取手段に
よりライン単位で読み取って得た画データと、前記原稿
の他方の面を第2読取手段によりライン単位で読み取っ
て得た画データとをそれぞれ符号化して前記各面毎の符
号化画データを得る両面原稿読取装置において、前記第
1及び第2読取手段は、それぞれの副走査方向の読取位
置が前記原稿を挟んで互いにほぼ一致する配置で設けら
れる一方、前記第1及び第2読取手段からそれぞれ順次
出力される前記原稿の副走査範囲分のラインデータを交
互に切り換えて選択出力するライン選択手段と、そのラ
イン選択手段から出力されるラインデータを順次符号化
して符号化ラインデータを出力する符号化手段と、その
符号化手段から出力される符号化ラインデータを、前記
第1読取手段で読み取れられて符号化された第1読取手
段側符号化ラインデータと、前記第2読取手段で読み取
れられて符号化された第2読取手段側符号化ラインデー
タとに分離する符号化ライン分離手段と、その符号化ラ
イン分離手段によりそれぞれ分離された第1及び第2読
取手段側符号化ラインデータをそれぞれ順次蓄積して前
記原稿の一方の面の符号化画データと他方の面の符号化
画データとをそれぞれ得る第1及び第2の符号化画デー
タ蓄積手段とを備えたことを特徴とする。
In order to achieve the above object, a double-sided document reading device according to a first aspect of the present invention is characterized in that one side of both sides of a document that is relatively sub-scanned is lined by the first reading means. A double-sided original in which the image data obtained by reading in units and the image data obtained by reading the other side of the original in line units by the second reading unit are respectively encoded to obtain encoded image data in each side. In the reading device, the first and second reading means are provided such that their reading positions in the sub-scanning direction substantially coincide with each other across the document, while the first and second reading means sequentially output the reading positions. Line selection means for alternately switching and outputting line data for the sub-scanning range of the document, and line data output from the line selection means are sequentially encoded to obtain an encoded line data. Encoding means for outputting the data, encoding line data output from the encoding means, encoded line data read by the first reading means and encoded by the first reading means, and the second encoding means. Encoding line separating means for separating the second reading means side encoded line data read and encoded by the reading means, and first and second reading means side codes respectively separated by the encoding line separating means. First and second encoded image data accumulating means for sequentially accumulating the encoded line data to obtain the encoded image data on one side and the encoded image data on the other side of the original, respectively. Is characterized by.

【0009】請求項2記載の両面原稿読取装置は、相対
的に副走査される原稿の両面のうちの一方の面を第1読
取手段によりライン単位で読み取って得た画データと、
前記原稿の他方の面を第2読取手段によりライン単位で
読み取って得た画データとをそれぞれ符号化して前記各
面毎の符号化画データを得る両面原稿読取装置におい
て、前記第1及び第2読取手段は、それぞれの副走査方
向の読取位置が前記原稿を挟んで互いに異なる配置で設
けられると共にそれぞれの読取位置の副走査方向のずれ
に応じて前記原稿の副走査範囲を含みその原稿の副走査
範囲よりも広い共通の副走査範囲分のラインデータを出
力する一方、前記第1及び第2読取手段からそれぞれ順
次出力されるラインデータを交互に切り換えて選択出力
するライン選択手段と、そのライン選択手段からの出力
される前記共通の副走査範囲分のラインデータのうちの
前記第1及び第2読取手段の配置位置のずれに応じた先
頭の所定ライン数のライン分のラインデータについては
符号化ラインデータを出力せず、その所定ライン数以後
の前記原稿の副走査範囲に含まれるラインデータのみを
順次符号化して符号化ラインデータを出力する符号化手
段と、その符号化手段から出力される符号化ラインデー
タを、前記第1読取手段で読み取られて符号化された第
1読取手段側符号化ラインデータと、前記第2読取手段
で読み取られて符号化された第2読取手段側符号化ライ
ンデータとに分離する符号化ライン分離手段と、その符
号化ライン分離手段によりそれぞれ分離された第1及び
第2読取手段側符号化ラインデータをそれぞれ順次蓄積
して前記原稿の一方の面の符号化画データと他方の面の
符号化画データとをそれぞれ得る第1及び第2の符号化
画データ蓄積手段とを備えたことを特徴とする。
According to another aspect of the present invention, there is provided a double-sided document reading device, in which image data obtained by reading one surface of both sides of a document to be relatively sub-scanned by the first reading means in line units.
In the double-sided original reading device, the other side of the original is coded with the image data obtained by reading the other side by the second reading unit to obtain the encoded image data for each side. The reading unit is provided with reading positions in the sub-scanning direction that are different from each other across the document, and includes a sub-scanning range of the document in accordance with a deviation of each reading position in the sub-scanning direction. While outputting line data for a common sub-scanning range wider than the scanning range, line selection means for alternately switching and selectively outputting line data sequentially output from the first and second reading means, and the line thereof. Of the line data for the common sub-scanning range output from the selecting means, a predetermined number of leading lines corresponding to the displacement of the arrangement position of the first and second reading means Encoding means for outputting the encoded line data by sequentially encoding only the line data included in the sub-scanning range of the document after the predetermined number of lines without outputting the encoded line data for the line data for the IN portion. The coded line data output from the coding means is coded by the first reading means and is coded by the first reading means, and the coded line data read by the second reading means is coded. The encoding line separation means for separating the encoded line data into the encoded second line data on the second reading means side, and the encoded line data on the first and second reading means sides separated by the encoding line separation means are sequentially accumulated. And a first and second encoded image data storage means for respectively obtaining encoded image data on one side of the original and encoded image data on the other side. To.

【0010】請求項3記載の両面原稿読取装置は、請求
項2記載の両面原稿読取装置において、前記所定ライン
数を設定する先頭無効ライン数設定手段を備えたことを
特徴とする。
A double-sided document reading device according to a third aspect of the present invention is the double-sided document reading device according to the second aspect, further comprising head invalid line number setting means for setting the predetermined number of lines.

【0011】[0011]

【発明の実施の形態】以下、添付図面を参照しながら、
本発明の実施の形態を詳細に説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG.
An embodiment of the present invention will be described in detail.

【0012】図1は、本発明に係る両面原稿読取装置を
構成の一部として含むG3ファクシミリ装置を示してい
る。
FIG. 1 shows a G3 facsimile apparatus including a double-sided document reading apparatus according to the present invention as a part of its construction.

【0013】同図において、スキャナ部3は、両面原稿
を読み取るためのものであり、原稿の表裏両面のそれぞ
れの面をライン単位で読み取るための密着センサ1a及
び1bと、それらの密着センサがそれぞれ読み取ったア
ナログライン信号を2値化してラインデータを出力する
表面読取部2a及び裏面読取部2bと、原稿を密着セン
サ1a及び1bに対して相対的に副走査する、図示しな
い原稿搬送手段とから構成されている。
In FIG. 1, the scanner unit 3 is for reading a double-sided original, and the contact sensors 1a and 1b for reading the front and back surfaces of the original on a line-by-line basis and the contact sensors, respectively. From a front surface reading unit 2a and a back surface reading unit 2b that binarize the read analog line signal and output line data, and a document conveying unit (not shown) that subscans the document relative to the contact sensors 1a and 1b. It is configured.

【0014】符号化復号化部4は、表面読取部2a及び
裏面読取部2bからのラインデータを、MH、MR、M
MR方式等の符号化方式で1ラインずつ符号化して符号
化ラインデータを出力する一方、受信画データを復号化
するものである。画像メモリ5は、符号化復号化部4で
ライン単位で符号化された符号化ラインデータを順次格
納したり、受信画データを蓄積することによりページ単
位の符号化画データを蓄積するものである。
The encoding / decoding unit 4 converts the line data from the front surface reading unit 2a and the back surface reading unit 2b into MH, MR, and M.
It encodes line by line by an encoding system such as MR system and outputs encoded line data, while decoding received image data. The image memory 5 sequentially stores encoded line data encoded in line units in the encoding / decoding unit 4 and accumulates received image data to accumulate encoded image data in page units. .

【0015】プロッタ6は、符号化復号化部4で復号さ
れた、画像メモリ5に蓄積されたページ単位の符号化画
データを記録出力するものである。つまり、画像メモリ
5に蓄積された符号化画データが受信画データであれ
ば、ファクシミリ装置としての記録出力動作をし、画像
メモリ5に蓄積された符号化画データがスキャナ部3か
らのものであれば、複写機としての記録出力動作をす
る。
The plotter 6 records and outputs the encoded image data for each page, which is decoded by the encoding / decoding unit 4 and is accumulated in the image memory 5. That is, if the encoded image data stored in the image memory 5 is received image data, the facsimile apparatus performs a recording / output operation, and the encoded image data stored in the image memory 5 is output from the scanner unit 3. If there is, a recording output operation as a copying machine is performed.

【0016】CPU7は、装置各部を制御するものであ
る。ROM8は、CPU7の動作手順や各種データが予
め記憶されているものである。RAM9は、CPU7の
作業領域として一時的なデータが格納される一方、スキ
ャナ部3と、符号化復号部4との間に介在して、それら
の処理速度の変動を緩衝するためのラインバッファ群
(これについては後述する)が確保されているものであ
る。
The CPU 7 controls each part of the apparatus. The ROM 8 stores the operation procedure of the CPU 7 and various data in advance. The RAM 9 stores temporary data as a work area of the CPU 7, and is interposed between the scanner unit 3 and the encoding / decoding unit 4 to buffer a variation in processing speed thereof. (This will be described later) is secured.

【0017】モデム10は、送受信信号を変換復調を行
うものであり、網制御部11は、所定の手順によりファ
クシミリ装置を回線に接続するためのものである。操作
表示部12は、ユーザからの各種入力を受け入れると共
に、ユーザに対して装置の動作状況やメッセージを表示
するためのものである。
The modem 10 converts and demodulates a transmission / reception signal, and the network control unit 11 is for connecting a facsimile machine to a line by a predetermined procedure. The operation display unit 12 is for receiving various inputs from the user and displaying the operation status and messages of the apparatus to the user.

【0018】図2は、図1に示したファクシミリ装置を
本発明に係る両面原稿読取装置として見た場合の模式的
構成を示している。
FIG. 2 shows a schematic configuration of the facsimile apparatus shown in FIG. 1 when viewed as a double-sided document reading apparatus according to the present invention.

【0019】同図において、表面読取部2a及び裏面読
取部2bは、それぞれ、それらに対して相対的に副走査
される1枚の両面原稿の表面及び裏面のラインデータを
並行して出力している。
In the figure, the front side reading section 2a and the back side reading section 2b respectively output the line data of the front side and the back side of one double-sided original that is sub-scanned relative to them in parallel. There is.

【0020】それら並行して出力されるラインデータ
は、CPU7により表裏交互に読み出されて、読み出さ
れた順にRAM9に確保されたラインバッファ群9aに
格納される。この動作は、模式的にいうならば、図2に
示すように、表面読取部2a及び裏面読取部2bからそ
れぞれ出力されるラインデータをCPU7がスイッチS
W1を交互に切り換えることにより選択出力してライン
バッファ群9aに入力するものともいえる。
The line data output in parallel are read alternately by the CPU 7 from the front to the back, and are stored in the line buffer group 9a secured in the RAM 9 in the order of reading. If this operation is schematically described, as shown in FIG. 2, the CPU 7 causes the switch S to output line data output from the front surface reading unit 2a and the back surface reading unit 2b.
It can be said that W1 is alternately switched and selectively output and input to the line buffer group 9a.

【0021】ラインバッファ群9aは、ラインバッファ
0からラインバッファ9までの10本のラインバッファ
から構成されている。CPU7が表面読取部2aまたは
裏面読取部2bから読み出したラインデータを何番目の
ラインバッファに格納するかは、書き込みポインタPw
の値によって決まる。書き込みポインタPwは、ライン
データが、現時点の書き込みポインタPwの示すライン
バッファに書き込まれる毎にCPU7によってカウント
アップされる10進カウンタであり、0、1、2、…、
8、9とカウントアップされると、次のカウントでは、
桁上がりが無視されて再び0に戻って同様のカウントア
ップが繰り返されるものである。
The line buffer group 9a is composed of ten line buffers from line buffer 0 to line buffer 9. The write pointer Pw determines which line buffer the CPU 7 stores the line data read from the front surface reading unit 2a or the back surface reading unit 2b.
Is determined by the value of The write pointer Pw is a decimal counter that is incremented by the CPU 7 every time line data is written in the line buffer indicated by the write pointer Pw at the present time, and is 0, 1, 2, ...
When it counts up to 8 and 9, in the next count,
The carry is ignored, the value returns to 0 again, and the same count-up is repeated.

【0022】ラインバッファ群9aに格納されたライン
データは、CPU7により、書き込まれた順に読み出さ
れて符号化復号化部4に入力される。その際、どのライ
ンバッファから読み出すかは、読み出しポインタPrの
値によって決まる。読み出しポインタPrは、書き込み
ポインタPwと同様に、ラインデータが、現時点の読み
出しポインタPrの示すラインバッファから読み出され
る毎にCPU7によってカウントアップされる10進カ
ウンタであり、0、1、2、…、8、9とカウントアッ
プされると、次のカウントでは、桁上がりが無視されて
再び0に戻って同様のカウントアップが繰り返されるも
のである。
The line data stored in the line buffer group 9a are read by the CPU 7 in the order in which they are written and input to the encoding / decoding unit 4. At this time, which line buffer to read from depends on the value of the read pointer Pr. Like the write pointer Pw, the read pointer Pr is a decimal counter that is incremented by the CPU 7 each time line data is read from the line buffer indicated by the current read pointer Pr, and is 0, 1, 2, ... When the count is incremented to 8 and 9, the carry is ignored in the next count, the count returns to 0 again, and the same count up is repeated.

【0023】このように、ラインバッファ群9aを介す
ることにより、表面読取部2a及び裏面読取部2bと、
符号化復号化部4との処理速度の変動が緩衝されつつ、
符号化復号化部4に交互に入力される表面側ラインデー
タ及び裏面側ラインデータは、符号化復号化部4により
符号化されて符号化ラインデータとして出力される。
As described above, the front surface reading unit 2a and the back surface reading unit 2b are provided by interposing the line buffer group 9a.
While buffering the fluctuation of the processing speed with the encoding / decoding unit 4,
The front side line data and the back side line data that are alternately input to the encoding / decoding unit 4 are encoded by the encoding / decoding unit 4 and output as encoded line data.

【0024】符号化復号化部4から出力される符号化ラ
インデータは、表面読取部2aで読み取られた表面側ラ
インデータを符号化した表面側符号化ラインデータと、
裏面読取部2bで読み取られた裏面側ラインデータを符
号化した裏面側符号化ラインデータとが混在したもので
あるが、その混在する符号化ラインデータは、CPU7
により表面側符号化ラインデータと、裏面側符号化ライ
ンデータとにより分離され、表面側符号化ラインデータ
は、表面画データ蓄積メモリ5aに、裏面側符号化ライ
ンデータは、裏面画データ蓄積メモリ5bに順次格納さ
れる。この動作は、模式的にいうならば、図2に示すよ
うに、符号化復号化部4から出力される符号化ラインデ
ータをCPU7がスイッチSW2を切り換えることによ
り、表面側符号化ラインデータと、裏面側符号化ライン
データとに分離して表面画データ蓄積メモリ5a及び裏
面画データ蓄積メモリ5bにそれぞれ入力するものとも
いえる。
The coded line data output from the coding / decoding section 4 is the front side coded line data obtained by coding the front side line data read by the front side reading section 2a.
The back side encoded line data obtained by encoding the back side line data read by the back side reading unit 2b is mixed, and the mixed encoded line data is the CPU 7
Are separated by the front side encoded line data and the back side encoded line data, the front side encoded line data is stored in the front side image data storage memory 5a, and the back side encoded line data is stored in the back side image data storage memory 5b. Are sequentially stored in. If this operation is schematically described, as shown in FIG. 2, by the CPU 7 switching the switch SW2, the encoded line data output from the encoding / decoding unit 4 and the encoded line data on the front side, It can also be said to be separated into the back side encoded line data and input to the front side image data storage memory 5a and the back side image data storage memory 5b, respectively.

【0025】このように、符号化復号化部4から順次出
力される符号化ラインデータを、表面側符号化ラインデ
ータと、裏面側符号化ラインデータとにより分離して、
それぞれの符号化ラインデータをそれぞれ表面画データ
蓄積メモリ5aと、裏面画データ蓄積メモリ5bとに分
けて順次蓄積するとことにより、表面画データ蓄積メモ
リ5aには、原稿の表面のページの符号化画データが、
裏面画データ蓄積メモリ5bには、原稿の裏面のページ
の符号化画データがそれぞれ得られることになる。
In this way, the encoded line data sequentially output from the encoding / decoding unit 4 is separated by the front side encoded line data and the back side encoded line data,
The encoded line data is divided into the front image data storage memory 5a and the back image data storage memory 5b, respectively, and sequentially stored, so that the front image data storage memory 5a stores the encoded images of the front page of the document. The data is,
In the back side image data storage memory 5b, the coded image data of the back side page of the document is obtained.

【0026】それら表面画データ蓄積メモリ5aと、裏
面画データ蓄積メモリ5bとにそれぞれ得られた両面原
稿の各ページ毎の符号化画データに対しては、前述した
ように、相手ファクシミリ装置に送信したり、プロッタ
6により記録出力したりする等の後段処理がなされる。
The encoded image data for each page of the double-sided original obtained in the front side image data storage memory 5a and the back side image data storage memory 5b are transmitted to the other facsimile machine as described above. And post-processing such as recording and outputting by the plotter 6 are performed.

【0027】以上簡単に説明した図2に示す構成によ
り、両面原稿の表面及び裏面に対応して表面読取部2a
及び裏面読取部2bからそれぞれ出力される表面側ライ
ンデータと、裏面側ラインデータとは、1つの符号化器
である符号化復号化部4により符号化された後に表面側
符号化ラインデータ及び裏面側符号化ラインデータとに
分離されて、それぞれ両面原稿の表面及び裏面ページ毎
の符号化画データにまとめられるため、従来のように、
両面原稿の各面毎の読取部が、原稿の副走査範囲内に配
置された場合でも、それぞれの読取部に対応して2つの
符号化器を設ける必要がなくなる。したがって、装置の
大型化なしに符号化器を1つにすることができる。
With the configuration shown in FIG. 2 briefly described above, the front side reading section 2a corresponds to the front and back sides of a double-sided original.
The front side line data and the back side line data respectively output from the back side reading unit 2b and the back side reading unit 2b are encoded by the encoding / decoding unit 4 which is one encoder, and then the front side encoded line data and the back side line data. Since it is separated into side encoded line data and collected into encoded image data for each of the front and back pages of a double-sided original, as in the conventional case,
Even if the reading unit for each side of the double-sided document is arranged within the sub-scanning range of the document, it is not necessary to provide two encoders corresponding to the respective reading units. Therefore, one encoder can be provided without increasing the size of the device.

【0028】次に、図2に示した本発明に係る両面原稿
読取装置における具体的な符号化処理手順について説明
する。
Next, a specific encoding processing procedure in the double-sided document reading apparatus according to the present invention shown in FIG. 2 will be described.

【0029】その処理手順としては、表面読取部2a
と、裏面読取部2bとの原稿の副走査方向の相対的な読
取位置によって2通りの手順がある。すなわち、表面読
取部2aと裏面読取部2bとの原稿の副走査方向の相対
的な読取位置が一致する場合と一致しない場合である。
なお、表面読取部2a及び裏面読取部2bの副走査方向
の相対的な読取位置とは、それらの各読取部が読み取っ
ている主走査ラインの副走査方向の位置の差であり、具
体的には、各読取部に対応する密着センサ1a及び1b
がそれぞれ備える、主走査ライン方向に一列に配置され
た光電変換素子の副走査方向の互いの距離である。な
お、本実施の形態のように、原稿を読み取るためのイメ
ージセンサが密着センサの場合は光電変換素子の位置が
そのまま読取位置となるが、それ以外のイメージセンサ
(CCD)ついては、そのイメージセンサに入力される
主走査ライン画像の原稿搬送経路における副走査方向の
位置として一般化して考えることができる。
The processing procedure is as follows:
Then, there are two procedures depending on the relative reading position of the document in the sub-scanning direction with respect to the back surface reading section 2b. That is, there are cases where the relative reading positions of the document in the sub-scanning direction of the front surface reading unit 2a and the back surface reading unit 2b match, and where they do not match.
The relative reading position of the front surface reading unit 2a and the back surface reading unit 2b in the sub-scanning direction is the difference between the positions in the sub-scanning direction of the main scanning lines read by the respective reading units. Is the contact sensors 1a and 1b corresponding to each reading unit.
Of the photoelectric conversion elements arranged in a line in the main scanning line direction, respectively, in the sub scanning direction. When the image sensor for reading the original is a contact sensor as in the present embodiment, the position of the photoelectric conversion element is the reading position as it is, but for other image sensors (CCD), the image sensor It can be generalized and considered as the position of the input main scanning line image in the sub-scanning direction in the document conveyance path.

【0030】図3は、表面読取部2aと裏面読取部2b
との原稿の副走査方向の相対的な読取位置が一致する場
合の、密着センサ1a及び1bの配置を示している。同
図において、密着センサ1a及び1bは、それぞれの副
走査方向の読取位置1a及び1bが原稿を挟んで互いに
ほぼ一致する配置で設けられている。なお、密着センサ
1a及び1bの手前に設けられたセンサS2及びそのセ
ンサS2よりも更に手前に設けられたセンサS1はスキ
ャナ部3の構成に含まれるものであり、同図に示される
移動方向に読み取るべき原稿が移動する際に、原稿の先
端及び後端を光学的に検出する既知の原稿端検出センサ
である。センサS1は、密着センサ1a及び1bよりも
ずっと手前に設けられ、原稿の先端を検出するとで、読
み取るべき原稿が接近していることを検出するものであ
り、スキャナ部3は、センサS1が原稿の接近を検出す
ると原稿読取のための準備をする。センサS2は、密着
センサ1a及び1bの近傍に設けられ、密着センサ1a
及び1bが原稿の先端から正確に読み取りを開始できる
ようにするための基準を与えるものである。
FIG. 3 shows the front side reading section 2a and the back side reading section 2b.
6 shows the arrangement of the contact sensors 1a and 1b when the relative reading positions of the document in the sub-scanning direction coincide with each other. In the figure, the contact sensors 1a and 1b are arranged such that their respective reading positions 1a and 1b in the sub-scanning direction substantially coincide with each other with a document interposed therebetween. The sensor S2 provided in front of the contact sensors 1a and 1b and the sensor S1 provided further in front of the sensor S2 are included in the configuration of the scanner unit 3, and are arranged in the moving direction shown in FIG. This is a known document edge detection sensor that optically detects the leading edge and the trailing edge of the document when the document to be read moves. The sensor S1 is provided far in front of the contact sensors 1a and 1b and detects that the document to be read is approaching by detecting the leading edge of the document. When the approach is detected, the document is prepared for reading. The sensor S2 is provided in the vicinity of the contact sensors 1a and 1b, and the contact sensor 1a
1b and 1b provide a reference for allowing the reading to be accurately started from the leading edge of the document.

【0031】図4は、表面読取部2aと裏面読取部2b
との原稿の副走査方向の相対的な読取位置が互いに異な
る場合の、密着センサ1a及び1bの配置を示してい
る。同図において、密着センサ1a及び1bは、それぞ
れの副走査方向の読取位置1a及び1bが原稿を挟んで
互いに異なる配置で設けられている。なお、密着センサ
1a及び1bの手前に設けられたセンサS2及びそのセ
ンサS2よりも更に手前に設けられたセンサS1はスキ
ャナ部3の構成に含まれるものであり、同図に示される
移動方向に読み取るべき原稿が移動する際に、原稿の先
端及び後端を光学的に検出する既知の原稿端検出センサ
である。センサS1は、密着センサ1a及び1bよりも
ずっと手前に設けられ、原稿の先端を検出するとで、読
み取るべき原稿が接近していることを検出するものであ
り、スキャナ部3は、センサS1が原稿の接近を検出す
ると原稿読取のための準備をする。センサS2は、密着
センサ1a及び1bの近傍に設けられ、密着センサ1a
及び1bが原稿の先端から正確に読み取りを開始できる
ようにするための基準を与えるものである。
FIG. 4 shows the front side reading section 2a and the back side reading section 2b.
6 shows the arrangement of the contact sensors 1a and 1b when the relative reading positions of the originals in the sub-scanning direction are different from each other. In the figure, the contact sensors 1a and 1b are arranged such that their reading positions 1a and 1b in the sub-scanning direction are different from each other with a document interposed therebetween. The sensor S2 provided in front of the contact sensors 1a and 1b and the sensor S1 provided further in front of the sensor S2 are included in the configuration of the scanner unit 3, and are arranged in the moving direction shown in FIG. This is a known document edge detection sensor that optically detects the leading edge and the trailing edge of the document when the document to be read moves. The sensor S1 is provided far in front of the contact sensors 1a and 1b and detects that the document to be read is approaching by detecting the leading edge of the document. When the approach is detected, the document is prepared for reading. The sensor S2 is provided in the vicinity of the contact sensors 1a and 1b, and the contact sensor 1a
1b and 1b provide a reference for allowing the reading to be accurately started from the leading edge of the document.

【0032】さて、まず、図2に示した本発明に係る両
面原稿読取装置において、図3に示すように表面読取部
2aと裏面読取部2bとの原稿の副走査方向の相対的な
読取位置が一致する場合の具体的な符号化処理手順につ
いて、図5及び図6を参照して説明する。なお、CPU
7は、ラインバッファ群9aを介することにより、以下
説明する符号化処理手順と並行して、スキャナ部3を制
御することによる原稿読取処理を行っているが、その原
稿読取処理については、以下の符号化処理手順の説明に
おいて、随時説明する。
First, in the double-sided document reading apparatus according to the present invention shown in FIG. 2, as shown in FIG. 3, the relative reading positions of the front side reading section 2a and the back side reading section 2b in the sub-scanning direction of the original. A specific encoding process procedure in the case of matching will be described with reference to FIGS. 5 and 6. In addition, CPU
7 performs the document reading process by controlling the scanner unit 3 in parallel with the encoding process procedure described below by way of the line buffer group 9a. The document reading process will be described below. In the description of the encoding processing procedure, it will be described as needed.

【0033】それらの図において、CPU7は、初期化
処理101において、各種フラグの初期化や符号化復号
化部4の初期化を行う。そして、スキャナ部3によって
これから読み取られようとする両面原稿の副走査範囲
(原稿を副走査方向に読み取るのに要する主走査ライン
数)を示す総ライン数Lmaxに、通常の原稿ではあり
得ないような大きな値である、仮の値FFFFHを代入
し(処理102)、符号化処理済みライン数を示すライ
ン数カウンタClに0を代入し(理103)、前述の読
み出しポインタPrに0を代入し(処理104)、表面
フラグFhに1を代入し(処理105)、表面及び裏面
画データ蓄積メモリ5a及び5bのそれぞれの格納アド
レスをそれぞれの初期値に設定する(処理106)。
In these figures, the CPU 7 initializes various flags and the encoding / decoding unit 4 in the initialization processing 101. Then, the total number of lines Lmax indicating the sub-scanning range (the number of main scanning lines required to read the document in the sub-scanning direction) of the double-sided document to be read by the scanner unit 3 cannot be a normal document. A large tentative value FFFFH (process 102), 0 is assigned to the line number counter Cl indicating the number of lines that have been subjected to the encoding process (Scheme 103), and 0 is assigned to the read pointer Pr. (Processing 104), 1 is assigned to the front surface flag Fh (Processing 105), and the respective storage addresses of the front and back image data storage memories 5a and 5b are set to their respective initial values (Processing 106).

【0034】そして、次に、ラインバッファにデータが
あるかを調べる(判断107)。ラインバッファにデー
タがあるということは、原稿読取処理によりスキャナ部
3の表面読取部2a及び裏面読取部2bからのラインデ
ータがラインバッファに入力されており、かつ、まだ符
号化処理していないラインデータがあるかということで
あるから、未処理のラインバッファ数をカウントし、そ
のカウント値が0がどうかを調べることにより判断でき
る。
Then, it is checked whether or not there is data in the line buffer (decision 107). The fact that there is data in the line buffer means that the line data from the front surface reading unit 2a and the back surface reading unit 2b of the scanner unit 3 has been input to the line buffer by the document reading process and has not been encoded yet. Since there is data, it can be determined by counting the number of unprocessed line buffers and checking if the count value is 0.

【0035】ラインバッファにデータがない間は、ライ
ンバッファにデータがある状態になるまで待機する(判
断107のNoループ)。ラインバッファにデータがあ
る状態になりうるのは、原稿の副走査を順次行っている
原稿読取処理において、センサS2が原稿の先端を検出
してから、予めわかっているセンサS2の位置から密着
センサ1a及び1bの読取位置1a及び1b(これらの
位置は一致している)まで原稿の先端が変位するのに要
する副走査幅(主走査ライン数に換算できる)だけ原稿
を副走査したときに表面読取部2a及び裏面読取部2b
で同時に原稿の読取を開始した後である。
While there is no data in the line buffer, it waits until there is data in the line buffer (No loop of decision 107). The line buffer may have data because the contact sensor from the position of the sensor S2 which is known in advance after the sensor S2 detects the leading edge of the document in the document reading process in which the document subscanning is sequentially performed. The surface when the document is sub-scanned by the sub-scanning width (which can be converted into the number of main scanning lines) required for the leading edge of the document to be displaced to the reading positions 1a and 1b of 1a and 1b (these positions are the same). Reading unit 2a and back side reading unit 2b
At the same time, the reading of the original is started.

【0036】このようにしてラインバッファにデータが
ある状態になった場合(判断107のYes)は、次に
総ライン数LMAXが、原稿読取処理から通知されてい
るかを調べる(判断108)。この総ライン数LMAX
は、原稿読取処理においてセンサS2が原稿の先端を検
出してから原稿の後端を検出するまでの副走査幅(原稿
の副走査範囲)を主走査ライン数に換算した値である。
センサS2は、密着センサ1a及び1bよりも手前にあ
るため、総ライン数LMAXは、この符号化処理を終了
するまでに必ず原稿読取処理から通知されるものであ
る。
When the line buffer has data in this way (Yes in decision 107), it is next checked whether the total line number LMAX has been notified from the document reading process (decision 108). This total number of lines LMAX
Is a value obtained by converting the sub-scanning width (sub-scanning range of the document) from the detection of the front end of the document to the detection of the rear end of the document in the document reading process into the number of main scanning lines.
Since the sensor S2 is in front of the contact sensors 1a and 1b, the total line number LMAX is always notified from the document reading process by the end of this encoding process.

【0037】総ライン数LMAXが、原稿読取処理から
通知されている場合(判断108のYes)は、符号化
処理における総ライン数Lmaxに通知されたLMAX
を代入して(これにより、以後、符号化処理は、読み取
っている原稿の副走査範囲を知ったことになる)、判断
110に移る。通知されていない場合(判断108のN
o)は、ないもしないで判断110に移る。
When the total line number LMAX is notified from the document reading process (Yes in determination 108), the LMAX notified to the total line number Lmax in the encoding process is notified.
(By this, the encoding process thereafter knows the sub-scanning range of the document being read), and the routine proceeds to the judgment 110. When not notified (N of judgment 108)
In the case of o), the process moves to the judgment 110 with or without.

【0038】CPU7は、判断110では、表面フラグ
Fhが1であるかを調べ、1(表面)であれば、処理1
11から処理114までの表面符号化処理を順次実行し
て処理120に移り、0(裏面)であれば、処理115
から処理119までの裏面符号化処理を順次実行して処
理120に移る。
In the judgment 110, the CPU 7 checks whether the front surface flag Fh is 1, and if it is 1 (front surface), the processing 1
The front side encoding process from 11 to process 114 is sequentially executed, and the process proceeds to process 120. If 0 (back side), process 115
To the processing 119, the back surface encoding processing is sequentially executed, and the processing proceeds to the processing 120.

【0039】先ず、表面符号化処理では、読み出しポイ
ンタPrの示すラインバッファからラインデータを読み
出して符号化復号化部4に入力することにより1ライン
符号化(本実施の形態では、MH方式であるとする)し
(処理111)、その符号化された符号化ラインデータ
を表面画データ蓄積メモリ5aの格納アドレスに格納し
(処理112)、処理112で新たに格納された符号化
ラインデータの最後のデータのアドレスの次のアドレス
を新たな格納アドレスとして更新する(処理113)。
そして、表面フラグFhに0を代入する(処理11
4)。なお、符号化処理では、読み出しポインタPrの
示すラインバッファからラインデータを読み出している
が、原稿読取処理では、書き込みポインタPwの示すラ
インバッファに表面読取部2aからのラインデータと、
裏面読取部2bからのラインデータが交互に入力されて
いる。また、その入力順は、表面読取部2aからのライ
ンデータが先で裏面読取部2bからのラインデータが後
である。したがって、ラインバッファから読み出される
ラインデータも、表面読取部2aからのものが先で裏面
読取部からのものが後になる。
First, in the surface coding process, line data is read from the line buffer indicated by the read pointer Pr and input to the coding / decoding unit 4 to perform one-line coding (in this embodiment, the MH system is used). (Processing 111), the coded coded line data is stored in the storage address of the front image data storage memory 5a (Process 112), and the last of the coded line data newly stored in Process 112 is stored. The address next to the address of the data is updated as a new storage address (process 113).
Then, 0 is substituted for the front surface flag Fh (Processing 11
4). In the encoding process, the line data is read from the line buffer indicated by the read pointer Pr, but in the document reading process, the line data from the front surface reading unit 2a is written in the line buffer indicated by the write pointer Pw.
Line data from the back surface reading unit 2b is alternately input. In the input order, the line data from the front surface reading unit 2a comes first and the line data from the back surface reading unit 2b comes later. Therefore, also in the line data read from the line buffer, the data from the front surface reading unit 2a comes first and the data from the back surface reading unit comes later.

【0040】さて、一方、裏面符号化処理では、読み出
しポインタPrの示すラインバッファからラインデータ
を読み出して符号化復号化部4に入力することにより1
ライン符号化し(処理115)、その符号化された符号
化ラインデータを裏面画データ蓄積メモリ5bの格納ア
ドレスに格納し(処理116)、処理116で新たに格
納された符号化ラインデータの最後のデータのアドレス
の次のアドレスを新たな格納アドレスとして更新する
(処理117)。そして、表面フラグFhに1を代入し
(処理118)、ライン数カウンタClを1だけカウン
トアップする(処理119)。
On the other hand, in the back side encoding process, the line data is read from the line buffer indicated by the read pointer Pr and input to the encoding / decoding unit 4 to obtain 1
Line coding (process 115) is performed, the coded coded line data is stored in a storage address of the backside image data storage memory 5b (process 116), and the last coded line data newly stored in process 116 is stored. The address next to the data address is updated as a new storage address (process 117). Then, 1 is assigned to the front surface flag Fh (process 118), and the line number counter Cl is incremented by 1 (process 119).

【0041】以上の表面符号化処理または裏面符号化処
理がなされた後に読み出しポインタPrを1だけカウン
トアップした(処理120)た後、ライン数カウンタC
lの値が総ライン数Lmaxに達したかを調べる(判断
121)。達していれば(判断121のYes)、符号
化すべき原稿の副走査範囲のすべてについて符号化が完
了したことになるため、表面及び裏面画データ蓄積メモ
リのそれぞれの格納アドレスにRTCコードを格納する
(処理123)。達していなければ(判断121のN
o)、まだ、符号化すべき原稿の副走査範囲のすべてに
ついては符号化が完了していないことになるため判断1
07に戻り、符号化処理を繰り返す。
After the above-described front side encoding processing or back side encoding processing is performed, the read pointer Pr is incremented by 1 (step 120), and then the line number counter C is obtained.
It is checked whether the value of 1 has reached the total number of lines Lmax (decision 121). If it has reached (Yes in judgment 121), it means that the encoding has been completed for the entire sub-scanning range of the document to be encoded, and therefore the RTC code is stored in the respective storage addresses of the front and back image data storage memories. (Process 123). If not reached (N of judgment 121)
o), it is judged that the encoding has not been completed for all of the sub-scanning range of the original document to be encoded.
Returning to 07, the encoding process is repeated.

【0042】以上の符号化手順により、原稿の副走査範
囲分の表裏両面の各ラインデータが、表面側ラインデー
タから開始されて、表面側ラインデータ、裏面側ライン
データの順に交互に符号化され、それら符号化された表
面側符号化ラインデータ及び裏面側符号化ラインデータ
がそれぞれ表面及び裏面画データ蓄積メモリ5a及び5
bにそれぞれ順次格納されて、最終的には表面及び裏面
ページ毎の符号化画データが、表面及び裏面画データ蓄
積メモリ5a及び5bに蓄積された状態で得られる。
By the above encoding procedure, each line data on the front and back sides of the document in the sub-scanning range is encoded starting from the front side line data and then the front side line data and the back side line data in this order. , The front side encoded line data and the back side encoded line data that have been encoded are front and back side image data storage memories 5a and 5 respectively.
Then, the encoded image data for each of the front and back pages is finally stored in the front and back image data storage memories 5a and 5b.

【0043】図7に、以上の符号化手順により処理され
る、原稿の副走査範囲分の表裏両面の各ラインデータの
処理順序を示す。なお、以上の符号化手順では、表面側
ラインデータを先に処理し、裏面データを次に処理する
ようにしたが、表か裏かは、単に両面原稿の各面を区別
する記号的な意味しか持たないため、逆の順序で処理す
ることがてきるのはいうまでもない。
FIG. 7 shows the processing order of each line data on the front and back surfaces of the original in the sub-scanning range, which is processed by the above encoding procedure. In the above coding procedure, the front side line data is processed first, and the back side data is processed next. However, whether the front side or the back side is simply a symbolic meaning for distinguishing each side of a double-sided original. Needless to say, since it has only that, it can be processed in the reverse order.

【0044】次に、図2に示した本発明に係る両面原稿
読取装置において、図4に示すように表面読取部2aと
裏面読取部2bとの原稿の副走査方向の相対的な読取位
置が異なる場合の具体的な符号化処理手順について、図
8及び図9を参照して説明する。なお、CPU7は、ラ
インバッファ群9aを介することにより、以下説明する
符号化処理手順と並行して、スキャナ部3を制御するこ
とによる原稿読取処理を行っているが、その原稿読取処
理については、以下の符号化処理手順の説明において、
随時説明する。
Next, in the double-sided document reading apparatus according to the present invention shown in FIG. 2, as shown in FIG. 4, the relative reading position of the document in the sub-scanning direction between the front side reading section 2a and the back side reading section 2b is determined. A specific encoding processing procedure when different is described with reference to FIGS. 8 and 9. The CPU 7 performs the document reading process by controlling the scanner unit 3 in parallel with the encoding process procedure described below by way of the line buffer group 9a. Regarding the document reading process, In the following description of the encoding procedure,
I will explain from time to time.

【0045】それらの図において、CPU7は、初期化
処理201において、各種フラグの初期化や符号化復号
化部4の初期化を行う。そして、スキャナ部3によって
これから読み取られようとする両面原稿の副走査範囲
(原稿を副走査方向に読み取るのに要する主走査ライン
数)を示す総ライン数Lmaxに、通常の原稿ではあり
得ないような大きな値である、仮の値FFFFHを代入
し(処理202)、表面ライン数カウンタClhに値L
aを代入し(処理203)、裏面ライン数カウンタCl
uに値Lbを代入する(処理理204)。なお、値La
及びLbは、図4に示すように、原稿端検出センサS2
から密着センサ1a及び1bの副走査方向の読取位置1
a及び1bまでの距離を、その距離だけ副走査するのに
要する主走査ライン数に換算したものであり、予め知る
ことが値である。
In these figures, the CPU 7 initializes various flags and the encoding / decoding unit 4 in the initialization processing 201. Then, the total number of lines Lmax indicating the sub-scanning range (the number of main scanning lines required to read the document in the sub-scanning direction) of the double-sided document to be read by the scanner unit 3 cannot be a normal document. Substitute a temporary value FFFFH, which is a large value (process 202), and set the value L to the surface line number counter Clh.
Substituting a (process 203), the back side line number counter Cl
The value Lb is substituted for u (processing logic 204). The value La
And Lb are, as shown in FIG. 4, the document edge detection sensor S2.
From the read position 1 of the contact sensors 1a and 1b in the sub-scanning direction
It is a value obtained by converting the distances to a and 1b into the number of main scanning lines required to perform sub-scanning by that distance, and it is a value to know in advance.

【0046】そして、表面加算フラグFkhに0を代入
し(処理205)、裏面加算フラグFkuに0を代入し
(処理206)、前述の読み出しポインタPrに0を代
入し(処理207)、表面フラグFhに1を代入し(処
理208)、表面及び裏面画データ蓄積メモリ5a及び
5bのそれぞれの格納アドレスをそれぞれの初期値に設
定する(処理209)。
Then, 0 is assigned to the front surface addition flag Fkh (process 205), 0 is assigned to the back surface addition flag Fku (process 206), and 0 is assigned to the above-mentioned read pointer Pr (process 207) to obtain the front surface flag. 1 is substituted for Fh (process 208), and the storage addresses of the front and back image data storage memories 5a and 5b are set to their respective initial values (process 209).

【0047】そして、次に、ラインバッファにデータが
あるかを調べる(判断210)。ラインバッファにデー
タがあるということは、原稿読取処理によりスキャナ部
3の表面読取部2a及び裏面読取部2bからのラインデ
ータがラインバッファに入力されており、かつ、まだ符
号化処理していないラインデータがあるかということで
あるから、未処理のラインバッファ数をカウントし、そ
のカウント値が0がどうかを調べることにより判断でき
る。
Then, it is checked whether or not there is data in the line buffer (decision 210). The fact that there is data in the line buffer means that the line data from the front surface reading unit 2a and the back surface reading unit 2b of the scanner unit 3 has been input to the line buffer by the document reading process and has not been encoded yet. Since there is data, it can be determined by counting the number of unprocessed line buffers and checking if the count value is 0.

【0048】ラインバッファにデータがない間は、ライ
ンバッファにデータがある状態になるまで待機する(判
断210のNoループ)。ラインバッファにデータがあ
る状態になりうるのは、原稿の副走査を順次行っている
原稿読取処理において、センサS2が原稿の先端を検出
したときに表面読取部2a及び裏面読取部2bで同時に
原稿の読取を開始した後である。
While there is no data in the line buffer, it waits until there is data in the line buffer (No loop of decision 210). The line buffer may be in a state of having data in the original reading process in which the sub-scanning of the original is sequentially performed when the sensor S2 detects the leading edge of the original in the front reading unit 2a and the back reading unit 2b at the same time. After starting to read.

【0049】このようにしてラインバッファにデータが
ある状態になった場合(判断210のYes)は、次に
総ライン数LMAXが、原稿読取処理から通知されてい
るかを調べる(判断211)。この総ライン数LMAX
は、原稿読取処理においてセンサS2が原稿の先端を検
出してから原稿の後端を検出するまでの副走査幅(原稿
の副走査範囲)を主走査ライン数に換算した値である。
センサS2は、密着センサ1a及び1bよりも手前にあ
るため、総ライン数LMAXは、この符号化処理を終了
するまでに必ず原稿読取処理から通知されるものであ
る。
When the line buffer has data in this way (Yes in judgment 210), it is next checked whether or not the total number of lines LMAX has been notified from the document reading process (judgment 211). This total number of lines LMAX
Is a value obtained by converting the sub-scanning width (sub-scanning range of the document) from the detection of the front end of the document to the detection of the rear end of the document in the document reading process into the number of main scanning lines.
Since the sensor S2 is in front of the contact sensors 1a and 1b, the total line number LMAX is always notified from the document reading process by the end of this encoding process.

【0050】総ライン数LMAXが、原稿読取処理から
通知されている場合(判断211のYes)は、符号化
処理における総ライン数Lmaxに通知されたLMAX
を代入して(これにより、以後、符号化処理は、読み取
っている原稿の副走査範囲を知ったことになる)、判断
213に移る。通知されていない場合(判断211のN
o)は、ないもしないで判断213に移る。
When the total line number LMAX is notified from the document reading process (Yes in determination 211), the LMAX notified to the total line number Lmax in the encoding process is notified.
(By this, the encoding process thereafter knows the sub-scanning range of the document being read), and the process proceeds to the determination 213. When not notified (N of judgment 211)
In the case of o), the process moves to the determination 213 with or without.

【0051】CPU7は、判断213では、表面フラグ
Fhが1であるかを調べ、1(表面)であれば、判断2
14以降の表面符号化処理を順次実行して処理232に
移り、0(裏面)であれば、判断223以降の裏面符号
化処理を順次実行して処理232に移る。
In the determination 213, the CPU 7 checks whether the front surface flag Fh is 1, and if it is 1 (front surface), the determination 2
The front surface encoding processing after 14 is sequentially executed and then the processing proceeds to step 232. If the value is 0 (back surface), the back surface encoding processing after determination 223 is sequentially executed and then the processing proceeds to processing 232.

【0052】先ず、表面符号化処理では、表面ライン数
カウンタClhが0であるかを調べ(判断214)、0
でなければ(判断214のNo)、更に表面加算フラグ
Fkhが1かを調べ(判断215)、1であれば(判断
215のYes)、判断235に移り、1でなければ
(判断215のNo)、表面ライン数カウンタClhを
1だけカウントダウンして(処理222)、処理232
に移る。
First, in the surface encoding processing, it is checked whether the surface line number counter Clh is 0 (decision 214), and 0 is determined.
If not (No in determination 214), it is further checked whether the front surface addition flag Fkh is 1 (determination 215), and if 1 (Yes in determination 215), the process proceeds to determination 235 and if it is not 1 (No in determination 215). ), The surface line number counter Clh is counted down by 1 (process 222), and process 232
Move on to

【0053】表面ライン数カウンタClhが0であれば
(判断214のYes)、表面加算フラグFkhに1を
代入して(処理216)から、表面ライン数カウンタC
lhが総ライン数Lmaxに達しているかを調べ(判断
235)、既に達している場合(判断235のYes)
は、処理232に移り、まだ達していない場合(判断2
35のNo)は、読み出しポインタPrの示すラインバ
ッファからラインデータを読み出して符号化復号化部4
に入力することにより1ライン符号化(本実施の形態で
は、MH方式であるとする)し(処理217)、その符
号化された符号化ラインデータを表面画データ蓄積メモ
リ5aの格納アドレスに格納し(処理218)、処理2
18で新たに格納された符号化ラインデータの最後のデ
ータのアドレスの次のアドレスを新たな格納アドレスと
して更新する(処理219)。そして、表面フラグFh
に0を代入し(処理220)、表面ライン数カウンタC
lhを1だけカウントアップし(処理221)し、処理
232に移る。なお、符号化処理では、読み出しポイン
タPrの示すラインバッファからラインデータを読み出
しているが、原稿読取処理では、書き込みポインタPw
の示すラインバッファに表面読取部2aからのラインデ
ータと、裏面読取部2bからのラインデータが交互に入
力されている。また、その入力順は、表面読取部2aか
らのラインデータが先で裏面読取部2bからのラインデ
ータが後である。したがって、ラインバッファから読み
出されるラインデータも、表面読取部2aからのものが
先で裏面読取部からのものが後になる。
If the front surface line number counter Clh is 0 (Yes in judgment 214), 1 is substituted into the front surface addition flag Fkh (step 216), and then the front surface line number counter C is obtained.
It is checked whether lh has reached the total number of lines Lmax (decision 235), and if it has already been reached (Yes in decision 235).
Moves to process 232. If it has not reached yet (decision 2
No. 35) reads the line data from the line buffer indicated by the read pointer Pr, and the encoding / decoding unit 4
1-line encoding (in the present embodiment, the MH system is assumed) (processing 217) and the encoded line data thus encoded is stored in the storage address of the surface image data storage memory 5a. (Process 218), Process 2
The address next to the address of the last data of the encoded line data newly stored in 18 is updated as a new storage address (process 219). Then, the front surface flag Fh
0 is substituted for (process 220), and the surface line number counter C
lh is incremented by 1 (process 221) and the process moves to step 232. In the encoding process, the line data is read from the line buffer indicated by the read pointer Pr, but in the document reading process, the write pointer Pw.
The line data from the front surface reading unit 2a and the line data from the back surface reading unit 2b are alternately input to the line buffer indicated by. In the input order, the line data from the front surface reading unit 2a comes first and the line data from the back surface reading unit 2b comes later. Therefore, also in the line data read from the line buffer, the data from the front surface reading unit 2a comes first and the data from the back surface reading unit comes later.

【0054】さて、一方、裏面符号化処理では、裏面ラ
イン数カウンタCluが0であるかを調べ(判断22
3)、0でなければ(判断223のNo)、更に裏面加
算フラグFkuが1かを調べ(判断224)、1であれ
ば(判断224のYes)、判断236に移り、1でな
ければ(判断224のNo)、裏面ライン数カウンタC
luを1だけカウントダウンして(処理231)、処理
232に移る。
On the other hand, in the back side encoding process, it is checked whether the back side line number counter Clu is 0 (determination 22).
3), if it is not 0 (No in decision 223), it is further checked whether the back surface addition flag Fku is 1 (decision 224), and if it is 1 (Yes in decision 224), the process proceeds to decision 236, and if it is not 1 ( Judgment 224 No), rear surface line number counter C
The lu is counted down by 1 (process 231) and the process moves to step 232.

【0055】裏面ライン数カウンタCluが0であれば
(判断223のYes)、裏面加算フラグFkuに1を
代入して(処理225)から、裏面ライン数カウンタC
luが総ライン数Lmaxに達しているかを調べ(判断
236)、既に達している場合(判断236のYes)
は、処理232に移り、まだ達していない場合(判断2
36のNo)は、読み出しポインタPrの示すラインバ
ッファからラインデータを読み出して符号化復号化部4
に入力することにより1ライン符号化し(処理22
6)、その符号化された符号化ラインデータを裏面画デ
ータ蓄積メモリ5bの格納アドレスに格納し(処理22
7)、処理227で新たに格納された符号化ラインデー
タの最後のデータのアドレスの次のアドレスを新たな格
納アドレスとして更新する(処理228)。そして、表
面フラグFhに1を代入し(処理229)、裏面ライン
数カウンタCluを1だけカウントアップし(処理23
0)し、処理232に移る。
If the back surface line number counter Clu is 0 (Yes in judgment 223), 1 is substituted into the back surface addition flag Fku (process 225), and then the back surface line number counter C
It is checked whether or not lu has reached the total number of lines Lmax (decision 236), and if already reached (Yes in decision 236).
Moves to process 232. If it has not reached yet (decision 2
No of 36) reads the line data from the line buffer indicated by the read pointer Pr, and the encoding / decoding unit 4
1-line encoding by inputting
6) The encoded coded line data is stored in the storage address of the backside image data storage memory 5b (process 22).
7), the address next to the address of the last data of the encoded line data newly stored in the process 227 is updated as a new storage address (process 228). Then, 1 is assigned to the front surface flag Fh (processing 229), and the back surface line number counter Clu is incremented by 1 (processing 23).
0) and the process moves to step 232.

【0056】以上の表面符号化処理または裏面符号化処
理がなされた後に読み出しポインタPrが1だけカウン
トアップされ(処理232)た後、表面ライン数カウン
タClh及び裏面ライン数カウンタCluの値のいずれ
もが総ライン数Lmaxに達したかを調べる(判断23
3)。達していれば(判断233のYes)、符号化す
べき原稿の表裏両面のそれぞれの副走査範囲のすべてに
ついて符号化が完了したことになるため、表面及び裏面
画データ蓄積メモリのそれぞれの格納アドレスにRTC
コードを格納する(処理234)。達していなければ
(判断233のNo)、まだ、符号化すべき原稿の表裏
両面のそれぞれの副走査範囲の、双方またはいずれか一
方の符号化が完了していないことになるため判断210
に戻り、符号化処理を繰り返す。
After the above-mentioned front surface encoding processing or back surface encoding processing is performed, the read pointer Pr is incremented by 1 (processing 232), and then both the values of the front surface line number counter Clh and the back surface line number counter Clu are determined. Has reached the total number of lines Lmax (decision 23
3). If it has reached (Yes in judgment 233), it means that the encoding has been completed for all of the respective sub-scanning ranges on the front and back sides of the document to be encoded, so that the respective storage addresses of the front and back image data storage memories are stored. RTC
The code is stored (process 234). If not reached (No in the determination 233), it means that the encoding of both or any one of the sub-scanning ranges of the front and back surfaces of the original to be encoded has not been completed yet, so the determination 210.
Then, the encoding process is repeated.

【0057】以上の符号化手順により、原稿端検出セン
サS2が、読み取るべき原稿の先端を検出すると同時に
表面読取部2a及び裏面読取部2bによる読取が開始さ
れる。そして、原稿の表面側については、読取が開始さ
れてからの主走査ライン数La分の主走査ラインについ
ては、それらのラインデータは、原稿の表面側の副走査
範囲に属さない無効なラインデータであるとして符号化
せずに廃棄し、主走査ライン数La分の主走査ラインを
読み取った後の、原稿の表面側の副走査範囲に属する総
ライン数LMAX分のラインデータが順次符号化され
て、原稿の表面側の符号化画データが得られる。
Through the above encoding procedure, the document edge detection sensor S2 detects the leading edge of the document to be read, and at the same time, the reading by the front surface reading section 2a and the back surface reading section 2b is started. On the front side of the document, for the main scanning lines of the number La of main scanning lines after the start of reading, those line data are invalid line data that do not belong to the sub-scanning range on the front side of the document. Then, the line data for the total number of lines LMAX belonging to the sub-scanning range on the front side of the document is sequentially encoded after the main scanning lines for the number La of main scanning lines are discarded without being encoded. Thus, the encoded image data on the front side of the document is obtained.

【0058】一方、原稿の裏面側については読取が開始
されてからの主走査ライン数Lb分の主走査ラインにつ
いては、それらのラインデータは、原稿の裏面側の副走
査範囲に属さない無効なラインデータであるとして符号
化せずに廃棄し、主走査ライン数Lb分の主走査ライン
を読み取った後の、原稿の裏面側の副走査範囲に属する
総ライン数LMAX分のラインデータが順次符号化され
て、原稿の裏面側の符号化画データが得られる。
On the other hand, with respect to the main scanning lines of the number Lb of main scanning lines after the reading is started on the back side of the document, those line data are invalid because they do not belong to the sub scanning range on the back side of the document. Line data for the total number of lines LMAX belonging to the sub-scanning range on the back side of the document after the main scanning lines of the number Lb of main scanning lines are discarded without being encoded as line data and sequentially encoded Then, the encoded image data on the back side of the document is obtained.

【0059】また、原稿の表面側及び裏面側の副走査範
囲にそれぞれ属する総ライン数LMAX分のラインデー
タが共に全て符号化されるまでは、原稿の一方の面の側
の副走査範囲に属する総ライン数LMAX分のラインデ
ータの符号化が完了した後も、その一方の面の側では、
原稿の副走査範囲に続く無効な主走査ラインを読取り続
け、符号化処理において読み取ったラインデータの有効
無効を判断して有効なラインデータのみを符号化するよ
うにしているため、原稿読取処理における表面側及び裏
面側の読取処理の対称性が維持できる。
Until all the line data for the total number of lines LMAX respectively belonging to the front side and the back side of the original document are all coded, they belong to the one side of the original document. Even after the encoding of the line data for the total number of lines LMAX is completed, on the one surface side,
Since invalid main scanning lines following the sub-scanning range of the document are continuously read and only valid line data is encoded by determining whether the line data read in the encoding process is valid or invalid, The symmetry of the reading process on the front surface side and the back surface side can be maintained.

【0060】図10に、以上の符号化手順により処理さ
れる、原稿の副走査範囲を含み、その原稿の副走査範囲
よりも広い共通の副走査範囲を表面読取部2a及び裏面
読取部2bで読み取って得られた表裏両面の各ラインデ
ータの処理順序を示す。
FIG. 10 shows a common sub-scanning range including the sub-scanning range of an original processed by the above encoding procedure and wider than the sub-scanning range of the original in the front surface reading section 2a and the back surface reading section 2b. The processing order of each line data on the front and back sides obtained by reading is shown.

【0061】同図において、表面側のラインデータにつ
いては、先頭からLa−1番目までの主走査ライン分の
ラインデータは、無効なダミーデータであり、La番目
からLMAX+La番目までのラインデータは、原稿の
副走査範囲に属する有効なラインデータであり、LMA
X+La+1番目からLMAX+Lbまでは、原稿の裏
面側の副走査範囲をすべて読み取るために読み取られた
ダミーデータである。
In the figure, for the line data on the front side, the line data for the main scanning lines from the beginning to La-1 are invalid dummy data, and the line data from La to LMAX + La are: This is valid line data that belongs to the sub-scanning range of the document, and LMA
X + La + 1th to LMAX + Lb are dummy data read for reading the entire sub-scanning range on the back side of the document.

【0062】裏面側のラインデータについては、先頭か
らLb−1番目までの主走査ライン分のラインデータ
は、無効なダミーデータであり、Lb番目からLMAX
+Lb番目までのラインデータは、原稿の副走査範囲に
属する有効なラインデータである。なお、Lb>Laで
あるため、原稿の裏面側の副走査範囲をすべて読み取れ
ば、その時点では、原稿の表面側の副走査範囲の読取り
は、既に完了しているため、裏面側については、副走査
範囲の読取完了後における、原稿の表面側の副走査範囲
の読取りに合わせたダミーデータの読み取りは特に必要
ない。
Regarding the line data on the back surface side, the line data for the main scanning lines from the beginning to the Lb−1th is invalid dummy data, and the Lbth to LMAX.
The line data up to the + Lbth line is valid line data belonging to the sub-scanning range of the document. Since Lb> La, if the entire sub-scanning range on the back side of the document is read, the reading of the sub-scanning range on the front side of the document has already been completed at that time. After the reading of the sub-scanning range is completed, it is not necessary to read the dummy data in accordance with the reading of the sub-scanning range on the front side of the document.

【0063】以上のように、部品配置の都合上密着セン
サ1a及び1bの読取位置を原稿を挟んで互いに一致す
る位置に配置できない場合でも、1つの符号化器で両面
原稿の各面毎の読取部からのラインデータを符号化し
て、各面毎の符号化画データを得ることができるため、
部品配置の自由度を高めることができる。
As described above, even if the reading positions of the contact sensors 1a and 1b cannot be arranged at the same position with the original sandwiched between them due to the arrangement of parts, one encoder can read each side of a double-sided original. Since it is possible to obtain the encoded image data for each surface by encoding the line data from the section,
The degree of freedom in arranging parts can be increased.

【0064】なお、図8に示す手順では、表面ライン数
カウンタClhの初期値としてのLa及び、裏面ライン
数カウンタCluの初期値としてのLbを、既知の値と
して固定的なものとしたが、それらの値La及びLb
は、図4に示したように、原稿端検出センサS2と、密
着センサ1a及び1bとのそれぞれの距離に対応するた
め、装置毎に原稿端検出センサS2と、密着センサ1a
及び1bとのそれぞれの距離にばらつきがあると(装置
組立時における装置毎の部品取り付け位置のばらつきに
よりそのようなばらつきは生じやすい)、値La及びL
bを固定してしまうとすれば、それらの値La及びLb
が、原稿端検出センサS2と、密着センサ1a及び1b
とのそれぞれの距離に対応しなくなり、原稿の先端や後
端の一部を読取り損なう場合がある。
In the procedure shown in FIG. 8, La as the initial value of the front surface line number counter Clh and Lb as the initial value of the back surface line number counter Clu are fixed as known values. Their values La and Lb
4 corresponds to the respective distances between the document edge detection sensor S2 and the contact sensors 1a and 1b as shown in FIG. 4, the document edge detection sensor S2 and the contact sensor 1a are provided for each device.
If there is a variation in the respective distances from the positions 1 and 1b (such a variation is likely to occur due to a variation in the component mounting position for each device during device assembly), the values La and L
If b is fixed, those values La and Lb
Of the document edge detection sensor S2 and the contact sensors 1a and 1b
It may not correspond to the respective distances between and, and some of the leading edge and the trailing edge of the document may be unreadable.

【0065】一方、装置毎の原稿端検出センサS2と、
密着センサ1a及び1bとのそれぞれの距離のばらつき
を小さく抑えようとすれば、その分、高精度な部品の組
み付け作業が必要となり、装置コストの増大を招く。
On the other hand, the document edge detection sensor S2 for each device,
If the variations in the distances from the contact sensors 1a and 1b are suppressed to be small, the work of assembling the parts with high accuracy is required, and the cost of the apparatus increases.

【0066】そのような問題を解決するためには、値L
a及びLbを固定的なものとするのではなく、装置毎に
可変できるようにすればよい。つまり、例えば、値La
及びLbの格納領域を書き換え可能なメモリであるRA
M9上に確保し、それらの格納領域を示す格納アドレス
をユーザにより操作表示部12から入力させると共に、
その格納アドレスの示す格納領域に格納すべき値を入力
させ、更に値La及びLbの書き換え許可コマンドを入
力させることにより、値La及びLbを書き換えできる
ようにすればよい。
To solve such a problem, the value L
It suffices that a and Lb be variable for each device instead of being fixed. That is, for example, the value La
RA, which is a rewritable memory for the storage areas of L and Lb
The storage addresses secured on the M9 and indicating their storage areas are input by the user from the operation display unit 12, and
The values La and Lb may be rewritten by inputting a value to be stored in the storage area indicated by the storage address and further by inputting a rewrite permission command for the values La and Lb.

【0067】そうすることで、ユーザは、値La及びL
bを書き換えながら図8及び図9に示した符号化手順を
実行して、スキャナ部3で読み取った両面原稿の画デー
タを符号化し、その符号化された画データをプロッタ6
に記録出力して、読み取った両面原稿と、読み取った画
データを記録出力したものとを比較し、原稿の先端や後
端が切れることなく読み取られているかを確認すること
で、装置毎の部品の組み付け状態に適合する値La及び
Lbを、各装置毎に設定することが可能となるため、高
精度な部品の組み付け作業が不要となり、装置コストを
低減することができる。
By doing so, the user can obtain the values La and L.
By executing the encoding procedure shown in FIGS. 8 and 9 while rewriting b, the image data of the double-sided original read by the scanner unit 3 is encoded, and the encoded image data is plotted by the plotter 6.
By recording and outputting on both sides of the document and comparing the scanned double-sided document with the one on which the scanned image data was recorded and output, it is possible to confirm whether the document is scanned without cutting the leading edge or trailing edge of the document. Since the values La and Lb suitable for the assembling state can be set for each device, it is not necessary to assemble parts with high precision, and the device cost can be reduced.

【0068】なお、以上説明した本発明の実施の形態に
係る両面原稿読取装置の符号化符号化部4におけるライ
ンデータの符号化においては、符号化対象ラインのみで
符号化が可能なMH方式で符号化したが、それら限ら
ず、MRやMMR符号化方式での符号化も可能である。
だだし、その場合、符号化対象ラインのみならず、その
符号化対象ラインの直前のラインを参照する必要があ
る。つまり、符号化復号化部4は、ラインバッファのう
ちの現時点の読み出しポインタPrの示す値のラインバ
ッファに格納されたラインデータを、MRやMMR符号
化方式で符号化する場合には、その読み出しポインタP
rの示す値の2つ前のラインバッファに格納されたライ
ンデータを参照して符号化する必要がある。なぜなら、
1つ前のラインバッファに格納されたラインデータは、
現時点の読み出しポインタPrの示す値のラインバッフ
ァに格納されたラインデータとは別の面のラインデータ
であるためである。
In the encoding of the line data in the encoding / encoding unit 4 of the double-sided original reading apparatus according to the embodiment of the present invention described above, the MH system is used in which the encoding can be performed only on the encoding target line. Although the coding is performed, the coding is not limited thereto, and coding by the MR or MMR coding method is also possible.
However, in that case, it is necessary to refer to not only the encoding target line but also the line immediately before the encoding target line. That is, when the encoding / decoding unit 4 encodes the line data stored in the line buffer having the value indicated by the read pointer Pr at the current point in the line buffer by the MR or MMR encoding method, the read operation is performed. Pointer P
It is necessary to reference and encode the line data stored in the line buffer that is two values before the value indicated by r. Because
The line data stored in the previous line buffer is
This is because it is line data of a different surface from the line data stored in the line buffer having the value indicated by the read pointer Pr at the current point.

【0069】また、以上説明した本発明の実施の形態に
おいては、本発明をファクシミリ装置に適用した場合に
ついて説明したが、本発明は、それに限らず、複写機や
スキャナ等のその他の原稿読取装置に対しても同様に適
用でき得るものである。
Further, in the above-described embodiment of the present invention, the case where the present invention is applied to the facsimile device has been described. However, the present invention is not limited to this, and other document reading devices such as a copying machine and a scanner. Can be similarly applied to.

【0070】[0070]

【発明の効果】請求項1に係る発明によれば、それぞれ
の副走査方向の読取位置が前記原稿を挟んで互いにほぼ
一致する配置で設けられた前記第1及び第2読取手段か
らそれぞれ順次出力される前記原稿の副走査範囲分のラ
インデータは、ライン選択手段により交互に切り換えら
れて選択出力されて符号化手段に入力され、順次符号化
されて符号化ラインデータとして出力される。そして、
その符号化手段から出力される符号化ラインデータは、
符号化ライン分離手段により、前記第1読取手段で読み
取れられて符号化された第1読取手段側符号化ラインデ
ータと、前記第2読取手段で読み取れられて符号化され
た第2読取手段側符号化ラインデータとに分離されて、
それら分離された第1及び第2読取手段側符号化ライン
データが、それぞれ第1及び第2の符号化画データ蓄積
手段に順次蓄積されることにより、前記原稿の一方の面
の符号化画データと他方の面の符号化画データとが、そ
れぞれ得られる。したがって、片面原稿を読み取る場合
と同じ幅の副走査量で、両面原稿を読み取ることができ
るため、装置が大型化することもなく、1つの符号化器
で両面原稿の各面の画データを符号化してそれら各面毎
の符号化画データを得ることができるため、低コストな
両面原稿読取装置を実現することができる。
According to the first aspect of the present invention, the reading positions in the sub-scanning direction are sequentially output from the first and second reading means which are arranged so as to substantially match each other across the document. The line data for the sub-scanning range of the document is alternately switched by the line selection means, is selectively output, is input to the encoding means, is sequentially encoded, and is output as encoded line data. And
The encoded line data output from the encoding means is
The coded line separation means reads the coded line data by the first reading means and is coded by the first reading means, and the code read by the second reading means and coded by the second reading means. Is separated into
The separated encoded line data on the side of the first and second reading means is sequentially accumulated in the first and second encoded image data accumulating means, respectively, so that the encoded image data on one side of the original document is obtained. And the encoded image data of the other surface are obtained. Therefore, since a double-sided document can be read with the sub-scanning amount having the same width as when reading a single-sided document, the size of the device does not increase and one encoder encodes image data on each side of the double-sided document. Since the coded image data for each surface can be obtained by converting the data into a single-sided document reading apparatus, a low-cost double-sided document reading apparatus can be realized.

【0071】請求項2に係る発明によれば、それぞれの
副走査方向の読取位置が前記原稿を挟んで互いに異なる
配置で設けられた前記第1及び第2読取手段からは、そ
れぞれの読取位置の副走査方向のずれに応じて前記原稿
の副走査範囲を含みその原稿の副走査範囲よりも広い共
通の副走査範囲分のラインデータが出力され、それらの
ラインデータは、ライン選択手段により交互に切り換え
て選択出力されて符号化手段に入力される。その符号化
手段は、入力される前記共通の副走査範囲分のラインデ
ータのうちの前記第1及び第2読取手段の読取位置の副
走査方向のずれに応じた先頭の所定ライン数のライン分
のラインデータについては符号化ラインデータを出力せ
ず、その所定ライン数以後の前記原稿の副走査範囲に含
まれるラインデータのみを順次符号化して符号化ライン
データとして出力する。そして、その符号化手段から出
力される符号化ラインデータは、符号化ライン分離手段
により、前記第1読取手段で読み取れられて符号化され
た第1読取手段側符号化ラインデータと、前記第2読取
手段で読み取れられて符号化された第2読取手段側符号
化ラインデータとに分離されて、それら分離された第1
及び第2読取手段側符号化ラインデータが、それぞれ第
1及び第2の符号化画データ蓄積手段に順次蓄積される
ことにより、前記原稿の一方の面の符号化画データと他
方の面の符号化画データとが、それぞれ得られる。した
がって、部品配置の都合上第1及び第2の読取手段の配
置位置が、副走査方向にずれていても、そのずれに応じ
た先頭の所定ライン数のライン分のラインデータについ
ては符号化しないで廃棄し、原稿の副走査範囲に属する
ラインデータのみを符号化することで、請求項1記載の
両面原稿読取装置と同様に1つの符号化器で両面原稿の
各面の画データを符号化してそれら各面毎の符号化画デ
ータを得ることができるため、部品配置の自由度を高め
つつ、請求項1記載の両面原稿読取装置と同様の効果を
得ることができる。
According to the second aspect of the invention, the reading positions of the respective reading positions in the sub-scanning direction are different from those of the first and second reading means provided at different positions with the original document sandwiched therebetween. Line data for a common sub-scanning range that includes the sub-scanning range of the original document and is wider than the sub-scanning range of the original document is output according to the deviation in the sub-scanning direction. It is switched, selectively output, and input to the encoding means. The encoding means includes a predetermined predetermined number of lines corresponding to the deviation of the reading position of the first and second reading means in the sub-scanning direction from the input line data for the common sub-scanning range. No encoded line data is output for the line data, and only the line data included in the sub-scanning range of the document after the predetermined number of lines are sequentially encoded and output as encoded line data. The encoded line data output from the encoding unit is encoded line data read by the first reading unit and encoded by the encoding line separation unit, and the encoded line data on the first reading unit side and the second line. The first reading section is separated into the second reading section side encoded line data read and encoded by the reading section, and the separated first section
And the coded line data on the side of the second reading means are sequentially stored in the first and second coded image data storage means, respectively, so that the coded image data on one side of the original and the code on the other side of the original are coded. Each of the chemical image data is obtained. Therefore, even if the arrangement positions of the first and second reading means are deviated in the sub-scanning direction due to the arrangement of parts, the line data of a predetermined predetermined number of lines corresponding to the deviation is not encoded. Then, the image data on each side of the double-sided original is encoded by one encoder as in the double-sided original reading apparatus according to claim 1, by discarding the line data and encoding only the line data belonging to the sub-scanning range of the original. Since it is possible to obtain the coded image data for each of the surfaces, it is possible to obtain the same effect as that of the double-sided document reading apparatus according to the first aspect, while increasing the degree of freedom of component arrangement.

【0072】請求項3に係る発明によれば、先頭無効ラ
イン数設定手段により、前記第1及び第2読取手段の副
走査方向の読取位置の実際のずれに応じて設定されるべ
き、先頭の何ライン分のラインデータを符号化しないで
廃棄するかを示す所定ライン数を任意に設定することが
できるため、組み付け位置の装置毎のバラツキにより第
1及び第2読取手段の副走査方向の読取位置のずれ量が
装置毎にばらついても、そのずれ量のバラツキを前記所
定ライン数の設定変更により容易に補正することができ
る。つまり、原稿の先端または後端を読み取り損なわな
いようにするために読取位置のずれ量を各装置について
ばらつきなく絶対的な高精度に保つ必要がないため、装
置の組立てコストを請求項2の両面原稿読取装置と比較
して低減することができる。
According to the third aspect of the present invention, the head invalid line number setting means sets the head of the first and second reading means, which should be set according to the actual deviation of the reading position in the sub-scanning direction. Since it is possible to arbitrarily set the predetermined number of lines indicating how many lines of line data are to be discarded without being encoded, the reading in the sub-scanning direction of the first and second reading means is caused by the variation of the assembly position for each device. Even if the displacement amount of the position varies from device to device, the variation in the displacement amount can be easily corrected by changing the setting of the predetermined number of lines. That is, it is not necessary to keep the deviation amount of the reading position constant and highly accurate for each device in order to prevent the leading edge or the trailing end of the original from being damaged. It can be reduced as compared with the document reading device.

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

【図1】本発明の実施の形態に係るファクシミリ装置の
ブロック構成図である。
FIG. 1 is a block configuration diagram of a facsimile apparatus according to an embodiment of the present invention.

【図2】本発明の実施の形態に係る両面原稿読取装置の
模式的なブロック構成図である。
FIG. 2 is a schematic block configuration diagram of a double-sided document reading device according to an embodiment of the present invention.

【図3】本発明の実施の形態に係る両面原稿読取装置の
原稿端検出センサと両面原稿の各面毎の密着センサとの
互いの位置関係を示す模式的な図である。
FIG. 3 is a schematic diagram showing a mutual positional relationship between a document edge detection sensor and a contact sensor for each side of a double-sided document in the double-sided document reading device according to the embodiment of the present invention.

【図4】本発明の実施の形態に係る両面原稿読取装置の
原稿端検出センサと両面原稿の各面毎の密着センサとの
互いの位置関係を示す別の模式的な図である。
FIG. 4 is another schematic diagram showing a mutual positional relationship between a document edge detection sensor and a contact sensor for each side of a double-sided document in the double-sided document reading device according to the embodiment of the present invention.

【図5】両面原稿の各面毎の密着センサが図3に示す配
置の場合における本発明に係る両面原稿読取装置の符号
化処理手順を示すフローチャートである。
5 is a flowchart showing an encoding processing procedure of the double-sided document reading apparatus according to the present invention when the contact sensors for each side of a double-sided document are arranged as shown in FIG.

【図6】図5と共に両面原稿の各面毎の密着センサが図
3に示す配置の場合における本発明に係る両面原稿読取
装置の符号化処理手順を示すフローチャートである。
FIG. 6 is a flowchart showing an encoding process procedure of the double-sided document reading apparatus according to the present invention in the case where the contact sensor for each side of the double-sided document is arranged as shown in FIG. 3 together with FIG.

【図7】図5及び図6に示す符号化処理手順で処理され
るラインデータの処理順序を示す図である。
FIG. 7 is a diagram showing a processing order of line data processed by the encoding processing procedure shown in FIGS. 5 and 6;

【図8】両面原稿の各面毎の密着センサが図4に示す配
置の場合における本発明に係る両面原稿読取装置の符号
化処理手順を示すフローチャートである。
8 is a flowchart showing an encoding processing procedure of the double-sided document reading apparatus according to the present invention when the contact sensor for each side of the double-sided document is arranged as shown in FIG.

【図9】図8と共に両面原稿の各面毎の密着センサが図
4に示す配置の場合における本発明に係る両面原稿読取
装置の符号化処理手順を示すフローチャートである。
9 is a flowchart showing an encoding processing procedure of the double-sided document reading apparatus according to the present invention in the case where the contact sensor for each side of the double-sided document is arranged as shown in FIG. 4 together with FIG.

【図10】図8及び図9に示す符号化処理手順で処理さ
れるラインデータの処理順序を示す図である。
FIG. 10 is a diagram showing a processing order of line data processed by the encoding processing procedure shown in FIGS. 8 and 9;

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

1a、1b 密着センサ 2a 表面読取部 2b 裏面読取部 3 スキャナ部 4 符号化復号化部 5 画像メモリ 5a 表面画データ蓄積メモリ 5b 裏面画データ蓄積メモリ 6 プロッタ 7 CPU 8 ROM 9 RAM 9a ラインバッファ群 10 モデム 11 網制御部 12 操作表示部 13 システムバス S1、S2 原稿端検出センサ SW1、SW2 スイッチ 1a, 1b Contact sensor 2a Front-side reading unit 2b Back-side reading unit 3 Scanner unit 4 Encoding / decoding unit 5 Image memory 5a Front-side image data storage memory 5b Back-side image data storage memory 6 Plotter 7 CPU 8 ROM 9 RAM 9a Line buffer group 10 Modem 11 Network control unit 12 Operation display unit 13 System bus S1, S2 Document edge detection sensor SW1, SW2 switch

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 相対的に副走査される原稿の両面のうち
の一方の面を第1読取手段によりライン単位で読み取っ
て得た画データと、前記原稿の他方の面を第2読取手段
によりライン単位で読み取って得た画データとをそれぞ
れ符号化して前記各面毎の符号化画データを得る両面原
稿読取装置において、 前記第1及び第2読取手段は、それぞれの副走査方向の
読取位置が前記原稿を挟んで互いにほぼ一致する配置で
設けられる一方、前記第1及び第2読取手段からそれぞ
れ順次出力される前記原稿の副走査範囲分のラインデー
タを交互に切り換えて選択出力するライン選択手段と、
そのライン選択手段から出力されるラインデータを順次
符号化して符号化ラインデータを出力する符号化手段
と、その符号化手段から出力される符号化ラインデータ
を、前記第1読取手段で読み取れられて符号化された第
1読取手段側符号化ラインデータと、前記第2読取手段
で読み取れられて符号化された第2読取手段側符号化ラ
インデータとに分離する符号化ライン分離手段と、その
符号化ライン分離手段によりそれぞれ分離された第1及
び第2読取手段側符号化ラインデータをそれぞれ順次蓄
積して前記原稿の一方の面の符号化画データと他方の面
の符号化画データとをそれぞれ得る第1及び第2の符号
化画データ蓄積手段とを備えたことを特徴とする両面原
稿読取装置。
1. Image data obtained by reading one surface of both sides of an original that is relatively sub-scanned by the first reading means in line units, and the other surface of the original by the second reading means. In a double-sided document reading device that obtains coded image data for each side by encoding image data obtained by reading in line units, the first and second reading means include reading positions in respective sub-scanning directions. Are arranged so as to be substantially coincident with each other across the original document, and line selection for alternately outputting and selectively outputting line data for the sub-scanning range of the original document sequentially output from the first and second reading means, respectively. Means and
Encoding means for sequentially encoding the line data output from the line selecting means to output encoded line data, and encoded line data output from the encoding means can be read by the first reading means. Encoding line separating means for separating the encoded first reading means side encoded line data and the second reading means side encoded line data read and encoded by the second reading means, and the code thereof. The first and second reading means side encoded line data separated by the encoded line separating means are sequentially accumulated to obtain encoded image data on one side of the original and encoded image data on the other side. A double-sided document reading device comprising first and second coded image data accumulating means for obtaining.
【請求項2】 相対的に副走査される原稿の両面のうち
の一方の面を第1読取手段によりライン単位で読み取っ
て得た画データと、前記原稿の他方の面を第2読取手段
によりライン単位で読み取って得た画データとをそれぞ
れ符号化して前記各面毎の符号化画データを得る両面原
稿読取装置において、 前記第1及び第2読取手段は、それぞれの副走査方向の
読取位置が前記原稿を挟んで互いに異なる配置で設けら
れると共にそれぞれの読取位置の副走査方向ののずれに
応じて前記原稿の副走査範囲を含みその原稿の副走査範
囲よりも広い共通の副走査範囲分のラインデータを出力
する一方、前記第1及び第2読取手段からそれぞれ順次
出力されるラインデータを交互に切り換えて選択出力す
るライン選択手段と、そのライン選択手段からの出力さ
れる前記共通の副走査範囲分のラインデータのうちの前
記第1及び第2読取手段の配置位置のずれに応じた先頭
の所定ライン数のライン分のラインデータについては符
号化ラインデータを出力せず、その所定ライン数以後の
前記原稿の副走査範囲に含まれるラインデータのみを順
次符号化して符号化ラインデータを出力する符号化手段
と、その符号化手段から出力される符号化ラインデータ
を、前記第1読取手段で読み取られて符号化された第1
読取手段側符号化ラインデータと、前記第2読取手段で
読み取られて符号化された第2読取手段側符号化ライン
データとに分離する符号化ライン分離手段と、その符号
化ライン分離手段によりそれぞれ分離された第1及び第
2読取手段側符号化ラインデータをそれぞれ順次蓄積し
て前記原稿の一方の面の符号化画データと他方の面の符
号化画データとをそれぞれ得る第1及び第2の符号化画
データ蓄積手段とを備えたことを特徴とする両面原稿読
取装置。
2. Image data obtained by reading one surface of both sides of a document that is relatively sub-scanned by the first reading means in line units, and the other surface of the document by the second reading means. In a double-sided document reading device that obtains coded image data for each side by encoding image data obtained by reading in line units, the first and second reading means include reading positions in respective sub-scanning directions. Are arranged in mutually different positions with the original document sandwiched therebetween, and a common sub-scanning range wider than the sub-scanning range of the original document includes the sub-scanning range of the original document according to the deviation of each reading position in the sub-scanning direction. Line data which is output while the line data sequentially output from the first and second reading means are alternately switched and selectively output. Of the line data for the common sub-scanning range, the encoded line data is output for the line data for a predetermined number of lines at the beginning according to the displacement of the arrangement positions of the first and second reading means. Without encoding, the encoding means for sequentially encoding only the line data included in the sub-scanning range of the original after the predetermined number of lines and outputting the encoded line data, and the encoded line data output from the encoding means. Is read by the first reading means and encoded.
Encoding line separating means for separating the reading means side encoded line data and the second reading means side encoded line data read and encoded by the second reading means, and the encoding line separating means, respectively. First and second coded line data on the first and second reading means sides, which are separated from each other, are sequentially accumulated to obtain coded image data on one side and coded image data on the other side of the original. And a coded image data accumulating unit.
【請求項3】 前記所定ライン数を設定する先頭無効ラ
イン数設定手段を備えたことを特徴とする請求項2記載
の両面原稿読取装置。
3. The double-sided document reading apparatus according to claim 2, further comprising head invalid line number setting means for setting the predetermined number of lines.
JP8023040A 1996-01-17 1996-01-17 Double-sided document reader Pending JPH09200437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8023040A JPH09200437A (en) 1996-01-17 1996-01-17 Double-sided document reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8023040A JPH09200437A (en) 1996-01-17 1996-01-17 Double-sided document reader

Publications (1)

Publication Number Publication Date
JPH09200437A true JPH09200437A (en) 1997-07-31

Family

ID=12099356

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8023040A Pending JPH09200437A (en) 1996-01-17 1996-01-17 Double-sided document reader

Country Status (1)

Country Link
JP (1) JPH09200437A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005164959A (en) * 2003-12-02 2005-06-23 Murata Mach Ltd Original reader
US7123385B2 (en) 2000-01-31 2006-10-17 Ricoh Company, Ltd. Image processing apparatus
JP2011171923A (en) * 2010-02-17 2011-09-01 Ricoh Co Ltd Image processor and image processing method
US8605337B2 (en) 2009-09-30 2013-12-10 Brother Kogyo Kabushiki Kaisha Image scanning device
US8693067B2 (en) 2011-02-25 2014-04-08 Brother Kogyo Kabushiki Kaisha Image reading device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7123385B2 (en) 2000-01-31 2006-10-17 Ricoh Company, Ltd. Image processing apparatus
JP2005164959A (en) * 2003-12-02 2005-06-23 Murata Mach Ltd Original reader
US8605337B2 (en) 2009-09-30 2013-12-10 Brother Kogyo Kabushiki Kaisha Image scanning device
JP2011171923A (en) * 2010-02-17 2011-09-01 Ricoh Co Ltd Image processor and image processing method
US8693067B2 (en) 2011-02-25 2014-04-08 Brother Kogyo Kabushiki Kaisha Image reading device

Similar Documents

Publication Publication Date Title
US4805135A (en) Image communication apparatus having a function for dividing and outputting an image
US4631596A (en) Image communications apparatus for long-size copy image
US4301479A (en) Signal processing system of facsimile
EP0490348A2 (en) Image reader and facsimile machine using such image reader
US6178015B1 (en) Apparatus and method for increasing the scan accuracy and quality of the flatbed scanner by using close loop control
GB2159364A (en) Image signal processing method
KR19990008795A (en) Image processing apparatus and method for binarizing a read image in a shuttle type reading apparatus
JPH09200437A (en) Double-sided document reader
JPH0828820B2 (en) Image data coding circuit
JPS634993B2 (en)
JPH09298631A (en) Fax machine
JP2501623Y2 (en) Fax machine
JPS6338911B2 (en)
JPH0721347A (en) Image reading method
JP3253771B2 (en) Image reading device
JPH0497652A (en) Long original division system in facsimile equipment
JP2519892B2 (en) Faximili relay broadcast system
JPH09107459A (en) Facsimile apparatus and facsimile transmission method
JPH04270481A (en) Slip identifying method by facsimile ocr device
JPH05219316A (en) Original reading method and facsimile apparatus using the same
JPH06164949A (en) Facsimile equipment
JPH0670099A (en) Picture reading system
JPH04157976A (en) Facsimile equipment
JPH09321978A (en) Fax machine
JPH07239908A (en) Character recognition device