JP2003204435A - Data compression equipment, program and data restoring equipment - Google Patents

Data compression equipment, program and data restoring equipment

Info

Publication number
JP2003204435A
JP2003204435A JP2002001035A JP2002001035A JP2003204435A JP 2003204435 A JP2003204435 A JP 2003204435A JP 2002001035 A JP2002001035 A JP 2002001035A JP 2002001035 A JP2002001035 A JP 2002001035A JP 2003204435 A JP2003204435 A JP 2003204435A
Authority
JP
Japan
Prior art keywords
data
line data
unit
image
line
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.)
Granted
Application number
JP2002001035A
Other languages
Japanese (ja)
Other versions
JP3923315B2 (en
Inventor
Hirotaka Chiba
広隆 千葉
Tsuguo Noda
嗣男 野田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2002001035A priority Critical patent/JP3923315B2/en
Publication of JP2003204435A publication Critical patent/JP2003204435A/en
Application granted granted Critical
Publication of JP3923315B2 publication Critical patent/JP3923315B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable compression and restoration of an image read by image reading equipment while lack of line data is prevented and space resolution information is preserved. <P>SOLUTION: Level conversion wherein picture element effective bits N are reduced to picture element effective bits I in the level direction is performed to picture elements of input line data DI, and intermediate line data DM are produced (Fig 1 (a), (b)). Packing conversion wherein elimination is performed except the picture element effective bits I and mutual picture elements of the picture element effective bits I are subjected to packing is performed to picture elements of the intermediate line data, and output line data DO are produced (Fig. 1 (c)). The output line data DO are transferred to restoring equipment and restored by the restoring equipment side, and restored line data B are produced (cf. Fig 1 (d)). <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】イメ−ジスキャナ等の画像読
取装置によって読み取られた画像データの圧縮に好適な
データ圧縮装置、該データ圧縮装置の機能をコンピュー
タに実現させるプログラム及び該データ圧縮装置によっ
て生成された圧縮データを復元するデータ復元装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data compression apparatus suitable for compressing image data read by an image reading apparatus such as an image scanner, a program for causing a computer to realize the functions of the data compression apparatus, and a data compression apparatus generated by the data compression apparatus. And a data decompression device for decompressing compressed data.

【0002】[0002]

【従来の技術】一般に、写真や絵などの原稿を画像とし
て読み取る装置としてイメ−ジスキャナが用いられる。
このイメ−ジスキャナは、原稿の読み取り方式によっ
て、フラットベッド型、シ−トフィード型(自動給紙
型)、及びハンディ型の3種類のタイプに大別される。
フラットベッド型及びシ−トフィード型は、いずれも、
原稿を装置にセットすることで装置が自身の制御可能な
速度で画像を読み取る。フラットベッド型は原稿を平ら
な台に置いて読み取り、シ−トフィード型は原稿をロー
ラで送りながら読み取る。これらに対し、ハンディ型は
原稿の上をユーザが手動で移動させることに読み取る。
2. Description of the Related Art Generally, an image scanner is used as a device for reading a document such as a photograph or a picture as an image.
The image scanner is roughly classified into three types, that is, a flatbed type, a sheet feed type (automatic paper feeding type), and a handy type according to the reading method of the original.
The flatbed type and sheet feed type are both
When a document is set on the device, the device reads an image at a speed controllable by the device. The flatbed type scans an original by placing it on a flat table, and the sheet feed type scans the original by feeding it with rollers. On the other hand, the handy type is read by the user manually moving the document over the document.

【0003】これらのスキャナは、いずれも、原稿に光
を照射して、その反射光の明度(濃淡)をCCD(Char
ge Coupled Device)やCIS(Constant Image Sens
o)などで読み取るようになっている。これらのスキャ
ナの読み取り単位は、原稿を横方向に細かく分割したラ
イン単位である。そのため、CCDやCISも細かいセ
ンサが一直線に並んだものを使用する。
Each of these scanners irradiates a document with light and determines the lightness (shade) of the reflected light by a CCD (Char.
ge Coupled Device) and CIS (Constant Image Sens)
o) and so on. The reading unit of these scanners is a line unit obtained by horizontally dividing a document. Therefore, CCDs and CISs also use those in which fine sensors are aligned.

【0004】図12は、ハンディ型スキャナの一例の外
観図である。同図に示すスキャナ100は、PCカード
140を介してパーソナルコンピュータ等の情報処理装
置(不図示)に接続する形態のものである。
FIG. 12 is an external view of an example of a handy type scanner. The scanner 100 shown in the figure has a form in which it is connected to an information processing device (not shown) such as a personal computer via a PC card 140.

【0005】スキャナ100は、スキャナ部110、ケ
−ブル120、コネクタ部130及びPCカード140
を備えている。スキャナ部110は略直方体または円筒
の形状をしており、その長手方向の一方の側面は画像読
み取り面111aとなっており、この面111aは画像
読み取り時に原稿用紙(不図示)と接触する面であり、
画像読取部112と移動量検出部113が設けられてい
る。
The scanner 100 includes a scanner section 110, a cable 120, a connector section 130 and a PC card 140.
Is equipped with. The scanner unit 110 has a substantially rectangular parallelepiped or cylindrical shape, and one side surface in the longitudinal direction thereof is an image reading surface 111a. This surface 111a is a surface that comes into contact with a document sheet (not shown) when reading an image. Yes,
An image reading unit 112 and a movement amount detection unit 113 are provided.

【0006】画像読取部112は、光学的に原稿用紙上
の画像を読み取るものであり、原稿用紙に対して光を照
射する光源(例えば、発行ダイオードと冷陰極管等)
と、原稿用紙からの反射光を受光し、これを画像データ
に変換する受光素子(CCDやCIS等)と、該反射光
を該受光素子に入光させるための鏡(CCDの場合)や
レンズ(CISの場合)等から構成されている。
The image reading section 112 is for optically reading an image on a document sheet, and is a light source for irradiating the document sheet with light (for example, an emitting diode and a cold cathode tube).
A light receiving element (CCD, CIS, etc.) that receives the reflected light from the original sheet and converts it into image data, and a mirror (in the case of CCD) or a lens for allowing the reflected light to enter the light receiving element. (In the case of CIS) and the like.

【0007】移動量検出部113は、画像読み取り時に
おける画像読取部112の原稿用紙上での移動量を検出
するものである。移動量検出部113は、回転ローラ
(不図示)及びその回転ローラに付設されたロータリエ
ンコーダ(不図示)等から構成される。該回転ローラ
は、その一部が画像読み取り面111aから突出されて
回転自在に設けられており、原稿用紙上に画像読み取り
面111aを当接させてスキャナ部110を移動させる
と、回転ローラが原稿用紙と接触ながらスキャナ部11
0の移動に伴って回転するようになっている。ロータリ
エンコーダは、この回転ローラの回転量が所定量になる
毎に移動量検出パルス信号を出力する。 このように、
原稿用紙上に画像読み取り面111aを当接させながら
スキャナ部110を移動させると、原稿用紙に対する画
像読取部112の相対的な移動量がロータリエンコーダ
によって検出される。
The movement amount detection unit 113 detects the movement amount of the image reading unit 112 on the original paper when the image is read. The movement amount detection unit 113 includes a rotating roller (not shown) and a rotary encoder (not shown) attached to the rotating roller. A part of the rotation roller is projected from the image reading surface 111a and is rotatably provided. When the image reading surface 111a is brought into contact with the original sheet and the scanner unit 110 is moved, the rotation roller causes the original sheet to move. The scanner unit 11 while contacting the paper
It is designed to rotate with the movement of 0. The rotary encoder outputs a movement amount detection pulse signal every time the rotation amount of the rotating roller reaches a predetermined amount. in this way,
When the scanner unit 110 is moved while abutting the image reading surface 111a on the original sheet, the rotary encoder detects the relative movement amount of the image reading section 112 with respect to the original sheet.

【0008】また、スキャナ部110の画像読み取り面
111aと対向する面には開始中断指示部114が設け
られている。この開始中断指示部114は、例えば、押
しボタン形式のスイッチとなっており押下する毎にオン
/オフするようになっており、最初に押下するとオンと
なりスキャナ100が起動され原稿の読み取りが開始可
能となる。
A start interruption instruction section 114 is provided on the surface of the scanner section 110 facing the image reading surface 111a. The start interruption instruction unit 114 is, for example, a push button type switch, and is turned on / off each time the button is pressed. When the switch is pressed first, the start interruption instruction unit 114 is turned on and the scanner 100 is activated to start reading a document. Becomes

【0009】また、スキャナ部110の底面にはPCカ
ード140用のコネクタ部130が接続されたケーブル
120が付設されている。PCカード140は、情報処
理装置(不図示)のPCカ−ド用スロッットに挿入され
るカード型のスロットであり、一方の側面(第1の側
面)には該ケーブル120が接続されたコネクタ部13
0が接続される第1のインタフェース140aが設けら
れ、該第1の側面と対向する他方の側面には情報処理装
置とPCカード用スロット内で接続される第2のインタ
フェース140bが設けられている。又、PCカード1
40内には後述する読取制御部が設けられている。
A cable 120 to which a connector section 130 for a PC card 140 is connected is attached to the bottom of the scanner section 110. The PC card 140 is a card-type slot that is inserted into a PC card slot of an information processing device (not shown), and a connector portion to which the cable 120 is connected on one side surface (first side surface). Thirteen
A first interface 140a to which 0 is connected is provided, and a second interface 140b which is connected to the information processing apparatus in the PC card slot is provided on the other side surface opposite to the first side surface. . Also, PC card 1
A reading control unit, which will be described later, is provided in the unit 40.

【0010】画像読取部112は、該読取制御部から一
定周期Tで入力される駆動信号をトリガとして、原稿用
紙の1ライン分の画像を順次読み込み、これを画像デー
タとして読取制御部に出力する。画像読取部112は、
上記一定周期T内で1ライン分の画像データを処理する
ようになっている。
The image reading unit 112 sequentially reads an image of one line of the original sheet by using a drive signal input from the reading control unit at a constant cycle T as a trigger, and outputs the image as image data to the reading control unit. . The image reading unit 112
Image data for one line is processed within the fixed period T.

【0011】上記構成のハンディ型スキャナ100にお
いては、画像読取部112によって読み取った画像デー
タを情報処理装置に確実に転送するために、情報処理装
置とハンディ型スキャナ100間のデータ転送速度に応
じてPCカード140内の読取制御部内に画像保持部を
設けている。
In the handy type scanner 100 having the above structure, in order to reliably transfer the image data read by the image reading section 112 to the information processing apparatus, the data transfer speed between the information processing apparatus and the handy type scanner 100 is set in accordance with the data transfer rate. An image holding unit is provided in the reading control unit in the PC card 140.

【0012】ところで、上記ハンディ型スキャナ100
においては、原稿用紙の画像を読み取る際、ユーザが手
動でスキャナ部110を移動するため、しばしば、上記
一定周期Tよりも速くスキャナ部110を移動させる場
合が生じうる。このような場合には、上記一定周期T内
に画像読取部112が原稿の2ライン以上を移動するこ
とになり、画像読取部112は最初のライン以外の画像
データを処理することはできない。このため、原稿の画
像の読み取りにおいて部分的に1ライン以上の画像抜け
が発生してしまう。このような場合には、情報処理装置
側で最終的に生成される画像がその走査方向に縮んでし
まうという不具合が生じる。
By the way, the above handy type scanner 100
In the above, since the user manually moves the scanner unit 110 when reading the image on the document sheet, the scanner unit 110 may often be moved faster than the constant period T. In such a case, the image reading unit 112 moves two lines or more of the original within the fixed period T, and the image reading unit 112 cannot process image data other than the first line. For this reason, an image omission of one line or more occurs partially in the reading of the image of the document. In such a case, there arises a problem that an image finally generated on the information processing device side shrinks in the scanning direction.

【0013】そこで、この問題を解決するための発明
(従来発明1)が、特開2000−349984公報と
して出願されている。この公報には、移動量検出部によ
って検出されたスキャナ部の移動量に応じて画像データ
を生成する画像データ生成部を備えた画像読取装置が開
示されており、ユーザのスキャナ部の移動操作がデータ
処理部における駆動信号の周期よりも速くなった場合
に、その移動量に応じてかかる部分の画像データをコピ
ーすることにより、スキャナ部の移動速度の影響を受け
ずに走査方向に縮みのない画像を得ることができる技術
が開示されている。
Therefore, an invention (conventional invention 1) for solving this problem has been filed as Japanese Patent Laid-Open No. 2000-349984. This publication discloses an image reading apparatus including an image data generation unit that generates image data according to the amount of movement of the scanner unit detected by the movement amount detection unit. When it becomes faster than the cycle of the drive signal in the data processing unit, by copying the image data of the portion according to the movement amount, there is no shrinkage in the scanning direction without being affected by the movement speed of the scanner unit. A technique capable of obtaining an image is disclosed.

【0014】また、画像読取装置(ハンディ型スキャナ
100)の主走査方向の高解像度化に画像読取装置のI
/F(PCカード140の第2のインタフェース140
b)と情報処理装置間のデータ転送速度が追いつかない
場合には、読取制御部内に画像読取部112が読み取っ
た全画像データを一時的に保持するバッファを設ける必
要があるが、高解像度に伴ってバッファの容量が増大
し、画像読取装置の製造コストが増大する。
Further, in order to increase the resolution in the main scanning direction of the image reading device (handheld scanner 100), I of the image reading device is used.
/ F (second interface 140 of PC card 140
If the data transfer rate between b) and the information processing device cannot keep up, it is necessary to provide a buffer in the reading control unit to temporarily hold all image data read by the image reading unit 112. As a result, the capacity of the buffer increases and the manufacturing cost of the image reading apparatus increases.

【0015】そこで、本出願人は、このような問題を解
決する発明として、特許出願番号2001−91084
の発明(従来発明2)を先に出願した。この従来発明2
の画像読取装置の機能構成を示すブロック図を図13
に、その動作タイムチャートを図14に示す。尚、便宜
上、図13において、画像読取システム、画像読取装置
及びいくつかの機能ブロックの符号を特許出願番号20
01−91084の図面と異なったものとしている。符
号を変更した機能ブロック及び装置の符号は以下の通り
である。尚、( )内の符号は出願図面の符号である。
Therefore, the applicant of the present invention proposes, as an invention for solving such a problem, Patent Application No. 2001-91084.
The invention (conventional invention 2) was filed first. This Conventional Invention 2
FIG. 13 is a block diagram showing the functional configuration of the image reading apparatus of FIG.
FIG. 14 shows the operation time chart thereof. For the sake of convenience, in FIG. 13, the reference numerals of the image reading system, the image reading apparatus, and some functional blocks are shown in Patent Application No. 20.
It is different from the drawing of 01-91084. The reference numerals of the functional blocks and the devices whose reference numerals are changed are as follows. The reference numerals in parentheses are the reference numerals of the application drawings.

【0016】100(1)・・・・・画像読取装置 150(10)・・・・データ処理装置 141(31)・・・・読取制御部 142(102)・・・画像信号処理部 143(33)・・・・I/F部 151(101)・・・転送データ生成部 152(102)・・・データ圧縮部 153(103)・・・転送状態検出部 154(104)・・・切替部 200(40)・・・・情報処理装置 300(100)・・・画像読取システム この従来発明2においては、画像読取装置100はスキ
ャナ部110とデータ処理部150とから構成されてい
る。スキャナ部110は、画像読取部112と移動量検
出部113から構成されている。また、データ処理部1
50は、画像信号処理部142、読取制御部141及び
I/F部143から構成されている。また、読取制御部
141は、転送データ生成部151、データ圧縮部15
2、転送状態検出部153及び切替部154から構成さ
れている。
Image reading device 150 (10) ... Data processing device 141 (31) ... Reading control unit 142 (102) ... Image signal processing unit 143 ( 33) ... I / F section 151 (101) ... Transfer data generation section 152 (102) ... Data compression section 153 (103) ... Transfer state detection section 154 (104) ... Switching Part 200 (40) ... Information processing device 300 (100) ... Image reading system In the conventional invention 2, the image reading device 100 includes a scanner unit 110 and a data processing unit 150. The scanner unit 110 includes an image reading unit 112 and a movement amount detection unit 113. In addition, the data processing unit 1
Reference numeral 50 includes an image signal processing unit 142, a reading control unit 141, and an I / F unit 143. The read control unit 141 also includes a transfer data generation unit 151 and a data compression unit 15.
2. The transfer state detection unit 153 and the switching unit 154 are included.

【0017】画像読取部112は、読取制御部114か
ら一定周期T(T1,T2,・・・T9)で入力される
駆動信号S2(図14(b)参照)をトリがとして、原
稿用紙における1ライン分の画像を順次読み込み、これ
を画像データD1(D1−1,D1−2,・・・D1−
9)として画像信号処理部142に出力する(図14
(c)参照)。この画像データD1は、原稿用紙の1ラ
イン分のアナログデータである。画像信号処理部142
は、入力される画像データD1を二値化画像データD2
(D2−1,D2−2,・・・,D2−3)に変換して
転送データ生成部151に出力する(図14(d)参
照)。
In the image reading unit 112, the drive signal S2 (see FIG. 14B) input from the reading control unit 114 at a constant cycle T (T1, T2, ... Images for one line are sequentially read, and the image data D1 (D1-1, D1-2, ... D1-
9) to the image signal processing unit 142 (FIG. 14).
(See (c)). The image data D1 is analog data for one line of the original paper. Image signal processing unit 142
Is the binarized image data D2 of the input image data D1.
It is converted to (D2-1, D2-2, ..., D2-3) and output to the transfer data generation unit 151 (see FIG. 14D).

【0018】移動量検出部113は、回転ローラが一定
角度回転する毎にパルス状の移動量検出パルス信号S1
(S1−1,S1−2,・・・,S1−9)を転送デー
タ生成部151に出力する(図14(a)参照)。転送
データ生成部151は、スキャナ部110の移動量検出
部113から移動量検出パルス信号S1が入力されるつ
どに(図14(e)参照)、画像信号処理部142から
入力される二値化画像データD2と移動量M(前記駆動
周期T内に移動量検出部113から入力される移動量検
出パルス信号S1の個数)とからなる転送データD3を
切替部154に出力する(図14(f)参照)。この転
送データD3は、不図示の格納部に一時的に格納される
ようになっている。
The moving amount detecting section 113 has a pulse-like moving amount detecting pulse signal S1 every time the rotary roller rotates by a certain angle.
(S1-1, S1-2, ..., S1-9) is output to the transfer data generation unit 151 (see FIG. 14A). The transfer data generation unit 151 receives the movement amount detection pulse signal S1 from the movement amount detection unit 113 of the scanner unit 110 (see FIG. 14E) every time the binarization is input from the image signal processing unit 142. The transfer data D3 including the image data D2 and the movement amount M (the number of movement amount detection pulse signals S1 input from the movement amount detection unit 113 within the driving cycle T) is output to the switching unit 154 (FIG. 14 (f). )reference). The transfer data D3 is temporarily stored in a storage unit (not shown).

【0019】データ圧縮部152は、転送データ生成部
151によって生成され、該格納部に格納された転送デ
ータD3について、連続する複数の転送データD3毎
に、特定の転送データD3以外の転送データD3を間引
くと共に、該間引かれた転送データD3に含まれる移動
量Mを上記特定の転送データD3に含まれる移動量Mに
加算して、上記特定の転送データD3に含まれる画像デ
ータと該加算された移動量Mとから成る圧縮データD4
(D4−1,D4−2)を生成し、それを切替部154
に出力する(図14(g)参照)。
The data compression unit 152 generates transfer data D3 generated by the transfer data generation unit 151 and stores the transfer data D3 other than the specific transfer data D3 for each of a plurality of continuous transfer data D3. And the moving amount M included in the thinned transfer data D3 is added to the moving amount M included in the specific transfer data D3 to add the image data included in the specific transfer data D3 and the addition. Compressed data D4 including the moved amount M
(D4-1, D4-2) is generated, and it is switched to the switching unit 154.
(See FIG. 14 (g)).

【0020】転送状態検出部153は、前記ラインバッ
ファにおける単位時間あたりの入力速度及び出力速度を
測定することにより、I/F部143の転送速度を検出
し、その検出結果を切替部154に出力する。
The transfer state detecting unit 153 detects the transfer speed of the I / F unit 143 by measuring the input speed and the output speed per unit time in the line buffer, and outputs the detection result to the switching unit 154. To do.

