JPH0198094A - Character recognizing circuit - Google Patents
Character recognizing circuitInfo
- Publication number
- JPH0198094A JPH0198094A JP62255722A JP25572287A JPH0198094A JP H0198094 A JPH0198094 A JP H0198094A JP 62255722 A JP62255722 A JP 62255722A JP 25572287 A JP25572287 A JP 25572287A JP H0198094 A JPH0198094 A JP H0198094A
- Authority
- JP
- Japan
- Prior art keywords
- data
- distance data
- memory
- output
- characters
- 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
Links
Landscapes
- Character Discrimination (AREA)
Abstract
Description
【発明の詳細な説明】
〔概 要〕
読取った文字を辞書文字と比較して所定数だけの近いも
のを選出し、認識に供する文字認識回路に関し、
ヒストグラム作成、閾値決定、出力判定各処理をすべて
ハードウェアで行なって、高速かつ自動的に候補を出力
できるようにすることを目的とし、認識対象文字を辞書
文字と比較し、所定数の距離が小さい辞書文字を候補文
字とする文字認識回路において、認識対象文字を辞書文
字と比較して得られる距離データを入力され、該距離デ
ータをアドレス、該距離データの発生回数をデータとし
てメモリのヒストグラムエリアに書込むヒストグラム作
成部と、該メモリをアドレスの小さい順に読出して、各
アドレスのヒストグラムを累加し、出力指定データ数に
なるとき読出しを中止し、このときのアドレスを閾値と
する閾値決定回路と、該メモリの距離データエリアを読
出し、読出された距離データと前記閾値左を比較し、閾
値より小さいものを出力候補文字とするデータ出力判定
部とを備える構成とする。[Detailed Description of the Invention] [Summary] The present invention relates to a character recognition circuit that compares read characters with dictionary characters, selects a predetermined number of similar characters, and uses them for recognition. A character recognition circuit that compares the target character with dictionary characters and selects dictionary characters with a predetermined number of short distances as candidate characters, with the aim of outputting candidates quickly and automatically by using hardware , a histogram creation unit that receives distance data obtained by comparing a recognition target character with a dictionary character and writes the distance data as an address and the number of occurrences of the distance data as data in a histogram area of the memory; The histogram of each address is read in descending order, the reading is stopped when the specified number of output data is reached, and the threshold value determination circuit that uses the address at this time as the threshold value is used to read out the distance data area of the memory and read out the histogram of each address. and a data output determination unit that compares the distance data and the threshold value left, and selects a character smaller than the threshold value as an output candidate character.
本発明は、読取った文字を辞書文字と比較して所定数だ
けの近いものを選出し、認識に供する文字認識回路に関
する。The present invention relates to a character recognition circuit that compares read characters with dictionary characters and selects a predetermined number of similar characters for recognition.
漢字などの字種の多い文字を認識する場合は、認識対象
文字を辞書の全ての文字と比較し、その比較結果(距離
データ)のヒストグラムを作成し、そのヒストグラムよ
り、予め設定された文字数だけ候補文字を出力できるよ
うに距離の閾値を求め、その閾値と距離データとを比較
して、距離が閾値より小さいものの辞書ポインタデータ
と距離データを出力する、という処理を行なっている。When recognizing characters with many types, such as kanji, compare the target character with all characters in the dictionary, create a histogram of the comparison results (distance data), and use the histogram to recognize only the preset number of characters. A process is performed in which a distance threshold is determined so that candidate characters can be output, the threshold is compared with distance data, and dictionary pointer data and distance data are output even if the distance is smaller than the threshold.
つまり、先ず候補を絞り、絞られた候補から該当するも
のを選ぶ、という方法をとっている。In other words, the method is to first narrow down the candidates and then select the appropriate one from the narrowed down candidates.
従来、上記の候補を選出する一連の処理はソフトウェア
で行なっており、非常に時間がか−る欠点があった。Conventionally, the series of processes for selecting candidates described above has been performed by software, which has the drawback of being extremely time consuming.
本発明はこの点を改善し、ヒストグラム作成、閾値決定
、出力判定各処理をすべてハードウェアで行なって、高
速かつ自動的に候補を出力できるようにすることを目的
とするものである。It is an object of the present invention to improve this point and to perform all of the histogram creation, threshold value determination, and output determination processing in hardware, thereby making it possible to output candidates quickly and automatically.
上記目的は、認識対象文字を辞書文字と比較し、所定数
の距離が小さい辞書文字を候補文字とする文字認識回路
において、認識対象文字を辞書文字と比較して得られる
距離データを入力され、該距離データをアドレス、該距
離データの発生回数をデータとしてメモリ (18)の
ヒストグラムエリアに書込むヒストグラム作成部(34
)と、該メモリをアドレスの小さい順に読出して、各ア
ドレスの、 ヒストグラムを累加し、出力指定データ
数(OTD)になるとき読出しを中止し、このときのア
ドレスを閾値とする閾値決定回路(36)と、該メモリ
の距離データエリアを読出し、読出された距離データと
前記閾値とを比較し、閾値より小さいものを出力候補文
字とするデータ出力判定部(38)とを備える構成とす
ることにより達成される。The above purpose is to input distance data obtained by comparing the recognition target character with the dictionary characters in a character recognition circuit that compares the recognition target character with dictionary characters and uses dictionary characters with a predetermined number of short distances as candidate characters, Histogram creation unit (34) writes the distance data as an address and the number of occurrences of the distance data as data in the histogram area of the memory (18).
) and a threshold determining circuit (36 ), and a data output determination unit (38) that reads the distance data area of the memory, compares the read distance data with the threshold value, and selects characters smaller than the threshold value as output candidate characters. achieved.
この構成によれば、ヒストグラム作成、閾値決定、およ
びデータ出力判定をハードウェアで行なうことができる
ので、従来のソフトウェアで行なう方式に比べて高速、
自動処理が可能になり、甚だ有効である。According to this configuration, since histogram creation, threshold value determination, and data output judgment can be performed using hardware, it is faster and faster than the conventional software-based method.
Automatic processing becomes possible and is extremely effective.
第1図に本発明の実施例を示す。12はマルチプレクサ
、14.16はカウンタ、18はローカルメモリ(SR
AM) 、20. 22は加算器、24゜26はレジス
タ、28.30は比較器、32はマルチプレクサである
。これらの加算器(+1回路)20、レジスタ24、お
よびマルチプレクサ32がヒストグラム作成部34を、
また加算器22、レジスタ26、および比較器28が閾
値決定部36を、更に比較器30がデータ出力判定部3
8を構成する。図示しないが、これらの全体を制御する
回路も設けられる。FIG. 1 shows an embodiment of the present invention. 12 is a multiplexer, 14.16 is a counter, and 18 is a local memory (SR
AM), 20. 22 is an adder, 24.degree. 26 is a register, 28.30 is a comparator, and 32 is a multiplexer. These adder (+1 circuit) 20, register 24, and multiplexer 32 create a histogram creation section 34,
Further, the adder 22, the register 26, and the comparator 28 function as the threshold value determining section 36, and the comparator 30 functions as the data output determining section 3.
8. Although not shown, a circuit for controlling all of these is also provided.
第2図にローカルメモリ18の構成を示す。図示のよう
にローカルメモリ18には出力ポインタデータエリア(
4にバイト)、出力距離データエリア(4にバイト)、
ヒストグラムエリア(16にバイト)、距離データエリ
ア(32にバイト)、および出力ワークエリア(32に
バイト)などがある。FIG. 2 shows the configuration of the local memory 18. As shown in the figure, the local memory 18 has an output pointer data area (
4 bytes), output distance data area (4 bytes),
There is a histogram area (16 bytes), a distance data area (32 bytes), and an output work area (32 bytes).
第1図の回路ではヒストグラム作成、閾値決定、データ
出力、をこの順で順次実行して行(が、最初のヒストグ
ラム作成の前にローカルメモリ18のヒストグラムエリ
アのクリアを行なう。そのタイムチャートを第3図に示
す。第3図で*CLKはシステムクロック、* HMC
STはクリアスタート信号で、これはオアゲートG2を
通ってカウンタ14に入り、これをクリアする。次いで
* HMCSTの立上りで“クリア中゛を示すクリア信
号HSTCLRが発生し、これはオアゲートG1を通っ
てマルチプレクサ12に入り、これを距離データDIS
TOI〜11側からカウンタ14側に切換える。カウン
タ14はH5TCLRの立上り以後入力するクロック*
HCLK2を計数し、計数値を0.1,2.・・・・
・・と変えて行く。これはマルチプレクサ12を通り、
ローカルメモリアドレスバスABを通ってローカルメモ
リ18に入り、該メモリ18の書込みアドレスとなる。In the circuit shown in FIG. 1, histogram creation, threshold value determination, and data output are executed sequentially in this order (however, before the first histogram creation, the histogram area of the local memory 18 is cleared. It is shown in Figure 3. In Figure 3, *CLK is the system clock, *HMC
ST is a clear start signal, which enters the counter 14 through the OR gate G2 and clears it. Then, at the rising edge of *HMCST, a clear signal HSTCLR indicating "clearing" is generated, which passes through the OR gate G1 and enters the multiplexer 12, and is sent to the distance data DIS.
Switch from the TOI~11 side to the counter 14 side. The counter 14 receives a clock input after the rising edge of H5TCLR*
Count HCLK2 and set the count value to 0.1, 2.・・・・・・
I'm going to change it to... This passes through multiplexer 12,
It enters the local memory 18 through the local memory address bus AB and becomes the write address of the memory 18.
該メモリ18へは書込みデータとしてOが人力されてお
り、これがアドレス0,1,2.・・・・・・、 40
95へ書込まれ、こうしてヒストグラムエリアのクリア
が行なわれる。第3図のC8はチップセレクト、WEは
ライトイネーブル各信号である。O is manually input to the memory 18 as write data, and this is written to addresses 0, 1, 2, . ......, 40
95, and thus the histogram area is cleared. C8 in FIG. 3 is a chip select signal, and WE is a write enable signal.
ヒストグラムエリアの全アドレスに0が書込まれるとア
ドレスエンド八〇EDが上り、その立下りでクリアエン
ド* MMCHDが発生し、この立下りでクリア信号H
STCLRは立下る。* HMCHDは距離計算の開始
信号になる。When 0 is written to all addresses in the histogram area, address end 80ED rises, and at the falling edge, clear end * MMCHD is generated, and at this falling edge, the clear signal H
STCLR falls. *HMCHD becomes the distance calculation start signal.
ヒストグラムの作成は、辞書の内容(文字)に対する距
離の1/2をアドレスとして、ヒストグラムエリアの当
該データを1増加させる処理を繰り返すことにより行な
われる。この処理のタイムチャートを第4図に示す。距
離計算は本回路外で行なわれ、距離データ旧5TO1〜
11として本回路のマルチプレクサ12へ入力されて、
ローカルメモI718の距離データエリアへ、出力ワー
クエリアへの辞書ポインタデータと共に書込まれる。辞
書の文字数をNとすると、認識対象文字1個につきN個
の距離データとポインタデータがあるが、ヒストグラム
作成はその1つの距離データとポインタデータを距離デ
ータエリアと出力ワークエリアへ書込む毎に行なう。第
4図の* HISTSTは書込みスタート信号で、その
立上りで* HIST DRUP信号が発生し、信号C
3,OE (アウトイネーブル)。The histogram is created by repeating the process of increasing the data in the histogram area by 1, using 1/2 of the distance to the contents (characters) of the dictionary as an address. A time chart of this process is shown in FIG. Distance calculation is done outside this circuit, distance data old 5TO1~
11 to the multiplexer 12 of this circuit,
It is written to the distance data area of the local memo I718 together with the dictionary pointer data to the output work area. If the number of characters in the dictionary is N, there are N pieces of distance data and pointer data for each character to be recognized, but the histogram is created each time one piece of distance data and pointer data is written to the distance data area and output work area. Let's do it. *HISTST in Fig. 4 is a write start signal, and at its rising edge, *HIST DRUP signal is generated, and signal C
3, OE (out enable).
WEが発生してメモリ読出し及び書込みが行なわれ、エ
ンド信号* FIISTEDで1サイクルが終了する。When WE is generated, memory reading and writing are performed, and one cycle ends with an end signal *FIISTED.
* HISTEDは次の距離計算の開始を指示する。*HISTED instructs the start of the next distance calculation.
ヒストグラム作成時マルチプレクサ12は距離データD
IST側へ切換っており、従って該DISTはマルチプ
レクサ12およびアドレスバスABを通ってローカルメ
モリ18に入って該メモリの読出しアドレスになる。読
出しデータはデータバスDBを通って+1回路20に入
り、+1されたのちレジスタ24にランチされ、マルチ
プレクサ32を通ってデータバスDBへ至り、ローカル
メモリ18の上記アドレスへ書込まれる。ヒストグラム
作成はこれを繰り返すことにより行なわれる。When creating a histogram, the multiplexer 12 uses distance data D
IST side, so that DIST passes through multiplexer 12 and address bus AB into local memory 18 and becomes the read address of the memory. The read data passes through the data bus DB, enters the +1 circuit 20, is incremented by 1, is launched into the register 24, passes through the multiplexer 32, reaches the data bus DB, and is written to the above address in the local memory 18. Histogram creation is performed by repeating this process.
ヒストグラム作成後、閾値決定のスタート信号TH5T
により閾値決定処理を行なう。このタイムチャートを第
5図に示す。スタート信号THSTが出ると、その立上
りで閾値信号THが立上り、これはオアゲートG1を通
ってマルチプレクサ12に入り、これをカウンタ14側
に切換える。カウンタ14はTH5Tでクリアされ、ク
ロック* HCLK2が入力するとこれを計数する。カ
ウンタ14の計数値はローカルメモリ18のアドレスと
なり、該メモリから各アドレス(距離)のヒストグラム
が読出される。ヒストグラムエリアには距離データをア
ドレスに該距離データの発生回数が書込まれているから
、アドレスの若い方に小さな距離のヒストグラムがある
。従ってヒストグラムエリアの最初(アドレスO)から
読出して、その読出しデータを加算器22に入力してレ
ジスタ26の内容と加算し、加算結果をレジスタ26に
移し、という処理を繰り返すと、レジスタ26には距離
の小さい方からの各距離のヒストグラムの累加値が得ら
れる。これ(A)を出力指定データ数OTD (B)と
比較し、A2Bになった所で信号THRDを出力し、ロ
ーカルメモリ読出しを中止させる。この読出し中止にな
ったときのメモリアドレスが、予定数の候補を取出すた
めの閾値となる(詳しくは、前記のように距離データの
1/2をアドレスとしているので、読出し中止のアドレ
スの2倍が閾値)。本処理の終了信号である* THE
Dが、次の処理であるデータ出力処理のスタート信号と
なる。After creating histogram, start signal TH5T for determining threshold value
Threshold value determination processing is performed. This time chart is shown in FIG. When the start signal THST is output, the threshold signal TH rises at its rising edge, enters the multiplexer 12 through the OR gate G1, and switches it to the counter 14 side. The counter 14 is cleared at TH5T and counts when the clock *HCLK2 is input. The count value of the counter 14 becomes the address of the local memory 18, and the histogram of each address (distance) is read from the memory. In the histogram area, the distance data is used as an address and the number of occurrences of the distance data is written, so there is a histogram of a small distance at the smaller address. Therefore, if you repeat the process of reading from the beginning of the histogram area (address O), inputting the read data to the adder 22, adding it to the contents of the register 26, and moving the addition result to the register 26, the register 26 will contain The cumulative value of the histogram for each distance from the smallest distance is obtained. This (A) is compared with the output designated data number OTD (B), and when it reaches A2B, the signal THRD is outputted to stop reading the local memory. The memory address at which reading is stopped becomes the threshold for retrieving the planned number of candidates (in detail, since the address is 1/2 of the distance data as described above, it is twice the address at which reading was stopped. is the threshold). This is the end signal of this process * THE
D becomes a start signal for data output processing, which is the next process.
データ出力処理のタイムチャートを第6図に示す。*
THEDの立上りでOUTサイクルが立上り、IC3,
*OEによりメモリ読出しが、また*WEによりメモリ
書込みが行なわれる。先ずメモリ18の距離データエリ
アの読出しが行なわれ(この読出しアドレスは、クロッ
ク*HCLK3を計数するカウンタ16が発生する)、
比較器30が読出しデータ(B)と閾値(Biこれはカ
ウンタ14が発生している)とを比較し、A>Bなら出
力OUTを生じる。出力OUTが出ると処理(II)に
示すようにその距離データと辞書ポインタをメモリ18
の出力距離データエリアと出力ポインタデータエリアへ
書込む。出力OUTが出ないと処理(I)のようにメモ
リ読出しだけで、書込みは行なわれない。FIG. 6 shows a time chart of data output processing. *
The OUT cycle rises at the rise of THED, and IC3,
*OE performs memory reading, and *WE performs memory writing. First, the distance data area of the memory 18 is read out (this read address is generated by the counter 16 that counts the clock *HCLK3),
A comparator 30 compares the read data (B) with a threshold value (Bi, which is generated by the counter 14) and produces an output OUT if A>B. When the output OUT appears, the distance data and dictionary pointer are stored in the memory 18 as shown in process (II).
Write to the output distance data area and output pointer data area. If the output OUT is not output, only memory reading is performed as in process (I), and writing is not performed.
距離データエリア内の全てのアドレスに対し上記処理(
1) (II)が行なわれると、処理(n[)で示す
ようにデータエンドDTEDが上り、これでOUTサイ
クルが立下り、終了信号* 0UTEDが出て処理終了
を知らせる。The above process (
1) When (II) is performed, the data end DTED rises as shown by process (n[), the OUT cycle falls, and the end signal *0UTED is output to notify the end of the process.
候補文字の出力は、処理(n)で書込んだエリアを読出
すことにより行なう。出力される候補文字の数は出力指
定データ数OTDで定められるが、距離単位であるから
一定数ではない。The candidate characters are output by reading out the area written in step (n). The number of candidate characters to be output is determined by the output designated data number OTD, but it is not a fixed number because it is a unit of distance.
以上説明したように本発明ではヒストグラム作成、閾値
決定、およびデータ出力判定をハードウェア(処理専用
のLSI)で行なうので、従来のように時間がか−るこ
とがな(、所定数の候補文字決定処理を高速に自動的に
行なうことができる。As explained above, in the present invention, histogram creation, threshold value determination, and data output determination are performed by hardware (processing-dedicated LSI), so unlike conventional methods, it does not take much time (i.e., Decision processing can be performed automatically and quickly.
【図面の簡単な説明】
第1図は本発明回路の構成を示すブロック図、第2図は
ローカルメモリの構成を示すブロック図、
第3図はヒストグラムエリアのクリアタイムチャート、
第4図はヒストグラム作成タイムチャート、第5図は閾
値決定タイムチャート、
第6図はデータ出力判定のタイムチャートである。
第1図でDISTは距離データ、18はメモリ、34は
ヒストグラム作成部、36は閾値決定部、38はデータ
出力判定部である。[Brief Description of the Drawings] Figure 1 is a block diagram showing the configuration of the circuit of the present invention, Figure 2 is a block diagram showing the configuration of local memory, Figure 3 is a clearing time chart of the histogram area, and Figure 4 is the histogram. FIG. 5 is a creation time chart, FIG. 5 is a threshold value determination time chart, and FIG. 6 is a data output determination time chart. In FIG. 1, DIST is distance data, 18 is a memory, 34 is a histogram creation section, 36 is a threshold value determination section, and 38 is a data output determination section.
Claims (1)
い辞書文字を候補文字とする文字認識回路において、 認識対象文字を辞書文字と比較して得られる距離データ
を入力され、該距離データをアドレス、該距離データの
発生回数をデータとしてメモリ(18)のヒストグラム
エリアに書込むヒストグラム作成部(34)と、 該メモリをアドレスの小さい順に読出して、各アドレス
のヒストグラムを累加し、出力指定データ数(OTD)
になるとき読出しを中止し、このときのアドレスを閾値
とする閾値決定回路(36)と、 該メモリの距離データエリアを読出し、読出された距離
データと前記閾値とを比較し、閾値より小さいものを出
力候補文字とするデータ出力判定部(38)とを備える
ことを特徴とする文字認識回路。[Claims] In a character recognition circuit that compares a recognition target character with dictionary characters and uses dictionary characters with a predetermined number of short distances as candidate characters, distance data obtained by comparing the recognition target character with the dictionary characters is input. a histogram creation unit (34) that writes the distance data as an address and the number of occurrences of the distance data as data in a histogram area of the memory (18); and reads the memory in ascending order of addresses to create a histogram of each address. Cumulative output specified data count (OTD)
A threshold value determination circuit (36) that stops reading when the address becomes the threshold value, reads the distance data area of the memory, compares the read distance data with the threshold value, and selects the one that is smaller than the threshold value. A character recognition circuit comprising: a data output determination unit (38) that uses as an output candidate character.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62255722A JPH0673145B2 (en) | 1987-10-09 | 1987-10-09 | Character recognition circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62255722A JPH0673145B2 (en) | 1987-10-09 | 1987-10-09 | Character recognition circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0198094A true JPH0198094A (en) | 1989-04-17 |
| JPH0673145B2 JPH0673145B2 (en) | 1994-09-14 |
Family
ID=17282737
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62255722A Expired - Lifetime JPH0673145B2 (en) | 1987-10-09 | 1987-10-09 | Character recognition circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0673145B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8408092B2 (en) | 2009-12-30 | 2013-04-02 | National Taiwan University Of Science And Technology | Safety device on steering handle |
-
1987
- 1987-10-09 JP JP62255722A patent/JPH0673145B2/en not_active Expired - Lifetime
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8408092B2 (en) | 2009-12-30 | 2013-04-02 | National Taiwan University Of Science And Technology | Safety device on steering handle |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0673145B2 (en) | 1994-09-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB2183072A (en) | Apparatus for analysing transitions in finite state machines | |
| JPH0198094A (en) | Character recognizing circuit | |
| JP2801602B2 (en) | Word recognition device | |
| EP0278528A2 (en) | Area searching system | |
| JPH0277891A (en) | character recognition device | |
| JPS63103393A (en) | Word recognizing device | |
| JP3391894B2 (en) | Character recognition method and character recognition device | |
| JPS6313227B2 (en) | ||
| JPH05135180A (en) | Pattern similarity calculator | |
| JPH0616296B2 (en) | Image feature extraction device | |
| JPH07121665A (en) | Compiling method and retrieving method for character recognition dictionary | |
| JPH0685190B2 (en) | Dictionary search method for character recognition device | |
| JPS63263591A (en) | Character recognizing circuit | |
| SU1059586A2 (en) | Device for recognition of particle tracks | |
| JP2774113B2 (en) | Character recognition method | |
| JPH0640352B2 (en) | Character recognition device | |
| JPH0259884A (en) | Character recognizing device | |
| JPH02252084A (en) | Method for recognizing character | |
| JPS619775A (en) | Picture image processor | |
| JPS63191291A (en) | Character recognizing circuit | |
| JPH0264884A (en) | Dictionary search circuit for character recognition device | |
| JPH07117991B2 (en) | Dictionary search method for character recognition device | |
| JPH01183796A (en) | Character recognizing device | |
| JPH0264883A (en) | Dictionary search circuit for character recognition device | |
| JPH07287758A (en) | Correlation calculator |