JPH0224432B2 - - Google Patents

Info

Publication number
JPH0224432B2
JPH0224432B2 JP58235799A JP23579983A JPH0224432B2 JP H0224432 B2 JPH0224432 B2 JP H0224432B2 JP 58235799 A JP58235799 A JP 58235799A JP 23579983 A JP23579983 A JP 23579983A JP H0224432 B2 JPH0224432 B2 JP H0224432B2
Authority
JP
Japan
Prior art keywords
data
memory
word
stored
bits
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP58235799A
Other languages
Japanese (ja)
Other versions
JPS60127876A (en
Inventor
Tsuneo Hirose
Toshihiro Hananoi
Satoshi Ito
Masao Michino
Kyomichi Kurino
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58235799A priority Critical patent/JPS60127876A/en
Publication of JPS60127876A publication Critical patent/JPS60127876A/en
Publication of JPH0224432B2 publication Critical patent/JPH0224432B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、画像情報圧縮方式に関し、特に符号
化、復号化の処理が簡単で、メモリ容量を削減で
きるパターン・データの圧縮方式に関するもので
ある。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to an image information compression method, and in particular to a pattern data compression method that allows easy encoding and decoding processing and reduces memory capacity. .

〔発明の背景〕[Background of the invention]

従来、フアクス等に採用されているデータ圧縮
方法は、MH(Modified Huffman)またはMR
(Modified Read)符号を用いた符号化によるデ
ータ圧縮であり、圧縮率を高くできる利点はある
が、符号化データをドツト・パターンに戻す復号
化処理において、複雑な処理手順を要し、これを
高速化するには、符号化および復号化のための専
用ハードウエアを多く必要とするため高価となる
欠点があつた。
Traditionally, the data compression method used in FAX, etc. is MH (Modified Huffman) or MR.
(Modified Read) This is data compression by encoding using a code, and although it has the advantage of increasing the compression rate, it requires complicated processing steps in the decoding process to return the encoded data to a dot pattern. In order to increase the speed, a large amount of dedicated hardware for encoding and decoding is required, which has the disadvantage of being expensive.

また、圧縮効果のないパターンが存在し、最悪
パターンでは、MH符号の場合、符号化前のデー
タが符号化後には4.5倍にも増大されることが知
られている。従つて、パターン・データを格納す
る記憶装置の記憶容量は、最悪パターンの出現頻
度を考慮して決めなければならないため、平均圧
縮率が高い割にはあまり大幅な容量削減を望めな
い。
Furthermore, there are patterns that have no compression effect, and it is known that in the worst pattern, in the case of MH code, the data before encoding is increased by as much as 4.5 times after encoding. Therefore, the storage capacity of the storage device that stores pattern data must be determined by taking into account the frequency of occurrence of the worst pattern, and therefore, it is not possible to expect a significant reduction in capacity, even though the average compression rate is high.

また、紙葉上の画像データをスキヤンして取込
む際、スキヤンの等速性を保つためにある一定時
間以内に当該スキヤンのデータを記憶装置内へ格
納しなければならないような要件がある場合に
は、最悪パターンに合せたスループツト(格納速
度)を確保しなければならない等の問題があつ
た。
In addition, when scanning and importing image data on paper sheets, there is a requirement that the scan data must be stored in the storage device within a certain period of time in order to maintain uniform scanning speed. However, there were problems such as having to ensure a throughput (storage speed) that matched the worst-case pattern.

また、各ラインとも連続した複数画素ずつのブ
ロツクに区切り、各ブロツク内に1ビツトでも情
報があるときは“1”、全然情報がないときは
“0”としてテーブルを作り、“1”であるブロツ
クの画素情報のみを記憶する方式が提案されてい
る(特開昭58−53272号公報参照)。しかし、この
方式では、オール“1”のものは圧縮できず、特
に帳票の背景部を黒にする装置に対しては、圧縮
効果が少ない欠点がある。
Also, each line is divided into blocks of consecutive pixels, and if there is even one bit of information in each block, it is set as "1", and if there is no information at all, it is set as "0", and a table is created. A method has been proposed in which only the pixel information of a block is stored (see Japanese Patent Laid-Open No. 58-53272). However, with this method, it is not possible to compress all "1" data, and the compression effect is low, especially for devices that blacken the background of a form.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、これらの従来の欠点を改善
し、符号化および復号化の処理が簡単な回路で実
現でき、かつ最悪パターンに対しても圧縮効果が
あり、パターン格納用メモリの容量を削減するこ
とができる画像情報圧縮方式を提供することにあ
る。
The purpose of the present invention is to improve these conventional drawbacks, to realize encoding and decoding processing with a simple circuit, to compress even the worst patterns, and to reduce the capacity of pattern storage memory. The object of the present invention is to provide an image information compression method that enables image information to be compressed.

〔発明の概要〕[Summary of the invention]

上記目的を達成するために、本発明の画像情報
圧縮方式は、時系列の2値画像信号を複数ビツト
単位のワード・データに分割して、メモリに格納
する場合、上記ワード・データの全ビツトが白ま
たは黒のとき以外はメモリに格納するが、全ビツ
トが白または黒のときには、該ワード・データの
直前のワード・データの内容と比較した結果によ
り、メモリに格納するか否かを決定し、かつ各ワ
ード・データごとに、当該ワード・データがメモ
リに格納されているか否かを示すフラグ・ビツト
を発生して、該フラグ・ビツトもメモリに格納す
ることに特徴がある。
In order to achieve the above object, the image information compression method of the present invention divides a time-series binary image signal into word data in units of multiple bits and stores them in a memory. When all bits are white or black, it is stored in memory, but when all bits are white or black, it is decided whether to store it in memory or not based on the result of comparing the word data with the contents of the word data immediately before it. However, the present invention is characterized in that a flag bit indicating whether or not the word data is stored in the memory is generated for each word data, and the flag bit is also stored in the memory.

すなわち、本発明の第1のポイントは、紙葉上
の画像データをラスタ・スキヤン方式で走査し、
2値化データとしてメモリに取り込む際に、2値
データのビツト列を複数ビツト単位(ワード単
位)に分割し、ワードを構成するビツトがすべて
白データまたはすべて黒データのときは、当該ワ
ードをメモリに格納しないようにして、それ以外
のデータのワードのみをメモリに格納することで
ある。したがつて、紙葉上の大部分を占める余白
を白データとして表わすとともに、紙葉の背景を
黒データとして取り込むことにより、これらはメ
モリに格納されないため、画像データを格納する
メモリ容量を大幅に削減することができる。
That is, the first point of the present invention is to scan image data on a sheet of paper using a raster scan method,
When importing into memory as binary data, the bit string of binary data is divided into multiple bit units (word units), and if the bits that make up a word are all white data or all black data, the word is transferred to memory. , and only other words of data are stored in memory. Therefore, by representing the blank space that occupies most of the paper sheet as white data and capturing the background of the paper sheet as black data, these data are not stored in memory, so the memory capacity for storing image data can be greatly reduced. can be reduced.

本発明の第2のポイントは、各ワードに対応し
て当該ワードがメモリに格納されているか否かを
示すフラグ・ビツトを設け、これをメモリのパタ
ーン格納エリアとは別個のエリアにマツプ・デー
タとして格納するようにした点である。すなわ
ち、前記第1のポイントで、ワード単位にその内
容によつて格納したり、あるいは格納しなかつた
りするのみでは、復号化する際に不十分であるた
め、フラグを設ける。このようにすれば、復号化
の際に、先ず、マツプ・データを読み出し、当該
ワードがメモリに格納されているか否かを判定し
て、格納されていることを示すフラグ・ビツトが
立つているときは、パターン格納エリアより対応
するワードを読み出し、フラグ・ビツトが立つて
いないときは全ビツト白データまたは全ビツト黒
データのワードを発生させればよい。
The second point of the present invention is to provide a flag bit corresponding to each word to indicate whether or not that word is stored in the memory, and to map this to an area separate from the pattern storage area of the memory. The point is that it is stored as . That is, at the first point, simply storing or not storing word by word depending on its contents is insufficient for decoding, so a flag is provided. In this way, when decoding, the map data is first read out, it is determined whether or not the word in question is stored in memory, and a flag bit is set to indicate that the word is stored. In this case, the corresponding word is read from the pattern storage area, and when the flag bit is not set, a word of all-bit white data or all-bit black data can be generated.

次に、本発明の第3のポイントは、メモリに格
納しないことを判定する条件として、直前のワー
ドの内容との比較結果、あるいは先頭のときには
白または黒のいずれかに初期値を決めておく点に
ある。
Next, the third point of the present invention is that as a condition for determining not to store it in memory, an initial value is determined to be either the result of comparison with the contents of the immediately previous word, or white or black when the word is at the beginning. At the point.

すなわち、第1、第2のポイントだけの符号方
式では、フラグ・ビツトを各ワード当り1ビツト
としているため、当該ワードをメモリに格納して
いないことを示す意味付けは1通りしかなく、全
ビツト白データあるいは全ビツト黒データのう
ち、いずれか一方のみが圧縮対象となる。したが
つて、大部分が白データあるいは黒データのいず
れかに限られる場合には、大きな圧縮効果を期待
できるが、白データおよび黒データのいずれも混
在する場合はどちらであるか判別できない。そこ
で、白データおよび黒データのいずれも圧縮対象
とする必要がある場合には、フラグ・ビツトを各
ワード当り2ビツトとし、当該ワードを格納しな
いとき白データが黒データかを区別できるように
する方法が考えられる。しかし、これでは圧縮効
果がフラグ・ビツトの増加分だけ減ることにな
る。したがつて、第3のポイントを、メモリに格
納しないことを判定する条件として直前のワード
との比較結果によることにするのである。例え
ば、直前のワードと同一内容の場合には、格納し
ないことにしてフラグ・ビツトを増加することな
く、白データおよび黒データの両方を圧縮対象に
することが可能となる。
In other words, in the coding system using only the first and second points, each word has one flag bit, so there is only one meaning that indicates that the word is not stored in memory, and all bits are Only either white data or all-bit black data is subject to compression. Therefore, if most of the data is limited to either white data or black data, a great compression effect can be expected, but if both white data and black data are mixed, it is not possible to determine which data is the data. Therefore, if it is necessary to compress both white data and black data, set the flag bits to 2 bits for each word, so that it can be distinguished whether white data is black data or not when the word is not stored. There are possible ways. However, this reduces the compression effect by the increase in flag bits. Therefore, the third point is to use the comparison result with the previous word as a condition for determining not to store the word in the memory. For example, if the content is the same as the previous word, it is not stored and it is possible to compress both white data and black data without increasing the flag bits.

格納を省略する判定条件としての比較対象は、
直前のワードの全ビツトとするか、または以下の
実施例で示すように直前のワードの最後のビツト
の内容とするか、あるいは直前のワードの内容で
白か黒のビツト数が多い方とする等種々の方法が
考えられるが、いずれの場合も復号化の際は、フ
ラグ・ビツトがメモリに格納されていないことを
示す場合は、直前のワードの内容を参照すればよ
い。なお、スキヤンの先頭等、直前のワードを定
義できない場合では、あらかじめ白または黒のい
ずれかに初期値を決めておけば良い。本発明の圧
縮方式によれば、仮にワードを構成するビツト数
を16、フラグ・ビツトを1ビツトとすれば、圧縮
効果の出ない最悪パターンにおいても、データ量
は16+1/16=1.0625倍にしかならず、MHコード の4.5倍に比較すると大幅に改善され、最悪パタ
ーン取込みのためスループツトを上げなければな
らない等の問題点を解消できる。一方、最大圧縮
率について見ると、MHコードでは約100倍であ
るのに対し、本方式では前記の例で16/1=16倍と なり、ワードを構成するビツト数を増さない限
り、それ程大きい圧縮率とはならないが、確実な
圧縮効果を期待できる。また、パターン格納用の
メモリ容量は、想定される最大データ量を含む紙
葉をカバーするように決められなければならない
ことを考慮すると、本方式によつても用意される
べきメモリ容量は従来のMHコード等に比較して
同程度となり、実質的なメモリ削減効果は殆んど
変わらない。
The comparison target as a judgment condition for omitting storage is:
Either all bits of the previous word, or as shown in the example below, the contents of the last bit of the previous word, or the content of the previous word with a larger number of white or black bits. Various methods can be considered, but in any case, when decoding indicates that the flag bit is not stored in memory, the contents of the immediately preceding word may be referred to. Note that in cases where the immediately preceding word cannot be defined, such as at the beginning of a scan, the initial value may be determined in advance as either white or black. According to the compression method of the present invention, if the number of bits constituting a word is 16 and the flag bit is 1 bit, even in the worst pattern where compression is not effective, the amount of data will only be 16 + 1/16 = 1.0625 times. This is a significant improvement compared to the 4.5 times the MH code, and can solve problems such as the need to increase throughput to capture worst-case patterns. On the other hand, if we look at the maximum compression rate, it is about 100 times with the MH code, but with this method, it is 16/1 = 16 times in the above example, and unless the number of bits that make up a word is increased, it will not be that large. Although the compression rate is not high, a reliable compression effect can be expected. Furthermore, considering that the memory capacity for pattern storage must be determined to cover the sheet of paper containing the expected maximum amount of data, the memory capacity that should be prepared even with this method is smaller than that of the conventional method. This is about the same as MH code, etc., and the actual memory reduction effect is almost the same.

なお、ワードのビツト数を決定する場合には、
圧縮対象のパターンの特性に合わせて最適な値に
決めるようにすることが望ましい。
In addition, when determining the number of bits of a word,
It is desirable to determine the optimum value according to the characteristics of the pattern to be compressed.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の一実施例を図面により説明す
る。
An embodiment of the present invention will be described below with reference to the drawings.

第1図は、本発明を適用した光学文字読取り装
置のブロツク図である。
FIG. 1 is a block diagram of an optical character reading device to which the present invention is applied.

第1図において、1は紙票、2はセンサ、3は
2値化回路、4は符号化回路、5はメモリ、6は
プロセツサ、7は表示装置、8は出力装置、9は
紙送り機構である。
In FIG. 1, 1 is a paper slip, 2 is a sensor, 3 is a binarization circuit, 4 is an encoding circuit, 5 is a memory, 6 is a processor, 7 is a display device, 8 is an output device, and 9 is a paper feed mechanism. It is.

プロセツサ6の指令により、紙送り機構9は、
紙票1を搬送する。搬送された紙票1上の画像デ
ータは、センサ2によつて光電変換され、2値化
回路3で2値化された空、符号化回路4によつて
データ圧縮され、メモリ5に格納される。プロセ
ツサ6は、メモリ5に格納された画像データを順
次復号化処理し、文字部分を切出し、認識処理し
て、認識結果を表示装置7に表示あるいは、出力
装置8に出力する。
In response to instructions from the processor 6, the paper feed mechanism 9
Paper slip 1 is conveyed. The image data on the conveyed paper form 1 is photoelectrically converted by the sensor 2, binarized by the binarization circuit 3, data compressed by the encoding circuit 4, and stored in the memory 5. Ru. The processor 6 sequentially decodes the image data stored in the memory 5, cuts out character parts, performs recognition processing, and displays the recognition results on the display device 7 or outputs them to the output device 8.

第2図は第1図の符号化回路の具体例図であ
る。
FIG. 2 is a diagram showing a specific example of the encoding circuit shown in FIG. 1.

第2図において、401はDタイプ・フリツ
プ・フロツプ、402は排他的論理和ゲート、4
03はJKタイプ・フリツプ・プロツプ、404,
405はシフト・レジスタ、406,412はマ
ルチプレクサ、407,409はカウンタ、41
0,411はアドレス・カウンタ、408は非圧
縮モード・スイツチ、413は書込み制御回路で
ある。
In FIG. 2, 401 is a D-type flip-flop, 402 is an exclusive OR gate, and 401 is a D-type flip-flop;
03 is JK type flip prop, 404,
405 is a shift register, 406 and 412 are multiplexers, 407 and 409 are counters, and 41
0, 411 is an address counter, 408 is a non-compression mode switch, and 413 is a write control circuit.

2値化回路3で2値化されたデータ421は、
シフト・レジスタ404でクロツク422により
nビツトシフトされ、nビツトのワード・データ
に変換される。一方、2値化データ421は、シ
フト・レジスタ404で変換されるワードの直前
のワードの最終ビツトを記憶したフリツプ・フロ
ツプ401の出力と排他的論理和ゲート402で
比較されて、ワード・データ中で1ビツトでも不
一致があつた場合、フリツプ・フロツプ403が
セツトされる。このセツトで、フラグ・ビツトが
立つたことになる。なお、フリツプ・フロツプ4
01は、各スキヤンの先頭では直前のデータがな
いため、あらかじめ初期化しておき、セツトまた
はリセツト出力を供給する。
The data 421 binarized by the binarization circuit 3 is
The data is shifted by n bits in shift register 404 by clock 422 and converted into n-bit word data. On the other hand, the binary data 421 is compared with the output of the flip-flop 401, which stores the last bit of the word immediately before the word to be converted by the shift register 404, by the exclusive OR gate 402, and the word data is If there is a mismatch in even one bit, flip-flop 403 is set. With this set, the flag bit is set. In addition, flip flop 4
Since there is no immediately preceding data at the beginning of each scan, 01 is initialized in advance and supplies a set or reset output.

カウンタ407は、シフト・レジスタ404の
シフト回数を計数するカウンタであつて、シフ
ト・レジスタ404がnビツト・シフトされたと
き、カウンタ407の出力が“1”となり、この
出力“1”をシフト・レジスタ405の端子Tに
送つて、フリツプ・フロツプ403の内容をシフ
ト・レジスタ405にシフトさせるための同期信
号とする。フリツプ・フロツプ403の内容がシ
フトされると、次のワード・データとのために、
2値化データ421の2ビツト目の内容をフリツ
プ・フロツプ401にセツトしておく。シフト・
レジスタ405にフリツプ・フロツプ403の内
容をシフトするとき、その内容が“1”であれ
ば、あらかじめ設定されたアドレス・カウンタ4
10にカウント・アツプのための信号を送ると同
時に、メモリ5にデータを格納するため、メモリ
書込み制御回路413に書込み信号を送る。
The counter 407 is a counter that counts the number of shifts of the shift register 404. When the shift register 404 is shifted by n bits, the output of the counter 407 becomes "1", and this output "1" is shifted. It is sent to terminal T of register 405 as a synchronization signal for shifting the contents of flip-flop 403 into shift register 405. When the contents of flip-flop 403 are shifted, for the next word data,
The contents of the second bit of the binarized data 421 are set in the flip-flop 401. shift·
When shifting the contents of the flip-flop 403 to the register 405, if the contents are "1", the preset address counter 4
At the same time, a write signal is sent to the memory write control circuit 413 in order to store data in the memory 5.

書込み制御回路413は、フリツプ・フロツプ
403から書込み信号を受けると、マルチプレク
サ406と412と制御してカウンタ410の内
容をアドレスとし、シフト・レジスタ404の内
容をデータとして、メモリ5にこれらを送出し格
納する。アドレス・カウンタ410は、データ格
納終了後、フリツプ・フロツプ403から受け取
つたカウント・アツプ信号によりトリガされ、内
容にプラス1する。
When the write control circuit 413 receives a write signal from the flip-flop 403, it controls the multiplexers 406 and 412 to send the contents of the counter 410 as an address and the contents of the shift register 404 as data to the memory 5. Store. Address counter 410 is triggered by a count-up signal received from flip-flop 403 after data storage is completed, and the address counter 410 increments the contents by one.

なお、フリツプ・フロツプ403の内容が
“0”であれば、書込み信号が出力されないため、
パターン・データはメモリ5には格納されない。
また、カウンタ409は、シフト・レジスタ40
5のシフト回数を計数するカウンタであり、シフ
ト・レジスタ405がnビツト・シフトされたと
き、あらかじめ設定されたアドレス・カウンタ4
11にカウント・アツプのための信号を送ると同
時に、メモリ5に格納するため、メモリ書込み制
御回路413に書込み信号を送る。書込み制御回
路413は、カウンタ409から書込み信号を受
け取ると、マルチプレクサ406,412を制御
して、カウンタ411の内容をアドレスとし、シ
フト・レジスタ405の内容をデータとして、メ
モリ5に格納する。これにより、nビツト(1ワ
ード)分のフラグ・ビツトがメモリ5に格納され
る。アドレス・カウンタ411はメモリ5への格
納終了後、カウンタ409から送られるカウン
ト・アツプ信号によりトリガされて、内容をプラ
ス1する。
Note that if the content of the flip-flop 403 is "0", no write signal is output, so
Pattern data is not stored in memory 5.
Further, the counter 409 is connected to the shift register 40
This is a counter that counts the number of shifts of 5, and when the shift register 405 is shifted by n bits, the preset address counter 4
At the same time, a write signal is sent to the memory write control circuit 413 for storing in the memory 5. When the write control circuit 413 receives the write signal from the counter 409, it controls the multiplexers 406 and 412 to store the contents of the counter 411 as an address and the contents of the shift register 405 as data in the memory 5. As a result, n bits (1 word) of flag bits are stored in the memory 5. After the address counter 411 has finished storing data in the memory 5, it is triggered by a count-up signal sent from the counter 409 and increments its contents by one.

なお、第2図では、各スキヤンの先頭でフリツ
プ・フロツプ403をセツトしているが、逆にリ
セツトさせてもよいし、また符号化の最初のスキ
ヤンすなわち第1番目の走査のみでセツトあるい
はリセツトさせるようにしてもよい。
In FIG. 2, the flip-flop 403 is set at the beginning of each scan, but it may be reset in reverse, or it may be set or reset only at the first scan of encoding. You may also do so.

第3図および第4図は、それぞれメモリに格納
される符号化データの説明図である。
FIG. 3 and FIG. 4 are explanatory diagrams of encoded data stored in the memory, respectively.

第3図では、シフト・レジスタ404,405
をそれぞれ4ビツト、アドレス・カウンタ410
の初期値を(00)16、アドレス・カウンタ411
の初期値を(100)16、各スキヤンの先頭ビツト10
(フリツプ・フロツプ401の各スキヤンの初期
値)を“1”とし、各スキヤンの2値化入力デー
タ11A〜13Aに対するメモリ5に格納される
データを示す。図中、11B〜13Bは、2値化
入力データ11A〜13Aに対するフラグ・ビツ
トを示す。パターン・データ14は、フラグ・ビ
ツトが“1”の部分のデータのみ格納されたもの
であり、またマツプ・データ15は、フラグ・ビ
ツトが格納されたものである。すなわち入力デー
タ11Aでは、直前の4ビツトの最終ビツト10と
比較して、同一の4ビツトであるため記憶せず、
フラグ・ビツト“0”とし、次の4ビツト・パタ
ーン“1010”はテーブル14のアドレス(00)16
に格納する。次のデータはオール“0”のため記
憶せず、その次のデータのパターン“0101”はテ
ーブル14のアドレス(01)16に格納する。入力
データ12Aでは、直前の4ビツトの最終ビツト
10と比較して異なる4ビツトであるため、オール
“0”であつてもテーブル14のアドレス(03)16
に格納する。このように、メモリ5のテーブル1
4上にフラグ・ビツト“1”に対応するパター
ン・データのみが格納され、またテーブル15に
は4ビツトずつ区切つてフラグ・ビツトのマツ
プ・データが格納される。
In FIG. 3, shift registers 404, 405
4 bits each, address counter 410
The initial value of (00) 16 , address counter 411
The initial value of (100) 16 , the first 10 bits of each scan
(Initial value of each scan of the flip-flop 401) is set to "1", and data stored in the memory 5 for the binary input data 11A to 13A of each scan is shown. In the figure, 11B to 13B indicate flag bits for the binary input data 11A to 13A. The pattern data 14 stores only the data in which the flag bit is "1", and the map data 15 stores the flag bit. In other words, in the input data 11A, compared with the final bit 10 of the previous 4 bits, it is not stored because it is the same 4 bits.
The flag bit is “0” and the next 4-bit pattern “1010” is the address (00) of table 14 .
Store in. Since the next data is all "0", it is not stored, and the next data pattern "0101" is stored at address (01) 16 of the table 14. In input data 12A, the last of the previous 4 bits
Since it is a different 4 bits compared to 10, even if it is all “0”, the address of table 14 (03) 16
Store in. In this way, table 1 in memory 5
Only pattern data corresponding to flag bit "1" is stored on table 15, and map data of flag bits is stored in table 15 divided into four bits.

また、第3図において、パターン・データ14
の容量は、2値化入力データ421の内容によ
り、圧縮されたり、圧縮されなかつたりして可変
となるので、任意のスキヤン位置からの復号化が
出来ない。そこで、第4図に示すように、アドレ
ス・カウンタ410の内容をマルチプレクサ40
6で選択出来るようにし、各スキヤンに1回、ア
ドレス・カウンタ411をアドレスとし、アドレ
ス・カウンタ410の内容をデータとしてメモリ
5に格納するようにすれば、パターン・データ格
納アドレスが任意のスキヤン位置で分かるように
なり、復号化を任意のスキヤン位置から行えるよ
うにできる。第4図にその場合のメモリ5のマツ
プ・データを示す。第4図のテーブル16では、
マツプ・データの最初の4つのフラグ・ビツトに
対応するパターン・データの先頭アドレスがアド
レス“0000”=(00)16に格納されており、次の4
つのフラグ・ビツトに対応するパターン・データ
の先頭アドレスもアドレス“0000”=(00)16に格
納されていることが判る。また、任意のスキヤン
位置であるデータ13Aの最後の4ビツト・パタ
ーンは、アドレス“0101”=(05)16に格納されて
いることが判る。
In addition, in FIG. 3, pattern data 14
The capacity of the binary input data 421 is compressed or uncompressed and varies depending on the content of the binarized input data 421, so decoding from an arbitrary scan position is not possible. Therefore, as shown in FIG. 4, the contents of address counter 410 are transferred to multiplexer 40.
6, the address counter 411 is used as an address once for each scan, and the contents of the address counter 410 are stored as data in the memory 5, so that the pattern data storage address can be set to any scan position. This allows decoding to be performed from any scan position. FIG. 4 shows map data in the memory 5 in that case. In table 16 of Fig. 4,
The start address of the pattern data corresponding to the first four flag bits of the map data is stored at address “0000” = (00) 16 , and the next four
It can be seen that the start address of the pattern data corresponding to the two flag bits is also stored at address "0000"=(00) 16 . It can also be seen that the last 4-bit pattern of data 13A, which is an arbitrary scan position, is stored at address "0101"=(05) 16 .

第5図は、本発明のおける圧縮対象領域を示す
図である。
FIG. 5 is a diagram showing a compression target area in the present invention.

第5図に示す点線内のみがメモリ5に記憶さ
れ、それ以外は圧縮されることを表している。す
なわち紙票上の枠線と数字、アルフアベツトのみ
の符号を記憶するのみでよく、背景の黒と紙票中
の余白は記憶されないため、メモリ容量は少なく
てよい。
This indicates that only the area within the dotted line shown in FIG. 5 is stored in the memory 5, and the rest is compressed. That is, it is only necessary to store the frame lines, numbers, and alphanumeric characters on the paper slip, and the black background and blank spaces within the paper slip are not stored, so the memory capacity may be small.

また、第2図において、プログラムで切替可能
なモードスイツチ408を設け、アドレス・カウ
ンタ403のセツト端子およびカウンタ409の
リセツト端子に接続することにより、マツプ・デ
ータはメモリ5に格納せず、パターン・データは
常に格納するようにできるため、大形紙葉用にメ
モリ5の容量が設定された装置において、小形紙
葉など画像データ量が少ない場合は、2値化入力
データ421をそのままワード・データに変換だ
け行つて、メモリ5に格納するようにすれば、復
号化処理が不要となり高速化することができる。
In addition, in FIG. 2, a programmable mode switch 408 is provided and connected to the set terminal of the address counter 403 and the reset terminal of the counter 409, so that the map data is not stored in the memory 5 and the pattern Since data can be stored at all times, in a device where the capacity of the memory 5 is set for large paper sheets, if the amount of image data is small, such as for small paper sheets, the binarized input data 421 can be converted into word data as is. If only the conversion is performed and stored in the memory 5, the decoding process becomes unnecessary and the speed can be increased.

なお、本発明は、紙葉上からのパターン・デー
タにその適用が限定されるものではなく、広く一
般のパターン・データを圧縮する方法として利用
できるものである。
Note that the present invention is not limited in its application to pattern data from paper sheets, but can be used as a method for compressing a wide variety of general pattern data.

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

以上説明したように、本発明によれば、符号
化、復号化処理を簡単かつ安価な回路で構成で
き、かち復元が容易であり、また最悪パターンに
対してデータが逆に増加することがないため、パ
ターンを格納するメモリ容量を削減することがで
きる。また、全ビツト黒パターンおよび全ビツト
白パターンとも圧縮されるため、帳票背景部が黒
の装置でも、背景の黒と帳票上の白を圧縮でき
る。したがつて、紙葉上の大部分ないし全面のパ
ターン・データを扱う画像入力装置あるいは光学
文字読取装置に適用すれば、その効果は大であ
る。
As explained above, according to the present invention, encoding and decoding processes can be configured with simple and inexpensive circuits, restoration is easy, and data does not increase contrary to the worst pattern. Therefore, the memory capacity for storing patterns can be reduced. Furthermore, since both the all-bit black pattern and the all-bit white pattern are compressed, even in a device where the background of a form is black, the black background and the white on the form can be compressed. Therefore, if applied to an image input device or an optical character reading device that handles pattern data on most or the entire surface of a sheet of paper, it will be very effective.

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

第1図は本発明を適用した光学文字読取り装置
のブロツク図、第2図は第1図の符号化回路の具
体例図、第3図、第4図はメモリに格納される符
号化データの説明図、第5図は本発明における圧
縮対象領域を示す帳票の図である。 1:紙票、2:センサ、3:2値化回路、4:
符号化回路、5:メモリ、6:プロセツサ、7:
表示装置、8:出力装置、9:紙送り機構、40
1:Dタイプ・フリツプ・フロツプ、402:排
他的論理和ゲート、403:JKタイプ・フリツ
プ・フロツプ、404,405:シフト・レジス
タ、406,412:マルチプレクサ、407,
409:カウンタ、410,411:アドレス・
カウンタ、413:書込み制御回路。
FIG. 1 is a block diagram of an optical character reading device to which the present invention is applied, FIG. 2 is a specific example of the encoding circuit of FIG. 1, and FIGS. 3 and 4 are diagrams of encoded data stored in memory. The explanatory diagram, FIG. 5, is a diagram of a form showing the area to be compressed in the present invention. 1: Paper slip, 2: Sensor, 3: Binarization circuit, 4:
Encoding circuit, 5: memory, 6: processor, 7:
Display device, 8: Output device, 9: Paper feeding mechanism, 40
1: D type flip-flop, 402: exclusive OR gate, 403: JK type flip-flop, 404, 405: shift register, 406, 412: multiplexer, 407,
409: Counter, 410, 411: Address
Counter, 413: Write control circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 時系列の2値画像信号を複数ビツト単位のワ
ード・データに分割して、メモリに格納する場
合、上記ワード・データの全ビツトが白または黒
のとき以外はメモリに格納するが、全ビツトが白
または黒のときには、該ワード・データの直前の
ワード・データの内容と比較した結果により、メ
モリに格納するか否かを決定し、かつ各ワード・
データごとに、当該ワード・データがメモリに格
納されているか否かを示すフラグ・ビツトを発生
して、該フラグ・ビツトもメモリに格納すること
を特徴とする画像情報圧縮方式。
1 When dividing a time-series binary image signal into word data in units of multiple bits and storing it in memory, the word data is stored in memory except when all bits are white or black, but when all bits are When the word data is white or black, it is determined whether or not to store it in memory based on the result of comparing the word data with the contents of the word data immediately before the word data, and each word data
An image information compression method characterized in that a flag bit indicating whether or not the word data is stored in a memory is generated for each data, and the flag bit is also stored in the memory.
JP58235799A 1983-12-14 1983-12-14 Picture information compressing system Granted JPS60127876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58235799A JPS60127876A (en) 1983-12-14 1983-12-14 Picture information compressing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58235799A JPS60127876A (en) 1983-12-14 1983-12-14 Picture information compressing system

Publications (2)

Publication Number Publication Date
JPS60127876A JPS60127876A (en) 1985-07-08
JPH0224432B2 true JPH0224432B2 (en) 1990-05-29

Family

ID=16991423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58235799A Granted JPS60127876A (en) 1983-12-14 1983-12-14 Picture information compressing system

Country Status (1)

Country Link
JP (1) JPS60127876A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04123034U (en) * 1991-04-25 1992-11-06 アルプス電気株式会社 tact switch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04123034U (en) * 1991-04-25 1992-11-06 アルプス電気株式会社 tact switch

Also Published As

Publication number Publication date
JPS60127876A (en) 1985-07-08

Similar Documents

Publication Publication Date Title
US4546385A (en) Data compression method for graphics images
JPH04199981A (en) Prompt processing type one-dimensional coder
KR870008446A (en) Binary data compression and extension processing unit
KR850001657B1 (en) Image data conversion and text code and text pattern converter
JPH069375B2 (en) Encoding transmission method of halftone image information
EP0229379A2 (en) Digital picture signal coding/decoding circuit
JPS6220748B2 (en)
JPS60154776A (en) Coding and decoding system
JPH06268842A (en) Picture processor
JPS6282723A (en) Image encoding method
JPS60127876A (en) Picture information compressing system
JP2812064B2 (en) Image processing device
JP2002091407A (en) Image display device
JPS6329472B2 (en)
JPS6122499B2 (en)
US6456742B1 (en) Method for image processing
JPS5856872B2 (en) Expanded character pattern encoder
JP2945553B2 (en) High-speed restoration of image data
JP2541103B2 (en) Image signal compression device
JPH01273485A (en) Code data expansion processing system
JPS61147671A (en) Pattern data compressing transferring circuit
JPS60206374A (en) Binary-coding information compressing and encoding system
JPS63227180A (en) Mr decoding circuit
JPS63117562A (en) Image data coding system
JPS6342472B2 (en)