【0021】切替部154は、転送状態検出部153に
よって検出された該検出結果に応じて、転送データ生成
部151によって生成された転送デーD3またはデータ
圧縮部152によって生成された圧縮データD4のいず
れか一方をI/F部143に出力する。この場合、前記
ラインバッファにおける入力/出力速度が予め設定され
た速度よりも遅い場合には転送速度が遅いと判断して、
データ圧縮部152によって生成された圧縮データD4
をI/F部143に出力する(圧縮転送モード)。一
方、前記検出結果において前記ラインバッファにおける
入力/出力速度が予め設定された速度以上である場合に
は転送速度が速いと判断して、転送データ生成部151
によって生成された転送データD3をI/F部143に
送信する(通常転送モード)。
The switching unit 154 selects either the transfer data D3 generated by the transfer data generation unit 151 or the compressed data D4 generated by the data compression unit 152 according to the detection result detected by the transfer state detection unit 153. One of them is output to the I / F unit 143. In this case, if the input / output speed in the line buffer is slower than a preset speed, it is determined that the transfer speed is slow,
Compressed data D4 generated by the data compression unit 152
Is output to the I / F unit 143 (compressed transfer mode). On the other hand, when the input / output speed in the line buffer is equal to or higher than the preset speed in the detection result, it is determined that the transfer speed is high, and the transfer data generation unit 151
The transfer data D3 generated by is transmitted to the I / F unit 143 (normal transfer mode).

【0022】情報処理装置200は、I/F部143か
ら転送データD3または圧縮データD4を受信すると、
それらの画像データに付加されている移動量Mを取得
し、その画像データが移動量Mと同数となるようにこの
画像データを(M−1)回複写することによりラインが
欠けていない画像を復元する。
When the information processing apparatus 200 receives the transfer data D3 or the compressed data D4 from the I / F section 143,
The amount of movement M added to the image data is obtained, and the image data is copied (M-1) times so that the image data has the same number as the amount of movement M. Restore.

【0023】図14は、図14(f)に示された前記通
常転送モードで転送される転送データD3を情報処理装
置200側で復元する方法を説明する図である。図15
(a)に示された二値化画像データD2(D2−1,D
2−2,・・・,D2−7)とそれら各二値化画像デー
タD2に対応する移動量Mは、転送データ生成部151
により同図(b)に示す二値化画像データ(A−1,A
−2,A−4,A−7)とそれら各二値化画像データに
対応する移動量Mとで構成される4個の転送データD3
−1.D3−2,D3−3及びD3−4に変換される。
FIG. 14 is a diagram for explaining a method of restoring the transfer data D3 transferred in the normal transfer mode shown in FIG. 14 (f) on the information processing device 200 side. Figure 15
Binarized image data D2 (D2-1, D shown in (a)
2-2, ..., D2-7) and the amount of movement M corresponding to each of the binarized image data D2 are the transfer data generation unit 151.
The binarized image data (A-1, A shown in FIG.
-2, A-4, A-7) and the amount of movement M corresponding to each of the binarized image data, four pieces of transfer data D3
-1. It is converted into D3-2, D3-3 and D3-4.

【0024】情報処理装置200は、I/F部143か
ら転送されてくるそれら4個の転送データD3を、上記
復元方法により、同図(c)に示すように6ラインの復
元画像データB(B−1,B−2,・・・,B−6)に
復元する。この場合は、転送データD3−2の二値化画
像データA−2(2ライン目の二値化画像データ)を2
回コピーしてて、3ライン目の復元画像像データB−3
と4ライン目の復元画像データB−4を復元する。
The information processing apparatus 200 converts the four transferred data D3 transferred from the I / F unit 143 into the restored image data B (6 lines) of 6 lines as shown in FIG. B-1, B-2, ..., B-6). In this case, the binarized image data A-2 (binarized image data of the second line) of the transfer data D3-2 is set to 2
It is copied twice and the restored image image data B-3 of the third line
And the restored image data B-4 of the fourth line is restored.

【0025】次に、図16は図14(g)に示された圧
縮転送モードで転送される圧縮データD4を情報処理装
置200側で復元する方法を説明する図である。同図に
おいて,(a)及び(b)は上述した図15(a)及び
(b)と同一なのでそれらの説明は省略する。圧縮転送
モードにおいては、図16(c)に示された2個の圧縮
データD4−1,D−2が情報処理装置200に転送さ
れる。圧縮データD4−1は二値化画像データA−1と
移動量“4”から構成され、圧縮データD4−2は二値
化画像データA−2と移動量“2”から構成される。情
報処理装置200は、これら2個の圧縮データD4−
1,D4−2を受信すると、それらの圧縮データに含ま
れる二値化画像データ(A−1,A−2)を、同じくそ
れらの圧縮データに含まれる移動量M(“4”、
“2”)の値に応じて、図16(d)に示すように復元
する。
Next, FIG. 16 is a diagram for explaining a method of decompressing the compressed data D4 transferred in the compression transfer mode shown in FIG. 14 (g) on the information processing apparatus 200 side. In this figure, (a) and (b) are the same as those in FIGS. 15 (a) and 15 (b) described above, and therefore their description is omitted. In the compression transfer mode, the two pieces of compressed data D4-1 and D-2 shown in FIG. 16C are transferred to the information processing device 200. The compressed data D4-1 is composed of the binarized image data A-1 and the movement amount "4", and the compressed data D4-2 is composed of the binarized image data A-2 and the movement amount "2". The information processing apparatus 200 uses the two pieces of compressed data D4-
1 and D4-2 are received, the binarized image data (A-1, A-2) included in those compressed data are moved by the moving amount M (“4”, which is also included in those compressed data,
According to the value of "2"), the restoration is performed as shown in FIG.

【0026】すなわち、この場合は、1ライン目の二値
化画像データA−1を3個コピーすることにより2〜4
ライン目の二値化画像データ(B−2〜B−4)を復元
し、4ライン目の二値化画像データA−4を1個コピー
することにより6ライン目の二値化画像データB−6を
復元する。
That is, in this case, 2 to 4 are obtained by copying three pieces of the binarized image data A-1 of the first line.
Binarized image data (B-2 to B-4) on the 6th line is restored by restoring the binarized image data on the 4th line (B-2 to B-4). Restore -6.

【0027】このように、従来発明2においては、画像
読取装置側でI/F部143のデータ転送速度と所定の
単位時間当たりに生成される転送データD3の量とを比
較しながら通常転送モードと圧縮転送モードの2つのモ
ードを切替えて転送データD3または圧縮データD4の
いずれか一方を転送することにより、小容量のラインバ
ッファで復元側で縮みのない2次元画像データを復元で
きるように読み取った画像データの転送を行っていた
(ラインデータ間引きによるデータ転送速度向上方
式)。
As described above, in Conventional Invention 2, the normal transfer mode is performed while comparing the data transfer rate of the I / F unit 143 and the amount of transfer data D3 generated per predetermined unit time on the image reading device side. By switching between the transfer data D3 and the compressed data D4 by switching between the transfer mode and the compressed transfer mode, two-dimensional image data without compression can be read by the decompression side with a small capacity line buffer. Image data was transferred (data transfer speed improvement method by thinning line data).

【0028】[0028]

【発明が解決しようとする課題】上述したように、従来
発明2では、1または複数ラインの画像データを間引く
ことにより空間解像度情報を欠落させてデータ圧縮を行
い、発生する転送データD3の量にI/F部143のデ
ータ転送速度の能力が追いつかない場合には、圧縮転送
モードに切り替え、該データ圧縮によって生成された圧
縮データD4を情報処理装置200に転送していた(図
14(g)参照)。ここで、空間解像度情報とは、2次
元空間画像を構成する画素の解像度のことである。
As described above, in the conventional invention 2, the data compression is performed by thinning out the image data of one or a plurality of lines so that the spatial resolution information is lost and the amount of the transfer data D3 to be generated is reduced. If the I / F unit 143 cannot keep up with the data transfer rate, the mode is switched to the compression transfer mode and the compressed data D4 generated by the data compression is transferred to the information processing apparatus 200 (FIG. 14 (g)). reference). Here, the spatial resolution information is the resolution of pixels forming a two-dimensional spatial image.

【0029】しかしながら、従来発明2の方法では、人
間が目視して読み込んだ画像データを確認する場合には
問題が無かったが、例えば、図17(a)に示すような
2次元コード400をスキャナ100による読み取り対
象とした場合、ラインデータが間引かれることにより空
間解像度情報が一部欠落するため、復元側では上記白黒
の点を正しく解読することができなくなり、2次元コー
ドの解読率が低下してしまい、復元に支障をきたすすと
いう問題が生じる。
However, according to the method of the conventional invention 2, there is no problem when the human visually confirms the read image data. For example, the two-dimensional code 400 as shown in FIG. When the data is read by 100, part of the spatial resolution information is lost due to the line data being thinned out, so that the black-and-white point cannot be correctly decoded on the restoration side, and the decoding rate of the two-dimensional code decreases. As a result, there arises a problem that restoration is hindered.

【0030】該2次元コードには、図17(b)に示す
画像データやURL(Uniform Resourace Locator)、M
IDI(Musical Instrumental Digital Interface)デ
ータ等の各種マルチメディアデータ等の情報、さらに
は、テキストデータ等が白と黒の点として印刷されてい
る。
The two-dimensional code includes the image data, URL (Uniform Resourace Locator), and M shown in FIG. 17 (b).
Information such as various kinds of multimedia data such as IDI (Musical Instrumental Digital Interface) data, and further, text data and the like are printed as white and black dots.

【0031】このように、従来発明2の方法は、2次元
コード等のような空間解像度情報を一部欠落して転送す
ると復元側で元データの復元に支障をきたすようなコー
ドのデータ圧縮には不適当であった。
As described above, according to the method of the conventional invention 2, when the spatial resolution information such as the two-dimensional code is transferred with a part missing, it is possible to compress the data of the code which causes a trouble in the restoration of the original data on the restoration side. Was inappropriate.

【0032】本発明は、画像読取装置に読み取られた画
像やコード等のデータを空間解像度情報を保存しながら
圧縮可能なデータ圧縮装置、データ圧縮方法、該データ
圧縮装置並びに該データ圧縮方法により圧縮されたデー
タを復元可能なデータ復元装置並びにデータ復元方法、
プログラムを記録したコンピュータが読取可能な記録媒
体及びプログラムを提供することを目的とする。
The present invention compresses data such as an image and a code read by an image reading apparatus by a data compressing apparatus, a data compressing method, a data compressing apparatus and a data compressing method capable of compressing data while storing spatial resolution information. Data restoration device and data restoration method capable of restoring stored data,
An object of the present invention is to provide a computer-readable recording medium recording a program and a program.

【0033】[0033]

【課題を解決するための手段】本発明の第1の態様のデ
ータ圧縮装置は、原稿の画像をライン単位で読み取る画
像読取手段により読み取られたラインデータを圧縮する
データ圧縮装置を前提とする。
The data compression apparatus according to the first aspect of the present invention is premised on a data compression apparatus for compressing line data read by image reading means for reading an image of an original in line units.

【0034】この第1の態様のデータ圧縮装置は、ディ
ジタル化された該ラインデータを入力し、該ラインデー
タの各画素の有効ビットがレベル方向に削減された中間
ラインデータを生成する第1の画像データ生成手段と、
該中間ラインデータの各画素から有効ビット以外のビッ
トを削除して、有効ビットのみから成る画素がパッキン
グされた出力ラインデータを生成する第2の画像データ
生成手段とを備える。
The data compression apparatus of the first aspect inputs the digitized line data, and generates the intermediate line data in which the effective bits of each pixel of the line data are reduced in the level direction. Image data generation means,
A second image data generation unit that deletes bits other than valid bits from each pixel of the intermediate line data to generate output line data in which pixels having only valid bits are packed.

【0035】上記第1の態様のデータ圧縮装置によれ
ば、ラインデータの画素のビットをレベル方向に削減し
て該ラインデータを圧縮するので、該ラインデータを空
間解像度情報を保存したまま圧縮できる。
According to the data compression apparatus of the first aspect, since the bit of the pixel of the line data is reduced in the level direction to compress the line data, the line data can be compressed while the spatial resolution information is stored. .

【0036】本発明の第2の態様のデータ圧縮装置は、
前記第1の態様のデータ圧縮装置が備える上記手段に加
え、さらに、前記出力画像データを転送するインタフェ
ースのデータ転送速度を検出するデータ転送速度検出手
段と、前記画像読取手段により単位時間当たりに読み取
られるデータの発生量を示すデータ発生速度と、該デー
タ転送速度検出手段によって検出されたデータ転送速度
とを比較し、該データ転送速度が前記データ量送速度よ
りも遅いと評価した場合には、前記第1の画像データ生
成手段及び前記第2の画像データ生成手段に前記有効ビ
ット数を通知する転送速度評価手段を備え、前記第1の
画像データ生成手段と前記第2の画像データ生成手段
は、前記転送速度評価手段により、前記データ転送速度
が前記データ発生速度よりも遅いと評価された場合にの
み、それぞれ、前記中間ラインデータと前記出力ライン
データの生成を行う。
A data compression apparatus according to the second aspect of the present invention is
In addition to the above-mentioned means included in the data compression apparatus of the first aspect, further, a data transfer rate detecting means for detecting a data transfer rate of an interface for transferring the output image data, and the image reading means for reading per unit time. When the data transfer rate indicating the generated amount of data to be compared with the data transfer rate detected by the data transfer rate detecting means and the data transfer rate is evaluated to be slower than the data amount transfer rate, The first image data generation means and the second image data generation means are provided with a transfer speed evaluation means for notifying the effective bit number, and the first image data generation means and the second image data generation means are provided. , Only when the transfer rate evaluation means evaluates that the data transfer rate is slower than the data generation rate. And between the line data and generates the output line data.

【0037】上記第2の態様のデータ圧縮装置によれ
ば、画像読取手段側でのデータ発生速度とインタフェー
ス側でデータ転送速度を比較して、現時点で圧縮が必要
か判断し、圧縮が必要と判断したときのみ入力ラインデ
ータを圧縮して転送するので、無駄な圧縮を回避でき、
圧縮が必要なときのみ圧縮データを復元側に転送し、圧
縮が不要なときには入力ラインデータをそのまま復元側
に転送できる。
According to the data compression apparatus of the second aspect, the data generation rate on the image reading means side and the data transfer rate on the interface side are compared to determine whether or not compression is required at the present time, and compression is required. Since input line data is compressed and transferred only when it is determined, unnecessary compression can be avoided,
The compressed data can be transferred to the decompression side only when compression is necessary, and the input line data can be directly transferred to the decompression side when compression is unnecessary.

【0038】本発明の第3の態様のデータ圧縮装置は、
前記第1の態様のデータ圧縮装置が備える上記手段に加
え、さらに、前記画像読取手段の移動量を示す信号を入
力し、その信号から前記画像読取装置の移動速度を検出
し、その移動速度と前記画像読取手段の駆動速度を比較
して、前記移動速度が前記駆動速度よりも速いと評価し
た場合には、前記第1の画像データ生成手段及び前記第
2の画像データ生成手段に前記有効ビット数を通知する
移動速度評価手段を備え、前記第1の画像データ生成手
段と前記第2の画像データ生成手段は、前記移動速度評
価手段により、前記移動速度が前記駆動速度よりも速い
と評価された場合にのみ、それぞれ、前記中間ラインデ
ータと前記出力ラインデータの生成を行う。
A data compression apparatus according to the third aspect of the present invention is
In addition to the means provided in the data compression apparatus of the first aspect, a signal indicating the movement amount of the image reading means is further input, the movement speed of the image reading apparatus is detected from the signal, and the movement speed When the driving speed of the image reading means is compared and it is evaluated that the moving speed is faster than the driving speed, the effective bit is added to the first image data generating means and the second image data generating means. The first image data generation means and the second image data generation means are evaluated by the movement speed evaluation means as the movement speed being faster than the drive speed. Only in the case of the above, the intermediate line data and the output line data are respectively generated.

【0039】上記第3の態様のデータ圧縮装置によれ
ば、画像読取手段の移動速度と駆動速度を比較して、現
時点で圧縮が必要か判断し、圧縮が必要と判断したとき
のみ入力ラインデータを圧縮して転送するので、無駄な
圧縮を回避でき、圧縮が必要なときのみ圧縮データを復
元側に転送し、圧縮が不要なときには入力ラインデータ
をそのまま復元側に転送できる。
According to the data compressing device of the third aspect, the moving speed of the image reading means and the driving speed are compared to judge whether the compression is necessary at the present time. Only when it is judged that the compression is necessary, the input line data is inputted. Is compressed and transferred, wasteful compression can be avoided, compressed data can be transferred to the decompression side only when compression is necessary, and input line data can be transferred to the decompression side as it is when compression is unnecessary.

【0040】本発明のデータ復元装置は、入力ラインデ
ータに対して、該入力ラインデータの画素のビットをレ
ベル方向に削減するレベル変換と、該レベル変換により
削減された該画素のビット数に応じて該画素をパッキン
グするパッキング変換を施すことにより生成された圧縮
ラインデータを復元するデータ復元装置を前提とする。
The data restoration device of the present invention responds to the input line data by level conversion for reducing the bits of the pixel of the input line data in the level direction and the number of bits of the pixel reduced by the level conversion. It is premised on a data decompression device that decompresses compressed line data generated by performing packing conversion for packing the pixels.

【0041】このデータ復元装置は、前記圧縮ラインデ
ータに対して、前記圧縮ラインデータの画素を前記レベ
ル変換前の画素に戻すアンパッキング変換を施し、前記
レベル変換前のラインデータを復元する復元手段と、該
復元手段により生成されたラインデータの画素のレベル
を変換して、所定ビットの画素から成るラインデータを
生成する生成手段とを備える。
This data decompression device performs unpacking conversion on the compressed line data to restore the pixels of the compressed line data to the pixels before the level conversion, and decompresses the line data before the level conversion. And a generation unit for converting the level of the pixel of the line data generated by the restoration unit to generate line data including a pixel of a predetermined bit.

【0042】上記データ復元装置によれば、レベル変換
及びパッキング変換により圧縮されたラインデータを、
各種アプリケーションに適したラインデータに復元する
ことができる。
According to the above data decompression device, the line data compressed by the level conversion and the packing conversion are
It is possible to restore to line data suitable for various applications.

【0043】[0043]

【発明の実施の形態】以下、図面を参照しながら、本発
明の実施形態を説明する。図1は、本発明のデータ圧縮
・復元方法の実施形態の原理を全体的に説明する図であ
る。同図は、4ラインの入力ライン画像データ(入力ラ
インデータ)DI(DI−1,DI−2,DI−3,D
I−4)を圧縮・復元する場合の例である。入力ライン
データDIの各画素のビット数(画素有効ビット)はN
(例えば、N=8)とする(同図(a)参照)。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram for generally explaining the principle of an embodiment of a data compression / decompression method of the present invention. This figure shows 4-line input line image data (input line data) DI (DI-1, DI-2, DI-3, D).
This is an example of compressing / restoring I-4). The number of bits of each pixel of the input line data DI (pixel effective bit) is N
(For example, N = 8) (see (a) in the figure).

【0044】まず、これら4ラインの入力ラインデータ
DIの各画素のレベル変換を行い、各画素の有効ビット
数をNビット(例えば、N=8)からIビット(例え
ば、I=4)に削減し中間ラインデータDM(DM−
1,DM−2,DM−3,DM−4)を生成する(同図
(b)参照)。
First, the level conversion of each pixel of the input line data DI of these four lines is performed, and the effective bit number of each pixel is reduced from N bits (for example, N = 8) to I bits (for example, I = 4). Intermediate line data DM (DM-
1, DM-2, DM-3, DM-4) (see (b) of the same figure).

【0045】本発明では、画素の値(階調値等のレベル
等)を示すビット列の中で有効なビット数Iを「レベル
情報」と定義する。また、これらIビットのビット列を
画素有効ビットIと定義する。さらに、画素値を示すビ
ット列のMSB(Most Significant Bit) からLSB
(Least Significant Bit)への方向をレベル方向と定義
する。また、さらに、画素有効ビットIのビット数を変
換する操作をレベル変換と定義する。本発明の画像デー
タ圧縮においては、「レベル方向のビット数を削減する
ために、画素有効ビットNを画素有効ビットI(I<
N)に変換するレベル変換が行われる。尚、後述するデ
ータ復元の場合にはI≦Nとするレベル変換が施され
る。
In the present invention, the effective bit number I in the bit string indicating the pixel value (level such as gradation value) is defined as "level information". Further, a bit string of these I bits is defined as a pixel effective bit I. Furthermore, from the MSB (Most Significant Bit) of the bit string indicating the pixel value to the LSB.
The direction to (Least Significant Bit) is defined as the level direction. Further, the operation of converting the number of bits of the pixel effective bit I is defined as level conversion. In the image data compression of the present invention, “to reduce the number of bits in the level direction, the pixel effective bit N is changed to the pixel effective bit I (I <
The level conversion for converting into N) is performed. It should be noted that in the case of data restoration which will be described later, level conversion with I ≦ N is performed.

