JPH0217766A - Data compression system - Google Patents

Data compression system

Info

Publication number
JPH0217766A
JPH0217766A JP16794688A JP16794688A JPH0217766A JP H0217766 A JPH0217766 A JP H0217766A JP 16794688 A JP16794688 A JP 16794688A JP 16794688 A JP16794688 A JP 16794688A JP H0217766 A JPH0217766 A JP H0217766A
Authority
JP
Japan
Prior art keywords
data
input image
image data
white lines
compression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP16794688A
Other languages
Japanese (ja)
Inventor
Tsuneo Misaki
三崎 恒男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP16794688A priority Critical patent/JPH0217766A/en
Publication of JPH0217766A publication Critical patent/JPH0217766A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To improve compressibility by setting input image data having a larger number of white lines out of the input image data and the input image data in which the input image data is rotated by 90 deg. as data compression targeted data. CONSTITUTION:The digital data of an input image outputted from a scanner 3 is stored in a page buffer 2. Next, the digital data is rotated by 90 deg. by a 90 deg. rotating apparatus 4, and is stored in another area in the page buffer 2. The number of white lines is counted by making access so as to set those two pieces of data in the same scanning direction. And the data is read out from a memory area having a larger number of white lines, and data compression is applied on it by a data compressor 5, then, it is stored in a compression data file 6. In such a way, it is possible to decide the vertical write or the horizontal write of a document and to decide a direction of main scan and to improve the compressibility.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ圧縮方式に関し、特に、原稿の縦書き・
横書きをスキャン時に判別することにより、データの圧
縮率を向上させるに好適なデータ圧縮方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a data compression method, and in particular,
The present invention relates to a data compression method suitable for improving data compression rate by determining horizontal writing during scanning.

〔従来の技術〕[Conventional technology]

画像データを伝送する際には、伝送情報量を減少させ、
伝送速度を向上させるために、符号化等の手法によるデ
ータ圧縮が行われる。
When transmitting image data, reduce the amount of transmitted information,
In order to improve the transmission speed, data compression is performed using techniques such as encoding.

符号化を例にとれば、スキャナ等により走査され、入力
された画像データを量子化・標本化した後、標本化され
た画像データの白、黒の長さが、予め決められた符号表
に基づいて符号化される。
Taking encoding as an example, after quantizing and sampling input image data scanned by a scanner etc., the lengths of white and black of the sampled image data are determined according to a predetermined code table. encoded based on

ここで、一般の文書には縦書き・横書きがあるが、従来
は、スキャナ等によって予め決まる一定方向だけでスキ
ャンするのが普通であった。
Here, general documents have vertical and horizontal writing, but in the past, it was common for documents to be scanned only in a predetermined direction using a scanner or the like.

なお、データ圧縮に関しては、例えば、窪田著「ファク
シミリと新画像通信」(産報出版1983年刊)67〜
77頁に詳細に記載されている。
Regarding data compression, for example, see Kubota, "Facsimile and New Image Communication" (Sanpo Publishing, 1983), 67-
It is described in detail on page 77.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、上述の如く、縦書き・横書きのある文書
を一定方向だけでスキャンした場合は。
However, as mentioned above, if a document with vertical or horizontal writing is scanned in only one direction.

原稿の縦書き・横書きによって、圧縮率が大きく異なっ
て来るという問題がある。
There is a problem in that the compression ratio varies greatly depending on whether the original is written vertically or horizontally.

すなわち、画像データを圧縮する場合、白ライン(走査
行)が多い方が、圧縮率が向上する。例えば、第4図に
示す如く、横方向にスキャンする場合、横書き(、)と
縦書き(b)では、横書き(a)の方が圧縮率が高くな
る。
That is, when compressing image data, the more white lines (scan lines) there are, the better the compression rate will be. For example, as shown in FIG. 4, when scanning in the horizontal direction, the compression ratio is higher in horizontal writing (a) than in horizontal writing (,) and vertical writing (b).

