Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS63836B2 - - Google Patents
[go: Go Back, main page]

JPS63836B2 - - Google Patents

Info

Publication number
JPS63836B2
JPS63836B2 JP54018200A JP1820079A JPS63836B2 JP S63836 B2 JPS63836 B2 JP S63836B2 JP 54018200 A JP54018200 A JP 54018200A JP 1820079 A JP1820079 A JP 1820079A JP S63836 B2 JPS63836 B2 JP S63836B2
Authority
JP
Japan
Prior art keywords
pattern
memory
image
ram
height
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
Application number
JP54018200A
Other languages
Japanese (ja)
Other versions
JPS55110378A (en
Inventor
Hiroyasu Murakami
Hiromi Nanba
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP1820079A priority Critical patent/JPS55110378A/en
Publication of JPS55110378A publication Critical patent/JPS55110378A/en
Publication of JPS63836B2 publication Critical patent/JPS63836B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Description

【発明の詳細な説明】 本発明はたとえば光学的文字読取装置において
読取られた文字パターンのデジタル画像信号を処
理して高さ、傾き等が正規化された文字パターン
の画像信号を生成するパターン正規化方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a pattern normalization system that processes a digital image signal of a character pattern read by, for example, an optical character reading device to generate an image signal of a character pattern whose height, inclination, etc. are normalized. Regarding the conversion method.

文字読取装置において、読取られた文字パター
ンの高さ、傾き等の正規化を必要とする場合、処
理速度、処理ハードウエアの規模および柔軟性等
が重要な課題である。
In a character reading device, when it is necessary to normalize the height, slope, etc. of a read character pattern, processing speed, scale and flexibility of processing hardware, etc. are important issues.

本発明は上記の事情に鑑みてなされたもので、
パターン画像格納用の2個のRAMを設け、一方
のRAMに格納された文字パターンの高さ、傾き
を正規化しつつ他方のRAMに転送するようにマ
イクロプロセツサで制御することによつて、高速
処理が可能であり、比較的簡単なハードウエアで
パターン画像の正規化処理が可能なパターン正規
化方式を提供するものである。
The present invention was made in view of the above circumstances, and
Two RAMs are provided for storing pattern images, and a microprocessor is used to normalize the height and slope of the character pattern stored in one RAM before transferring it to the other RAM, resulting in high-speed processing. The present invention provides a pattern normalization method that can perform normalization processing on pattern images using relatively simple hardware.

以下、図面を参照して本発明の一実施例を詳細
に説明する。
Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings.

第1図において1,2は第1の画像RAM、第
2の画像RAMである。この第1のRAM1の出
力端子および第2のRAM2の入力端子はパター
ンライン3に接続され、このパターンライン3は
マイクロプロセツサ4に接続されている。また、
上記各RAM1,2はそれぞれ行方向アドレスカ
ウンタ5、列方向アドレスカウンタ6によつて二
次元的にアクセスが可能になつている。このアド
レスカウンタ5,6は、そのアドレスデータ入力
ラインがデータバス7に接続され、このデータバ
ス7はマイクロプロセツサ4に接続されている。
また、上記アドレスカウンタ5,6はそのクリ
ア、インクリメント、デクリメント、ロード等の
動作に必要な制御パルスがマイクロプロセツサ4
から供給される。また、RAM1,2にはマイク
ロプロセツサ4からリード(R)信号、ライト
(W)信号が供給される。
In FIG. 1, 1 and 2 are a first image RAM and a second image RAM. The output terminal of the first RAM 1 and the input terminal of the second RAM 2 are connected to a pattern line 3, which in turn is connected to a microprocessor 4. Also,
Each of the RAMs 1 and 2 can be accessed two-dimensionally by a row-direction address counter 5 and a column-direction address counter 6, respectively. The address counters 5 and 6 have their address data input lines connected to a data bus 7, which in turn is connected to the microprocessor 4.
The address counters 5 and 6 are controlled by the microprocessor 4 so that control pulses necessary for clearing, incrementing, decrementing, loading, etc.
Supplied from. Further, the RAMs 1 and 2 are supplied with read (R) signals and write (W) signals from the microprocessor 4.

いま、第1のRAM1にたとえば第2図aに示
すように文字パターンのデジタル画像信号が格納
されているものとする。このデジタル画像信号
は、たとえば文字読取装置においてイメージセン
サの走査により画像の各画素の濃淡に応じて得ら
れた信号がデジタル化されたのちRAM1の各ア
ドレスに順次書き込まれたものである。第2図a
において、Y1、Y2は文字パターンの高さ方向の
上限、下限に対応する行方向アドレスであり、
Y1、Y2間の行アドレス数H1は文字パターンの高
さに対応する。また、Sは文字パターンの傾きに
対応する列方向アドレス数である。これら文字パ
ターンの高さに対応する行方向アドレス数H1
よび傾きに対応する列方向アドレス数Sは周知の
方法で得られる。
Assume that the first RAM 1 stores, for example, a digital image signal of a character pattern as shown in FIG. 2a. This digital image signal is, for example, a signal obtained by scanning an image sensor in a character reading device according to the shading of each pixel of an image, which is digitized and then sequentially written to each address of the RAM 1. Figure 2a
, Y 1 and Y 2 are the row direction addresses corresponding to the upper and lower limits in the height direction of the character pattern,
The number of line addresses H 1 between Y 1 and Y 2 corresponds to the height of the character pattern. Further, S is the number of column-direction addresses corresponding to the inclination of the character pattern. The number H1 of row-direction addresses corresponding to the height of these character patterns and the number S of column-direction addresses corresponding to the slope are obtained by a well-known method.

また、第2図cは上記第1のRAM1の文字パ
ターンが正規化されて転送される第2のRAM2
の所望パターン位置の一例を示す。ここでH0
文字パターンの高さに対応する行方向アドレス数
である。
In addition, FIG. 2c shows a second RAM 2 to which the character pattern of the first RAM 1 is normalized and transferred.
An example of the desired pattern position is shown below. Here, H 0 is the number of addresses in the row direction corresponding to the height of the character pattern.

次に、第3図に示すアルゴリズムにしたがつて
マイクロプロセツサの動作を説明する。先ず、初
期設定は、第1のRAM1の行アドレスカウンタ
(以下第1のカウンタC1と言う)および第2の
RAM2の行アドレスカウンタ(以下第2のカウ
ンタC2と言う)をそれぞれクリアする。次に、
第1のカウンタC1にアドレスY1データをロード
する。次に、第1のカウンタC1の内容(C1)と
第2のカウンタC2の内容(C2)とを比較判定す
る。判定結果が(C1)≧(C2)のときは、第2の
カウンタC2をインクリメントして第2のRAM2
の行アドレスをインクリメントしたのち再び前記
比較判定を行う。そして、判定結果が(C1
(C2)でないときは、第1のカウンタC1の内容に
H1/H0を加えて第1のRAM1の行アドレスを
H1/H0だけ進める。こののち、第1のRAM1
の列アドレスカウンタ6および第2のRAM2の
列アドレスカウンタ6を順次走査させながら第1
のRAM1からリード信号で読出した信号をパタ
ーンライン3を通して第2のRAM2にライト信
号で書込む。これにより、第1のRAM1の文字
パターンをH1/H0のライン削除をして1ライン
分だけ転送したことになる。この転送回数を計数
し、計数結果がH0か否かを判定する。そして、
H0でないと判定したとき第2のカウンタC2がイ
ンクリメントされ、再び第1のカウンタC1
H1/H0を加えて1ライン転送を行なう。このよ
うな動作を転送回数がH0に等しくなるで繰り返
し行なつて転送を終了する。したがつて、第1の
RAM1の文字パターンをH1/H0のライン間隔
でライン削除して高さを正規化した形で転送した
ことになる。
Next, the operation of the microprocessor will be explained according to the algorithm shown in FIG. First, the initial settings are the row address counter of the first RAM1 (hereinafter referred to as the first counter C1 ) and the second RAM1.
Each row address counter (hereinafter referred to as second counter C2 ) of RAM2 is cleared. next,
Load address Y1 data into the first counter C1 . Next, the content of the first counter C 1 (C 1 ) and the content of the second counter C 2 (C 2 ) are compared and determined. When the determination result is (C 1 )≧(C 2 ), the second counter C 2 is incremented and the second RAM 2 is
After incrementing the row address, the comparison and determination are performed again. Then, the judgment result is (C 1 )
(C 2 ), the contents of the first counter C 1
Add H 1 /H 0 to get the row address of the first RAM1
Advance by H 1 /H 0 . After this, the first RAM1
The column address counter 6 of the first RAM 2 and the column address counter 6 of the second RAM 2 are sequentially scanned.
A signal read from the second RAM 1 as a read signal is written to the second RAM 2 through the pattern line 3 as a write signal. As a result, the character pattern in the first RAM 1 is deleted by lines H 1 /H 0 and transferred by one line. The number of transfers is counted and it is determined whether the count result is H0 or not. and,
When it is determined that H is not 0 , the second counter C2 is incremented and the first counter C1 is incremented again.
Add H 1 /H 0 and perform one line transfer. This operation is repeated until the number of transfers becomes equal to H 0 , and the transfer ends. Therefore, the first
This means that the character pattern in RAM1 is transferred in a form in which the lines are deleted at line intervals of H 1 /H 0 and the height is normalized.

上記ライン転送に際してマイクロプロセツサ4
により第1のRAM1の列方向アドレスの走査開
始位置を文字パターンの傾きに応じて偏移させる
ように制御することによつて、すなわち第2図b
に示すように転送ラインの行方向アドレスをY3
とすればY3−Y1/H1Sだけ第1のRAM1の列アド レスカウタ6の初期値を可変することによつて、
文字パターンの傾きを正規化して転送することが
できる。
When transferring the above line, the microprocessor 4
By controlling the scanning start position of the column direction address of the first RAM 1 to be shifted according to the inclination of the character pattern, that is, as shown in FIG.
The row direction address of the transfer line is Y 3 as shown in
Then, by varying the initial value of the column address counter 6 of the first RAM 1 by Y 3 −Y 1 /H 1 S,
The slope of character patterns can be normalized and transferred.

上述したようなパターン正規化方式よれば、パ
ターン画像格納用の2個のRAMを設け、一方の
RAMに格納された文字パターンの高さ、傾きを
検知し、所定の正規化すべき高さになるように一
方のRAMからパターン部分のライン画像を間欠
的に間引きしながら第2のRAMのライン方向に
連続的に転送し、しかも転送ライン画像の列アド
レスを文字パターンの傾きおよび転送ライン位置
に応じて可変しながら転送するようにマイクロプ
ロセツサにより制御するものである。したがつ
て、処理ハードウエアは比較的簡単であり、パタ
ーンの高さおよび傾きを同時に正規化するので、
その処理効率は倍増しており、しかもマイクロプ
ロセツサとして高速のものを使用し、効果的なマ
イクロ命令の設定により高速処理が可能になる。
According to the pattern normalization method described above, two RAMs are provided for storing pattern images, and one
The height and inclination of the character pattern stored in the RAM are detected, and the line image of the pattern part is intermittently thinned out from one RAM so that it reaches a predetermined height to be normalized, and the line direction of the second RAM is It is controlled by a microprocessor so that the image is transferred continuously, and the column address of the transfer line image is changed in accordance with the inclination of the character pattern and the position of the transfer line. Therefore, the processing hardware is relatively simple and normalizes the height and slope of the pattern at the same time.
Its processing efficiency has been doubled, and high-speed processing is possible by using a high-speed microprocessor and setting effective microinstructions.

なお、上記実施例は、第1のRAMのパターン
の高さを縮少方向に正規化するアルゴリズムにし
たがつて説明したが、逆に第1のRAMからパタ
ーン部分の各ライン画像相互間に適当数のライン
を挿入しながら転送することによつて、拡大方向
に正規化するアルゴリズムにしたがつて制御する
ようにしてもよい。
The above embodiment has been explained using an algorithm that normalizes the height of the pattern in the first RAM in the reduction direction, but conversely, the height of the pattern in the first RAM is Control may also be performed according to an algorithm that normalizes in the expansion direction by transferring a number of lines while inserting them.

本発明は上述したように、高速処理が可能であ
り比較的簡単なハードウエアでパターン画像の正
規化処理が可能なパターン正規化方式を提供でき
る。
As described above, the present invention can provide a pattern normalization method that is capable of high-speed processing and can normalize pattern images using relatively simple hardware.

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

第1図は本発明に係るパターン正規化方式の一
実施例を示すブロツクダイヤグラム、第2図は第
1図の第1のRAMから第2のRAMへパターン
転送を行う様子を説明するために示す図、第3図
は第2図のパターン転送におけるパターン高さ正
規化のためのアルゴリズムの一例を示す流れ図で
ある。 1,2……RAM、3……パターンライン、4
……マイクロプロセツサ、5,6……アドレスカ
ウンタ。
FIG. 1 is a block diagram showing an embodiment of the pattern normalization method according to the present invention, and FIG. 2 is shown to explain how a pattern is transferred from the first RAM to the second RAM in FIG. 3 are flowcharts showing an example of an algorithm for pattern height normalization in the pattern transfer of FIG. 2. 1, 2...RAM, 3...Pattern line, 4
...Microprocessor, 5,6...Address counter.

Claims (1)

【特許請求の範囲】 1 第1のランダムアクセスメモリに格納された
パターン原画像を正規化して第2のランダムアク
セスメモリに格納するものであつて 第1のメモリ内の原画像の傾きと高さを検出
し、正規化後の画像との高さの比率を求める第
1の工程。 前記第1の工程で求めた比率に応じたアドレ
ス量毎に第1のメモリの行アドレスカウンタを
増加させる第2の工程。 第1のメモリから前記第2の工程で指定され
たアドレスの1ライン分の画像信号をリードす
る第3の工程。 第3の工程でリードした画像信号を第2のメ
モリに転送記憶する第4の工程。 第2のメモリのアドレスカウンタを1行毎に
増加させる第5の工程。 前記第2の工程乃至第5の工程を正規化後の
画像の行数に応じて繰返す工程とを有し、 第3の工程において第1の工程で求めた原画像
の傾きに応じて第1のメモリの列アドレスカウン
タの内容を補正することにより、画像の傾き補正
及び高さの正規化を同時に行なうようにしたこと
を特徴とするパターン正規化方式。
[Claims] 1. A pattern original image stored in a first random access memory is normalized and stored in a second random access memory, and the inclination and height of the original image in the first memory are normalized. The first step is to detect and calculate the height ratio with the normalized image. a second step of increasing the row address counter of the first memory for each address amount according to the ratio determined in the first step; A third step of reading one line of image signals at the address specified in the second step from the first memory. A fourth step of transferring and storing the image signal read in the third step to a second memory. A fifth step of incrementing the address counter of the second memory row by row. a step of repeating the second to fifth steps according to the number of lines of the image after normalization; A pattern normalization method characterized in that image tilt correction and height normalization are performed simultaneously by correcting the contents of a column address counter of a memory.
JP1820079A 1979-02-19 1979-02-19 Pattern normalization system Granted JPS55110378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1820079A JPS55110378A (en) 1979-02-19 1979-02-19 Pattern normalization system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1820079A JPS55110378A (en) 1979-02-19 1979-02-19 Pattern normalization system

Publications (2)

Publication Number Publication Date
JPS55110378A JPS55110378A (en) 1980-08-25
JPS63836B2 true JPS63836B2 (en) 1988-01-08

Family

ID=11964985

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1820079A Granted JPS55110378A (en) 1979-02-19 1979-02-19 Pattern normalization system

Country Status (1)

Country Link
JP (1) JPS55110378A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57105089A (en) * 1980-12-23 1982-06-30 Fujitsu Ltd Editing system of inputted hand-written sentence
JPS57134779A (en) * 1981-02-16 1982-08-20 Oki Electric Ind Co Ltd Optical character reader
JPS58114176A (en) * 1981-12-26 1983-07-07 Fujitsu Ltd Pattern recognizing device
JP2513617B2 (en) * 1986-01-24 1996-07-03 株式会社東芝 Normalization circuit

Also Published As

Publication number Publication date
JPS55110378A (en) 1980-08-25

Similar Documents

Publication Publication Date Title
JP3222960B2 (en) Image processing device
US4564865A (en) Picture scanning and recording method
JPS63836B2 (en)
US4829454A (en) Picture processing apparatus
JPH04294166A (en) Image processor
JP2000251065A (en) Image processor
US5303068A (en) Image data processing apparatus for difference scanning methods
JP2705580B2 (en) Printer image data resolution doubling circuit
JP3203024B2 (en) Image processing apparatus and image processing method
JP3333889B2 (en) Image processing device
JPH0793529A (en) Scan format converter
JP3162159B2 (en) Image processing device
JPH03237684A (en) image storage device
JPS6045458B2 (en) External memory control method for image terminal equipment
JP2814769B2 (en) Image processing device
JP3814879B2 (en) Scanner device
JP2624031B2 (en) Image processing device
JPH0413909B2 (en)
JP3390025B2 (en) Image processing device
JPS6113878A (en) Shading correcting circuit
JP2770950B2 (en) Image signal processing device
JPH0514627A (en) Picture reader
JP3005823B2 (en) Image reading processing device
JP2938107B2 (en) Pattern recognition device
JPH0736199B2 (en) Digital image data comparison device