【0046】次に、パッキング変換を行い、中間ライン
データDM(DM−1,DM−2,DM−3,DM−
4)から出力ラインデータ(圧縮ラインデータ)DO
(DO−1,DO−2,DO−3,DO−4)を生成す
る(同図(c)参照)。
Next, the packing conversion is performed and the intermediate line data DM (DM-1, DM-2, DM-3, DM-).
4) to output line data (compressed line data) DO
(DO-1, DO-2, DO-3, DO-4) is generated (see (c) in the figure).

【0047】このパッキング変換は、中間ラインデータ
DMの画素について、その画素有効ビットI以外のビッ
トを削除することにより、該画素の値を画素有効ビット
Iで表現し、画素有効ビットIのみからなる画素を画素
の配列順(ラインデータの主走査方向)にパッキングす
る操作である。
This packing conversion expresses the value of the pixel by the pixel effective bit I by deleting the bits other than the pixel effective bit I of the pixel of the intermediate line data DM, and consists of only the pixel effective bit I. This is an operation of packing pixels in the pixel arrangement order (the main scanning direction of line data).

【0048】このパッキング変換により、中間ラインデ
ータDMから出力ラインデータDOが生成される。入力
ラインデータDIの画素有効ビットN(N=8),中間
ラインデータの画素有効ビットI(I=4)の場合は、
パッキング変換により、入力ラインデータDIはデータ
量が1/2の出力ラインデータに圧縮される。
By this packing conversion, output line data DO is generated from the intermediate line data DM. In the case of the pixel valid bit N (N = 8) of the input line data DI and the pixel valid bit I (I = 4) of the intermediate line data,
Due to the packing conversion, the input line data DI is compressed into output line data whose data amount is 1/2.

【0049】該出力ラインデータDOは、レベル情報
(画素有効ビットIのビット数,すなわち,I=4)と
共に情報処理装置等の復元装置に転送され、該復元装置
により復元ラインデータB(B−1,B−2,B−3,
B−4)に復元される(同図(d)参照)。この復元に
より生成される該復元ラインデータBの画素の有効ビッ
トMは8ビットであり、前記入力ラインデータDIの画
素の画素有効ビットIと同様である。したがって、両デ
ータのデータ長は同じである。
The output line data DO is transferred together with level information (the number of pixel effective bits I, that is, I = 4) to a restoration device such as an information processing device, and the restoration line data B (B- 1, B-2, B-3,
B-4) is restored (see (d) of the same figure). The valid bit M of the pixel of the restored line data B generated by this restoration is 8 bits, which is the same as the pixel valid bit I of the pixel of the input line data DI. Therefore, the data length of both data is the same.

【0050】このように、本実施形態のデータ圧縮方法
においては、入力ラインデータDIを圧縮する際、画素
のレベル変換と該レベル変換により削減された画素のビ
ット数に応じてパッキング単位を切り替える。このよう
に、画素のレベル情報のレベル方向の圧縮により入力ラ
インデータDIを圧縮することで、入力ラインデータD
Iをその空間解像度情報を保存したまま圧縮することが
できる。したがって、2次元コード等のように、空間解
像度情報の欠落が復元に支障をきたすデータの圧縮に好
適である。
As described above, in the data compression method of this embodiment, when compressing the input line data DI, the packing unit is switched according to the level conversion of the pixel and the number of bits of the pixel reduced by the level conversion. In this way, by compressing the input line data DI by compressing the level information of pixels in the level direction, the input line data D
I can be compressed while preserving its spatial resolution information. Therefore, it is suitable for compression of data, such as a two-dimensional code, in which lack of spatial resolution information hinders restoration.

【0051】図2は、本発明の実施形態のデータ圧縮・
復元方法の原理を、入力ラインデータDI,中間ライン
データDM,出力ラインデータDO,及び復元ラインデ
ータBの画素に着目して説明する図である。同図は、入
力ラインデータの画素有効ビットNのビット数が8ビッ
ト(N=8)、レベル変換された中間ラインデータDM
の画素有効ビットIのビット数が4ビット(I=8)、
出力ラインデータDOの画素有効ビットMのビット数が
(M=8、1)の場合の例を示している。
FIG. 2 is a block diagram of data compression / execution according to the embodiment of the present invention.
It is a figure which pays attention to the pixel of input line data DI, intermediate line data DM, output line data DO, and restoration line data B, and explains the principle of a restoration method. In the figure, the number of pixel effective bits N of the input line data is 8 bits (N = 8), and the level-converted intermediate line data DM
The number of pixel effective bits I is 4 bits (I = 8),
An example in which the number of pixel valid bits M of the output line data DO is (M = 8, 1) is shown.

【0052】図2には,2つの画素PI(PI−1,P
I−2)に対して、レベル変換及びパッキング変換を順
次施す圧縮処理と、該圧縮処理により生成される圧縮ラ
インデータの転送(以上が圧縮側での処理)、及びその
圧縮ラインデータに対してアンパッキング変換及びレベ
ル変換を順次施す該圧縮ラインデータの復元処理が示さ
れている。また、同図には、2種類のデータ復元方法が
示されている。
FIG. 2 shows two pixels PI (PI-1, P-1).
For I-2), compression processing for sequentially performing level conversion and packing conversion, transfer of compressed line data generated by the compression processing (the above is processing on the compression side), and the compressed line data A decompression process of the compressed line data that sequentially performs unpacking conversion and level conversion is shown. Further, in the figure, two types of data restoration methods are shown.

【0053】まず、画像データの圧縮方法について説明
する。圧縮においては、まず、入力ラインデータDIの
1画素目の画素PI−1と2画素目の画素PI−2(同
図(a)参照)について、上位4ビットを下位方向に4
ビットシフトした後、下位4ビットに“0”を設定する
レベル変換を行う(同図(b)参照)。この場合、画素
有効ビットIのビット数(レベル情報)Iは“4”であ
る。また、これらの画素PI−1,PI−2は、図1
(b)の中間ラインデータDMの画素である。
First, a method of compressing image data will be described. In the compression, first, for the pixel PI-1 of the first pixel and the pixel PI-2 of the second pixel of the input line data DI (see (a) in the same figure), the upper 4 bits are set to 4 in the lower direction.
After bit-shifting, level conversion for setting "0" to the lower 4 bits is performed (see (b) in the same figure). In this case, the bit number (level information) I of the pixel effective bit I is "4". In addition, these pixels PI-1 and PI-2 are shown in FIG.
It is a pixel of the intermediate line data DM of (b).

【0054】次に、該画素PI−1,PI−2から下位
4ビットを削除し、該画素PI−1と該画素PI−2の
上位4ビットをパッキングするパッキング変換を施して
8ビットの圧縮ラインデータ(パッキングデータ)DP
を生成する(図2(c)参照)。このような圧縮方法に
より、入力ラインデータDIが、データ量が1/2の出
力ラインデータ(圧縮ラインデータ)DPに変換される
(図1(c)参照)。そして、この圧縮ラインデータD
Pは、復元装置側に転送される(図2(d)、(g)参
照)。
Next, the lower 4 bits are deleted from the pixels PI-1 and PI-2, and packing conversion is performed to pack the upper 4 bits of the pixel PI-1 and the pixel PI-2, and compression of 8 bits is performed. Line data (packing data) DP
Is generated (see FIG. 2C). With such a compression method, the input line data DI is converted into output line data (compressed line data) DP having a data amount of 1/2 (see FIG. 1C). Then, this compressed line data D
P is transferred to the restoration device side (see FIGS. 2D and 2G).

【0055】ホストマシンは、該圧縮ラインデータDP
を受信すると。それに対してアンパッキング変換及びレ
ベル変換を施し、ラインデータを復元する。ここでは、
まず、復元ラインデータBの画素有効ビットMの画素
を,入力ラインデータDIの画素の画素有効ビットMと
同一のビット数Mに復元する画像データ復元方法の第一
実施例について、図2(d)〜(f)を参照しながら説
明する。
The host machine uses the compressed line data DP
When you receive. Then, unpacking conversion and level conversion are applied to the line data to restore the line data. here,
First, the first embodiment of the image data restoration method for restoring the pixels of the pixel effective bit M of the restored line data B to the same number M of bits as the pixel effective bit M of the pixels of the input line data DI will be described with reference to FIG. )-(F).

【0056】まず、同図(d)に示すように、圧縮ライ
ンデータDPに対してアンパッキング変換を施す。この
アンパッキング変換においては、前記レベル情報(この
場合、I=4ビット)を基に前記パッキング変換と逆の
変換を行い、圧縮側で同図(b)に示すレベル変換によ
り得られた1画素目のデータ(レベル変換データ)PL
−1と2画素目のデータ(レベル変換データ)PL−2
を復元する(同図(e)参照)。
First, as shown in FIG. 9D, unpacking conversion is applied to the compressed line data DP. In this unpacking conversion, a conversion opposite to the packing conversion is performed based on the level information (in this case, I = 4 bits), and one pixel obtained by the level conversion shown in FIG. Eye data (level conversion data) PL
-1 and second pixel data (level conversion data) PL-2
Is restored (see (e) in the figure).

【0057】続いて、同図(e)に示すように、該復元
された1画素目のデータPL−1と2画素目のデータP
L−2に対してレベル変換を施し、Mビット(画素有効
ビットM)の1画素目の復元画素データPLR−1,2
画素目の復元画像データPLR−2を生成する(同図
(f)参照)。同図(e)に示すレベル変換処理におい
ては、画素データPL−1、PL−2の右4ビット(下
位4ビット)を上位方向に4ビットシフトして、下位4
ビットに“0”を設定して、同図(f)に示す8ビット
(M=8)の画素データPLR−1,PLR−2を生成
している。
Then, as shown in FIG. 7E, the restored data PL-1 of the first pixel and data P-1 of the second pixel are restored.
Level conversion is performed on L-2, and restored pixel data PLR-1 and PLR-1 of the first pixel of M bits (pixel effective bit M).
The restored image data PLR-2 of the pixel is generated (see (f) in the figure). In the level conversion processing shown in (e) of the figure, the right 4 bits (lower 4 bits) of the pixel data PL-1 and PL-2 are shifted by 4 bits in the upper direction, and the lower 4
By setting "0" in the bit, 8-bit (M = 8) pixel data PLR-1 and PLR-2 shown in FIG.

【0058】この第1の実施例の画像データ復元方法で
は、復元画素データPLR(PLR−1,PLR−2)
の値が入力ラインデータデータDIの同一画素データP
I(PI−1、PI−2)の値と同じビット数(同じレ
ベル)で表現されるように復元する。これにより、階調
画像等を復元(生成)できる。
In the image data restoration method of the first embodiment, restored pixel data PLR (PLR-1, PLR-2)
Is the same pixel data P of the input line data data DI
Restoration is performed so as to be represented by the same number of bits (same level) as the value of I (PI-1, PI-2). As a result, a gradation image or the like can be restored (generated).

【0059】次に、画像データ復元方法の第2の実施例
を図2(g)〜(i)を参照しながら説明する。この実
施例では2値の画素データを復元(生成)する。まず、
同図(g)に示す圧縮ラインデータDPを前記第一の実
施例と同様な方法によりアンパッキング変換して、1画
素目のデータPL−1と2画素目のデータPL−2を復
元する(同図(h)参照)。続いて、同図(h)に示す
ように、これら2つの画素データPL−1,PL−2に
対して2値化処理を行い、1画素目を“1”、2画素目
を“0”とする。そして、これら二値化された2つの1
ビット(M=1)の画素データを8ビットの復元画像デ
ータPLR’の1ビット目と2ビット目に設定する(同
図(i)参照)。この2値化処理においては2進数の値
“1000”(=8)を閾値とする量子化処理を行う。
Next, a second embodiment of the image data restoration method will be described with reference to FIGS. In this embodiment, binary pixel data is restored (generated). First,
The compressed line data DP shown in FIG. 9G is unpacked by the same method as in the first embodiment to restore the data PL-1 of the first pixel and the data PL-2 of the second pixel ( Refer to FIG. Subsequently, as shown in FIG. 6H, binarization processing is performed on these two pixel data PL-1 and PL-2, and the first pixel is "1" and the second pixel is "0". And And these two binarized ones
Bit (M = 1) pixel data is set to the first and second bits of the 8-bit restored image data PLR ′ (see (i) in the figure). In this binarization process, the quantization process is performed with the binary value “1000” (= 8) as the threshold value.

【0060】このように、第2の実施例の画像データ復
元方法では、多値画像データであった入力ラインデータ
DIの画素を画素有効ビットM(M=1)の2値画像デ
ータに復元する。ところで、上記第1及び第2の画像デ
ータ復元方法におけるアンパッキング変換及びレベル変
換においては、いずれも、画像データ圧縮におけるレベ
ル変換で生成された中間ラインデータの画素有効ビット
Iのビット数(I=4ビットのレベル情報)を参考にす
る。
As described above, in the image data restoration method of the second embodiment, the pixels of the input line data DI that were multi-valued image data are restored to the binary image data of the pixel effective bit M (M = 1). . By the way, in both the unpacking conversion and the level conversion in the first and second image data decompression methods, the number of bits of the pixel effective bit I of the intermediate line data generated by the level conversion in the image data compression (I = Refer to 4-bit level information).

【0061】図3は、本発明のデータ圧縮装置の第1の
実施形態を含む画像読取装置のシステム構成を示すブロ
ック図である。同図に示す画像読取装置1は、読取制御
部3とセンサ部40とで構成されている。センサ部40
はイメ−ジ情報を光信号として読み取り、それを電気的
信号に変換して、該イメ−ジ情報の画像データを出力す
るイメ−ジセンサである。
FIG. 3 is a block diagram showing the system configuration of an image reading apparatus including the first embodiment of the data compression apparatus of the present invention. The image reading device 1 shown in FIG. 1 includes a reading control unit 3 and a sensor unit 40. Sensor unit 40
Is an image sensor which reads image information as an optical signal, converts it into an electrical signal, and outputs image data of the image information.

【0062】データ処理部3は、データ圧縮部10、画
像信号処理部20及びI/F部(データ転送部)30を
備える。画像信号処理部20とI/F部30は、それぞ
れ、前述した図13の画像信号処理部142、I/F部
143と同様な機能を有するものであり、ここでは詳し
い説明は省略する。
The data processing section 3 comprises a data compression section 10, an image signal processing section 20 and an I / F section (data transfer section) 30. The image signal processing unit 20 and the I / F unit 30 have the same functions as the image signal processing unit 142 and the I / F unit 143 of FIG. 13, respectively, and detailed description thereof will be omitted here.

【0063】データ圧縮部10は本発明のデータ圧縮装
置の第1の実施形態であり、レベル変換画像データ生成
部11とパッキングデータ生成部12を備える。レベル
変換画像データ生成部12は、画像信号処理部20から
入力されるラインデータに対して前述した図2(b)に
示すレベル変換処理を施し、該レベル変換処理により得
られた画素有効ビットIの画素データから構成される中
間ラインデータをパッキングデータ生成部12に出力す
る。パッキングデータ生成部12は、該中間ラインデー
タDIに対して前述した図2(c)に示すパッキング変
換を施し、圧縮ラインデータDOを生成する。I/F部
30は、パッキングデータ生成部12から入力される該
圧縮ラインデータDOを情報処理装置(不図示)に転送
する。
The data compression section 10 is the first embodiment of the data compression apparatus of the present invention, and comprises a level conversion image data generation section 11 and a packing data generation section 12. The level-converted image data generation unit 12 performs the level conversion process shown in FIG. 2B on the line data input from the image signal processing unit 20, and the pixel effective bit I obtained by the level conversion process. The intermediate line data composed of the pixel data of 1 is output to the packing data generation unit 12. The packing data generation unit 12 performs the packing conversion shown in FIG. 2C on the intermediate line data DI to generate the compressed line data DO. The I / F unit 30 transfers the compressed line data DO input from the packing data generation unit 12 to an information processing device (not shown).

【0064】図4は、本発明のデータ圧縮装置の第2の
実施形態を含む画像読取装置のシステム構成を示すブロ
ック図である。尚、同図において前述した図13に示す
画像読取装置100が備える構成要素とほぼ同様の機能
を備える構成要素については同一の名称を付けている。
また、信号についても同等の機能を有する信号について
は同一の符号を付記している。
FIG. 4 is a block diagram showing the system configuration of an image reading apparatus including the second embodiment of the data compression apparatus of the present invention. In the figure, the same names are given to the components having substantially the same functions as the components included in the image reading apparatus 100 shown in FIG. 13 described above.
Also, with regard to signals, signals having the same functions are denoted by the same reference numerals.

【0065】同図に示す画像読取装置2は、スキャナ部
60とデータ処理部50で構成される。スキャナ部60
は、画像読取部61と移動量検出部62を備える。該画
像読取部61と該移動量検出部62は、前述した図13
の画像読取部112と移動量検出113と同様であり、
ここでは詳しい説明は省略する。
The image reading apparatus 2 shown in the figure comprises a scanner section 60 and a data processing section 50. Scanner unit 60
Includes an image reading unit 61 and a movement amount detection unit 62. The image reading unit 61 and the movement amount detecting unit 62 are the same as those in FIG.
Of the image reading unit 112 and the movement amount detection 113 of
Detailed description is omitted here.

【0066】データ処理部50は、画像信号処理部5
2、読取制御部52及びI/F部(データ転送部)53
を備える。画像信号処理部52とI/F部53、それぞ
れ、上述した図3の画像信号処理部20とI/F部30
と同様の機能を有する。
The data processing unit 50 is the image signal processing unit 5.
2. Read control unit 52 and I / F unit (data transfer unit) 53
Equipped with. The image signal processing unit 52 and the I / F unit 53, and the image signal processing unit 20 and the I / F unit 30 of FIG. 3 described above, respectively.
It has the same function as.

【0067】読取制御部52は本発明のデータ圧縮装置
の第2の実施形態であり、レベル変換画像データ生成部
52a、パッキングデータ生成部52b、データ速度検
出部52c、転送速度評価部52d及び移動量評価部5
2eを備える。この読取制御部52は、本発明のデータ
圧縮装置の第2の実施形態であり、データ圧縮以外に、
データ処理部50全体の読取制御と情報処理装置65へ
送信する転送データ(圧縮ラインデータ)をI/F部5
3へ出力する機能を備える。
The reading control unit 52 is the second embodiment of the data compression apparatus of the present invention, and is a level conversion image data generation unit 52a, packing data generation unit 52b, data speed detection unit 52c, transfer speed evaluation unit 52d and movement. Quantity evaluation part 5
2e. This reading control unit 52 is the second embodiment of the data compression apparatus of the present invention, and in addition to data compression,
The read control of the entire data processing unit 50 and the transfer data (compressed line data) to be transmitted to the information processing device 65 are transferred to the I / F unit 5.
It has a function to output to 3.

【0068】データ転送速度検出部52cは、I/F部
53の転送速度(データ転送速度)を検出し、その検出
結果tvを転送速度評価部52dに通知する。データ転
送速度検出部52cは、例えば、I/F部30から情報
処理装置65に単位時間当たりに転送されるデータ量を
監視し、その監視結果からI/F部53のデータ転送速
度を算出してI/F部53のデータ転送速度を検出す
る。また、データ転送速度検出部52cは該方法以外
に、例えば、I/F部53の仕様として予め規定されて
いるデータ転送速度をI/F部53等から取得し、それ
をI/F部53のデータ転送速度とみなす。実際の動作
環境においては、I/F部53と情報処理装置65間の
転送速度(データ転送速度)は、情報処理装置65の状
態等により変動するので、前者の方法でI/F部53の
データ転送速度を検出するのが好ましい。
The data transfer rate detector 52c detects the transfer rate (data transfer rate) of the I / F section 53 and notifies the transfer rate evaluator 52d of the detection result tv. The data transfer rate detection unit 52c monitors, for example, the amount of data transferred from the I / F unit 30 to the information processing device 65 per unit time, and calculates the data transfer speed of the I / F unit 53 from the monitoring result. Then, the data transfer rate of the I / F unit 53 is detected. In addition to the method, the data transfer rate detecting unit 52c acquires, for example, the data transfer rate preliminarily specified as the specifications of the I / F unit 53 from the I / F unit 53 or the like, and then acquires the data transfer rate. Considered as the data transfer rate of. In an actual operating environment, the transfer rate (data transfer rate) between the I / F unit 53 and the information processing device 65 varies depending on the state of the information processing device 65, and so on. It is preferable to detect the data transfer rate.

【0069】転送速度評価部52dは、例えば、画像読
取部61の駆動周期(駆動周波数)と画像読取部61の
1ライン当たりの解像度を基に、画像読取部61により
読み取られるラインデータの上記単位時間当たりの量
(データ発生速度S)を算出する。転送速度評価部52
dは、該データ発生速度Sと前記I/F部53のデータ
転送速度とを比較し、前記データ転送速度の方が前記該
データ発生速度Sよりも遅いか判断する。そして、転送
速度評価部52dは、前記データ転送速度の方が前記デ
ータ発生速度Sよりも遅いと評価した場合には、レベル
変換画像データ生成部52aが画像信号処理部51で生
成される画像データ(画素有効ビットNのラインデー
タ)D2にレベル変換処理を施す際に最適な前記画素有
効ビットIのビット数I(レベル情報)を決定し、それ
をレベル変換画像データ生成部52a及びパッキングデ
ータ生成部52bに通知する。また、このとき、転送速
度評価部52dは、レベル変換画像データ生成部52a
とパッキングデータ生成部52bに対して、ぞれぞれ、
レベル変換及びパッキング変換の指示も通知する。尚、
これらの指示の通知は、前記画素有効ビットIのビット
数に関する情報の通知で代用するようにしてもよい。
The transfer rate evaluation unit 52d is, for example, based on the driving cycle (driving frequency) of the image reading unit 61 and the resolution per line of the image reading unit 61, the unit of the line data read by the image reading unit 61. The amount per time (data generation rate S) is calculated. Transfer rate evaluation unit 52
d compares the data generation speed S with the data transfer speed of the I / F unit 53, and determines whether the data transfer speed is slower than the data generation speed S. When the transfer rate evaluation unit 52d evaluates that the data transfer rate is slower than the data generation rate S, the level conversion image data generation unit 52a generates the image data generated by the image signal processing unit 51. (Line data of pixel effective bit N) When the level conversion processing is performed on D2, the optimum bit number I (level information) of the pixel effective bit I is determined, and it is determined by the level conversion image data generation unit 52a and packing data generation. Notify the section 52b. Further, at this time, the transfer speed evaluation unit 52d is configured so that the level conversion image data generation unit 52a
To the packing data generation unit 52b,
The level conversion and packing conversion instructions are also notified. still,
The notification of these instructions may be replaced with the notification of the information regarding the number of bits of the pixel effective bit I.

【0070】画像読取部61の駆動速度が速い場合や画
像読取部61の1ライン当たりの解像度(ライン解像
度)が高い場合には、画像読取部61に読み取られる単
位時間値当たりのラインデータの数(データ量)は大き
くなる。このため、前記データ発生速度Sは大きくな
る。例えば、ライン解像度が高いまたは駆動速度が速い
画像読取部を備えたフラットベッド型スキャナ等では、
前記データ発生速度Sは速くなる。このため、データ転
送速度の遅いI/F部53では、そのようなフラットベ
ッド型スキャナのデータ発生速度Sに追随可能なデータ
転送を実行できなくなる場合がありえる。本実施形態で
は、このような場合を想定して転送速度評価部52dが
前記データ発生速度SとI/F部53のデータ転送速度
との比較を行い、画像信号処理部51で生成されるライ
ンデータD2のデータ圧縮が必要か否かを判断する。そ
して、転送速度評価部52dは、該データ圧縮が必要と
判断すると、レベル変換画像データ生成部52a及びパ
ッキングデータ生成部52bに動作を指示してそれらに
ラインデータD2の圧縮を実行させ、I/F部53が情
報処理装置65に転送すべきデータ量を削減する。
When the driving speed of the image reading unit 61 is high or the resolution per line (line resolution) of the image reading unit 61 is high, the number of line data read by the image reading unit 61 per unit time value. (Data volume) becomes large. Therefore, the data generation speed S increases. For example, in a flatbed scanner having an image reading unit with high line resolution or high driving speed,
The data generation speed S becomes faster. For this reason, the I / F unit 53 having a low data transfer speed may not be able to perform data transfer that can follow the data generation speed S of such a flatbed scanner. In the present embodiment, assuming such a case, the transfer speed evaluation unit 52d compares the data generation speed S with the data transfer speed of the I / F unit 53, and a line generated by the image signal processing unit 51. It is determined whether the data compression of the data D2 is necessary. Then, when the transfer rate evaluation unit 52d determines that the data compression is necessary, the transfer rate evaluation unit 52d instructs the level conversion image data generation unit 52a and the packing data generation unit 52b to operate, and causes the level conversion image data generation unit 52a and the packing data generation unit 52b to perform compression of the line data D2. The F unit 53 reduces the amount of data to be transferred to the information processing device 65.

【0071】レベル変換画像データ生成部52aは、転
送速度評価部52dからレベル変換指示と共に前記画素
有効ビットIのビット数I(レベル情報)等の情報を通
知されると、前述した図2(b)に示す方法等により画
像信号処理部51から受け取るラインデータD2(図1
(a)の入力ラインデータDIに相当)に対してレベル
変換処理を施す。そして、レベル変換画像データ生成部
52aは、該レベル変換処理により得られた中間ライン
データDM(図1(b)参照)をパッキングデータ生成
部52bに出力する。ところで、レベル変換画像データ
生成部52aは、内部にラインバッファ57を有してお
り、画像信号処理部51から入力されるラインデータD
2をそれに一時的に保存しておく。
When the level conversion image data generation unit 52a is notified of information such as the number of bits I (level information) of the pixel effective bit I together with the level conversion instruction from the transfer speed evaluation unit 52d, the above-mentioned FIG. ) Line data D2 (FIG. 1) received from the image signal processing unit 51 by the method shown in FIG.
Level conversion processing is applied to (corresponding to the input line data DI in (a)). Then, the level conversion image data generation unit 52a outputs the intermediate line data DM (see FIG. 1B) obtained by the level conversion processing to the packing data generation unit 52b. By the way, the level-converted image data generation unit 52 a has a line buffer 57 inside, and the line data D input from the image signal processing unit 51.
Save 2 to it temporarily.