本発明は上記事情に鑑みてなされたもので、その目的と
するところは、従来の技術における上述の如き問題を解
消し1文書の縦書き・横書きを自動的に判別して、主走
査の方向を決定することにより、圧縮率を向上させるこ
とを可能としたデータ圧縮方式を提供することにある。
The present invention has been made in view of the above-mentioned circumstances, and its purpose is to solve the above-mentioned problems in the conventional technology, automatically distinguish between vertical writing and horizontal writing of a single document, and to automatically determine the direction of main scanning. The object of the present invention is to provide a data compression method that makes it possible to improve the compression rate by determining the .

〔課屈を解決するための手段〕[Means for resolving levy]

本発明の上記目的は、入力画像データを圧縮するデータ
圧縮方式において、前記入力画像データと、該入力画像
データを90′′回転させた入力画像データとにつき、
白ライン数を計数・比較して、前記両入力画像データの
うち、白ライン数の多い方の入力画像データを、データ
圧縮対象データとすることを特徴とするデータ圧縮方式
、または、前記入力画像データを格納したメモリに対す
るアクセス方向を、互いに直交する二方向となるように
して白ライン数を計数・比較し、前記両アクセス方向の
うち、白ライン数の多い方の入力画像データを、データ
圧縮対象データとすることを特徴とするデータ圧縮方式
によって達成される。
The above-mentioned object of the present invention is to provide a data compression method for compressing input image data, with respect to the input image data and the input image data obtained by rotating the input image data by 90''.
A data compression method characterized in that the number of white lines is counted and compared, and the input image data with a larger number of white lines is selected as the data to be compressed, or the input image The number of white lines is counted and compared by accessing the memory storing data in two directions perpendicular to each other, and the input image data in the access direction with the larger number of white lines is data-compressed. This is achieved by a data compression method characterized by using target data.

〔作用〕[Effect]

前述の如く1画像データを圧縮する場合、白ライン(走
査行)が多い方が、圧縮率が向上する。
As described above, when compressing one image data, the more white lines (scanning lines) there are, the better the compression rate will be.

そこで、本発明に係る画像データ圧縮方式においては、
必要な場合には画像の90°回転を行って、常に、走査
方向を文書の縦書き・横書きの方向に合せるものである
Therefore, in the image data compression method according to the present invention,
If necessary, the image is rotated by 90 degrees to always align the scanning direction with the vertical or horizontal writing direction of the document.

そのために、本発明に係る画像データ圧縮方式において
は、スキャンデータを、互いに直交する二つの走査方向
で走査し、白ラインの数をチエツクして、文書の縦書き
・横書きの方向の判別を行うものである。
To this end, in the image data compression method according to the present invention, scan data is scanned in two scanning directions perpendicular to each other, and the number of white lines is checked to determine whether the document is written vertically or horizontally. It is something.

このようにして求めた文書の縦書き・横書きの方向に合
せて、データを読出し、データ圧縮を行うことにより、
常に、最も効果的なデータ圧縮を行うことが可能になる
という効果がある。
By reading the data and compressing it according to the vertical/horizontal writing direction of the document determined in this way,
The effect is that it is always possible to perform the most effective data compression.

〔実施例〕〔Example〕

以下5本発明の実施例を図面に基づいて詳細に説明する
Hereinafter, five embodiments of the present invention will be described in detail based on the drawings.

第2図は、本発明の一実施例を示す装置のブロック構成
図である。図において、1は装置全体を制御するCPU
、2はスキャナ3で読取られた画像データを蓄えるペー
ジバッファ、4は該ページバッファ2に蓄えられた画像
データの90°回転を行う90°回転器、5はデータの
圧縮を行うデータ圧縮器、6は圧縮されたデータを蓄え
るファイルを示している。
FIG. 2 is a block diagram of an apparatus showing an embodiment of the present invention. In the figure, 1 is the CPU that controls the entire device.
, 2 is a page buffer for storing image data read by the scanner 3; 4 is a 90° rotator for rotating the image data stored in the page buffer 2 by 90°; 5 is a data compressor for compressing data; 6 indicates a file that stores compressed data.

