JP2881318B2 - Conversion circuit of distance value in character recognition device - Google Patents

Conversion circuit of distance value in character recognition device

Info

Publication number
JP2881318B2
JP2881318B2 JP1273813A JP27381389A JP2881318B2 JP 2881318 B2 JP2881318 B2 JP 2881318B2 JP 1273813 A JP1273813 A JP 1273813A JP 27381389 A JP27381389 A JP 27381389A JP 2881318 B2 JP2881318 B2 JP 2881318B2
Authority
JP
Japan
Prior art keywords
bits
bit
data
distance
character
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
JP1273813A
Other languages
Japanese (ja)
Other versions
JPH03136185A (en
Inventor
勝也 吉田
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.)
Anritsu Corp
Original Assignee
Anritsu Corp
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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP1273813A priority Critical patent/JP2881318B2/en
Publication of JPH03136185A publication Critical patent/JPH03136185A/en
Application granted granted Critical
Publication of JP2881318B2 publication Critical patent/JP2881318B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、距離値の変換回路、特に認識文字について
の特徴データと辞書内の各文字ごとの特徴データとを基
に距離計算を行い、Nビットで表現された距離データを
縮小したn(n<N)ビットで表現するようにした文字
認識装置における距離値の変換回路に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention performs a distance calculation based on a distance value conversion circuit, in particular, feature data of a recognized character and feature data of each character in a dictionary, The present invention relates to a distance value conversion circuit in a character recognition device in which distance data represented by N bits is represented by reduced n (n <N) bits.

〔従来の技術〕 文字認識を行う過程において、認識文字の文字パター
ンから得られた特徴データx(i),(i=1,2,…)
と、辞書内の各文字yj(j=1,2,…)ごとに予め与えら
れている特徴データyj(i)とから各文字ごとにユーク
リッド距離Vjを計算し、この距離の小さい文字を複数個
求め、認識文字に対する候補文字としている。
[Related Art] In the process of performing character recognition, feature data x (i), (i = 1, 2,...) Obtained from a character pattern of a recognized character.
, And a characteristic data yj (i) given in advance for each character yj (j = 1, 2,...) In the dictionary, calculate a Euclidean distance Vj for each character. It is determined as a candidate character for the recognition character.

このユークリッド距離Vjを求める計算式の一例とし
て、例えば で求めることができる。
As an example of a calculation formula for calculating the Euclidean distance Vj, for example, Can be obtained by

この場合式(1)から明らかな様に、対比される特徴
データの数iが大きくなるにつれ、その距離の値も大き
くなり、その最大値を表示できるNビットで距離データ
を表示する必要がある。
In this case, as is apparent from equation (1), as the number i of the feature data to be compared increases, the value of the distance also increases, and it is necessary to display the distance data with N bits capable of displaying the maximum value. .

従来は認識文字の特徴データx(i)と辞書内の各文
字yjの特徴データyj(i)との距離Vjを一律にNビット
で表現していた。
Conventionally, the distance Vj between the characteristic data x (i) of the recognized character and the characteristic data yj (i) of each character yj in the dictionary has been uniformly expressed by N bits.

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

そのためNビットで表現される距離を格納するメモリ
やその周辺回路もすべてNビットのものを使わなければ
ならず、回路規模が大きくなる欠点があった。
Therefore, the memory for storing the distance expressed by N bits and its peripheral circuits must all be N bits, and there is a disadvantage that the circuit scale becomes large.

本発明は、上記の欠点を解決することを目的としてお
り、文字認識装置においては認識文字に対して候補文字
となる文字の特徴データの距離は小さく、候補文字とな
り得ない文字の特徴データの距離は大きいことに着目
し、予め定められたビット数で表わされる最大値より大
きい値の距離を有する文字は候補文字とはなり得ないの
で、その文字についての距離を上記予め定められたビッ
ト数で表わされる最大の数(距離が正で計算される場
合)又は最小の数(距離が負で計算される場合)で置換
することにより、小さいビット数で距離値を表現するこ
とができる文字認識装置における距離値の変換回路を提
供することを目的としている。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned drawbacks. In a character recognition device, the distance of feature data of a character that is a candidate character with respect to a recognized character is small, and the distance of feature data of a character that cannot be a candidate character is small. Note that a character having a distance greater than the maximum value represented by the predetermined number of bits cannot be a candidate character, so the distance for the character is determined by the predetermined number of bits. A character recognition device capable of expressing a distance value with a small number of bits by substituting the maximum number (when the distance is calculated as a positive value) or the minimum number (when the distance is calculated as a negative value). It is an object of the present invention to provide a distance value conversion circuit.