【0072】パッキングデータ生成部52bは、転送速
度評価部52dからパッキング変換の指示を受け取り、
その後、レベル変換画像データ生成部52aから前記中
間ラインデータDMを受け取ると、転送速度評価部52
dから通知された画素有効ビットIのビット数I(レベ
ル情報)を基にして前述した図2(c)に示す方法によ
り前記中間ラインデータDMに対してパッキング変換を
施し、出力ラインデータDOを生成する。そして、その
出力ラインデータDOにレベル情報(画素有効ビットI
のビット数I)を付加して出力ラインデータ(圧縮デー
タ)DO(図1(c)参照)を生成し、それをI/F部
53に出力する。I/F部53は、該圧縮データDOを
情報処理装置65に転送する。
The packing data generator 52b receives the packing conversion instruction from the transfer rate evaluator 52d,
After that, when the intermediate line data DM is received from the level conversion image data generation unit 52a, the transfer speed evaluation unit 52
Based on the bit number I (level information) of the pixel effective bit I notified from d, the intermediate line data DM is subjected to the packing conversion by the method shown in FIG. To generate. Then, the level information (pixel valid bit I
1) is added to generate output line data (compressed data) DO (see FIG. 1C), which is output to the I / F unit 53. The I / F unit 53 transfers the compressed data DO to the information processing device 65.

【0073】また、読取制御部52は、転送速度評価部
52dの評価以外に移動量評価部52eの評価結果に基
づいて、上記と同様にレベル変換画像データ生成部52
a及びパッキングデータ生成部52bにより、画像信号
処理部51で生成されるラインデータD2の圧縮を行
う。
Further, the reading control unit 52 is based on the evaluation result of the movement amount evaluation unit 52e in addition to the evaluation of the transfer speed evaluation unit 52d, and in the same manner as above, the level conversion image data generation unit 52
The line data D2 generated by the image signal processing unit 51 is compressed by a and the packing data generation unit 52b.

【0074】移動量評価部(移動速度評価部)52e
は、移動量検出部62から入力される移動量検出パルス
信号S1を基に画像読取部61の移動速度を算出する。
すなわち、例えば、移動量検出パルス信号S1のパルス
(エンコーダパルス)の入力時間間隔を測定して、その
時間間隔と1パルス当たりの画像読取部61の移動量か
ら前記移動速度を算出する。この移動速度は、ユーザが
スキャナ部60を原稿上で移動させる速度に該当する。
Moving amount evaluation unit (moving speed evaluation unit) 52e
Calculates the moving speed of the image reading unit 61 based on the moving amount detection pulse signal S1 input from the moving amount detecting unit 62.
That is, for example, the input time interval of the pulse (encoder pulse) of the moving amount detection pulse signal S1 is measured, and the moving speed is calculated from the time interval and the moving amount of the image reading unit 61 per pulse. This moving speed corresponds to the speed at which the user moves the scanner unit 60 on the document.

【0075】また、移動量評価部52eは、画像読取部
61の駆動周期から画像読取部61の駆動速度を求め
る。この、駆動速度は駆動信号S2のパルス発生周期を
基に求めてもよいし、画像読取部61の仕様で規定され
ている駆動周期から求めてもよい。そして、移動量評価
部52eは、画像読取部61の駆動速度よりも画像読取
部61の移動速度が速いと評価した場合は、その速度差
に応じてレベル変換画像データ生成部52aがレベル変
換する際に使用すべき画素有効ビットIのビット数I
(レベル情報)を決定し、それをレベル変換画像データ
生成部52a及びパッキングデータ生成部52bに通知
する。また、移動量評価部52eは、レベル変換画像デ
ータ生成部52a及びパッキングデータ生成部52bに
対して、それぞれ、レベル変換及びパッキング変換の実
行を指示する。この指示は、前記レベル情報の通知で代
用してもよい。また、本実施形態においては、移動量評
価部52eに、移動量検出パルス信号S1から画像読取
部61の駆動速度を検出する機能をもたせているが、こ
の機能を有する移動速度検出部を読取制御部52内に移
動量評価部52eとは独立に別に設け、移動量評価部5
2eは(該移動速度検出部で検出される)移動速度と駆
動速度の比較・評価のみを行うような構成にしてもい。
Further, the movement amount evaluation section 52e obtains the driving speed of the image reading section 61 from the driving cycle of the image reading section 61. The drive speed may be calculated based on the pulse generation cycle of the drive signal S2 or may be calculated from the drive cycle defined by the specifications of the image reading section 61. When the movement amount evaluation unit 52e evaluates that the movement speed of the image reading unit 61 is faster than the driving speed of the image reading unit 61, the level conversion image data generation unit 52a performs the level conversion according to the speed difference. The number I of pixel effective bits I to be used at the time
(Level information) is determined and notified to the level conversion image data generation unit 52a and the packing data generation unit 52b. Further, the movement amount evaluation unit 52e instructs the level conversion image data generation unit 52a and the packing data generation unit 52b to perform the level conversion and the packing conversion, respectively. This instruction may be replaced by the notification of the level information. Further, in the present embodiment, the movement amount evaluation unit 52e has a function of detecting the drive speed of the image reading unit 61 from the movement amount detection pulse signal S1, but the movement speed detection unit having this function is read and controlled. The movement amount evaluation unit 5e is provided separately in the unit 52, and the movement amount evaluation unit 5e is provided.
2e may be configured to only compare and evaluate the moving speed (detected by the moving speed detecting unit) and the driving speed.

【0076】レベル変換画像データ生成部52aとパッ
キングデータ生成部52bは、移動量評価部52eから
上記動作実行指示を通知されると、転送速度評価部52
dから同様の通知を受けときと場合と同様の処理を実行
する。これにより、レベル変換画像データ生成部52a
内のラインバッファ57に格納されているラインデータ
D2に対して、レベル変換画像データ生成部52a及び
パッキングデータ生成部52bにより、それぞれ、レベ
ル変換及びパッキング変換を順次施され、最終的に、パ
ッキングデータ生成部52bにより圧縮データ(出力ラ
インデータ)DOが生成される。この圧縮データDO
は、パッキングデータ生成部52bからI/F部53に
出力され、I/F部53を介して情報処理装置65に転
送される。
The level conversion image data generation unit 52a and the packing data generation unit 52b are notified of the above-mentioned operation execution instruction from the movement amount evaluation unit 52e, and then the transfer speed evaluation unit 52 is notified.
The same processing as when receiving the same notification from d is executed. As a result, the level conversion image data generation unit 52a
The level conversion image data generation unit 52a and the packing data generation unit 52b sequentially perform level conversion and packing conversion on the line data D2 stored in the line buffer 57 in the internal buffer 57, and finally, the packing data The generator 52b generates compressed data (output line data) DO. This compressed data DO
Is output from the packing data generation unit 52b to the I / F unit 53 and transferred to the information processing device 65 via the I / F unit 53.

【0077】画像読取部61の移動速度が画像読取部6
1の駆動速度を超える事態は、ユーザがハンディ型スキ
ャナで原稿の画像を読み取る際に、そのスキャナ部60
を画像読取部61の駆動速度よりも高速に移動させた場
合に生じる。このような場合には、画像読取部61の駆
動周期内に移動量検出部62から複数の移動量検出パル
ス信号S1が出力される。このとき、レベル変換画像デ
ータ生成部52aは、ラインデータの欠落を防止するた
めに、ラインバッファ57内に格納されている該駆動周
期の最初に読み取られたラインデータを移動量検出パル
ス信号S1の数(エンコーダパルス数)だけ複写し、エ
ンコーダパルス数と同数のラインデータを生成する。こ
のため、単位時間当たりに発生する画像データの量は増
加し、I/F部53が単位時間当たりに情報処理装置6
5に転送すべきデータ量(I/F部53が情報処理装置
65に正常にデータ転送を行うために必要とされるI/
F部53のデータ転送速度)は増大することになる。通
常、I/F部53は、スキャナ部60の画像読取部61
が駆動周期内に1ラインのデータを読み取る場合に対応
可能なデータ転送速度を有するものが使用されるため、
上記のように、画像読取部61の移動速度が画像読取部
61の駆動速度を超えると、I/F部53が情報処理装
置65に転送すべきデータ量がI/F部53のデータ転
送能力を超えてしまう。本実施形態では、このような事
態を防止するために、移動量評価部52eを設け、画像
信号処理部51においてI/F部53のデータ転送速度
を超える量のラインデータが生成される場合には、レベ
ル変換及びパッキング変換によるデータ圧縮を行うよう
にしている。
The moving speed of the image reading section 61 is determined by the image reading section 6
When the user reads the image of the document with the handy-type scanner, the situation in which the driving speed exceeds the driving speed of 1 is the scanner unit 60.
Occurs when the image reading section 61 is moved at a higher speed than the driving speed of the image reading section 61. In such a case, a plurality of movement amount detection pulse signals S1 are output from the movement amount detection unit 62 within the drive cycle of the image reading unit 61. At this time, the level conversion image data generation unit 52a sets the line data read first in the drive cycle stored in the line buffer 57 as the movement amount detection pulse signal S1 in order to prevent the line data from being lost. The number (encoder pulse number) is duplicated to generate the same number of line data as the encoder pulse number. Therefore, the amount of image data generated per unit time increases, and the I / F unit 53 causes the information processing device 6 to output per unit time.
Amount of data to be transferred to the I / F unit 5 (I / F unit 53 is required to properly transfer data to the information processing device 65).
The data transfer rate of the F section 53 will increase. Normally, the I / F unit 53 is the image reading unit 61 of the scanner unit 60.
, Which has a data transfer rate that can handle the case where one line of data is read within the drive cycle,
As described above, when the moving speed of the image reading unit 61 exceeds the driving speed of the image reading unit 61, the amount of data that the I / F unit 53 should transfer to the information processing device 65 is the data transfer capability of the I / F unit 53. Will exceed. In the present embodiment, in order to prevent such a situation, a movement amount evaluation unit 52e is provided, and when the image signal processing unit 51 generates line data in an amount exceeding the data transfer rate of the I / F unit 53. Performs data compression by level conversion and packing conversion.

【0078】ところで、読取制御部52は、移動量検出
部62からの移動量検出パルス信号S1の入力をトリガ
として、割り込み処理により、レベル変換画像データ生
成部52a内のラインバッファ57に格納されている画
像データD2の上記一連のデータ転送処理を開始するよ
うになっている。
By the way, the reading control section 52 is triggered by the input of the movement amount detection pulse signal S1 from the movement amount detecting section 62 to be stored in the line buffer 57 in the level conversion image data generating section 52a by interrupt processing. The series of data transfer processing of the image data D2 stored is started.

【0079】図5及び図6は、パッキングデータ生成部
52bによって生成される転送データのフォーマットの
例を示す図である。図5に示す転送データ70は、ヘッ
ダ情報71とnラインの転送ラインデータ72(72−
1、72−2、72−3、・・・・、72−n)から構
成されている。ヘッダ情報71は、レベル情報71a,
パッキング情報71b及びライン情報A71cから成
る。このヘッダ情報71は転送ラインデータ72に先立
って、情報処理装置65に転送される。
FIGS. 5 and 6 are diagrams showing examples of the format of transfer data generated by the packing data generator 52b. The transfer data 70 shown in FIG. 5 includes header information 71 and transfer line data 72 (72-) of n lines.
, 72-2, 72-3, ..., 72-n). The header information 71 includes level information 71a,
It is composed of packing information 71b and line information A71c. This header information 71 is transferred to the information processing device 65 prior to the transfer line data 72.

【0080】転送ラインデータ72は、レベル変換画像
データ生成部52a及びパッキングデータ生成部52b
によって圧縮されたラインデータ(圧縮ラインデータ)
またはそれらによって圧縮が施されていないラインデー
タ(非圧縮ラインデータ)を含み、その先頭には、例え
ば、転送ラインデータ72に含まれるラインデータが圧
縮ラインデータまたは非圧縮ラインデータのいずれかを
識別するための情報等が設定される。また、例えば、前
記レベル情報(画素有効ビットI(圧縮ラインデータの
場合)または画素有効ビットN(非圧縮ラインデータの
ビット数))が付加される。
The transfer line data 72 includes the level-converted image data generator 52a and the packing data generator 52b.
Line data compressed by (compressed line data)
Alternatively, it includes line data (non-compressed line data) that has not been compressed by them, and at the beginning thereof, for example, the line data included in the transfer line data 72 identifies either compressed line data or non-compressed line data. Information for doing so is set. Further, for example, the level information (pixel effective bit I (in the case of compressed line data) or pixel effective bit N (the number of bits of non-compressed line data)) is added.

【0081】レベル情報71aは、前記非圧縮ラインデ
ータの画素有効ビットNのビット数N及び前記圧縮ライ
ンデータの画素有効ビットIのビット数Iを示す情報で
ある。但し、前記圧縮ラインデータの画素有効ビットI
のビット数Iを示す情報は、画像信号処理部51によっ
て生成されたラインデータD2をレベル変換する際の画
素有効ビットIが一定の場合にのみ設定される(I/F
部82のデータ転送速度の状態に応じて、前記画素有効
ビットIは変更される場合があるからである)。ヘッダ
情報71にこのレベル情報71aが設定される場合に
は、圧縮ラインデータを含む転送ラインデータ72の先
頭には、それが該圧縮ラインデータを含むことを示す識
別情報のみを付加するようにしてもよい(該圧縮ライン
データのレベル情報の付加は不要)。
The level information 71a is information indicating the number N of pixel valid bits N of the non-compressed line data and the number I of pixel valid bits I of the compressed line data. However, the pixel effective bit I of the compressed line data
The information indicating the bit number I of is set only when the pixel effective bit I at the time of level conversion of the line data D2 generated by the image signal processing unit 51 is constant (I / F
This is because the pixel valid bit I may be changed according to the state of the data transfer rate of the unit 82). When the level information 71a is set in the header information 71, only the identification information indicating that it contains the compressed line data is added to the beginning of the transfer line data 72 containing the compressed line data. It is also possible to add the level information of the compressed line data.