第3図は、本実施例の要部である文書の縦書き・横書き
判別部20の構成を示す図である。本縦書き・横書き判
別部20は、白ライン判別器21と、白ラインカウンタ
22で構成されている。白ライン判別器21の主な動作
である。白ライン数のカウントおよびそれに基づく処置
は、後述する如く、図示されていないメモリ中に格納さ
れているプログラムに基づ<CPUIの動作により実現
されるものである。
FIG. 3 is a diagram showing the configuration of a document vertical/horizontal writing determination unit 20, which is a main part of this embodiment. The main vertical writing/horizontal writing discriminator 20 includes a white line discriminator 21 and a white line counter 22. This is the main operation of the white line discriminator 21. The counting of the number of white lines and the action based thereon are realized by the operation of the CPUI based on a program stored in a memory (not shown), as will be described later.

本縦書き・横書き判別部20の動作の概要は、下記の通
りである。すなわち、スキャナ3から出力されるディジ
タルデータ(スキャナ信号)は、主走査毎に、白ライン
判別器21により、白データを判別、カウントされ、白
データが予め定めた設定値より大きければ、白ラインで
あると判定され、白ライン信号が出力される。この白ラ
イン信号は白ラインカウンタ22によりカウントされる
。スキャン終了時に、この値を読出して、対象文書が縦
書きか横書きか、つまり、90’回転を行うか否かを、
判別する。
An outline of the operation of the vertical writing/horizontal writing discriminating unit 20 is as follows. That is, the digital data (scanner signal) output from the scanner 3 is discriminated and counted by the white line discriminator 21 for each main scan, and if the white data is larger than a predetermined setting value, the white line is detected. It is determined that this is the case, and a white line signal is output. This white line signal is counted by a white line counter 22. At the end of scanning, read this value and determine whether the target document is written vertically or horizontally, that is, whether or not to perform 90' rotation.
Discern.

第1図に、白ライン判別器21の動作フローを示す。以
下、第1図に基づいて、動作を詳細に説明する。
FIG. 1 shows the operation flow of the white line discriminator 21. The operation will be explained in detail below based on FIG.

まず、最初に、スキャナ3から出力される入力画像のデ
ィジタルデータを、ページバッファ2に格納する(ステ
ップ11)。次に、前記90°回転器4により、上記デ
ータをページバッファ2から読出して90’回転させ(
ステップ12)、ページバッファ2の別のエリアに格納
する(ステップ13)。
First, digital data of an input image output from the scanner 3 is stored in the page buffer 2 (step 11). Next, the 90° rotator 4 reads the data from the page buffer 2 and rotates it by 90' (
Step 12), and store it in another area of the page buffer 2 (Step 13).

上記ページバッファ2の異なるエリアに格納されている
二つのデータを、同一の走査方向となるようにアクセス
して、白ライン数をカウントする(ステップ17I)。
Two pieces of data stored in different areas of the page buffer 2 are accessed in the same scanning direction, and the number of white lines is counted (step 17I).

この結果により、白ライン数が多い方のメモリエリアか
ら、データを読出して、データ圧縮器5によりデータ圧
縮を行い、得られた圧縮データを、圧縮データファイル
6に格納する(ステップ15〜]7)。
Based on this result, data is read from the memory area with the larger number of white lines, data is compressed by the data compressor 5, and the obtained compressed data is stored in the compressed data file 6 (steps 15 to 7). ).

なお、図中にも示した通り、上記白ライン数のカウント
動作は、CPUIの動作として、そのワークエリアを用
いて行われるものである。
As shown in the figure, the operation of counting the number of white lines is performed as an operation of the CPU using the work area.

これにより、文書の縦書き・横書きを自動的に判別して
、主走査の方向を決定することができ、圧縮率を向上さ
せることを可能としたデータ圧縮が実現できる。
As a result, it is possible to automatically determine whether the document is written vertically or horizontally and determine the direction of main scanning, thereby realizing data compression that improves the compression rate.