〔課題を解決するための手段〕[Means for solving the problem]

上記目的を達成するために、本発明の文字認識装置に
おける距離値の変換回路は、第1図(I)の基本構成図
に示されている様に、認識文字についての特徴データと
辞書内の各文字ごとの特徴データとを基に距離計算を行
い、Nビットで表現された距離データが得られる文字認
識装置において、前記Nビットで表現された距離データ
を所定の数K(=2α)で割って得られた数の下位n−
1ビット(n<N)と符号ビットとのnビットを出力す
るビット幅減縮器1と、前記Nビットで表現された距離
データを所定の数Kで割って得られた数についてnビッ
ト以上のビットに有効な距離データの存否を検出するオ
ーバフロー/アンダフロー検出器2と、前記ビット幅減
縮器1の出力と同じnビットで特定のデータを発生させ
る置換データ発生器3と、オーバフロー/アンダフロー
検出器2が、フローを出力したとき置換データ発生器3
のnビットの発生データを出力させ、フローが出力され
なかったときビット幅減縮器1のnビットのデータを出
力させるセレクタ4とを備え、Nビットで表現された距
離データを縮小したnビットで表現するように構成して
いる。
In order to achieve the above object, the distance value conversion circuit in the character recognition device of the present invention includes a feature data for a recognized character and a dictionary data in the dictionary as shown in the basic configuration diagram of FIG. In a character recognition device that calculates a distance based on feature data of each character and obtains distance data expressed by N bits, the distance data expressed by the N bits is converted into a predetermined number K (= ). Lower n- of the number obtained by dividing by
A bit width reducer 1 for outputting n bits of 1 bit (n <N) and a sign bit, and a number obtained by dividing the distance data expressed by the N bits by a predetermined number K, the number of which is n bits or more An overflow / underflow detector 2 for detecting the presence or absence of valid distance data for a bit, a replacement data generator 3 for generating specific data with the same n bits as the output of the bit width reducer 1, an overflow / underflow When the detector 2 outputs a flow, the replacement data generator 3
And a selector 4 for outputting n-bit data of the bit width reducer 1 when no flow is output, and n-bit data obtained by reducing the distance data expressed by N bits. It is configured to express.

〔作用〕[Action]

最上位ビットに符号ビットを含むNビットの距離デー
タがビット幅減縮器1に入力され、ビット幅を縮小させ
るため所定の数K=2αで割られる。すなわち第1図
(II)においてNビットの距離データがαだけシフトさ
れる。当該ビット幅減縮器1は、斜線が施された最上位
の符号ビットと、上記所定の数Kで割って得られた数の
最下位ビット0からビットn−2までの、n−1個のビ
ットとのnビットをセレクタ4へ送出する。
Distance data N bits including a sign bit in the most significant bit is inputted to the bit width subsampling circuit 1 is divided by a predetermined number K = 2 alpha for reducing the bit width. That is, in FIG. 1 (II), the N-bit distance data is shifted by α. The bit width reducer 1 includes n-1 uppermost code bits, which are hatched, and n-1 bits from a least significant bit 0 to a bit n-2 obtained by dividing by the predetermined number K. The n bits are transmitted to the selector 4.

置換データ発生器3はNビットの距離データの内最上
位の符号ビットが入力されるようになっており、当該符
号ビットが正を表わしているとき正を表わすビットと共
にn−1ビットで表わされる最大の数(正の最大値)を
作成し、当該符号ビットが負を表わしているとき負を表
わすビットと共にn−1ビットで表わされる最小の数
(負の最小値)を作成してセレクタ4にnビットを入力
させている。
The replacement data generator 3 receives the most significant sign bit of the N-bit distance data, and when the sign bit indicates positive, it is represented by n-1 bits together with the sign bit. A maximum number (positive maximum value) is created, and when the sign bit indicates a negative value, a minimum number (negative minimum value) represented by n-1 bits is created together with a bit indicating a negative value. Input n bits.