【0082】パッキング情報71bはパッキング変換の
種別を示す情報であり、パッキングの形態を示す。本発
明においては、パッキング変換は図2(c)に示される
方法に限定されるものではなく、スキャナ部60により
読み取られるデータの種類(2次元コード、階調画像及
びカラ−画像等)や画素有効ビットIのビット数I等に
応じて、それぞれに最適なパッキング変換を適用する。
パッキング情報71bは、これら複数のパッキング変換
の種別を、復元側で認識可能にするための情報である。
復元側では、パッキング情報71bを基にアンパッキン
グ変換を正しく行うことができる。
The packing information 71b is information indicating the type of packing conversion, and indicates the form of packing. In the present invention, the packing conversion is not limited to the method shown in FIG. 2C, but the type of data read by the scanner unit 60 (two-dimensional code, gradation image, color image, etc.) and pixels. Optimal packing conversion is applied to each of the effective bits I in accordance with the number I of bits.
The packing information 71b is information for allowing the restoration side to recognize these types of packing conversion.
On the restoration side, the unpacking conversion can be correctly performed based on the packing information 71b.

【0083】ライン情報A71cは、転送ラインデータ
72にに関する情報であり、例えば、転送ラインデータ
72に含まれる非圧縮ラインデータ及び圧縮ラインデー
タの画素の総数などが設定される。また、定型サイズの
原稿用紙等のように予め読み取る画像のサイズが判明し
ている場合には、転送ラインデータ72の総数等も設定
される。
The line information A71c is information relating to the transfer line data 72, and is set with, for example, the total number of pixels of uncompressed line data and compressed line data included in the transfer line data 72. Further, when the size of the image to be read is known in advance such as a standard size original paper, the total number of transfer line data 72 and the like are also set.

【0084】図6の転送データ75は、ヘッダ情報7
6、nラインの転送ラインデータ77(77−1、77
−2、77−3、・・・、77−n)及びENDコード
78から成る。ヘッダ情報76は、レベル情報76a、
パッキング情報76b及びライン情報B76cから成
る。
The transfer data 75 of FIG. 6 is the header information 7
6, transfer line data 77 of n lines (77-1, 77)
, 77-3, ..., 77-n) and an END code 78. The header information 76 is level information 76a,
It is composed of packing information 76b and line information B76c.

【0085】転送データ75が、前記転送データ70と
異なる点は、ENDコード78を有していること、及び
ライン情報B76cがライン情報A71cと異なりライ
ンデータ77の総数を含まないことである。その他は、
同様であり、転送ラインデータ77は上記転送ラインデ
ータ72と同様な構成をとりうる。
The transfer data 75 differs from the transfer data 70 in that it has an END code 78 and that the line information B76c does not include the total number of line data 77 unlike the line information A71c. Others
Similarly, the transfer line data 77 can have the same configuration as the transfer line data 72.

【0086】尚、図5及び図6に示す転送データ70、
75は、あくまでも実施例の一部であり、本発明で生成
される転送データには上記以外のフォーマットも含まれ
る。例えば、図1(c)に模式的に示すように、各転送
ラインデータは、出力ラインデータDO(圧縮ラインデ
ータまたは非圧縮ラインデータ)と、それにレベル情報
(画素有効ビットIまたは画素有効ビットNのビット
数)が付加された構成としてもよい。
The transfer data 70 shown in FIG. 5 and FIG.
Reference numeral 75 is only a part of the embodiment, and the transfer data generated in the present invention includes formats other than the above. For example, as schematically shown in FIG. 1C, each transfer line data includes output line data DO (compressed line data or uncompressed line data) and level information (pixel valid bit I or pixel valid bit N). The number of bits may be added.

【0087】このように、本発明では、転送データとし
て、各出力ラインデータDOとその画素のレベル情報は
必須であるが、その他の情報は必ずしも必須ではない。
このレベル情報は、画素有効ビットIのビット数Iに限
定されるものではなく、画像信号処理部51によって生
成されたラインデータD2(画素有効ビットN)を前記
レベル情報変換部81bによりレベル変換して圧縮ライ
ンデータ(画素有効ビットI)を生成する際に削減され
る画素有効ビットのビット数(=N−I)であってもよ
い。また、例えば、ラインデータの総数は、必ずしも必
須ではない。復元側では、復元すべきラインデータが無
くなった(送られてこない)時点で転送データの復元を
終了てもよいし、ラインデータが転送されてくる毎にそ
れを復元するようにしてもよいからである。
As described above, in the present invention, the level information of each output line data DO and its pixels is essential as the transfer data, but other information is not essential.
This level information is not limited to the bit number I of the pixel effective bit I, but the line information D2 (pixel effective bit N) generated by the image signal processing unit 51 is level-converted by the level information conversion unit 81b. The number of pixel effective bits (= N−I) that is reduced when generating compressed line data (pixel effective bit I) may be used. Further, for example, the total number of line data is not always essential. On the restoration side, the restoration of the transfer data may be terminated when the line data to be restored are exhausted (not sent), or may be restored every time the line data is transmitted. Is.

【0088】次に、図3に示す読取制御部52の動作の
各種実施例を、図7〜図9を参照しながら説明する。図
7及び図8は、いずれも、画像読取装置2のスキャナ部
60が予めサイズが指定された原稿用紙から画像を読み
取る場合に対応した読取制御部52の動作を説明するフ
ローチャートである。また、図9は、ユーザがハンディ
型スキャナのスキャナ部60の操作スイッチをオン/オ
フして、原稿用紙の一部から画像を読み取る操作を行う
場合のような不定型なスキャナ部60の操作に対応する
読取制御部52の動作を説明するフローチャートであ
る。
Next, various embodiments of the operation of the reading control section 52 shown in FIG. 3 will be described with reference to FIGS. 7 to 9. 7 and 8 are flowcharts for explaining the operation of the reading control unit 52 corresponding to the case where the scanner unit 60 of the image reading apparatus 2 reads an image from a document sheet whose size is designated in advance. Further, FIG. 9 shows an operation of the irregular scanner unit 60 such as a case where the user turns on / off the operation switch of the scanner unit 60 of the handy type scanner to perform an operation of reading an image from a part of the original paper. 7 is a flowchart illustrating the operation of the corresponding read control unit 52.

【0089】まず、図7のフローチャートから説明す
る。このフローチャートの処理は、図5のフォーマット
の転送データ70を生成する読取制御部52の動作を説
明するフローチャートである。この処理においては、設
定LINEと読込LINEの2つのレジスタを使用する
(これらのレジスタは、図8のフローチャートでも使用
する)。設定LINEは、スキャナ部60が読み取る原
稿用紙のサイズと画像読取部61のライン解像度等から
求まる読み込みライン数nが設定されるレジスタであ
る。読込LINEは、スキャナ部60に読み取られた実
際のライン数が設定されるレジスタである。
First, the flow chart of FIG. 7 will be described. The process of this flowchart is a flowchart for explaining the operation of the read control unit 52 that generates the transfer data 70 in the format of FIG. In this process, two registers of setting LINE and reading LINE are used (these registers are also used in the flowchart of FIG. 8). The setting LINE is a register in which the number of read lines n obtained from the size of the document sheet read by the scanner unit 60, the line resolution of the image reading unit 61, and the like is set. The read line is a register in which the actual number of lines read by the scanner unit 60 is set.

【0090】まず、設定LINEに“n”を設定する
(SA1)。次に、転送データ70のヘッダ情報71を
作成し、それをI/F部53に出力する(SA2)。続
いて、設定LINEの値と読込LINEの値が等しいか
調べ、スキャナ部60が読み取った画像の全ラインにつ
いて処理が終了したか判別する(SA3)。両LINE
に設定された値が等しくなければ、移動量検出部62か
らエンコーダパルス(移動量検出パルス信号S1のパル
ス)の入力があるか判別する(SA4)。エンコーダパ
ルスの入力がなければ、ステップSA3に戻る。
First, "n" is set in the setting LINE (SA1). Next, the header information 71 of the transfer data 70 is created and output to the I / F unit 53 (SA2). Then, it is checked whether the set LINE value and the read LINE value are equal, and it is determined whether the processing has been completed for all the lines of the image read by the scanner unit 60 (SA3). Both LINE
If the values set in are not equal, it is determined whether an encoder pulse (pulse of the movement amount detection pulse signal S1) is input from the movement amount detection unit 62 (SA4). If no encoder pulse is input, the process returns to step SA3.

【0091】一方、ステップSA4でエンコーダパルス
の入力があれば、レベル変換画像データ生成部52aの
ラインバッファ57に格納されているラインデータD2
をステップSA4で検出したエンコーダパルスの数だけ
生成する(SA5)。ハンディ型スキャナの場合には、
画像読取部61の駆動周期内に、ユーザがスキャナ部6
0を2ライン以上移動させる場合も生じうるので、この
ような場合にはラインデータの欠落を防止するため、駆
動周期の最初に読み取られたラインデータD2をエンコ
ーダパルスの数だけコピーする。尚、ラインデータを複
数コピーせずに、前記従来発明2のように、1個のライ
ンデータD2とエンコーダパルス数(移動量データM)
の組を生成するようにしてもよい(図15(c)の転送
データD3−2参照)。
On the other hand, if the encoder pulse is input in step SA4, the line data D2 stored in the line buffer 57 of the level-converted image data generation unit 52a.
Are generated by the number of encoder pulses detected in step SA4 (SA5). For handheld scanners,
During the driving cycle of the image reading unit 61, the user scans the scanner unit 6
Since 0 may be moved by two lines or more, in such a case, in order to prevent loss of line data, the line data D2 read at the beginning of the driving cycle is copied by the number of encoder pulses. It should be noted that one line data D2 and the number of encoder pulses (movement amount data M) are used as in the case of the conventional invention 2 without copying a plurality of line data.
May be generated (see transfer data D3-2 in FIG. 15C).

【0092】次に、読込LINEの値をステップSA4
で検出したエンコーダパルスの数だけインクリメントし
(SA6)、転送速度評価部52dの評価結果を基にI
/F部53の転送速度(データ転送速度)が前記データ
発生速度Sより小さい(遅い)か判別する(SA7)。
そして、I/F部53の転送速度が前記データ発生速度
Sよりも小さければ、レベル変換画像データ生成部52
aとパッキングデータ生成部52bにより、ステップS
A5で生成したラインデータに対してレベル削減(レベ
ル変換)処理とパッキング処理(パッキング変換)を順
次施して該ラインデータを圧縮し、該圧縮により得られ
た圧縮ラインデータを基に、転送ラインデータを生成
し、それをI/F部53に出力する(SA9)。そし
て、その後、ステップSA3に戻る。
Next, the value of read LINE is set in step SA4.
Incremented by the number of encoder pulses detected in (SA6), and based on the evaluation result of the transfer rate evaluation unit 52d, I
It is determined whether or not the transfer rate (data transfer rate) of the / F unit 53 is lower (slower) than the data generation rate S (SA7).
If the transfer speed of the I / F unit 53 is lower than the data generation speed S, the level conversion image data generation unit 52
a and the packing data generation unit 52b, step S
Level reduction (level conversion) processing and packing processing (packing conversion) are sequentially performed on the line data generated in A5 to compress the line data, and transfer line data is obtained based on the compressed line data obtained by the compression. Is generated and is output to the I / F unit 53 (SA9). Then, thereafter, the process returns to step SA3.

【0093】一方、ステップSA7で、I/F部53の
転送速度が前記データ発生速度S以上であれば、次に、
移動量評価部52eの評価結果を基にスキャナ部60の
画像読取部61の移動速度が画像読取部61の駆動速度
よりも大きい(速い)か判別する(SA8)。そして、
画像読取部61の移動速度が画像読取部61の駆動速度
よりも大きい場合にはステップSA9に移り、ステップ
SA9においてレベル変換画像データ生成部52a及び
パッキングデータ生成部52bによりレベル変換(レベ
ル削減)処理及びパッキング処理(パッキング変換)を
行って圧縮ラインデータを生成し、それを基に転送ライ
ンデータを生成し、それをI/F部53に出力し(SA
9)、ステップSA3に戻る。
On the other hand, if the transfer rate of the I / F section 53 is equal to or higher than the data generation rate S in step SA7, then
Based on the evaluation result of the movement amount evaluation unit 52e, it is determined whether the moving speed of the image reading unit 61 of the scanner unit 60 is higher (faster) than the driving speed of the image reading unit 61 (SA8). And
When the moving speed of the image reading unit 61 is higher than the driving speed of the image reading unit 61, the process proceeds to step SA9, and the level conversion (level reduction) processing is performed by the level conversion image data generation unit 52a and the packing data generation unit 52b in step SA9. And packing processing (packing conversion) is performed to generate compressed line data, transfer line data is generated based on the compressed line data, and the transfer line data is output to the I / F unit 53 (SA
9) and returns to step SA3.

【0094】また、ステップSA8において、移動量評
価部52eにより画像読取部61の移動速度が画像読取
部61の駆動速度以下であると判別すると、画像信号処
理部51により生成されたラインデータを基に転送ライ
ンデータを生成し、それをI/F部52に出力し(SA
10)、ステップSA3に戻る。
Further, in step SA8, when the movement amount evaluation unit 52e determines that the movement speed of the image reading unit 61 is equal to or lower than the driving speed of the image reading unit 61, the line data generated by the image signal processing unit 51 is used as the basis. To generate transfer line data and output it to the I / F unit 52 (SA
10) and returns to step SA3.

【0095】そして、ステップSA3で、読込LINE
の値と設定LINEの値が同じになったと判別するま
で、ステップSA3〜SA10の処理を繰り返し、ステ
ップSA3で、読込LINEの値と設定LINEの値が
同じになったと判別すると処理を終了する。
Then, in step SA3, read LINE
The processing of steps SA3 to SA10 is repeated until it is determined that the value of the same and the value of the set LINE are the same, and when it is determined in step SA3 that the value of the read LINE and the value of the set LINE are the same, the processing ends.

【0096】このように、読取制御部52は、転送速度
評価部52dまたは移動量評価部52eの評価結果に応
じて、情報処理装置65に転送すべきラインデータの発
生量(データ発生速度S)がI/F部53のデータ転送
能力(データ転送速度)を超えると判断した場合にの
み、該ラインデータに対してレベル変換及びパッキング
変換を施し、該ラインデータを圧縮する。したがって、
画像信号処理部51で生成されたラインデータD2は、
必要なときのみ圧縮される。このため、転送データ70
のラインデータ72には、圧縮されたデータと圧縮され
ないデータ(画像信号処理部51で生成されたラインデ
ータD2)が混在する場合がある。
As described above, the reading control unit 52 generates the amount of line data to be transferred to the information processing device 65 (data generation speed S) according to the evaluation result of the transfer speed evaluation unit 52d or the movement amount evaluation unit 52e. Only when it is determined that the value exceeds the data transfer capability (data transfer rate) of the I / F unit 53, the line data is subjected to level conversion and packing conversion to compress the line data. Therefore,
The line data D2 generated by the image signal processing unit 51 is
Compressed only when needed. Therefore, the transfer data 70
The line data 72 may include both compressed data and uncompressed data (the line data D2 generated by the image signal processing unit 51).

【0097】次に、図8は、図6のフォーマットの転送
データ75を生成する読取制御部52の動作を説明する
フローチャートである。図8において、図7のステップ
と同一のステップには同じステップ記号を付与してお
り、それらのステップの説明は省略する。図8のフロー
チャートが図7のフローチャートと異なる点は、ステッ
プSA3で読込LINEの値と設定LINEの値が同じ
になったと判別した後、ENDコードをI/F部82に
出力して(SA11)、処理を終了する点である。
Next, FIG. 8 is a flow chart for explaining the operation of the read control section 52 for generating the transfer data 75 in the format of FIG. In FIG. 8, steps that are the same as steps in FIG. 7 are given the same step symbols, and description of those steps is omitted. The flowchart of FIG. 8 is different from the flowchart of FIG. 7 in that, in step SA3, after it is determined that the read LINE value and the set LINE value are the same, the END code is output to the I / F unit 82 (SA11). The point is to end the processing.

【0098】次に、ユーザがハンディ型スキャナにより
原稿用紙の一部などから画像を読み取る場合の読取制御
部52の動作を、図9のフローチャートを参照しながら
説明する。本フローチャートは、画像読取部61のスキ
ャナ部60に設けられた画像読取部61の動作の開始・
終了を指示する操作スイッチ(不図示)がONに設定さ
れ、スキャナによる画像の読み取りが開始された時点か
らの読取制御部52の動作を示している。
Next, the operation of the reading control section 52 when the user reads an image from a part of the original sheet with the handy type scanner will be described with reference to the flowchart of FIG. This flowchart shows the start of operation of the image reading unit 61 provided in the scanner unit 60 of the image reading unit 61.
An operation switch (not shown) for instructing the end is set to ON, and the operation of the reading control unit 52 from the time when the reading of the image by the scanner is started is shown.

【0099】まず、読込LINEに“0”を設定する初
期化を行う(SA21)。これは、ユーザがハンディ型
スキャナにより原稿用紙の一部などの画像を読み取る場
合には、該画像の読み込みライン数は、実際に、ユーザ
がスキャナを操作しないと判明しないからである。
First, initialization is performed by setting "0" in the read LINE (SA21). This is because when the user reads an image such as a part of the original sheet with a handy type scanner, the number of read lines of the image is not known unless the user actually operates the scanner.

【0100】次に、転送データのヘッダ情報を作成し、
それをI/F部82に出力する(SA22)。この処理
においては、主に前記パッキング情報のみが設定された
ヘッダ情報を作成する。
Next, the header information of the transfer data is created,
It is output to the I / F unit 82 (SA22). In this process, mainly the header information in which only the packing information is set is created.

【0101】続いて、スキャナ部60に設けられた画像
読取部61の動作の開始・終了を指示する操作スイッチ
がOFFであるか判別する(SA23)。そして、該操
作スイッチがOFFでなければ、移動量検出パルス信号
S1(エンコーダパルス)が入力されたか判断し(SA
24)、エンコーダパルスの入力がなければステップS
A23に戻る。
Subsequently, it is determined whether the operation switch for instructing the start / end of the operation of the image reading section 61 provided in the scanner section 60 is OFF (SA23). If the operation switch is not OFF, it is determined whether the movement amount detection pulse signal S1 (encoder pulse) is input (SA
24), if there is no encoder pulse input, step S
Return to A23.

【0102】一方、エンコーダパルスの入力があれば、
レベル変換画像データ生成部52aのラインバッファ5
7に格納されているラインデータD2をエンコーダパル
ス数だけ生成する(SA25)。そして、読込LINE
の値を該エンコーダパルス数だけインクリメントする
(SA26)。また、このステップSA28において、
転送データ70のヘッダ情報71のライン情報71cに
ステップSA25で設定された読込LINEの値を復元
ライン数として設定する。尚、この復元ライン数の設定
は、ステップSA23でスキャナの操作スイッチがOF
Fに設定されたと判別した後に行うようにしてもよい。
On the other hand, if there is an encoder pulse input,
Line buffer 5 of level conversion image data generation unit 52a
The line data D2 stored in 7 is generated by the number of encoder pulses (SA25). And read LINE
Is incremented by the number of encoder pulses (SA26). Further, in this step SA28,
In the line information 71c of the header information 71 of the transfer data 70, the value of read LINE set in step SA25 is set as the number of restored lines. The number of restored lines can be set by pressing the operation switch of the scanner in
It may be performed after it is determined that F is set.

【0103】次に、転送速度評価部52dの評価結果を
基に、I/F部53の転送速度がデータ発生速度Sより
も遅いか判別する(SA29)。そして、I/F部53
の転送速度がデータ発生速度Sより遅ければ(小さけれ
ば)、ステップSA25で生成したラインデータに対し
て、レベル変換画像データ生成部52a及びパッキング
データ生成部52bにより、レベル削減(レベル変換)
及びパッキング処理(パッキング変換)を施し、転送ラ
インデータを作成し、それをI/F部53に出力し(S
A29)、ステップSA23に戻る。
Next, based on the evaluation result of the transfer speed evaluation unit 52d, it is determined whether the transfer speed of the I / F unit 53 is slower than the data generation speed S (SA29). Then, the I / F unit 53
If the transfer speed is lower (lower) than the data generation speed S, the level conversion (level conversion) is performed on the line data generated in step SA25 by the level conversion image data generation unit 52a and the packing data generation unit 52b.
And packing processing (packing conversion) is performed to create transfer line data, which is output to the I / F unit 53 (S
A29), and returns to step SA23.