」1記実施例においては、入力画像データと、該入力画
像データを90c′回転させた入力画像データとをペー
ジバッファの異なるエリアに格納して、これらを同一の
走査方向となるように走査し、自ライン数を計数・比較
して、前記両入力画像データのうち、白ライン数の多い
方の入力画像データを、データ圧縮対象データとする例
を示したが。
In the first embodiment, input image data and input image data obtained by rotating the input image data by 90c' are stored in different areas of a page buffer, and these are scanned in the same scanning direction. An example has been shown in which the number of own lines is counted and compared, and the input image data with a larger number of white lines is selected as the data to be compressed.

本発明はこれに限られるものではなく1例えば、元の入
力画像データを格納したメモリに対するアクセス方向を
、互いに直交する二方向となるようにしてアクセスし、
自ライン数を計数・比較し、前記両アクセス方向のうち
、白ライン数の多い方の人力画像データを、データ圧縮
対象データとする方式によることも可能である。
The present invention is not limited to this. For example, the memory storing the original input image data may be accessed in two directions orthogonal to each other,
It is also possible to use a method in which the number of own lines is counted and compared, and the human-generated image data with the larger number of white lines among the two access directions is set as the data to be compressed.

この場合にも、先に示した実施例と同様に、文書の縦書
き・横書きを自動的に判別して、主走査の方向を決定す
ることができ、圧縮率を向上させることを可能としたデ
ータ圧縮が実現できる。
In this case, as in the embodiment shown above, it is possible to automatically determine whether the document is written vertically or horizontally and determine the direction of main scanning, making it possible to improve the compression ratio. Data compression can be achieved.

上記各実施例は、本発明の一例として挙げたものであり
、本発明はこれ以外の実施態様をも含むものである。例
えば、第1図に示したステップ14〜17のカウント、
判定に基づく動作は、ソフトウェアによらず、ハードウ
ェアによる処理としても良いという如きもの等がある。
The above embodiments are given as examples of the present invention, and the present invention also includes embodiments other than these. For example, the counts of steps 14 to 17 shown in FIG.
The operation based on the determination may be performed by hardware instead of software.

〔発明の効果〕〔Effect of the invention〕

以上詳細に述べた如く、本発明によれば、入力画像デー
タを圧縮するデータ圧縮方式において、前記入力画像デ
ータと、該入力画像データを90゜回転させた入力画像
データとにつき、白ライン数を計数・比較して、前記両
入力画像データのうち白ライン数の多い方の入力画像デ
ータを、データ圧縮対象データとすること、または、前
記入力画像データを格納したメモリに対するアクセス方
向を、互いに直交する二方向となるようにして白ライン
数を計数・比較し、前記両アクセス方向のうち白ライン
数の多い方の入力画像データを、データ圧縮対象データ
とすることによって、文書の縦書き・横書きを自動的に
判別して、主走査の方向を決定することにより、圧縮率
を向上させることを可能としたデータ圧縮方式を実現で
きるという顕著な効果を奏するものである。
As described in detail above, according to the present invention, in a data compression method for compressing input image data, the number of white lines is reduced for the input image data and the input image data obtained by rotating the input image data by 90 degrees. After counting and comparing, the input image data with a larger number of white lines is selected as the data to be compressed, or the access directions to the memory storing the input image data are orthogonal to each other. By counting and comparing the number of white lines in two access directions, and selecting the input image data in which the number of white lines is larger among the two access directions as the data to be compressed, the document can be written vertically or horizontally. By automatically determining the main scanning direction and determining the main scanning direction, this method has the remarkable effect of realizing a data compression method that can improve the compression rate.

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

第1図は本発明の要部である白ライン判別器の動作フロ
ーチャート、第2図は実施例の袋打のブロック構成図、
第3図は文書の縦書き・横書き判別部の構成を示す図、
第4図はスキャン方向と圧縮率の関係を説明するための
図である。 1:CPU、2:ページバッファ、3:スキャナ、4:
90”回転器、5:データ圧縮器、6:圧縮データファ
イル、20:縦書き・横書き判別部、2N白ライン判前
器、22:白ラインカウンタ。
FIG. 1 is an operation flowchart of the white line discriminator which is the main part of the present invention, FIG. 2 is a block configuration diagram of the double hit of the embodiment,
FIG. 3 is a diagram showing the configuration of a document vertical/horizontal writing determination unit;
FIG. 4 is a diagram for explaining the relationship between the scan direction and the compression ratio. 1: CPU, 2: Page buffer, 3: Scanner, 4:
90" rotator, 5: data compressor, 6: compressed data file, 20: vertical/horizontal writing discriminator, 2N white line discriminator, 22: white line counter.

Claims (2)

【特許請求の範囲】[Claims] (1)入力画像データを圧縮するデータ圧縮方式におい
て、前記入力画像データと、該入力画像データを90゜
回転させた入力画像データとにつき、白ライン数を計数
・比較して、前記両入力画像データのうち、白ライン数
の多い方の入力画像データを、データ圧縮対象データと
することを特徴とするデータ圧縮方式。
(1) In a data compression method for compressing input image data, the number of white lines is counted and compared for the input image data and input image data obtained by rotating the input image data by 90 degrees, and A data compression method characterized in that input image data having a larger number of white lines is selected as data to be compressed.
(2)入力画像データを圧縮するデータ圧縮方式におい
て、前記入力画像データを格納したメモリに対するアク
セス方向を、互いに直交する二方向となるようにして白
ライン数を計数・比較し、前記両アクセス方向のうち、
白ライン数の多い方の入力画像データを、データ圧縮対
象データとすることを特徴とするデータ圧縮方式。
(2) In a data compression method for compressing input image data, the number of white lines is counted and compared while accessing the memory storing the input image data in two directions perpendicular to each other, and Of these,
A data compression method characterized in that input image data with a larger number of white lines is used as data to be compressed.
JP16794688A 1988-07-06 1988-07-06 Data compression system Pending JPH0217766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16794688A JPH0217766A (en) 1988-07-06 1988-07-06 Data compression system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16794688A JPH0217766A (en) 1988-07-06 1988-07-06 Data compression system

Publications (1)

Publication Number Publication Date
JPH0217766A true JPH0217766A (en) 1990-01-22

Family

ID=15858978

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16794688A Pending JPH0217766A (en) 1988-07-06 1988-07-06 Data compression system

Country Status (1)

Country Link
JP (1) JPH0217766A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5812146A (en) * 1985-12-13 1998-09-22 Canon Kabushiki Kaisha Image processing apparatus using compressed data processing
US6876773B2 (en) 2000-10-23 2005-04-05 Nippon Hoso Kyokai Apparatus and method for coding binary image with improved efficiency

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5812146A (en) * 1985-12-13 1998-09-22 Canon Kabushiki Kaisha Image processing apparatus using compressed data processing
US5861892A (en) * 1985-12-13 1999-01-19 Canon Kabushiki Kaisha Image processing apparatus using compressed-data processing
US6876773B2 (en) 2000-10-23 2005-04-05 Nippon Hoso Kyokai Apparatus and method for coding binary image with improved efficiency

Similar Documents

Publication Publication Date Title
US5058185A (en) Object management and delivery system having multiple object-resolution capability
JPH0217766A (en) Data compression system
JP3059745B2 (en) Facsimile apparatus and control method thereof
JPH0793348A (en) Image information processor
JPS61128678A (en) Image information processing system
JP2837581B2 (en) Image scanner reader
KR910006682B1 (en) Image data curve detecting method for picture transmission device
JPS61112282A (en) Image processing system
JP3487996B2 (en) Facsimile machine
JP2869104B2 (en) Facsimile machine with storage function
JP2748130B2 (en) Facsimile machine
JPH11146184A (en) Communication terminal equipment with image rotation function
JPH05341916A (en) Information processor
JPS63138882A (en) Data compressor
JPH0695728B2 (en) Image data compression / reproduction device
JPH0695729B2 (en) MR encoding device
JPH034367A (en) Information processor
JPH0212572A (en) Picture processor
JPH0793523A (en) Picture information processor
JPH06333017A (en) Electronic file device
JPH0535841A (en) Image storing device
JPH06105119A (en) Picture rotating device
JPH04223671A (en) Compressing method for picture information
JPH01144170A (en) Electronic filing device
JPH0410868A (en) Data communication equipment