Nビットの距離データを所定の数Kで割って得られた
数についてnビット以上のビットに有効な距離データ
(符号ビットは有効な距離データとはみない)が存在す
るとき、認識文字と辞書内の文字との距離を所定の数K
で割って得られた数がn−1ビットで表わせない程離れ
ていることを意味し、オーバフロー/アンダフロー検出
器2からフローを示す信号がセレクタ4に出力され、置
換データ発生器3から発生する上記説明のnビットのデ
ータがセレクタ4から出力される。この置換データ発生
器3から発生するnビットのデータは、認識文字の候補
文字となり得ぬ程距離が離れていることを表わした数と
なっており、オーバフロー/アンダフロー検出器2から
フローを示す信号が出る距離データをnビットに縮小し
ても何んら影響がない。
When valid distance data (sign bits are not regarded as valid distance data) exists in n or more bits of a number obtained by dividing the N-bit distance data by a predetermined number K, the recognition character and the dictionary are used. The distance to the characters in the given number K
Means that the number obtained by dividing by n is too large to be represented by n-1 bits. A signal indicating a flow is output from the overflow / underflow detector 2 to the selector 4 and generated from the replacement data generator 3. The n-bit data described above is output from the selector 4. The n-bit data generated from the replacement data generator 3 is a number indicating that the distance is too large to be a candidate character of a recognized character, and indicates a flow from the overflow / underflow detector 2. Even if the distance data at which the signal is output is reduced to n bits, there is no effect.

オーバフロー/アンダフロー検出器2からフローの信
号が出ないときには、ビット幅減縮器1でnビットに縮
小されたデータがセレクタ4から出力される。当該セレ
クタ4から出力されるビット幅減縮器1のnビットに縮
小されたデータは、所定の数Kで一様に割られているの
で、nビットに縮小されても各データ相互間での大小関
係は一定に保たれている。
When no flow signal is output from the overflow / underflow detector 2, the data reduced to n bits by the bit width reducer 1 is output from the selector 4. Since the data reduced to n bits of the bit width reducer 1 output from the selector 4 is uniformly divided by a predetermined number K, even if the data is reduced to n bits, the size between each data is small. The relationship is kept constant.

従ってNビットの距離データをnビットに縮小でき、
回路の規模を小さくすることが可能となる。
Therefore, N-bit distance data can be reduced to n bits,
The size of the circuit can be reduced.

〔実施例〕〔Example〕

第2図は本発明の一実施例構成を示しており、2,3,4
は第1図のものに対応し、11はバレルシフタ、12はプラ
イオリティエンコーダ、13は比較器、14はインバータ、
15はALU、16はインバータである。
FIG. 2 shows the configuration of an embodiment of the present invention.
Corresponds to that of FIG. 1, 11 is a barrel shifter, 12 is a priority encoder, 13 is a comparator, 14 is an inverter,
15 is an ALU and 16 is an inverter.

バレルシフタ11は第1図のビット幅減縮器1に対応し
ており、Nビットの距離データ、すなわち距離値を受
け、大きな値を小さくするため所定値K=2αで割り、
その結果得られた数についての最下位ビット0側からビ
ットn−2のn−1個と符号ビットを表わすビットn−
1の1個の合計nビットを出力するようになっている。
最上位のビットn−1が当該バレルシフタ11に入力され
ている最上位ビットN−1と同じものが出力される。
Barrel shifter 11 corresponds to the bit width subsampling device 1 of FIG. 1, receives N-bit range data, i.e., the distance value, divided by the predetermined value K = 2 alpha to reduce a large value,
From the least significant bit 0 of the resulting number, n-1 bits of bit n-2 and bit n-
A total of n bits of 1 are output.
The most significant bit n-1 is the same as the most significant bit N-1 input to the barrel shifter 11.

プライオリティエンコーダ12はNビットの距離データ
を受け、その最上位ビットN−1、すなわち符号ビット
の値と異なる値を最上位ビットN−1側から探し出し、
その異なる値のビット位置の1つ前までの数、つまり最
上位ビットN−1と同じ値が連続する数mを出力する回
路である。
The priority encoder 12 receives the N-bit distance data, searches the most significant bit N-1, that is, a value different from the value of the sign bit, from the most significant bit N-1 side.
This circuit outputs a number up to one bit position before the bit position of the different value, that is, a number m in which the same value as the most significant bit N-1 continues.