【0104】ステップSA27においてI/F部53の
転送速度がデータ発生速度S以上であれば、続いて、ス
キャナ部60の画像読取部61の移動速度が画像読取部
61の駆動速度よりも速い(大きい)か判別する(SA
28)。そして、該移動速度が該駆動速度よりも速けれ
ば、ステップSA29においてステップSA25で生成
されたラインデータに対してレベル削減及びパッキング
処理を施し、これら一連の処理によって圧縮ラインデー
タを生成して、それを基に転送ラインデータを生成し、
それをI/F部82に出力し(SA29)、ステップS
A23に戻る。
If the transfer speed of the I / F unit 53 is equal to or higher than the data generation speed S in step SA27, then the moving speed of the image reading unit 61 of the scanner unit 60 is faster than the driving speed of the image reading unit 61 ( Determine if it is large (SA
28). If the moving speed is faster than the drive speed, level reduction and packing processing is performed on the line data generated in step SA25 in step SA29, and compressed line data is generated by these series of processing, and Generate transfer line data based on
It is output to the I / F unit 82 (SA29), and step S
Return to A23.

【0105】一方、ステップSA28において、スキャ
ナ部60の画像読取部61の移動速度が画像読取部61
の駆動速度以下であれば、画像信号処理部51で生成さ
れたラインデータD2を基に転送データを生成し、それ
をI/F部53に出力し、ステップSA23に戻る。
On the other hand, in step SA28, the moving speed of the image reading unit 61 of the scanner unit 60 is changed to the image reading unit 61.
If it is equal to or lower than the driving speed of, the transfer data is generated based on the line data D2 generated by the image signal processing unit 51, is output to the I / F unit 53, and the process returns to step SA23.

【0106】ステップSA23〜SA30の処理は、ス
テップSA23においてスキャナの操作スイッチがOF
Fになったと判別されるまで繰り返され、ステップSA
23でスキャナの操作スイッチがOFFになったと判別
されると、処理を終了する。
In steps SA23 to SA30, the operation switch of the scanner is turned off in step SA23.
It is repeated until it is determined that the result becomes F, and step SA
When it is determined in 23 that the operation switch of the scanner is turned off, the processing ends.

【0107】図10は、図3の画像読取装置1から受信
する圧縮データを復元するデータ復元装置を備えた情報
処理装置65の本発明に係わる要部のシステム構成を示
すブロック図である。
FIG. 10 is a block diagram showing a system configuration of a main part according to the present invention of the information processing apparatus 65 having a data decompression device for decompressing the compressed data received from the image reading device 1 of FIG.

【0108】情報処理装置65は、データ復元部81と
I/F部82を備えている。I/F部82は、画像読取
装置1のI/F部30から送信されてくる圧縮データを
受信するインタフェースである。I/F部82は、受信
した圧縮データを、例えば、ライン単位でデータ復元部
81に出力する。
The information processing device 65 comprises a data restoration unit 81 and an I / F unit 82. The I / F unit 82 is an interface that receives the compressed data transmitted from the I / F unit 30 of the image reading apparatus 1. The I / F unit 82 outputs the received compressed data to the data decompression unit 81 in units of lines, for example.

【0109】データ復元部81は、アンパッキング処理
部81aとレベル情報変換部81bを備える。アンパッ
キング処理部81aは、I/F部82から入力される圧
縮データ(圧縮ラインデータ)に対してアンパッキング
処理を施し、画像読取装置1のパッキングデータ生成部
12がパッキング変換を実施する前の画素有効ビットI
のラインデータ(中間ラインデータ)DMを復元し(図
1(b)参照)、それをレベル情報変換部81bに出力
する。この中間ラインデータDMの各画素の画素有効ビ
ットNのビット数は、画像読取装置1のセンサ部40で
読み取られた入力ラインデータDIと同様にNビットで
ある(図1(a)参照)。
The data restoration unit 81 includes an unpacking processing unit 81a and a level information conversion unit 81b. The unpacking processing unit 81a performs an unpacking process on the compressed data (compressed line data) input from the I / F unit 82, and before the packing data generation unit 12 of the image reading apparatus 1 performs the packing conversion. Pixel effective bit I
Of the line data (intermediate line data) DM (see FIG. 1B) is output to the level information conversion unit 81b. The number of bits of the pixel effective bit N of each pixel of the intermediate line data DM is N bits like the input line data DI read by the sensor unit 40 of the image reading apparatus 1 (see FIG. 1A).

【0110】レベル情報変換部81bは、アンパッキン
グ処理部81aから入力されるラインデータDMに対し
てレベル変換を施し、情報処理装置65で必要とする画
素有効ビットM(1≦M≦N)のラインデータを生成
(復元)する(図2(f)、(i)参照)。
The level information conversion unit 81b performs level conversion on the line data DM input from the unpacking processing unit 81a, and outputs the pixel effective bit M (1≤M≤N) required by the information processing device 65. Line data is generated (restored) (see FIGS. 2F and 2I).

【0111】アンパッキング処理部81aとレベル情報
変換部81bは、I/F部82により受信される圧縮デ
ータをライン単位で復元し、最終的に全てのラインデー
タを復元する。アンパッキング処理部81a及びレベル
情報変換部81bによって復元されたラインデータで構
成される画像データは、画像データ格納部90に格納さ
れる。画像データ格納部90は、磁気ディスク、光磁気
ディスク、または半導体メモリ等である。
The unpacking processing unit 81a and the level information conversion unit 81b restore the compressed data received by the I / F unit 82 on a line-by-line basis, and finally restore all line data. The image data composed of the line data restored by the unpacking processing unit 81a and the level information conversion unit 81b is stored in the image data storage unit 90. The image data storage unit 90 is a magnetic disk, a magneto-optical disk, a semiconductor memory, or the like.

【0112】図10は、図9のデータ復元部81の動作
を説明するフローチャートである。データ復元部81
は、I/F部82が受信した圧縮データ(圧縮ラインデ
ータ)をI/F部82から入力し、それを、内部のライ
ンバッファ(不図示)に格納する。このラインバッファ
には、I/F部82によって受信される圧縮ラインデー
タが一時的に保持される。
FIG. 10 is a flow chart for explaining the operation of the data restoration section 81 of FIG. Data restoration unit 81
Inputs the compressed data (compressed line data) received by the I / F unit 82 from the I / F unit 82 and stores it in an internal line buffer (not shown). The line buffer temporarily holds the compressed line data received by the I / F unit 82.

【0113】アンパッキング処理部81aは、前記ライ
ンバッファから圧縮ラインデータ(ライン画像データ)
を読み込む(SB1)。このステップSB1では、圧縮
ラインデータの読み込みが終了したかも判別する。前記
ラインバッファに読み込むべき圧縮ラインデータが無い
場合には、圧縮ラインデータの読み込みが終了したと判
別する。
The unpacking processing unit 81a extracts compressed line data (line image data) from the line buffer.
Is read (SB1). In step SB1, it is also determined whether the reading of the compressed line data is completed. When there is no compressed line data to be read in the line buffer, it is determined that the reading of the compressed line data has been completed.

【0114】ステップSB1で、圧縮ラインデータを読
み込んだ場合には、それに対してアンパッキング処理部
81aによりアンパッキング処理を施し、中間ラインデ
ータDMを生成する(SB2)。次に、レベル情報変換
部81bにより、該中間ラインデータDMに対してレベ
ル変換を施し、出力ラインデータを復元・出力し(SB
3)、ステップSB1に戻る。
When the compressed line data is read in step SB1, the unpacking processing unit 81a performs unpacking processing on the compressed line data to generate intermediate line data DM (SB2). Next, the level information conversion unit 81b performs level conversion on the intermediate line data DM to restore / output the output line data (SB
3) and returns to step SB1.

【0115】ステップSB1〜SB3の処理は、ステッ
プSB1で圧縮ラインデータの読み込みが終了したと判
別されるまで繰り返され、最終的に、画像読取装置1の
センサ部40に読み取られた入力ラインデータDIと同
数のラインデータで構成される出力画像データが復元さ
れる。また、この復元された出力画像データの各ライン
データの画素数はセンサ部40により読み取られた入力
画像データの各ラインデータの画素数と同じである。換
言するならば、入力画像データと出力画像データの空間
解像度情報は同一であり、データ復元部81は、画像読
取装置1により圧縮された画像データを空間解像度情報
を保存したまま復元する。
The processing of steps SB1 to SB3 is repeated until it is determined in step SB1 that the reading of the compressed line data is completed, and finally the input line data DI read by the sensor section 40 of the image reading apparatus 1 is read. The output image data composed of the same number of line data as is restored. The number of pixels of each line data of the restored output image data is the same as the number of pixels of each line data of the input image data read by the sensor unit 40. In other words, the input image data and the output image data have the same spatial resolution information, and the data decompression unit 81 decompresses the image data compressed by the image reading device 1 while retaining the spatial resolution information.

【0116】上述したデータ圧縮部10、読取制御部5
2及びデータ復元部81の各機能は、コンピュータ(C
PU等)がプログラムを実行することにより実現するこ
とができる。すなわち、、レベル変換画像データ生成部
11、52a、パッキングデータ生成部12、52b、
データ速度検出部52c、転送速度評価部52d、移動
量評価部52e、アンパッキング処理部81a及びレベ
ル情報変換部81bの各機能をコンピュータに実行させ
るプログラムを、該コンピュータに実行させることで実
現できる。
The data compression section 10 and the read control section 5 described above.
2 and the respective functions of the data restoration unit 81 are equivalent to those of the computer (C
It can be realized by executing a program (PU or the like). That is, the level conversion image data generation units 11 and 52a, the packing data generation units 12 and 52b,
This can be realized by causing the computer to execute a program that causes the computer to execute the functions of the data speed detection unit 52c, the transfer speed evaluation unit 52d, the movement amount evaluation unit 52e, the unpacking processing unit 81a, and the level information conversion unit 81b.

【0117】そして、上記プログラムをコンピュータ読
み取り可能な記録媒体(例えば、CD−ROM,CD−
R,CD−RW,DVD,DVD−R,DVD−RW,
フレキシブルディスク、メモリカード等)に記録するこ
とにより、上記プログラムの保存、頒布等を容易に行う
ことができる。また、上記プログラムを、インターネッ
トや広域LAN等のネットワークに接続されたサーバ等
の情報処理装置に保存し、該ネットワークに接続可能な
パーソナルコンピュータ等の機器から上記プログラムを
該ネットワークを介して取得するような頒布形態も可能
である。
A computer-readable recording medium (for example, CD-ROM, CD-
R, CD-RW, DVD, DVD-R, DVD-RW,
By storing the program on a flexible disk, a memory card or the like), it is possible to easily store or distribute the above program. Further, the program may be stored in an information processing apparatus such as a server connected to a network such as the Internet or a wide area LAN, and the program may be acquired from a device such as a personal computer connectable to the network via the network. Various distribution forms are also possible.

【0118】(付記1) 原稿の画像をライン単位で読
み取る画像読取手段により読み取られたラインデータを
圧縮するデータ圧縮装置であって、ディジタル化された
該ラインデータを入力し、該ラインデータの各画素の有
効ビットがレベル方向に削減された中間ラインデータを
生成する第1の画像データ生成手段と、該中間ラインデ
ータの各画素から有効ビット以外のビットを削除して、
有効ビットのみから成る画素がパッキングされた出力ラ
インデータを生成する第2の画像データ生成手段と、を
備えることを特徴とするデータ圧縮装置。
(Supplementary Note 1) A data compression device for compressing line data read by an image reading means for reading an image of an original on a line-by-line basis, wherein the digitized line data is input and each of the line data is input. First image data generating means for generating intermediate line data in which effective bits of pixels are reduced in the level direction, and bits other than effective bits are deleted from each pixel of the intermediate line data,
And a second image data generating unit that generates output line data in which pixels each including only valid bits are packed.

【0119】(付記2) 前記出力ラインデータには、
その各画素の有効ビット数を示すレベル情報が付加され
ていることを特徴とする付記1記載のデータ圧縮装置。 (付記3) 前記出力画像データを転送するインタフェ
ースのデータ転送速度を検出するデータ転送速度検出手
段と、前記画像読取手段により単位時間当たりに読み取
られるデータの発生量を示すデータ発生速度と、該デー
タ転送速度検出手段によって検出されたデータ転送速度
とを比較し、該データ転送速度が前記データ量送速度よ
りも遅いと評価した場合には、前記第1の画像データ生
成手段に前記有効ビット数を通知する転送速度評価手段
を備え、前記第1の画像データ生成手段と前記第2の画
像データ生成手段は、前記転送速度評価手段により、前
記データ転送速度が前記データ発生速度よりも遅いと評
価された場合にのみ、それぞれ、前記中間ラインデータ
と前記出力ラインデータの生成を行うことを特徴とする
付記1記載のデータ圧縮装置。
(Supplementary Note 2) The output line data includes
The data compression device according to appendix 1, wherein level information indicating the number of effective bits of each pixel is added. (Supplementary Note 3) A data transfer rate detecting means for detecting a data transfer rate of an interface for transferring the output image data, a data generating rate indicating an amount of data read by the image reading means per unit time, and the data. When the data transfer rate detected by the transfer rate detecting means is compared and it is evaluated that the data transfer rate is slower than the data amount sending rate, the effective bit number is set to the first image data generating means. The first image data generation means and the second image data generation means are evaluated by the transfer speed evaluation means as the data transfer speed being slower than the data generation speed. The data of Appendix 1, wherein the intermediate line data and the output line data are respectively generated only when Compressor.

【0120】(付記4) 前記転送速度評価手段によ
り、前記データ転送速度が前記データ量送速度以上であ
ると評価された場合には、前記ディジタル化されたライ
ンデータを、そのまま出力することを特徴とする付記3
記載のデータ圧縮装置。
(Supplementary Note 4) When the data transfer speed is evaluated by the transfer speed evaluation means to be equal to or higher than the data amount transfer speed, the digitized line data is output as it is. Note 3
The data compression device described.

【0121】(付記5) 前記出力ラインデータには、
その各画素の有効ビット数を示すレベル情報が付加され
ていることを特徴とする付記3または付記4記載のデー
タ圧縮装置。
(Supplementary Note 5) The output line data includes
6. The data compression device according to attachment 3 or attachment 4, wherein level information indicating the number of effective bits of each pixel is added.

【0122】(付記6) 前記画像読取手段の移動量を
示す信号を入力し、その信号から前記画像読取装置の移
動速度を検出し、その移動速度と前記画像読取手段の駆
動速度を比較して、前記移動速度が前記駆動速度よりも
速いと評価した場合には、前記第1の画像データ生成手
段及び前記第2の画像データ生成手段に前記有効ビット
数を通知する移動速度評価手段を備え、前記第1の画像
データ生成手段と前記第2の画像データ生成手段は、前
記移動速度評価手段により、前記移動速度が前記駆動速
度よりも速いと評価された場合にのみ、それぞれ、前記
中間ラインデータと前記出力ラインデータの生成を行う
ことを特徴とする付記1記載のデータ圧縮装置。
(Supplementary Note 6) A signal indicating the moving amount of the image reading means is input, the moving speed of the image reading device is detected from the signal, and the moving speed is compared with the driving speed of the image reading means. A moving speed evaluating means for notifying the first image data generating means and the second image data generating means of the effective bit number when it is evaluated that the moving speed is faster than the driving speed, The first image data generation means and the second image data generation means respectively respectively include the intermediate line data only when the movement speed evaluation means evaluates that the movement speed is faster than the drive speed. And the output line data is generated.

【0123】(付記7) 前記移動量評価手段により、
前記移動速度が前記駆動速度以下であると評価された場
合には、前記ディジタル化されたラインデータを、その
まま出力することを特徴とする付記6記載のデータ圧縮
装置。
(Supplementary Note 7) By the movement amount evaluation means,
7. The data compression apparatus according to appendix 6, wherein the digitized line data is output as it is when the moving speed is evaluated to be equal to or lower than the driving speed.

【0124】(付記8) 前記出力ラインデータには、
その各画素の有効ビット数を示すレベル情報が付加され
ていることを特徴とする付記6または7記載のデータ圧
縮装置。
(Supplementary Note 8) The output line data includes
8. The data compression device according to appendix 6 or 7, wherein level information indicating the number of effective bits of each pixel is added.

【0125】(付記9) 原稿の画像をライン単位で読
み取る画像読取手段により読み取られたラインデータを
圧縮するデータ圧縮方法であって、ディジタル化された
該ラインデータを入力し、該ラインデータの各画素の有
効ビットがレベル方向に削減された中間ラインデータを
生成するステップと、該中間画像データの各画素から有
効ビット以外のビットを削除して、有効ビットのみから
成る画素がパッキングされた出力ラインデータを生成す
る出力ラインデータ生成ステップを、備えることを特徴
とするデータ圧縮方法。
(Supplementary Note 9) A data compression method for compressing line data read by an image reading means for reading an image of an original on a line-by-line basis, wherein the digitized line data is input and each of the line data is input. A step of generating intermediate line data in which effective bits of pixels are reduced in the level direction, and an output line in which pixels other than the effective bits are deleted from each pixel of the intermediate image data and pixels having only effective bits are packed A data compression method comprising an output line data generation step of generating data.

【0126】(付記10) 前記出力ラインデータに
は、その各画素の有効ビット数を示すレベル情報が付加
されていることを特徴とする付記9記載のデータ圧縮方
法。 (付記11) 前記出力画像データを転送するインタフ
ェースのデータ転送速度を検出するデータ転送速度検出
ステップと、前記画像読取手段により単位時間当たりに
読み取られるデータの発生量を示すデータ発生速度と、
該データ転送速度検出ステップによって検出されたデー
タ転送速度とを比較し、該データ転送速度が前記データ
量送速度よりも遅いと評価した場合には、前記中間ライ
ンデータ生成ステップで使用される前記有効ビット数を
求めるデータ転送速度評価ステップを備え、前記中間ラ
インデータ生成ステップと前記出力ラインデータ生成ス
テップは、前記データ転送速度評価ステップにおいて、
前記データ転送速度が前記データ発生速度よりも遅いと
評価された場合にのみ実行されることを特徴とする付記
9記載のデータ圧縮方法。
(Supplementary note 10) The data compression method according to supplementary note 9, wherein level information indicating the number of effective bits of each pixel is added to the output line data. (Supplementary Note 11) A data transfer speed detecting step of detecting a data transfer speed of an interface for transferring the output image data, a data generating speed indicating a generation amount of data read by the image reading unit per unit time,
When the data transfer rate detected by the data transfer rate detection step is compared and the data transfer rate is evaluated to be slower than the data amount transfer rate, the valid data used in the intermediate line data generation step is detected. A data transfer rate evaluation step for obtaining the number of bits, wherein the intermediate line data generation step and the output line data generation step are:
10. The data compression method according to note 9, which is executed only when it is evaluated that the data transfer rate is slower than the data generation rate.

【0127】(付記12) 前記転送速度評価手ステッ
プにおいて、前記データ転送速度が前記データ量送速度
以上であると評価された場合には、前記ディジタル化さ
れたラインデータを、そのまま出力することを特徴とす
る付記11記載のデータ圧縮方法。
(Supplementary Note 12) In the transfer speed evaluation step, if the data transfer speed is evaluated to be equal to or higher than the data amount transfer speed, the digitized line data is output as it is. 12. The data compression method according to feature 11, which is a feature.

【0128】(付記13) 前記出力ラインデータに
は、その各画素の有効ビット数を示すレベル情報が付加
されていることを特徴とする付記11または付記12記
載のデータ圧縮方法法。
(Supplementary note 13) The data compression method according to Supplementary note 11 or Supplementary note 12, wherein level information indicating the number of effective bits of each pixel is added to the output line data.

【0129】(付記14) 前記画像読取手段の移動量
を示す信号を入力し、その信号から前記画像読取装置の
移動速度を検出し、その移動速度と前記画像読取手段の
駆動速度を比較して、前記移動速度が前記駆動速度より
も速いと評価した場合には、前記中間ラインデータ生成
ステップ及び前記出力ラインデータ生成ステップで使用
される前記有効ビット数を求める移動速度評価ステップ
を備え、前記中間ラインデータ生成ステップと前記出力
ラインデータ生成ステップは、前記移動速度評価ステッ
プにおいて、前記移動速度が前記駆動速度よりも速いと
評価された場合にのみ実行されることを特徴とする付記
11記載のデータ圧縮方法。
(Supplementary Note 14) A signal indicating the amount of movement of the image reading means is input, the moving speed of the image reading device is detected from the signal, and the moving speed is compared with the driving speed of the image reading means. When the moving speed is evaluated to be faster than the driving speed, a moving speed evaluating step for obtaining the effective bit number used in the intermediate line data generating step and the output line data generating step is provided, 12. The data according to appendix 11, wherein the line data generating step and the output line data generating step are executed only when the moving speed is evaluated to be faster than the driving speed in the moving speed evaluating step. Compression method.

【0130】(付記15) 前記移動量評価ステップに
おいて、前記移動速度が前記駆動速度以下であると評価
された場合には、前記ディジタル化されたラインデータ
を、そのまま出力することを特徴とする付記14記載の
データ圧縮方法。
(Supplementary Note 15) In the movement amount evaluation step, if the movement speed is evaluated to be equal to or lower than the drive speed, the digitized line data is output as it is. 14. The data compression method according to 14.

【0131】(付記16) 前記出力ラインデータに
は、その各画素の有効ビット数を示すレベル情報が付加
されていることを特徴とする付記14または15記載の
データ圧縮方法。
(Supplementary Note 16) The data compression method according to Supplementary Note 14 or 15, wherein level information indicating the number of effective bits of each pixel is added to the output line data.

【0132】(付記17) 原稿の画像をライン単位で
読み取る画像読取手段により読み取られたラインデータ
を圧縮する処理をコンピュータに実行させるプログラム
を記録したコンピュータが読み取り可能な記録媒体であ
って、ディジタル化された該ラインデータを入力し、該
ラインデータの各画素の有効ビットがレベル方向に削減
された中間ラインデータを生成するステップと、該中間
ラインデータの各画素から有効ビット以外のビットを削
除して、有効ビットのみから成る画素がパッキングされ
た出力ラインデータを生成する出力ラインデータ生成ス
テップを、備える処理を前記コンピュータに実行させる
プログラムを記録したコンピュータが読み取り可能な記
録媒体。
(Supplementary Note 17) A computer-readable recording medium in which a program for causing a computer to execute a process of compressing line data read by an image reading means for reading an image of an original in line units is recorded and digitized. The step of inputting the processed line data, and generating intermediate line data in which effective bits of each pixel of the line data are reduced in the level direction, and deleting bits other than the effective bit from each pixel of the intermediate line data. And a computer-readable recording medium recording a program for causing the computer to perform an output line data generation step of generating output line data in which pixels each including only valid bits are packed.

【0133】(付記18) 前記出力ラインデータに
は、その各画素の有効ビット数を示すレベル情報が付加
されていることを特徴とする付記17記載のコンピュー
タが読み取り可能な記録媒体。
(Supplementary Note 18) The computer-readable recording medium according to Supplementary Note 17, wherein level information indicating the number of effective bits of each pixel is added to the output line data.

【0134】(付記19) 前記プログラムは、前記コ
ンピュータに、さらに、前記出力画像データを転送する
インタフェースのデータ転送速度を検出するステップの
処理と、前記画像読取手段により単位時間当たりに読み
取られるデータの発生量を示すデータ発生速度と、該デ
ータ転送速度検出手段によって検出されたデータ転送速
度とを比較し、該データ転送速度が前記データ量送速度
よりも遅いと評価した場合には、前記中間ラインデータ
生成ステップで使用される前記有効ビット数を求めるデ
ータ転送速度評価ステップの処理を実行させると共に、
前記中間ラインデータ生成ステップの処理と前記出力ラ
インデータ生成ステップの処理は、前記データ転送速度
評価ステップの処理において、前記データ転送速度が前
記データ発生速度よりも遅いと評価された場合にのみ実
行させることを特徴とする付記17記載のコンピュータ
が読み取り可能な記録媒体 (付記20) 前記プログラムは、前記転送速度評価手
ステップにおいて、前記データ転送速度が前記データ量
送速度以上であると評価された場合には、前記ディジタ
ル化されたラインデータを、そのまま出力する処理を前
記コンピュータに実行させることを特徴とする付記18
記載のコンピュータが読み取り可能な記録媒体。
(Supplementary Note 19) The program further causes the computer to detect the data transfer rate of an interface for transferring the output image data, and to store data read by the image reading unit per unit time. When the data generation rate indicating the generation amount is compared with the data transfer rate detected by the data transfer rate detecting means, and it is evaluated that the data transfer rate is slower than the data amount transfer rate, the intermediate line While executing the processing of the data transfer rate evaluation step for obtaining the number of effective bits used in the data generation step,
The process of the intermediate line data generation step and the process of the output line data generation step are executed only when the data transfer rate is evaluated to be slower than the data generation rate in the process of the data transfer rate evaluation step. A computer-readable recording medium according to supplementary note 17, characterized in that the program is evaluated in the transfer rate evaluation step as the data transfer rate being equal to or higher than the data amount transfer rate. Note 18 in which the computer is caused to execute a process of directly outputting the digitized line data.
The computer-readable recording medium described in the above.

【0135】(付記21) 前記出力ラインデータに
は、その各画素の有効ビット数を示すレベル情報が付加
されていることを特徴とする付記19または付記20記
載のコンピュータが読み取り可能な記録媒体。
(Supplementary Note 21) The computer-readable recording medium according to Supplementary Note 19 or Supplementary Note 20, wherein level information indicating the number of effective bits of each pixel is added to the output line data.

【0136】(付記22) 前記プログラムは、前記コ
ンピュータに、さらに、前記画像読取手段の移動量を示
す信号を入力し、その信号から前記画像読取装置の移動
速度を検出し、その移動速度と前記画像読取手段の駆動
速度を比較して、前記移動速度が前記駆動速度よりも速
いと評価した場合には、前記中間ラインデータ生成ステ
ップで使用される前記有効ビット数を求める移動速度評
価ステップの処理を実行させると共に、前記中間ライン
データ生成ステップの処理と前記出力ラインデータ生成
ステップの処理は、前記移動速度評価ステップの処理に
おいて、前記移動速度が前記駆動速度よりも速いと評価
された場合にのみ実行させることを特徴とする付記17
記載のコンピュータが読み取り可能な記録媒体。
(Supplementary Note 22) The program further inputs a signal indicating the amount of movement of the image reading means to the computer, detects the moving speed of the image reading device from the signal, and detects the moving speed and the moving speed. When the driving speed of the image reading means is compared and it is evaluated that the moving speed is faster than the driving speed, the processing of the moving speed evaluating step for obtaining the effective bit number used in the intermediate line data generating step. And the process of the intermediate line data generating step and the process of the output line data generating step are performed only when the moving speed is evaluated to be faster than the driving speed in the processing of the moving speed evaluating step. Appendix 17 characterized by being executed
The computer-readable recording medium described in the above.

【0137】(付記23) 前記プログラムは、前記移
動量評価ステップにおいて、前記移動速度が前記駆動速
度以下であると評価された場合には、前記ディジタル化
されたラインデータを、そのまま出力する処理を前記コ
ンピュータに実行させることを特徴とする付記22記載
のコンピュータが読み取り可能な記録媒体。
(Supplementary Note 23) The program performs a process of outputting the digitized line data as it is when the moving speed is evaluated to be equal to or lower than the driving speed in the moving amount evaluating step. 23. The computer-readable recording medium according to appendix 22, which is executed by the computer.

【0138】(付記24) 前記出力ラインデータに
は、その各画素の有効ビット数を示すレベル情報が付加
されていることを特徴とする付記22または23記載の
コンピュータが読み取り可能な記録媒体。
(Supplementary Note 24) The computer-readable recording medium according to Supplementary Note 22 or 23, wherein level information indicating the number of effective bits of each pixel is added to the output line data.

【0139】(付記25) 原稿の画像をライン単位で
読み取る画像読取手段により読み取られたラインデータ
を圧縮する処理をコンピュータに実行させるプログラム
であって、ディジタル化された該ラインデータを入力
し、該ラインデータの各画素の有効ビットがレベル方向
に削減された中間ラインデータを生成するステップと、
該中間ラインデータの各画素から有効ビット以外のビッ
トを削除して、有効ビットのみから成る画素がパッキン
グされた出力ラインデータを生成する出力ラインデータ
生成ステップを、備える処理を前記コンピュータに実行
させるプログラム。
(Supplementary Note 25) A program for causing a computer to execute a process of compressing line data read by an image reading means for reading an image of an original in line units, and inputting the digitized line data, Generating intermediate line data in which effective bits of each pixel of the line data are reduced in the level direction,
A program for causing the computer to execute a process including an output line data generation step of deleting output bits other than valid bits from each pixel of the intermediate line data to generate output line data packed with pixels including only valid bits. .

【0140】(付記26) 前記出力ラインデータに
は、その各画素の有効ビット数を示すレベル情報が付加
されていることを特徴とする付記25記載のプログラ
ム。 (付記27) 前記プログラムは、前記コンピュータ
に、さらに、前記出力画像データを転送するインタフェ
ースのデータ転送速度を検出するステップの処理と、前
記画像読取手段により単位時間当たりに読み取られるデ
ータの発生量を示すデータ発生速度と、該データ転送速
度検出手段によって検出されたデータ転送速度とを比較
し、該データ転送速度が前記データ量送速度よりも遅い
と評価した場合には、前記中間ラインデータ生成ステッ
プ及び前記出力ラインデータ生成ステップで使用される
前記有効ビット数を求めるデータ転送速度評価ステップ
の処理を実行させると共に、前記中間ラインデータ生成
ステップの処理と前記出力ラインデータ生成ステップの
処理は、前記データ転送速度評価ステップの処理におい
て、前記データ転送速度が前記データ発生速度よりも遅
いと評価された場合にのみ実行させることを特徴とする
請求項25記載のプログラム。
(Supplementary note 26) The program according to supplementary note 25, wherein level information indicating the number of effective bits of each pixel is added to the output line data. (Supplementary Note 27) The program further causes the computer to perform a process of a step of detecting a data transfer rate of an interface for transferring the output image data, and an amount of data generated by the image reading unit per unit time. The intermediate line data generation step, in which the data generation rate shown is compared with the data transfer rate detected by the data transfer rate detecting means, and when the data transfer rate is evaluated to be slower than the data amount transfer rate And executing the processing of the data transfer rate evaluation step of obtaining the number of effective bits used in the output line data generation step, the processing of the intermediate line data generation step and the processing of the output line data generation step In the processing of the transfer rate evaluation step, the data transfer rate 26. The program according to claim 25, which is executed only when the degree is evaluated to be slower than the data generation rate.

【0141】(付記28) 前記プログラムは、前記転
送速度評価手ステップにおいて、前記データ転送速度が
前記データ量送速度以上であると評価された場合には、
前記ディジタル化されたラインデータを、そのまま出力
する処理を前記コンピュータに実行させることを特徴と
する付記27記載のプログラム。
(Supplementary Note 28) If the data transfer speed is evaluated to be equal to or higher than the data amount transfer speed in the transfer speed evaluation step,
28. The program according to appendix 27, which causes the computer to execute a process of directly outputting the digitized line data.

【0142】(付記29) 前記出力ラインデータに
は、その各画素の有効ビット数を示すレベル情報が付加
されていることを特徴とする付記27または付記28記
載のプログラム。
(Supplementary Note 29) The program according to Supplementary Note 27 or Supplementary Note 28, wherein level information indicating the number of effective bits of each pixel is added to the output line data.

【0143】(付記30) 前記プログラムは、前記コ
ンピュータに、さらに、前記画像読取手段の移動量を示
す信号を入力し、その信号から前記画像読取装置の移動
速度を検出し、その移動速度と前記画像読取手段の駆動
速度を比較して、前記移動速度が前記駆動速度よりも速
いと評価した場合には、前記中間ラインデータ生成ステ
ップで使用される前記有効ビット数を求める移動速度評
価ステップの処理を実行させると共に、前記中間ライン
データ生成ステップの処理と前記出力ラインデータ生成
ステップの処理は、前記移動速度評価ステップの処理に
おいて、前記移動速度が前記駆動速度よりも速いと評価
された場合にのみ実行させることを特徴とする付記25
記載のプログラム。
(Supplementary Note 30) The program further inputs a signal indicating the movement amount of the image reading means to the computer, detects the movement speed of the image reading device from the signal, and detects the movement speed and the When the driving speed of the image reading means is compared and it is evaluated that the moving speed is faster than the driving speed, the processing of the moving speed evaluating step for obtaining the effective bit number used in the intermediate line data generating step. And the process of the intermediate line data generating step and the process of the output line data generating step are performed only when the moving speed is evaluated to be faster than the driving speed in the moving speed evaluating step. Appendix 25 characterized by being executed
The listed program.

【0144】(付記31) 前記プログラムは、前記移
動量評価ステップにおいて、前記移動速度が前記駆動速
度以下であると評価された場合には、前記ディジタル化
されたラインデータを、そのまま出力する処理を前記コ
ンピュータに実行させることを特徴とする付記30記載
のプログラム。
(Supplementary Note 31) The program performs a process of directly outputting the digitized line data when the moving speed is evaluated to be equal to or lower than the driving speed in the moving amount evaluating step. 31. The program according to appendix 30, which is executed by the computer.

【0145】(付記32) 前記出力ラインデータに
は、その各画素の有効ビット数を示すレベル情報が付加
されていることを特徴とする付記30または31記載の
プログラム。
(Supplementary Note 32) The program according to Supplementary Note 30 or 31, wherein level information indicating the number of effective bits of each pixel is added to the output line data.

【0146】(付記33) 入力ラインデータに対し
て、該入力ラインデータの画素のビットをレベル方向に
削減するレベル変換と、該レベル変換により削減された
該画素のビット数に応じて該画素をパッキングするパッ
キング変換を施すことにより生成された圧縮ラインデー
タを復元するデータ復元装置であって、前記圧縮ライン
データに対して、前記圧縮ラインデータの画素を前記レ
ベル変換前の画素に戻すアンパッキング変換を施し、前
記レベル変換前のラインデータを復元する復元手段と、
該復元手段により生成されたラインデータの画素のレベ
ルを変換して、所定ビットの画素から成るラインデータ
を生成する生成手段と、を備えることを特徴とするデー
タ復元装置。
(Supplementary Note 33) For input line data, level conversion is performed to reduce bits of the pixel of the input line data in the level direction, and the pixel is selected according to the number of bits of the pixel reduced by the level conversion. What is claimed is: 1. A data decompression device for decompressing compressed line data generated by performing a packing conversion for packing, wherein unpacking conversion for returning the pixel of the compressed line data to the pixel before the level conversion for the compressed line data. And a restoring means for restoring the line data before the level conversion,
And a generation unit that converts the level of a pixel of the line data generated by the restoration unit to generate line data composed of pixels of a predetermined bit.

【0147】(付記34) 前記復元手段は、前記圧縮
ラインデータに付加されている前記レベル変換によって
削減されたビット数を示すレベル情報を基に前記アンパ
ッキング変換を行うことを特徴とする付記33記載のデ
ータ復元装置。
(Supplementary Note 34) The supplementary means performs the unpacking conversion based on level information indicating the number of bits reduced by the level conversion added to the compressed line data. The described data restoration device.

【0148】(付記35) 入力ラインデータに対し
て、該入力ラインデータの画素のビットをレベル方向に
削減するレベル変換と、該レベル変換により削減された
該画素のビット数に応じて該画素をパッキングするパッ
キング変換を施すことにより生成された圧縮ラインデー
タを復元するデータ復元方法であって、前記圧縮ライン
データに対して、前記圧縮ラインデータの画素を前記レ
ベル変換前の画素に戻すアンパッキング変換を施し、前
記レベル変換前のラインデータを復元する復元ステップ
と、該復元ステップにより生成されたラインデータの画
素のレベルを変換して、所定ビットの画素から成るライ
ンデータを生成する生成ステップと、を備えることを特
徴とするデータ復元方法。
(Supplementary Note 35) For input line data, level conversion is performed to reduce the bits of the pixel of the input line data in the level direction, and the pixel is selected according to the number of bits of the pixel reduced by the level conversion. A data decompression method for decompressing compressed line data generated by performing packing conversion for packing, which is an unpacking conversion for returning the pixel of the compressed line data to the pixel before the level conversion with respect to the compressed line data. And a restoration step of restoring the line data before the level conversion, and a generation step of converting line levels of pixels of the line data generated by the restoration step to generate line data composed of pixels of predetermined bits, A data restoration method comprising:

【0149】(付記36) 前記復元ステップにおい
て、前記圧縮ラインデータに付加されている前記レベル
変換によって削減されたビット数を示すレベル情報を基
に前記アンパッキング変換を行うことを特徴とする付記
35記載のデータ復元方法。
(Supplementary Note 36) In the decompression step, the unpacking conversion is performed based on the level information indicating the number of bits reduced by the level conversion added to the compressed line data. Data recovery method described.

【0150】(付記37) 入力ラインデータに対し
て、該入力ラインデータの画素のビットをレベル方向に
削減するレベル変換と、該レベル変換により削減された
該画素のビット数に応じて該画素をパッキングするパッ
キング変換を施すことにより生成された圧縮ラインデー
タを復元する処理をコンピュータに実行されるプログラ
ムを記録したコンピュータ読み取り可能な記録媒体であ
って、前記圧縮ラインデータに対して、前記圧縮ライン
データの画素を前記レベル変換前の画素に戻すアンパッ
キング変換を施し、前記レベル変換前のラインデータを
復元するステップと、該復元手段により生成されたライ
ンデータの画素のレベルを変換して、所定ビットの画素
から成るラインデータを生成するステップを、備える処
理を前記コンピュータに実行させるプログラムを記録し
たコンピュータ読み取り可能な記録媒体。
(Supplementary Note 37) For input line data, level conversion is performed to reduce the bits of the pixel of the input line data in the level direction, and the pixel is selected according to the number of bits of the pixel reduced by the level conversion. What is claimed is: 1. A computer-readable recording medium having recorded therein a program for executing a process of restoring compressed line data generated by carrying out packing conversion for packing, to the compressed line data. Performing the unpacking conversion to restore the pixels of the line data before the level conversion to restore the line data before the level conversion, and the level of the pixel of the line data generated by the restoring means is converted to a predetermined bit. The computer including the step of generating line data composed of A computer-readable recording medium recording a program to be executed by a computer.

【0151】(付記38) 前記プログラムは、前記復
元ステップにおいて、前記圧縮ラインデータに付加され
ている前記レベル変換によって削減されたビット数を示
すレベル情報を基に前記アンパッキング変換を前記コン
ピュータに実行させることを特徴とする付記37記載の
コンピュータが読み取り可能な記録媒体。
(Supplementary Note 38) The program executes the unpacking conversion on the computer based on the level information indicating the number of bits reduced by the level conversion added to the compressed line data in the decompression step. 38. The computer-readable recording medium according to Supplement 37.

【0152】(付記39) 入力ラインデータに対し
て、該入力ラインデータの画素のビットをレベル方向に
削減するレベル変換と、該レベル変換により削減された
該画素のビット数に応じて該画素をパッキングするパッ
キング変換を施すことにより生成された圧縮ラインデー
タを復元する処理をコンピュータに実行させるプログラ
ムであって、前記圧縮ラインデータに対して、前記圧縮
ラインデータの画素を前記レベル変換前の画素に戻すア
ンパッキング変換を施し、前記レベル変換前のラインデ
ータを復元する復元ステップと、該復元ステップにより
生成されたラインデータの画素のレベルを変換して、所
定ビットの画素から成るラインデータを生成する生成ス
テップを、備える処理を前記コンピュータに実行させる
プログラム。
(Supplementary note 39) For input line data, level conversion is performed to reduce the bits of the pixel of the input line data in the level direction, and the pixel is selected according to the number of bits of the pixel reduced by the level conversion. A program for causing a computer to execute a process of restoring compressed line data generated by performing packing conversion for packing, wherein the pixel of the compressed line data is converted into the pixel before the level conversion with respect to the compressed line data. An unpacking conversion for returning is performed to restore the line data before the level conversion, and the level of the pixel of the line data generated by the restoring step is converted to generate line data composed of pixels of predetermined bits. A program that causes the computer to execute a process including a generating step.

【0153】(付記40) 前記プログラムは、前記復
元ステップにおいて、前記圧縮ラインデータに付加され
ている前記レベル変換によって削減されたビット数を示
すレベル情報を基に前記アンパッキング変換を前記コン
ピュータに実行させることを特徴とする付記39記載の
プログラム。
(Additional remark 40) In the decompression step, the program executes the unpacking conversion on the computer based on the level information indicating the number of bits reduced by the level conversion added to the compressed line data. 40. The program according to note 39, wherein

【0154】[0154]

【発明の効果】以上、説明したように、本発明のデータ
圧縮装置、該データ圧縮装置の機能をコンピュータに実
現させるプログラム及び該データ圧縮装置によって生成
された圧縮データを復元するデータ復元装置は、以下の
効果ないし利点を有する。
As described above, the data compression apparatus of the present invention, the program for causing a computer to realize the function of the data compression apparatus, and the data decompression apparatus for decompressing the compressed data generated by the data compression apparatus, It has the following effects or advantages.

【0155】(1)本発明によるデータ圧縮において
は、復元の際に空間解像度情報が保存されていることが
重要なラインデータの圧縮に好適である。したがって、
例えば、2次元コードの圧縮に適用した場合、復元側で
の2次元コードの解読率を向上させることが可能にな
る。
(1) In the data compression according to the present invention, it is suitable for the compression of line data in which it is important that the spatial resolution information is preserved at the time of decompression. Therefore,
For example, when applied to the compression of a two-dimensional code, the decoding rate of the two-dimensional code on the decompression side can be improved.

【0156】(2)本発明によるデータ圧縮において
は、画像読取部で読み取られるデータ(ラインデータ)
の発生速度(データ発生速度)と、復元側に該データを
転送するインタフェースの転送速度を、常時、比較し
て、圧縮が必要であると判断したときのみ該データを圧
縮して前記インタフェースに出力するので、例えば、高
解像度のラインセンサを備えたスキャナや駆動速度が高
速なラインセンサを備えたスキャナ等のように前記デー
タ発生速度が高速な画像読取装置に読み取られたデータ
の圧縮に好適である。また、本発明によるデータ圧縮に
おいては、画像読取部で読み取られたラインデータを、
圧縮が必要であると判断したときのみ圧縮して転送し、
圧縮が不要であると判断したときにはそのまま転送する
ので、本発明によるデータ復元は、前記画像読取部で読
み取られたデータ(ラインデータ)を、空間解像度情報
を保存しつつ、より正確に復元することができる。
(2) In the data compression according to the present invention, the data (line data) read by the image reading unit.
Generation rate (data generation rate) and the transfer rate of the interface that transfers the data to the decompression side are constantly compared, and only when it is determined that compression is necessary, the data is compressed and output to the interface. Therefore, for example, it is suitable for compression of data read by an image reading apparatus having a high data generation speed such as a scanner having a high-resolution line sensor or a scanner having a high-speed line sensor. is there. In addition, in the data compression according to the present invention, the line data read by the image reading unit is
Compress and transfer only when it is determined that compression is necessary,
When it is determined that the compression is not necessary, the data is transferred as it is. Therefore, the data restoration according to the present invention can more accurately restore the data (line data) read by the image reading unit while preserving the spatial resolution information. You can

【0157】(3)本発明によるデータ圧縮において
は、画像読取部の駆動速度と移動速度の双方を、常時、
比較して、圧縮が必要であると判断したときのみ、該画
像読取部により読み取られたラインデータを上記方法に
より圧縮して出力するので、例えば、画像読取部がその
駆動速度を超えて移動してしまうようなユーザ操作が行
われた場合にのみ前記ラインデータを圧縮し、それ以外
のユーザ操作時は該ラインデータを圧縮しないで出力す
るので、画像読取部の移動速度がユーザ操作に応じて変
動するハンディ型スキャナ等に好適である。例えば、本
発明のデータ圧縮装置またはプログラムをハンディ型ス
キャナに内蔵させることにより、ハンディ型スキャナに
よるラインデータの読み取り欠落を防止できる。また、
このデータ圧縮においても、画像読取部で読み取られた
ラインデータを、圧縮が必要であると判断したときのみ
圧縮して転送し、圧縮が不要であると判断したときには
そのまま転送するので、本発明によるデータ復元によ
り、前記画像読取部で読み取られたデータ(ラインデー
タ)を、空間解像度情報を保存しつつ、より正確に復元
することができる。
(3) In the data compression according to the present invention, both the driving speed and the moving speed of the image reading unit are always set to
By comparison, the line data read by the image reading unit is compressed and output by the above method only when it is determined that the image reading unit needs to be compressed. The line data is compressed only when such a user operation is performed, and the line data is output without being compressed during the other user operations. Therefore, the moving speed of the image reading unit is changed according to the user operation. It is suitable for handheld scanners that fluctuate. For example, by incorporating the data compression device or the program of the present invention in the handy-type scanner, it is possible to prevent the line data reading omission by the handy-type scanner. Also,
Also in this data compression, the line data read by the image reading unit is compressed and transferred only when it is determined that the compression is necessary, and is transferred as it is when the compression is determined to be unnecessary. By the data restoration, the data (line data) read by the image reading unit can be restored more accurately while preserving the spatial resolution information.

【0158】(4)また、本発明によるデータ復元にお
いては、前記(1)〜(3)で述べた本発明によるデー
タ圧縮により生成された空間解像度情報の保存された圧
縮ラインデータを、該データ圧縮の過程においてレベル
変換が施される前の状態に復元し、さらに、その復元さ
れたラインデータについて、その画素のレベル情報(有
効ビット数)を、使用されるアプリケーション、処理装
置及び出力装置等に適したレベル情報に変換して出力す
るので、応用性に優れている。
(4) In the data decompression according to the present invention, the compressed line data in which the spatial resolution information generated by the data compression according to the present invention described in (1) to (3) is stored is In the compression process, the state before the level conversion is restored, and further, regarding the restored line data, the level information (effective bit number) of the pixel is used, the application, the processing device, the output device, etc. Since it is converted into level information suitable for and output, it is excellent in applicability.

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

【図1】(a)〜(d)は、本発明の実施形態のデータ
圧縮・復元方法の原理を説明する図である。
1A to 1D are diagrams illustrating the principle of a data compression / decompression method according to an embodiment of the present invention.

【図2】(a)〜(i)は、本発明の実施形態のデータ
圧縮・復元方法の原理を、画素に着目してより詳細に説
明する図である。
2A to 2I are diagrams for explaining in more detail the principle of the data compression / decompression method according to the embodiment of the present invention, focusing on pixels.

【図3】本発明のデータ圧縮装置の第1の実施形態を含
む画像読取装置のシステム構成を示すブロック図であ
る。
FIG. 3 is a block diagram showing a system configuration of an image reading apparatus including the first embodiment of the data compression apparatus of the present invention.

【図4】本発明のデータ圧縮装置の第2の実施形態を含
む画像読取装置のシステム構成を示すブロック図であ
る。
FIG. 4 is a block diagram showing a system configuration of an image reading apparatus including a second embodiment of a data compression apparatus of the present invention.

【図5】図3及び図4の画像読取装置から送信される転
送データのフォーマットの第1の形態を示す図である。
5 is a diagram showing a first form of a format of transfer data transmitted from the image reading apparatus of FIGS. 3 and 4. FIG.

【図6】図3及び図4の画像読取装置から送信される転
送データのフォーマットの第2の形態を示す図である。
FIG. 6 is a diagram showing a second form of a format of transfer data transmitted from the image reading apparatus of FIGS. 3 and 4;

【図7】図4の画像読取装置の動作の第1の実施例を説
明するフローチャートである。
FIG. 7 is a flowchart illustrating a first embodiment of the operation of the image reading apparatus in FIG.

【図8】図4の画像読取装置の動作の第2の実施例を説
明するフローチャートである。
FIG. 8 is a flowchart illustrating a second embodiment of the operation of the image reading apparatus in FIG.

【図9】図4の画像読取装置の動作の第3の実施例を説
明するフローチャートである。
9 is a flowchart illustrating a third embodiment of the operation of the image reading apparatus in FIG.

【図10】本発明のデータ復元装置を含む情報処理装置
の要部のシステム構成を示すブロック図である。
FIG. 10 is a block diagram showing a system configuration of a main part of an information processing device including a data restoration device of the present invention.

【図11】図10のデータ復元装置の動作を説明するフ
ローチャートである。
11 is a flowchart illustrating an operation of the data restoration device of FIG.

【図12】ハンディ型スキャナのハードウェア構成の一
例を示す外観図である。
FIG. 12 is an external view showing an example of a hardware configuration of a handy type scanner.

【図13】従来の画像読取システムのシステム構成を示
すブロック図である。
FIG. 13 is a block diagram showing a system configuration of a conventional image reading system.

【図14】(a)〜(i)は、上記従来の画像読取シス
テムの動作するタイムチャートである。
14 (a) to (i) are time charts showing the operation of the conventional image reading system.

【図15】(a)〜(c)は、上記従来の画像読取シス
テムの通常転送モードで生成されるデータの転送・復元
動作を説明する図である。
15A to 15C are diagrams illustrating a transfer / restoring operation of data generated in a normal transfer mode of the conventional image reading system.

【図16】(a)〜(d)は、上記従来の画像読取シス
テムの圧縮転送モードで生成される圧縮データの転送・
復元動作を説明する図である。
16 (a) to 16 (d) are diagrams illustrating transfer / compression of compressed data generated in the compression transfer mode of the conventional image reading system.
It is a figure explaining a restoration operation.

【図17】(a)及び(b)は、2次元コードとそれを
基に復元される画像を示す図である。
17A and 17B are diagrams showing a two-dimensional code and an image restored based on the two-dimensional code.

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

1、2 画像読取装置 3、50 データ処理部 10 データ圧縮部 11 レベル変換画像データ生成部 12 パッキングデータ生成部 20 画像信号処理部 30、53 I/F部(データ転送部) 40 センサ部 52 読取制御部(データ圧縮部) 52a レベル変換画像データ生成部 52b パッキングデータ生成部 52c データ速度検出部 52d 転送速度評価部 52e 移動量評価部 57 ラインバッファ 60 スキャナ部 61 画像読取部 62 移動量検出部 65 情報処理装置 70、75 転送データ 71、76 ヘッダ情報 71a、76a レベル情報 71b、76b パッキング情報 71c ライン情報A 76c ライン情報B 72、77 ラインデータ 78 ENDコード 81 データ復元部 81a アンパッキング処理部 81b レベル情報変換部 1 and 2 image reading device 3,50 Data processing unit 10 Data compression unit 11 Level conversion image data generator 12 Packing data generator 20 Image signal processing unit 30, 53 I / F section (data transfer section) 40 sensor 52 Read control unit (data compression unit) 52a Level conversion image data generation unit 52b Packing data generator 52c Data rate detector 52d Transfer rate evaluation unit 52e Movement amount evaluation unit 57 line buffer 60 Scanner 61 Image reading unit 62 Movement amount detection unit 65 Information processing equipment 70,75 Transfer data 71,76 Header information 71a, 76a Level information 71b, 76b Packing information 71c Line information A 76c Line information B 72, 77 line data 78 END code 81 Data recovery unit 81a Unpacking processing unit 81b Level information conversion unit

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C072 AA01 BA03 BA17 PA02 PA10 5C078 AA04 BA21 CA01 CA31 CA34 DA01 DB04 DB06 5J064 AA00 BA00 BC00 BC14 BC29 BD04    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 5C072 AA01 BA03 BA17 PA02 PA10                 5C078 AA04 BA21 CA01 CA31 CA34                       DA01 DB04 DB06                 5J064 AA00 BA00 BC00 BC14 BC29                       BD04

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 原稿の画像をライン単位で読み取る画像
読取手段により読み取られたラインデータを圧縮するデ
ータ圧縮装置であって、 ディジタル化された該ラインデータを入力し、該ライン
データの各画素の有効ビットがレベル方向に削減された
中間ラインデータを生成する第1の画像データ生成手段
と、 該中間ラインデータの各画素から有効ビット以外のビッ
トを削除して、有効ビットのみから成る画素がパッキン
グされた出力ラインデータを生成する第2の画像データ
生成手段と、 を備えることを特徴とするデータ圧縮装置。
1. A data compression apparatus for compressing line data read by an image reading means for reading an image of an original on a line-by-line basis, wherein the digitized line data is input to each pixel of the line data. First image data generating means for generating intermediate line data in which effective bits are reduced in the level direction, and bits other than the effective bits are deleted from each pixel of the intermediate line data so that pixels having only effective bits are packed. A second image data generating means for generating the generated output line data, and a data compression device.
【請求項2】 前記出力画像データを転送するインタフ
ェースのデータ転送速度を検出するデータ転送速度検出
手段と、 前記画像読取手段により単位時間当たりに読み取られる
データの発生量を示すデータ発生速度と、該データ転送
速度検出手段によって検出されたデータ転送速度とを比
較し、該データ転送速度が前記データ量送速度よりも遅
いと評価した場合には、前記第1の画像データ生成手段
及び前記第2の画像データ生成手段に前記有効ビット数
を通知する転送速度評価手段を備え、 前記第1の画像データ生成手段と前記第2の画像データ
生成手段は、前記転送速度評価手段により、前記データ
転送速度が前記データ発生速度よりも遅いと評価された
場合にのみ、それぞれ、前記中間ラインデータと前記出
力ラインデータの生成を行うことを特徴とする請求項1
記載のデータ圧縮装置。
2. A data transfer speed detecting means for detecting a data transfer speed of an interface for transferring the output image data, a data generating speed indicating a generation amount of data read by the image reading means per unit time, When the data transfer rate detected by the data transfer rate detecting means is compared and it is evaluated that the data transfer rate is slower than the data amount sending speed, the first image data generating means and the second image data generating means. The image data generating means is provided with a transfer rate evaluating means for notifying the effective bit number, and the first image data generating means and the second image data generating means are configured to determine the data transfer rate by the transfer rate evaluating means. Only when it is evaluated to be slower than the data generation speed, the intermediate line data and the output line data are generated, respectively. Claim 1, characterized in that
The data compression device described.
【請求項3】 前記画像読取手段の移動量を示す信号を
入力し、その信号から前記画像読取装置の移動速度を検
出し、その移動速度と前記画像読取手段の駆動速度を比
較して、前記移動速度が前記駆動速度よりも速いと評価
した場合には、前記第1の画像データ生成手段及び前記
第2の画像データ生成手段に前記有効ビット数を通知す
る移動速度評価手段を備え、 前記第1の画像データ生成手段と前記第2の画像データ
生成手段は、前記移動速度評価手段により、前記移動速
度が前記駆動速度よりも速いと評価された場合にのみ、
それぞれ、前記中間ラインデータと前記出力ラインデー
タの生成を行うことを特徴とする請求項1記載のデータ
圧縮装置。
3. A signal indicating the amount of movement of the image reading means is input, the moving speed of the image reading device is detected from the signal, and the moving speed and the driving speed of the image reading means are compared, When it is evaluated that the moving speed is faster than the driving speed, a moving speed evaluating means for notifying the first image data generating means and the second image data generating means of the effective bit number is provided, The image data generating unit 1 and the second image data generating unit, only when the moving speed evaluation unit evaluates that the moving speed is faster than the driving speed,
The data compression apparatus according to claim 1, wherein the intermediate line data and the output line data are generated respectively.
【請求項4】 原稿の画像をライン単位で読み取る画像
読取手段により読み取られたラインデータを圧縮する処
理をコンピュータに実行させるプログラムであって、 ディジタル化された該ラインデータを入力し、該ライン
データの各画素の有効ビットがレベル方向に削減された
中間ラインデータを生成するステップと、 該中間ラインデータの各画素から有効ビット以外のビッ
トを削除して、有効ビットのみから成る画素がパッキン
グされた出力ラインデータを生成する出力ラインデータ
生成ステップを、 備える処理を前記コンピュータに実行させるプログラ
ム。
4. A program for causing a computer to execute a process of compressing line data read by an image reading means for reading an image of an original on a line-by-line basis, wherein the digitized line data is input and the line data is input. A step of generating intermediate line data in which the effective bits of each pixel are reduced in the level direction, and bits other than the effective bits are deleted from each pixel of the intermediate line data so that pixels consisting of only the effective bits are packed. A program that causes the computer to execute a process including an output line data generation step of generating output line data.
【請求項5】 入力ラインデータに対して、該入力ライ
ンデータの画素のビットをレベル方向に削減するレベル
変換と、該レベル変換により削減された該画素のビット
数に応じて該画素をパッキングするパッキング変換を施
すことにより生成された圧縮ラインデータを復元するデ
ータ復元装置であって、 前記圧縮ラインデータに対して、前記圧縮ラインデータ
の画素を前記レベル変換前の画素に戻すアンパッキング
変換を施し、前記レベル変換前のラインデータを復元す
る復元手段と、 該復元手段により生成されたラインデータの画素のレベ
ルを変換して、所定ビットの画素から成るラインデータ
を生成する生成手段と、 を備えることを特徴とするデータ復元装置。
5. The input line data is level-converted to reduce the bits of pixels of the input line data in the level direction, and the pixels are packed according to the number of bits of the pixel reduced by the level conversion. A data decompression device for decompressing compressed line data generated by performing packing conversion, wherein the compressed line data is subjected to unpacking conversion for returning the pixels of the compressed line data to the pixels before the level conversion. A restoring unit that restores the line data before the level conversion, and a generating unit that converts the level of a pixel of the line data generated by the restoring unit to generate line data including pixels of a predetermined bit. A data restoration device characterized by the above.
JP2002001035A 2002-01-08 2002-01-08 Data compression device Expired - Fee Related JP3923315B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002001035A JP3923315B2 (en) 2002-01-08 2002-01-08 Data compression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002001035A JP3923315B2 (en) 2002-01-08 2002-01-08 Data compression device

Publications (2)

Publication Number Publication Date
JP2003204435A true JP2003204435A (en) 2003-07-18
JP3923315B2 JP3923315B2 (en) 2007-05-30

Family

ID=27641258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002001035A Expired - Fee Related JP3923315B2 (en) 2002-01-08 2002-01-08 Data compression device

Country Status (1)

Country Link
JP (1) JP3923315B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7580151B2 (en) 2003-10-01 2009-08-25 Seiko Epson Corporation Image processing system and method, printing system
WO2021234936A1 (en) * 2020-05-22 2021-11-25 株式会社Tvt Data transmission device, program, and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7580151B2 (en) 2003-10-01 2009-08-25 Seiko Epson Corporation Image processing system and method, printing system
WO2021234936A1 (en) * 2020-05-22 2021-11-25 株式会社Tvt Data transmission device, program, and system

Also Published As

Publication number Publication date
JP3923315B2 (en) 2007-05-30

Similar Documents

Publication Publication Date Title
US8606003B2 (en) Image processing device, image processing method and image processing program
CN102223463B (en) Multi-function printer
US20050219594A1 (en) Apparatus and method for generating scanned data in a standard format
US7557940B2 (en) Image capture apparatus
JP2006005939A (en) Segmentation-based hybrid compression scheme for scanned documents
JP2002125090A (en) Communication equipment and communication method and storage medium and its program
US6269357B1 (en) Information processing system, apparatus, method and recording medium for controlling same
WO2004015984A1 (en) Image data processing device, image data processing method, program, recording medium, and image reading device
CN1179558C (en) Image recording apparatus and method, image reproducing apparatus and method, and recorded medium on which image processing program is recorded
JP2003204435A (en) Data compression equipment, program and data restoring equipment
US7561747B2 (en) Image data processing system and method
US7933039B2 (en) Apparatus, method, and computer program product for forming image
JP2000307818A (en) Scanner and method for selecting scanner resolution
KR100211840B1 (en) Generating method of thumb nail image at digital still camera
KR100750151B1 (en) Method and apparatus for transmitting of a fax data
JP2007251521A (en) Image processing apparatus, control method of image processing apparatus, program, and storage medium
JP4697933B2 (en) Image processing apparatus, image input / output apparatus and methods thereof
JP4101526B2 (en) Image reading method, image reading apparatus, image reading system, image restoration method, and image reading program
US11489985B2 (en) System and method for printing large files from a memory constrained mobile device
JP2006166222A (en) Control method of image processing apparatus
JP3818238B2 (en) Image processing apparatus and image processing method
CN100483447C (en) Image scanning system possessing the function of selective compression and method thereof
US20020196981A1 (en) Method and system for compressing image data
JP2000307854A (en) Scanner, and method for switching scanner modes
US7450775B2 (en) Image processing apparatus for efficient storage of variable block length data

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060718

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060915

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060919

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061121

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070122

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20070129

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070220

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070221

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100302

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110302

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110302

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120302

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130302

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130302

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20140302

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees