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
JPH07107699B2 - Character / figure recognition device - Google Patents
[go: Go Back, main page]

JPH07107699B2 - Character / figure recognition device - Google Patents

Character / figure recognition device

Info

Publication number
JPH07107699B2
JPH07107699B2 JP62192927A JP19292787A JPH07107699B2 JP H07107699 B2 JPH07107699 B2 JP H07107699B2 JP 62192927 A JP62192927 A JP 62192927A JP 19292787 A JP19292787 A JP 19292787A JP H07107699 B2 JPH07107699 B2 JP H07107699B2
Authority
JP
Japan
Prior art keywords
distance
reference pattern
calculation
feature
rank buffer
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
JP62192927A
Other languages
Japanese (ja)
Other versions
JPS6436386A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62192927A priority Critical patent/JPH07107699B2/en
Publication of JPS6436386A publication Critical patent/JPS6436386A/en
Publication of JPH07107699B2 publication Critical patent/JPH07107699B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 この発明は,文字図形認識装置に関するものであり,特
に,入力文字図形に最も類似した,複数の基準パターン
を候補として選出する大分類処理に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character / graphics recognizing device, and more particularly, to a large classification process for selecting a plurality of reference patterns that are most similar to an input character / graphics as candidates. is there.

従来の技術 従来,入力文字図形の特徴と,基準パターンの特徴との
距離により,入力文字図形と基準パターンの類似度を判
断する文字図形認識方式においては,入力文字図形特徴
と全基準パターン特徴との距離を計算し,求まった距離
を小さい順に順位付けし,類似度の順位を判断してい
る。従って,その距離計算に要する時間と,計算結果を
小さい順に並べ換える処理に要する時間が,文字図形認
識全処理に要する時間の中で,大きな割合を占めてい
る。
2. Description of the Related Art Conventionally, in a character / figure recognition method that determines the similarity between an input character / figure and a reference pattern based on the distance between the characteristics of the input character / figure and the characteristics of the reference pattern, the input character / figure feature and the total reference pattern feature are The distances are calculated, the obtained distances are ranked in ascending order, and the rank of similarity is judged. Therefore, the time required for the distance calculation and the time required for rearranging the calculation results in ascending order make up a large proportion of the time required for the entire character / graphics recognition processing.

そのため,距離計算処理の高速化を図るために,積和計
算を要するユークリッド距離に代えて,加減算のみで計
算されるシティブロック距離を採用したり,並べ換え処
理の高速化を図るために,高速並べ換えアルゴリズムを
採用するなどの工夫が払われている。
Therefore, in order to speed up the distance calculation process, instead of the Euclidean distance that requires the sum of products calculation, the city block distance calculated only by addition and subtraction is adopted, and in order to speed up the rearrangement process, high-speed rearrangement is performed. Ingenuity such as the adoption of algorithms has been paid.

発明が解決しようとする問題点 しかし,認識に影響するのは,入力文字図形との特徴間
距離の小さい,極一部の基準パターンのみであり,それ
以外の基準パターンについては,実際の距離の値が必要
なわけではなく,単に,距離が大きく,入力文字図形に
類似していないことさえ分かれば十分である。従って,
従来の方式は,必要のない基準パターンについても距離
計算を行っていたことになる。また,並べ換えの対象数
が少なければ,並べ換えに要する時間も大幅に減少する
のであるから,並べ換え処理の点でも,従来の方式は無
駄な処理を行っているといえる。
However, it is only the reference pattern of a very small part having a small feature-to-feature distance from the input character graphic that affects the recognition. It is not necessary to have a value, just to know that the distance is large and it does not resemble the input character graphic. Therefore,
In the conventional method, the distance was calculated even for unnecessary reference patterns. Further, since the time required for rearrangement is greatly reduced if the number of rearrangement targets is small, it can be said that the conventional method is wasteful in terms of rearrangement processing.

本発明は上記問題点に鑑み高速処理可能な文字認識装置
を提供することを目的とする。
The present invention has been made in view of the above problems, and an object thereof is to provide a character recognition device capable of high-speed processing.

問題点を解決するための手段 上記の問題点を解決するため,本発明の文字認識装置
は,距離算出部に,入力文字図形特徴と,個々の基準パ
ターン特徴とを順次比較し,距離計算を行う過程におい
て,求まった距離の内,小さいものから順に,一定個数
の距離を,その距離に対応する基準パターン識別子とペ
アにして格納しておく中間順位バッファと,ひとつの基
準パターンとの距離計算が終了し,計算結果が,前記中
間順位バッファに格納されている距離の最大値よりも小
さい場合に,該計算結果と対応する基準パターン識別子
とをペアにして,前記中間順位バッファに登録し,か
つ,前記中間順位バッファ内のデータを距離の小さい順
に並べ替える中間順位バッファ更新手段と,入力文字図
形特徴と,個々の基準パターン特徴との距離計算過程に
おいて,常に計算途中値と,前記中間順位バッファに格
納されている距離の最大値とを比較し,計算途中値が中
間順位バッファ内の距離の最大値以上になった時点で,
計算中の基準パターンとの距離計算を中断し,次の基準
パターンとの距離計算に移る距離計算手段とを備えたも
のである。
Means for Solving Problems In order to solve the above problems, the character recognition device of the present invention causes the distance calculation unit to sequentially compare the input character graphic feature and each reference pattern feature to calculate the distance. In the process of performing, a distance calculation is performed between one reference pattern and an intermediate rank buffer that stores a fixed number of distances in pairs in order from the smallest distance obtained and pairs with the reference pattern identifier corresponding to that distance. And the calculation result is smaller than the maximum value of the distance stored in the intermediate rank buffer, the calculation result and the corresponding reference pattern identifier are paired and registered in the intermediate rank buffer, Further, the intermediate rank buffer updating means for rearranging the data in the intermediate rank buffer in ascending order of distance, the distance calculation between the input character graphic feature and each reference pattern feature In the process, the mid-calculation value is always compared with the maximum value of the distance stored in the intermediate rank buffer, and when the mid-calculation value becomes equal to or larger than the maximum value of the distance in the intermediate rank buffer,
The distance calculation means interrupts the distance calculation with the reference pattern being calculated and moves to the distance calculation with the next reference pattern.

作用 入力文字図形特徴と個々の基準パターン特徴との距離計
算結果の内,距離の小さいものから一定個のみを中間順
位バッファに格納する。
Action Of the distance calculation results for the input character / graphic features and the individual reference pattern features, only a fixed number of them are stored in the intermediate rank buffer.

このため,距離を小さい順に並べ換える並べ換え操作
は,中間順位バッファ内の一定個を並べ換えるだけでよ
く,並べ換え処理に要する時間は大幅に削減される。ま
た,入力文字図形特徴と,個々の基準パターン特徴との
距離計算過程において,常に計算途中値と,中間順位バ
ッファに格納されている距離の最大値とを比較し,計算
途中値が中間順位バッファ内の距離の最大値以上になっ
た時点,即ち,以後距離計算を続けて,結果を得ても,
その結果が中間順位バッファに登録されず,従って,認
識結果に影響しないことが分かった時点で,計算中の基
準パターンとの距離計算を打ち切るため,距離計算にお
ける計算量が大幅に削減できることとなる。
Therefore, the rearrangement operation for rearranging the distances in ascending order only needs to rearrange a fixed number in the intermediate rank buffer, and the time required for the rearrangement processing is greatly reduced. In addition, in the process of calculating the distance between the input character / graphic feature and each reference pattern feature, the mid-calculation value is always compared with the maximum value of the distance stored in the middle rank buffer, and the middle calculation value At the time when it becomes more than the maximum value of the distance inside, that is, even if the distance calculation is continued and the result is obtained,
Since the result is not registered in the intermediate rank buffer, and therefore it is found that it does not affect the recognition result, the distance calculation with the reference pattern being calculated is terminated, so the calculation amount in the distance calculation can be greatly reduced. .

実施例 本発明の実施例を図を用いて説明する。図は,文字図形
認識装置の距離算出部の構成図である。
Example An example of the present invention will be described with reference to the drawings. The figure is a block diagram of a distance calculation unit of the character / graphic recognition device.

距離算出部1は,各基準パターンの特徴を格納した基準
パターン特徴辞書2,基準パターン特徴辞書2に格納され
た個々の基準パターンの特徴と,入力文字図形の特徴と
の距離を計算する距離計算部3,計算の終了した距離の
内,距離の小さいものからn個,即ち,上記n位の距離
値およびその距離に対応する基準パターンの識別子を格
納する中間順位バッファ4,および,計算結果の距離を,
対応する基準パターンの識別子とともに,中間順位バッ
ファ4に登録する中間順位バッファ更新部5とから構成
される。
The distance calculation unit 1 calculates a distance between the reference pattern feature dictionary 2 storing the features of each reference pattern and the features of the individual reference patterns stored in the reference pattern feature dictionary 2 and the features of the input character graphic. Part 3, n of the distances from which the calculation has been completed, from the smallest distance, that is, the intermediate rank buffer 4 that stores the distance value of the nth position and the identifier of the reference pattern corresponding to that distance, and the calculation result Distance
It is composed of an intermediate rank buffer updating unit 5 registered in the intermediate rank buffer 4 together with the identifier of the corresponding reference pattern.

また,距離計算部3は,距離計算の途中の値を,常時,
格納しておく中間値レジスタ6,および,中間値レジスタ
6の内容と,中間順位バッファ4に格納されている距離
の最大値9との大小比較を行う,比較部7を備える。
Further, the distance calculation unit 3 always calculates the value in the middle of the distance calculation as
An intermediate value register 6 to be stored, and a comparing section 7 for comparing the contents of the intermediate value register 6 with the maximum value 9 of the distance stored in the intermediate rank buffer 4 are compared.

初期状態において,中間順位バッファ4の初期値は,十
分大きな距離値および“空”を示す識別子であり,中間
値レジスタ6の値は0である。
In the initial state, the initial value of the intermediate rank buffer 4 is an identifier indicating a sufficiently large distance value and "empty", and the value of the intermediate value register 6 is 0.

距離算出部1は,文字図形認識装置に入力された文字あ
るいは図形から所定の法則に従って抽出された特徴8を
入力とする。特徴は,N次元ベクタで表される。また,基
準パターン特徴辞書2には,各基準パターンの特徴が入
力特徴8と同様に,N次元ベクタとして格納されている。
The distance calculation unit 1 receives a feature 8 extracted from a character or graphic input to the character / graphics recognition device according to a predetermined rule. Features are represented by N-dimensional vectors. Further, the reference pattern feature dictionary 2 stores the features of each reference pattern as an N-dimensional vector like the input features 8.

なお,ここでは,次のように距離を定義する。Here, the distance is defined as follows.

入力特徴ベクタを (f0,f1,・・・,fN-1), k番めの辞書データを とするとき, 距離 ただし,シティブロック距離や,別の定義による距離を
用いても何ら問題はない。
The input feature vector is (f 0 , f 1 , ..., f N-1 ), and the kth dictionary data is And the distance However, there is no problem using the city block distance or the distance defined by another definition.

距離算出部1の動作を,第1図に従って説明する。距離
算出部1に入力された入力特徴8は,距離計算部3に送
られる。距離計算部3は,基準パターン特徴辞書2から
最初の基準パターンの特徴ベクタを読み出し,特徴ベク
タの各要素毎に入力特徴との差を取り,その差の自乗値
を中間値レジスタ6に順次足し込む。比較部7は,中間
値レジスタ6に値が足し込まれるたびに,中間値レジス
タ6の値と,中間順位バッファ4内に格納された距離の
最大値9との比較を行う。
The operation of the distance calculator 1 will be described with reference to FIG. The input feature 8 input to the distance calculation unit 1 is sent to the distance calculation unit 3. The distance calculation unit 3 reads the feature vector of the first reference pattern from the reference pattern feature dictionary 2, takes the difference from the input feature for each element of the feature vector, and sequentially adds the squared value of the difference to the intermediate value register 6. Put in. The comparing unit 7 compares the value of the intermediate value register 6 with the maximum value 9 of the distance stored in the intermediate rank buffer 4 each time a value is added to the intermediate value register 6.

比較の結果,中間値レジスタ6の値が,中間順位バッフ
ァの距離の最大値9より小さければ,距離計算部3は距
離計算を続行する,即ち,同じ基準パターンの次の要素
について上記の処理を繰り返す。
As a result of the comparison, if the value of the intermediate value register 6 is smaller than the maximum value 9 of the distance of the intermediate rank buffer, the distance calculation unit 3 continues the distance calculation, that is, the above processing is performed for the next element of the same reference pattern. repeat.

比較部7における比較の結果,中間値レジスタ6の値
が,中間順位バッファの距離の最大値9以上であれば,
距離計算部3は,計算中の基準パターンとの距離計算を
打切り,次の基準パターンを読み出す。同時に,中間値
レジスタ6を0にリセットする。その後,新しく読み出
した基準パターンについて,同様の処理を繰り返す。
As a result of the comparison in the comparison unit 7, if the value of the intermediate value register 6 is equal to or greater than the maximum value 9 of the intermediate rank buffer distance,
The distance calculation unit 3 terminates the distance calculation with the reference pattern being calculated and reads the next reference pattern. At the same time, the intermediate value register 6 is reset to 0. After that, the same processing is repeated for the newly read reference pattern.

距離計算が,途中で打切られることなく終了した場合,
即ち,N次元ベクタの総ての要素について,基準パターン
特徴と入力特徴との差の自乗和を計算し終った場合,距
離計算部3は,計算結果の距離と対応する基準パターン
識別子をペアにして,中間順位バッファ更新部5へ出力
する。その後,中間値レジスタ6を0にリセットすると
ともに,次の基準パターンを読み出す。以後,新しく読
み出した基準パターンについて,同様の処理を繰り返
す。
If the distance calculation ends without being cut off,
That is, when the square sum of the differences between the reference pattern features and the input features has been calculated for all the elements of the N-dimensional vector, the distance calculation unit 3 pairs the reference pattern identifiers corresponding to the distances of the calculation results. And outputs it to the intermediate rank buffer updating unit 5. After that, the intermediate value register 6 is reset to 0 and the next reference pattern is read. After that, the same processing is repeated for the newly read reference pattern.

距離の値と基準パターン識別子とを受け取った中間順位
バッファ更新部5は,それらを新たに,中間順位バッフ
ァ4に登録するとともに,中間順位バッファ4の内容
を,距離の小さい順に並べ換える。
The intermediate rank buffer updating unit 5, which has received the distance value and the reference pattern identifier, newly registers them in the intermediate rank buffer 4, and rearranges the contents of the intermediate rank buffer 4 in ascending order of distance.

距離計算部3が,基準パターン特徴辞書2内の総ての基
準パターンについて,処理を完了した時点で,中間順位
バッファ4の内容は,入力特徴と全基準パターンとの距
離の内,小さいものからn個の距離とその距離に対応す
る基準パターン識別子とを,距離の小さい順に並べたも
のになっており,それが,そのまま,距離算出部1の出
力10となる。
When the distance calculation unit 3 completes the processing for all the reference patterns in the reference pattern feature dictionary 2, the contents of the intermediate rank buffer 4 start from the smallest distance between the input features and all the reference patterns. The n distances and the reference pattern identifiers corresponding to the distances are arranged in ascending order of the distance, which is the output 10 of the distance calculation unit 1 as it is.

発明の効果 以上述べたように,本発明により,文字図形認識装置に
おいて,処理時間の大きな割合を占める距離計算部での
計算量を大幅に削減することができる。その結果,高速
な文字図形認識装置を実現でき,実用上極めて有用であ
る。
EFFECTS OF THE INVENTION As described above, according to the present invention, the calculation amount in the distance calculation unit, which occupies a large proportion of the processing time, can be significantly reduced in the character / graphic recognition apparatus. As a result, a high-speed character and figure recognition device can be realized, which is extremely useful in practice.

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

図は本発明の一実施例の文字図形認識装置距離算出部の
構成図である。 1……距離算出部,2……基準パターン特徴辞書,3……距
離計算部,4……中間順位バッファ,5……中間順位バッフ
ァ更新部,6……中間値レジスタ,7……比較部。
FIG. 1 is a block diagram of a distance calculation unit for a character / graphics recognition device according to an embodiment of the present invention. 1 ... distance calculator, 2 ... reference pattern feature dictionary, 3 ... distance calculator, 4 ... intermediate rank buffer, 5 ... intermediate rank buffer updater, 6 ... intermediate value register, 7 ... comparator .

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】入力文字図形から,所定の法則に従って抽
出された特徴と,認識対象文字図形の複数の基準パター
ンから,同じ法則により抽出された特徴との距離を計算
し,入力文字図形との特徴間距離の小さい基準パターン
を候補文字図形とするものであって,入力文字図形と複
数の基準パターンとの特徴間距離を順次計算し,距離の
小さい順に順位付けする距離算出部を備え,前記距離算
出部は,入力文字図形特徴と,個々の基準パターン特徴
とを順次比較し,距離計算を行う過程において,求まっ
た距離の内,小さいものから順に,一定個数の距離を,
その距離に対応する基準パターン識別子とペアにして格
納しておく中間順位バッファと,ひとつの基準パターン
との距離計算が終了し,計算結果が,前記中間順位バッ
ファに格納されている距離の最大値よりも小さい場合
に,該計算結果と対応する基準パターンに識別子とをペ
アにして,前記中間順位バッファに登録し,かつ,前記
中間順位バッファ内のデータを距離の小さい順に並べ替
える中間順位バッファ更新手段と,入力文字図形特徴
と,個々の基準パターン特徴との距離計算過程におい
て,常に計算途中値と,前記中間順位バッファに格納さ
れている距離の最大値とを比較し,計算途中値が中間順
位バッファ内の距離の最大値以上になった時点で,計算
中の基準パターンとの距離計算を中断し,次の基準パタ
ーンとの距離計算に移る距離計算手段とを備えることを
特徴とする文字図形認識装置。
1. A distance between a feature extracted from an input character graphic according to a predetermined rule and a feature extracted according to the same rule from a plurality of reference patterns of a recognition target character graphic is calculated, A reference pattern having a small inter-feature distance is used as a candidate character graphic, and a distance calculation unit is provided that sequentially calculates inter-feature distances between an input character graphic and a plurality of reference patterns and ranks them in ascending order of distance. The distance calculation unit sequentially compares the input character graphic features and the individual reference pattern features, and in the process of calculating the distance, a small number of the obtained distances are calculated in order from the smallest distance.
The calculation of the distance between one reference pattern and the intermediate rank buffer that is stored as a pair with the reference pattern identifier corresponding to the distance is completed, and the calculation result is the maximum value of the distance stored in the intermediate rank buffer. If it is smaller than the above, the reference pattern corresponding to the calculation result is paired with the identifier, registered in the intermediate rank buffer, and the data in the intermediate rank buffer is rearranged in ascending order of distance. In the process of calculating the distance between the means, the input character graphic feature, and the individual reference pattern feature, the midway calculation value is always compared with the maximum value of the distance stored in the intermediate rank buffer, and the midway calculation value is the intermediate value. When the distance in the rank buffer exceeds the maximum value, the distance calculation with the reference pattern being calculated is stopped and the distance calculation with the next reference pattern is started. Character graphic recognition device, characterized in that it comprises a release calculation means.
JP62192927A 1987-07-31 1987-07-31 Character / figure recognition device Expired - Lifetime JPH07107699B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62192927A JPH07107699B2 (en) 1987-07-31 1987-07-31 Character / figure recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62192927A JPH07107699B2 (en) 1987-07-31 1987-07-31 Character / figure recognition device

Publications (2)

Publication Number Publication Date
JPS6436386A JPS6436386A (en) 1989-02-07
JPH07107699B2 true JPH07107699B2 (en) 1995-11-15

Family

ID=16299304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62192927A Expired - Lifetime JPH07107699B2 (en) 1987-07-31 1987-07-31 Character / figure recognition device

Country Status (1)

Country Link
JP (1) JPH07107699B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2684818B2 (en) * 1990-05-11 1997-12-03 日本電気株式会社 Distance value calculation / extraction circuit in character recognition device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56101277A (en) * 1980-01-16 1981-08-13 Matsushita Electric Ind Co Ltd Calculator for pattern distance
JPH0685190B2 (en) * 1986-01-20 1994-10-26 株式会社リコー Dictionary search method for character recognition device

Also Published As

Publication number Publication date
JPS6436386A (en) 1989-02-07

Similar Documents

Publication Publication Date Title
JP3105967B2 (en) Character recognition method and device
JP2710062B2 (en) Output candidate number determination method
US6131092A (en) System and method for identifying matches of query patterns to document text in a document textbase
KR102092263B1 (en) How to find K poles within a certain processing time
US20020039446A1 (en) Pattern recognition based on piecewise linear probability density function
JP2000512046A (en) Method and apparatus for statistically based pattern identification
JP4194680B2 (en) Data processing apparatus and method, and storage medium storing the program
JPH07107699B2 (en) Character / figure recognition device
JP3537949B2 (en) Pattern recognition apparatus and dictionary correction method in the apparatus
US11636173B2 (en) Method for candidate selection and accelerator for performing candidate selection
US6338060B1 (en) Data processing apparatus and method for outputting data on the basis of similarity
JPH01277977A (en) Pattern collating device
JPH06259602A (en) Candidate character extraction device
JP3161107B2 (en) Character recognition device
JPH04102969A (en) Method for storing data in data base
JPH0321948B2 (en)
JPH06290272A (en) High-speed matching system
JPH0326877B2 (en)
JPH01175688A (en) Character recognition device
JP3754118B2 (en) Pattern recognition apparatus and pattern recognition method
JPH07121665A (en) Compiling method and retrieving method for character recognition dictionary
JP2002318818A (en) Data processing apparatus and method, and program therefor
JPH07117992B2 (en) Character recognition method
JPH04161998A (en) Similar word recognition processing device in speech recognition system
Chen Static and Dynamic Convex Hull Algorithms

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071115

Year of fee payment: 12