ALU15は、バレルシフタ11に入力されるNビットの距
離データの当該Nから符号ビットを除いたその出力ビッ
ト数n−1引いたN−(n−1)と、上記所定数K=2
αのべきαとからインバータ14を介してN−(n−1)
−αを演算する演算回路である。
The ALU 15 is N- (n-1) obtained by subtracting the output bit number n-1 of the N-bit distance data inputted to the barrel shifter 11 excluding the sign bit from the N, and the predetermined number K = 2.
From the power α of α through the inverter 14, N− (n−1)
This is an arithmetic circuit that calculates -α.

比較器13はプライオリティエンコーダ12から入力され
るmと、ALU15から入力されるN−(n−1)−αとの
比較を行い、 m≧N−(n−1)−α ………(2) のときフローの信号を出さず、セレクタ4をバレルシフ
タ11側に選択させ、 m<N−(n−1)−α ………(3) のときフローの信号を出し、セレクタ4を置換データ発
生器3側に選択させるように動作する。
The comparator 13 compares m input from the priority encoder 12 with N− (n−1) −α input from the ALU 15, and m ≧ N− (n−1) −α (2) ), The selector 4 is selected by the barrel shifter 11 without outputting a flow signal. When m <N− (n−1) −α (3), a flow signal is output, and the selector 4 is replaced with replacement data. The operation is performed so as to cause the generator 3 to select.

置換データ発生器3は、Nビットの距離データの内、
符号ビットを表わす最上位ビットN−1が入力され、イ
ンバータ16で反転されたビット0からビットn−2まで
のn−1個の数を作成すると共に、その最上位ビットn
−1には入力された上記最上位ビットNの数がそのまま
用いられ、nビットのデータを発生させるようになって
いる。つまり符号ビットn−1が正の「0」を示してい
るときn−1ビットで表わされる正の最大値「111…
1」を発生させ、符号ビットn−1が負の「1」を示し
ているときn−1ビットで表わされる負の最小値「000
…0」を発生させる。
The replacement data generator 3 outputs the N-bit distance data,
The most significant bit N-1 representing the sign bit is input, and n-1 numbers from bit 0 to bit n-2 inverted by the inverter 16 are created, and the most significant bit n
The number of the input most significant bits N is used as it is for -1, so that n-bit data is generated. That is, when the sign bit n-1 indicates a positive "0", the positive maximum value "111...
1 ”, and when the sign bit n−1 indicates a negative“ 1 ”, the negative minimum value“ 000 ”represented by the n−1 bits
... 0 "is generated.

第2図の動作を第3図,第4図を用いて説明する。 The operation of FIG. 2 will be described with reference to FIGS. 3 and 4.

Nビットの距離データがバレルシフタ11に入力する
と、当該Nビットの距離値は所定数K=2αで割られ、
αだけシフトされるので、第3図,第4図でNビットの
内のαビットが消滅し、n−1ビットがバレルシフタ11
からセレクタ4へビット0ないしビットn−2として出
力される。このときバレルシフタ11からセレクタ4への
最上位ビットn−1は、当該バレルシフタ11に入力され
ている最上位ビットN−11と同じ数がそのまま送出され
ている。
If the distance data of N bits is input to the barrel shifter 11, the distance value of the N bits are divided by a predetermined number K = 2 alpha,
3 and 4, the α bit out of the N bits disappears and the (n−1) bit is replaced by the barrel shifter 11 in FIGS.
Are output to the selector 4 as bits 0 to n-2. At this time, as the most significant bit n-1 from the barrel shifter 11 to the selector 4, the same number as the most significant bit N-11 input to the barrel shifter 11 is transmitted as it is.

また当該セレクタ4には上記の置換データ発生器3で
説明した様に、Nビットの距離データの最上位ビットN
−1の数に応じたn−1ビットで表わされる正の最大値
又は負の最小値が符号ビットn−1と共に入力されてい
る。
Further, as described in the replacement data generator 3, the most significant bit N of the N-bit distance data is stored in the selector 4.
A positive maximum value or a negative minimum value represented by n-1 bits corresponding to the number of -1 is input together with the sign bit n-1.

一方、オーバフロー/アンダフロー検出回路2のプラ
イオリティエンコーダ12はビットNと同じ値の連続数m
を検出しており、比較器13は当該プライオリティエンコ
ーダ12で検出された連続数mとALU15で演算されたN−
(n−1)−αとを比較している。このALU15で演算さ
れたN−(n−1)−αは、バレルシフタ11に入力され
たNビットの距離データを所定の数K=2αで割って得
られたビットN−αからセレクタ4へ送出している下位
n−1ビットを引いた上位のビット数を表わしている。
On the other hand, the priority encoder 12 of the overflow / underflow detection circuit 2 has a continuous number m of the same value as the bit N.
, And the comparator 13 calculates the number of continuations m detected by the priority encoder 12 and the N− calculated by the ALU 15.
(N-1) -α. Computed N- (n-1) -α This ALU15 from bit N-alpha obtained by dividing the distance data of N bits input to the barrel shifter 11 by a predetermined number K = 2 alpha to the selector 4 It represents the number of upper bits minus the lower n-1 bits being transmitted.

そこで比較器13で比較されるmとN−(n−1)−α
との比較において、式(2)で示される関係にあるとき
には、第3図に示された様にバレルシフタ11からセレク
タ4へ送出されているn−1ビットの中に有効な距離値
のビット(斜線が施されている)が現われることを示し
ている。逆にN−(n−1)−αのビットには有効な距
離値のビットが現われないことを意味している。
Then, m and N− (n−1) −α are compared by the comparator 13.
When the relationship shown in the equation (2) is satisfied, the effective distance value bits (n-1 bits) transmitted from the barrel shifter 11 to the selector 4 as shown in FIG. (Hatched). Conversely, it means that no effective distance value bit appears in the bit of N- (n-1) -α.

従ってこの場合は、認識文字と辞書内の文字との距離
がn−1ビットで表現され得ることを示しており、比較
器13からフローが出力されず、バレルシフタ11からセレ
クタ4へ送出されているnビット(ビットn−1は符号
ビット)がそのままセレクタ4を通り、そのnビットが
セレクタ4から出力される。
Therefore, in this case, it indicates that the distance between the recognized character and the character in the dictionary can be represented by n-1 bits, and the flow is not output from the comparator 13 but transmitted from the barrel shifter 11 to the selector 4. The n bits (bit n−1 is a sign bit) pass through the selector 4 as it is, and the n bits are output from the selector 4.

また式(3)で示される関係にあるときには、第4図
に示された様にバレルシフタ11からセレクタ4へ送出さ
れない上位のN−(n−1)−αビットの中に有効な距
離値のビット(斜線が施されている)が現われることを
示している。
In addition, when the relationship is expressed by the equation (3), as shown in FIG. 4, the effective N- (n-1) -α bits which are not transmitted from the barrel shifter 11 to the selector 4 Bits (shaded) appear.

従ってこの場合は、認識文字と辞書内の文字との距離
がn−1ビットで表現される最大値より更に離れている
ことを示しており、比較器13からフローが出力され、セ
レクタ4は置換データの発生器3から発生しているnビ
ット(ビットn−1は符号ビット)を出力させる。
Therefore, in this case, it indicates that the distance between the recognized character and the character in the dictionary is farther than the maximum value represented by n-1 bits, the comparator 13 outputs a flow, and the selector 4 The n bits (bit n-1 is a sign bit) generated from the data generator 3 are output.

つまり式(3)の場合は認識文字との距離が離れすぎ
ており、候補文字とはなり得ないので、n−1ビットで
表現される最大値(ビットn−1が正の場合)又は最小
値(ビットn−1が負の場合)に置き替えても、候補文
字の選出に当って何ら影響もないことを意味している。
That is, in the case of Expression (3), since the distance from the recognition character is too large and cannot be a candidate character, the maximum value represented by n-1 bits (when bit n-1 is positive) or the minimum value This means that the replacement with a value (when bit n-1 is negative) has no effect on the selection of candidate characters.

なお、オーバフロー/アンダフロー検出器2内のプラ
イオリティエンコーダ12はNビットの距離データを受
け、その最上位ビットN−1、すなわち符号ビットの値
と異なる値を最上位ビットN−1側から探し出し、その
異なる値のビット位置の1つ前までの数、つまり最上位
ビットN−1と同じ値が連続する数mを用いたが、符号
ビットの値と異なる値を最上位ビットN−1側から探し
出し、その異なる値のビット位置の数をmとしてもよ
い。この場合は比較器13から m>N−(n−1)−α ………(4) のときフローの信号を出さず、セレクタ4をバレルシフ
タ11側に選択させ、 m≦N−(n−1)−α ………(5) のときフローの信号を出し、セレクタ4を置換データ発
生器3側に選択させるようにする。
The priority encoder 12 in the overflow / underflow detector 2 receives the N-bit distance data and searches the most significant bit N-1, that is, a value different from the value of the sign bit, from the most significant bit N-1. The number up to one bit before the bit position of the different value, that is, a number m in which the same value as the most significant bit N-1 is used, is used. The number of bit positions of the different values that are found may be m. In this case, the comparator 13 does not output a flow signal when m> N− (n−1) −α (4), and causes the selector 4 to be selected by the barrel shifter 11, so that m ≦ N− (n− 1) -α (5) A signal of a flow is issued to make the selector 4 select the replacement data generator 3 side.

前者の場合、プライオリティエンコーダ12から比較器
13へ出力される数mが後者の場合に比べ1だけ少くなる
ので、ビット数が少なくてすむ場合が発生し、第2図で
示された回路の規模が小さくてすむことがある。
In the former case, the priority encoder 12 sends the comparator
Since the number m output to 13 is smaller by 1 than the latter case, there may be a case where the number of bits may be small, and the scale of the circuit shown in FIG. 2 may be small.

この様にオーバフロー/アンダフロー検出器2は第2
図図示の構成のものに限られるものではなく、入力され
るNビットの距離データを所定の数Kで割って得られた
数についてnビット以上のビットに有効な距離データが
存在するとき、フローを出し、セレクタ4を置換データ
発生器3側へ切替える回路であれば、どの様な構成のも
のでもよい。
As described above, the overflow / underflow detector 2 is the second
The present invention is not limited to the configuration shown in the figure, and when there is valid distance data in n bits or more of the number obtained by dividing the input N-bit distance data by a predetermined number K, the flow And any configuration may be used as long as the circuit switches the selector 4 to the replacement data generator 3 side.

またバレルシフタ11から出力される最上位のビットn
−1に替え、置換データ発生器3の最上位ビットn−1
を用いる構成にしてもよい。
The most significant bit n output from the barrel shifter 11
-1, the most significant bit n-1 of the replacement data generator 3
May be used.

〔発明の効果〕〔The invention's effect〕

以上説明した如く、本発明によれば、Nビットの距離
データをn(n<N)ビットの距離データに置換するこ
とができ、回路規模を小さくすることができ、また認識
文字の照合処理を高速化することができる。
As described above, according to the present invention, N-bit distance data can be replaced with n (n <N) -bit distance data, the circuit scale can be reduced, and the recognition character collating process can be performed. Speed can be increased.

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

第1図(I)は本発明の基本構成図、第1図(II)はビ
ット幅減縮器のビット減縮説明図、第2図は本発明の一
実施例構成、第3図,第4図はオーバフロー/アンダフ
ロー検出器のフローが出力されることを説明するフロー
出力説明図である。 図中、1はビット幅減縮器、2はオーバフロー/アンダ
フロー検出器、3は置換データ発生器、4はセレクタ、
11はバレルシフタ、12はプライオリティエンコーダ、13
は比較器、14はインバータ、15はALU、16はインバータ
である。
FIG. 1 (I) is a basic configuration diagram of the present invention, FIG. 1 (II) is a diagram for explaining bit reduction of a bit width reducer, FIG. 2 is a configuration of an embodiment of the present invention, FIG. 3 and FIG. FIG. 7 is a flow output explanatory diagram for explaining that a flow of an overflow / underflow detector is output. In the figure, 1 is a bit width reducer, 2 is an overflow / underflow detector, 3 is a replacement data generator, 4 is a selector,
11 is a barrel shifter, 12 is a priority encoder, 13
Is a comparator, 14 is an inverter, 15 is an ALU, and 16 is an inverter.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】認識すべき文字の特徴データと辞書内の各
文字ごとの特徴データとに基づいてした距離計算で得た
Nビットで表現された距離データを縮小したn(n<
N)ビットで表現するようにした文字認識装置における
距離値の変換回路であって、 前記Nビットで表現された距離データを所定の数K(=
α)で割って得られた数の下位n−1ビットと符号ビ
ットとのnビットを出力するビット幅減縮器(1)と、 前記Nビットで表現された距離データを所定の数Kで割
って得られた数についてnビット以上のビットに有効な
距離データの存否を検出するオーバフロー/アンダフロ
ー検出器(2)と、 前記ビット幅減縮器の出力と同じnビットで特定のデー
タを発生させる置換データ発生器(3)と、 前記オーバフロー/アンダフロー検出器が、フローを出
力したとき前記置換データ発生器のnビットの発生デー
タを出力させ、フローを出力しなかったとき前記ビット
幅減縮器のnビットのデータを出力させるセレクタ
(4)とを備えた文字認識装置における距離値の変換回
路。
1. A method of reducing distance data represented by N bits obtained by distance calculation based on characteristic data of a character to be recognized and characteristic data of each character in a dictionary, n (n <n
A distance value conversion circuit in a character recognition device that is represented by N) bits, wherein the distance data represented by N bits is converted into a predetermined number K (=
2 α ), a bit width reducer (1) that outputs n bits of the lower n−1 bits and the sign bit of the number obtained by dividing the distance data expressed by the N bits by a predetermined number K An overflow / underflow detector (2) for detecting the presence or absence of valid distance data for n bits or more of the number obtained by dividing the number, and generating specific data with the same n bits as the output of the bit width reducer A replacement data generator (3) for causing the overflow / underflow detector to output n-bit data generated by the replacement data generator when a flow is output, and to reduce the bit width when no flow is output. And a selector (4) for outputting n-bit data of the device.
JP1273813A 1989-10-23 1989-10-23 Conversion circuit of distance value in character recognition device Expired - Lifetime JP2881318B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1273813A JP2881318B2 (en) 1989-10-23 1989-10-23 Conversion circuit of distance value in character recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1273813A JP2881318B2 (en) 1989-10-23 1989-10-23 Conversion circuit of distance value in character recognition device

Publications (2)

Publication Number Publication Date
JPH03136185A JPH03136185A (en) 1991-06-10
JP2881318B2 true JP2881318B2 (en) 1999-04-12

Family

ID=17532920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1273813A Expired - Lifetime JP2881318B2 (en) 1989-10-23 1989-10-23 Conversion circuit of distance value in character recognition device

Country Status (1)

Country Link
JP (1) JP2881318B2 (en)

Also Published As

Publication number Publication date
JPH03136185A (en) 1991-06-10

Similar Documents

Publication Publication Date Title
JPH0644225B2 (en) Floating point rounding normalization circuit
US5282156A (en) Leading one anticipator and floating point addition/subtraction apparatus employing same
JP2001005643A (en) Power arithmetic unit
JPH0778725B2 (en) Modulo arithmetic unit
EP3798929A1 (en) Information processing apparatus, information processing method, and information processing program
JP2881318B2 (en) Conversion circuit of distance value in character recognition device
EP3716043A1 (en) Information processor, information processing method, and program
US4758975A (en) Data processor capable of processing floating point data with exponent part of fixed or variable length
JPH07234778A (en) Arithmetic circuit
JPH04291418A (en) Pre-processor for division circuit
JP6734938B2 (en) Neural network circuit
JPS5939774B2 (en) Exponential function calculation method
EP0660228B1 (en) An adaptation degree operation method and apparatus of membership function data
JPS59154542A (en) Multiplying device
SU881741A1 (en) Digital logarithmic converter
JP3245884B2 (en) Shift adder / subtractor
JP3074910B2 (en) Division device
JPH05274116A (en) Floating point arithmetic unit
JPH113210A (en) 3-input comparator, saturation arithmetic unit using the same and arithmetic method therefor
JP2797773B2 (en) Reciprocal arithmetic unit
JPH03100722A (en) Processing system for accuracy conversion instruction
JPS59136849A (en) Dividing device
JPH03102519A (en) Divider
JP3109080B2 (en) Word length limiting circuit
JPS6395535A (en) Arithmetic processing system