JPH0147834B2 - - Google Patents
Info
- Publication number
- JPH0147834B2 JPH0147834B2 JP57004927A JP492782A JPH0147834B2 JP H0147834 B2 JPH0147834 B2 JP H0147834B2 JP 57004927 A JP57004927 A JP 57004927A JP 492782 A JP492782 A JP 492782A JP H0147834 B2 JPH0147834 B2 JP H0147834B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- pattern
- feature
- blur
- complexity
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Character Input (AREA)
- Character Discrimination (AREA)
Description
本発明は、入力文字パターンの特定方向のスト
ロークをあらわす各サブパターンにおける各文字
枠分割単位領域毎の黒ビツト和を文字線幅と各サ
ブパターンに対応した文字枠の大きさとで正規化
して特徴要素を抽出し、入力文字パターンの複雑
度に応じて入力文字パターンの前記各特徴要素を
その隣接要素で加重平均することによつてぼかし
処理を施し、そのぼかし処理に対応した辞書を参
照して文字を認識する文字認識方式に関する。
文字認識方式の1形式として下記の式であらわ
される量を特徴要素F(k、i、j)とする特徴
マトリツクスを作成し、同様の形式であらわされ
た標準文字マスクとの類似度を測定して文字を認
識する文字認識方式がある。
F(k、i、j)=Bk(i、j)/WL・WPk
WLは入力文字パターンの文字線幅をあらわ
す。WPkはWPh、WPv、WPr、WPl等をあらわ
し、例えばWPhは水平方向の文字枠の大きさで
あり、以下同様にWPv、WPr、WPlはそれぞれ
垂直方向、右斜め45度方向、左斜め45度方向の文
字枠の大きさである。Bk(i、j)はBh(i、
j)、Bv(i、j)、Br(i、j)、Bl(i、j)等
をあらわし、例えばBh(i、j)は水平サブパタ
ーンHSPの分割単位領域(i、j)における黒
ビツトの和であり、iは文字枠のX軸方向の分割
単位領域の番号であり、jは文字枠のY軸方向の
分割単位領域の番号である。以下同様にBv(i、
j)、Br(i、j)、Bl(i、j)はそれぞれ垂直
サブパターンVSP、右斜め45度サブパターン
RSP、左斜め45度サブパターンLSPの分割単位
領域(i、j)における黒ビツト和である。
この方式の一般的傾向として、個人差による文
字のストロークの位置変動の影響を受け易く、各
特徴要素をその隣接要素で加重平均してストロー
クの位置変動を吸収することによつて認識率は向
上する。
他方また、複雑な字形の文字ほどストロークの
位置変動の影響が少なく、簡単な文字ほどストロ
ーク位置変動の影響を受け易い。例えば、文字枠
をX軸、Y軸各方向ともに7分割する分割形式で
特徴マトリツクスを作成した場合、3画程度の画
数の文字は1/5程度の荷重の隣接要素で平均化す
ることによつて高い認識率が得られ、12画程度の
ものは1/6程度の荷重で、16画程度のものは1/7程
度の荷重で平均化することによつて高い認識率が
得られる。
本発明はこのような着眼点に基づき、入力文字
パターンのサブパターンの黒ビツト和を文字線幅
とストローク方向の文字枠の大きさとで正規化し
た量の総和又は各サブパターンのストローク数の
総和を複雑度として検出し、この複雑度に従つて
ぼかし係数を決定して、入力文字パターンの特徴
マトリツクスの特徴要素にぼかし処理を施し、ぼ
かし係数に応じた辞書を参照して文字認識を行わ
せるようにしたもので、その目的は安定で精度の
良い文字認識を行うことにある。
第1図は、本発明による文字認識装置の一実施
例を示したものである。以下第1図に基づいて詳
細に説明する。
1は帳票からの光入力である。この光入力1は
光電変換部2に入力される。光電変換部2は1つ
の文字予定領域を128×128の画素へ分解し、各画
素を2値のデイジタル信号(以下これを入力文字
パターンと呼ぶ)へ変換するものであり、平均的
大きさの1文字は60×60ビツト程度の入力文字パ
ターンで表現される。パターンレジスタ3は文字
予定領域における各画素のX、Y座標を再現でき
る形式で入力文字パターンを記憶するものであ
り、文字予定領域に対応して128×128ビツトの容
量を有するものである。文字線幅計算部4は周知
のフイルタ回路と同様にシフトレジスタ構成とな
つており、入力文字パターンを受けて2×2段の
シフトレジスタ窓のすべての画素が黒ビツトとな
る状態の個数Qと入力文字パターンの黒ビツト和
Aを計数し、下記に示す周知式で線幅WLを算出
する。
WL=A/A−Q
文字枠検出部5は文字の外接枠をそのパターン
レジスタにおける左端座標Xl、右端座標Xr、上
端座標Yt、下端座標Ybで表現して検出し、更に
文字枠の大きさを検出するものである。文字枠の
大きさは水平方向の大きさとしてWPh=Xr−Xl
+1、垂直方向の大きさとしてWPv=Yt−Yb+
1、として検出される。右斜め45度方向及び左斜
め45度方向の大きさとして
WPr=WPl=WPh+WPv/2
として検出する。サブパターン抽出部6は入力文
字パターンと線幅WLとに基づいて水平、垂直、
右斜め、左斜め、の各方向のストロークをあらわ
すサブパターンHSP、VSP、RSP、LSPを抽出
するものであり、各方向に対応した線幅より十分
長く連続する黒ビツトを抽出することにより行
う。例えばサブパターンHSPはパターンレジス
タ3の全面を水平に走査し、各走査線毎に黒ビツ
トの連続する個数を検出し、その長さが2WLよ
り大きい黒ビツトを抽出することにより水平スト
ロークからなる水平サブパターンを抽出する。同
様に、垂直、右斜め、左斜めの各サブパターンは
パターンレジスタ3をそれぞれ垂直方向、右斜め
方向、左斜め方向へ走査することにより抽出す
る。
このように抽出されたサブパターンの一例を第
2図に示しており、第2図のORGは入力文字パ
ターン、HSPは水平サブパターン、VSPは垂直
サブパターン、RSPは右斜めサブパターン、
LSPは左斜めサブパターンである。
文字枠分割決定部7は、分割形式によつて決定
されるX軸、Y軸各方向の分割数NX、NYと、
文字枠座標Xl、Xr、Yt、Ybと、入力文字パター
ンORGとを受けて、X軸、Y軸夫々に投影され
た入力文字パターンORGの黒ビツト数分布を対
象として、予め設定された最大の分割数よりも十
分大きい個数の重心座標の夫々の系列を求め、分
割数NX、NYに対応してほぼ均等個数おきの重
心座標を選択することによつて夫々(NX−1)、
(NY−1)個の分割座標を決定する。
例えばX軸の重心座標系列X(Mi)(但しMiは
重心番号でi=1〜15)の検出は入力文字パター
ンをX軸に投影して黒ビツト数分布を求め、まず
最初はX軸に関する文字枠の範囲Xl〜Xrを対象
として重心座標X(Mp)を求め、次いで、前段
までに求められた重心座標系列によつてX軸に関
する文字枠の範囲Xl〜Xrを分割して夫々の範囲
を対象として重心座標を求める過程を3回繰返す
ことによつて他の14個の重心座標X(M1)〜X
(M7)、X(M9)〜X(M15)を検出する。このよ
うにして求めた15個の重心座標を分割座標の候補
点として予め用意しておいた下記テーブルに基づ
いてX軸の各分割区間がほぼ均等個数の重心を含
むように対応づけて決定する。
The present invention is characterized by normalizing the sum of black bits for each character frame division unit area in each subpattern representing a stroke in a specific direction of an input character pattern by the character line width and the size of the character frame corresponding to each subpattern. Extract the elements, perform a blurring process by weighted averaging each feature element of the input character pattern with its adjacent elements according to the complexity of the input character pattern, and refer to a dictionary corresponding to the blurring process. Concerning character recognition methods for recognizing characters. As a form of character recognition method, we create a feature matrix whose feature elements F (k, i, j) are the quantities expressed by the following formula, and measure the similarity with a standard character mask expressed in the same format. There is a character recognition method that recognizes characters. F(k, i, j)=Bk(i, j)/WL·WPk WL represents the character line width of the input character pattern. WPk represents WPh, WPv, WPr, WPl, etc. For example, WPh is the size of the character frame in the horizontal direction, and similarly, WPv, WPr, and WPl are the vertical direction, 45 degrees diagonally to the right, and 45 degrees diagonally to the left, respectively. The size of the character frame in the direction. Bk(i, j) is Bh(i,
j), Bv (i, j), Br (i, j), Bl (i, j), etc., for example, Bh (i, j) is the black color in the divided unit area (i, j) of the horizontal sub-pattern HSP. It is the sum of bits, where i is the number of the divided unit area of the character frame in the X-axis direction, and j is the number of the divided unit area of the character frame in the Y-axis direction. Similarly, Bv(i,
j), Br (i, j), and Bl (i, j) are vertical subpattern VSP and right diagonal 45 degree subpattern, respectively.
RSP is the sum of black bits in the divided unit area (i, j) of the 45-degree left diagonal sub-pattern LSP. The general tendency of this method is that it is easily affected by variations in the stroke position of characters due to individual differences, and the recognition rate improves by absorbing variations in the stroke position by weighting and averaging each feature element with its adjacent elements. do. On the other hand, characters with more complex shapes are less affected by stroke position fluctuations, and simpler characters are more susceptible to stroke position fluctuations. For example, if a feature matrix is created by dividing a character frame into seven parts in each direction of the A high recognition rate can be obtained by averaging around 12 strokes with a weight of around 1/6, and averaging around 16 strokes with a weight of around 1/7. Based on this point of view, the present invention calculates the sum of black bits of sub-patterns of an input character pattern normalized by the character line width and the size of the character frame in the stroke direction, or the sum of the number of strokes of each sub-pattern. is detected as complexity, determines a blurring coefficient according to this complexity, performs blurring processing on the feature elements of the feature matrix of the input character pattern, and performs character recognition by referring to a dictionary according to the blurring coefficient. Its purpose is to perform stable and accurate character recognition. FIG. 1 shows an embodiment of a character recognition device according to the present invention. A detailed explanation will be given below based on FIG. 1. 1 is optical input from the form. This optical input 1 is input to a photoelectric conversion section 2. The photoelectric conversion unit 2 decomposes one character area into 128 x 128 pixels and converts each pixel into a binary digital signal (hereinafter referred to as input character pattern). One character is represented by an input character pattern of about 60 x 60 bits. The pattern register 3 stores the input character pattern in a format capable of reproducing the X and Y coordinates of each pixel in the expected character area, and has a capacity of 128×128 bits corresponding to the expected character area. The character line width calculation unit 4 has a shift register configuration similar to a well-known filter circuit, and receives an input character pattern and calculates the number Q of states in which all pixels in a 2×2 shift register window are black bits. The black bit sum A of the input character pattern is counted, and the line width WL is calculated using the well-known formula shown below. WL=A/A-Q The character frame detection unit 5 detects the circumscribed frame of the character by expressing it in the left end coordinate Xl, right end coordinate Xr, upper end coordinate Yt, and lower end coordinate Yb in the pattern register, and further determines the size of the character frame. This is to detect. The size of the character frame in the horizontal direction is WPh=Xr−Xl
+1, as vertical size WPv=Yt−Yb+
1, is detected. The size in the 45 degree right diagonal direction and the 45 degree diagonal left direction is detected as WPr=WPl=WPh+WPv/2. The sub-pattern extraction unit 6 extracts horizontal, vertical,
This method extracts subpatterns HSP, VSP, RSP, and LSP that represent strokes in each direction (right diagonal, left diagonal), and is performed by extracting continuous black bits that are sufficiently longer than the line width corresponding to each direction. For example, the sub-pattern HSP is created by horizontally scanning the entire surface of the pattern register 3, detecting the number of consecutive black bits for each scanning line, and extracting the black bits whose length is greater than 2WL. Extract subpatterns. Similarly, vertical, diagonal right, and diagonal left subpatterns are extracted by scanning the pattern register 3 in the vertical direction, diagonal right direction, and diagonal left direction, respectively. An example of subpatterns extracted in this way is shown in Figure 2, where ORG in Figure 2 is the input character pattern, HSP is the horizontal subpattern, VSP is the vertical subpattern, RSP is the right diagonal subpattern,
LSP is a left diagonal subpattern. The character frame division determining unit 7 determines the number of divisions NX, NY in each direction of the X-axis and Y-axis determined by the division format,
Based on the character frame coordinates Xl, Xr, Yt, Yb and the input character pattern ORG, a preset maximum By finding each series of barycenter coordinates in a number sufficiently larger than the number of divisions, and selecting the barycenter coordinates at approximately equal intervals corresponding to the number of divisions NX and NY, respectively (NX-1),
(NY-1) division coordinates are determined. For example, to detect the X-axis barycenter coordinate series X (Mi) (where Mi is the barycenter number and i = 1 to 15), the input character pattern is projected onto the X-axis to obtain the black bit number distribution, and the Find the barycentric coordinates X (Mp) for the range Xl to Xr of the character frame, and then divide the range Xl to Xr of the character frame on the By repeating the process of finding the center of gravity coordinates three times, the other 14 center of gravity coordinates X (M1) ~
(M7), X (M9) to X (M15) are detected. The 15 barycenter coordinates obtained in this way are determined as candidate points for dividing coordinates based on the table below prepared in advance so that each divided section of the X-axis includes an approximately equal number of barycenters. .
【表】
Y軸についても同様にして15個の重心座標Y
(M1)〜Y(M15)を求め、分割数に応じて前記
テーブルを参照して分割座標を決定する。
なお、分割形式は一旦リジエクトされた場合に
変更して設定したり、或いはまた、入力文字パタ
ーンの複雑度に応じて設定するものであるが、こ
こでは説明の簡略化のために、NX=NY=7な
る分割形式に設定されているものとした。
従つて、文字枠分割決定部7は、NX=NY=
7なる分割形式に対応してX軸方向の分割座標と
してX(M3)、X(M5)、X(M7)、X(M9)、X
(M11)、X(M13)を、Y軸方向の分割座標とし
てY(M3)、Y(M5)、Y(M7)、Y(M9)、Y
(M11)、Y(M13)を決定する。特徴マトリツク
ス抽出部8はサブパターンの分割形式に対応した
X軸方向の分割座標、両端座標Xl、X(M3)、X
(M5)、X(M7)、X(M9)、X(M11)、X(M13)、
Xrと、Y軸方向の分割座標、両端座標Yb、Y
(M3)、Y(M5)、Y(M7)、Y(M9)、Y(M11)、
Y(M13)、Yxと、各サブパターンHSP、VSP、
RSP、LSPと、各サブパターンに対応した文字
枠の大きさWPh、WPv、WPr、WPlと、文字線
幅WLとを受けて、各サブパターンを前記分割座
標からきまる複数の分割単位領域に分割して、各
分割単位領域毎の黒ビツト数Bk(i、j)を計数
し、下記の式で示すように線幅WLと各サブパタ
ーンに対応した文字枠の大きさWPh、WPv、
WPr、WPlとで正規化し、各サブパターンの分
割単位領域毎に特徴要素F(k、i、j)=
Bk(i、j)/WL・WPk(但し、k=h、v、r、l)
を抽
出し、特徴マトリツクスを作成する。
F(h、i、j)=Bh(i、j)/WL・WPh
F(v、i、j)=Bv(i、j)/WL・WPv
F(r、i、j)=Br(i、j)/WL・WPr
F(l、i、j)=Bl(i、j)/WL・WPl
各サブパターンの分割単位領域(i、j)毎の
黒ビツト和Bk(i、j)の算出は、分割単位領域
(i、j)に対応した分割座標で各サブパターン
を読み込み、黒ビツトの個数を加算することによ
つて行う。例えば特徴要素F(h、1、1)に対
応した黒ビツト和Bh(1、1)は分割単位領域
(1、1)に対応したX座標Xl、X(M3)及びY
座標Yb、Y(M3)で決定される範囲の水平サブ
パターンHSPをサブパターン抽出部6から読み
出し、黒ビツト数を計数することによつて求めら
れる。複雑度計算部9は4種類のサブパターン、
HSP、VSP、RSP、LSPと文字枠の大きさ
WPh、WPv、WPr、WPlと、文字線幅WLとを
受けて各サブパターンの文字枠内の黒ビツトを計
数して黒ビツト和Ah、Av、Ar、Alを求め、下
記式により文字線幅と各ストローク方向に対応し
た文字枠の大きさとで正規化し、文字線密度に対
応した量Gh、Gv、Gr、Glを求め、それらの総和
を求めることによつて入力文字パターンの複雑度
Gを算出する。
G=Gh+Gv+Gr+Gl
但しGh=Ah/WL・WPh Gr=Ar/WL・WPr
Gv=Av/WL・WPv Gl=Al/WL・WPl
ぼかし係数決定部10は、入力文字パターンの
複雑度Gと入力文字パターンにぼかし処理を施こ
す際に用いるぼかし係数Cとの対応を示すテーブ
ルを備えており、入力文字パターンの複雑度Gを
受けて、前記ぼかし係数のテーブルを参照してぼ
かし係数Cを決定する。
本実施例では、このテーブルの内容は次の通り
である。[Table] Similarly for the Y axis, 15 barycenter coordinates Y
(M1) to Y(M15) are determined, and the division coordinates are determined by referring to the table according to the number of divisions. Note that the division format can be changed and set once it has been rejected, or it can be set according to the complexity of the input character pattern, but here, for the sake of simplicity, NX=NY It is assumed that the division format is set to =7. Therefore, the character frame division determining unit 7 determines that NX=NY=
Corresponding to the 7 division format, the division coordinates in the X-axis direction are X (M3), X (M5), X (M7), X (M9),
(M11),
(M11) and Y (M13) are determined. The feature matrix extraction unit 8 extracts division coordinates in the X-axis direction, both end coordinates Xl, X (M3), and
(M5), X (M7), X (M9), X (M11), X (M13),
Xr, division coordinates in the Y-axis direction, both end coordinates Yb, Y
(M3), Y (M5), Y (M7), Y (M9), Y (M11),
Y (M13), Yx and each subpattern HSP, VSP,
In response to RSP, LSP, character frame sizes WPh, WPv, WPr, WPl corresponding to each sub-pattern, and character line width WL, each sub-pattern is divided into multiple division unit areas determined from the division coordinates. Then, count the number of black bits Bk (i, j) for each divided unit area, and calculate the line width WL and the character frame size WPh, WPv, corresponding to each subpattern as shown in the following formula.
Normalized by WPr and WPl, the feature element F (k, i, j) =
Bk (i, j)/WL・WPk (k=h, v, r, l)
Extract and create a feature matrix. F (h, i, j) = Bh (i, j) / WL・WPh F (v, i, j) = Bv (i, j) / WL・WPv F (r, i, j) = Br (i , j)/WL・WPr F(l, i, j)=Bl(i, j)/WL・WPr Black bit sum Bk(i, j) for each divided unit area (i, j) of each subpattern The calculation is performed by reading each sub-pattern at the division coordinates corresponding to the division unit area (i, j) and adding up the number of black bits. For example, the black bit sum Bh (1, 1) corresponding to the feature element F (h, 1, 1) is the X coordinate Xl, X (M3) and Y
It is obtained by reading out the horizontal sub-pattern HSP in the range determined by the coordinates Yb, Y (M3) from the sub-pattern extraction section 6 and counting the number of black bits. The complexity calculation unit 9 calculates four types of sub-patterns,
HSP, VSP, RSP, LSP and character frame size
Receiving WPh, WPv, WPr, WPl and character line width WL, count the black bits in the character frame of each subpattern to find the black bit sum Ah, Av, Ar, Al, and use the following formula to calculate the character line width. The complexity G of the input character pattern can be calculated by normalizing it with the size of the character frame corresponding to each stroke direction, calculating the quantities Gh, Gv, Gr, and Gl corresponding to the character line density, and calculating the sum of these. calculate. G=Gh+Gv+Gr+Gl However, Gh=Ah/WL・WPh Gr=Ar/WL・WPr Gv=Av/WL・WPv Gl=Al/WL・WPl The blurring coefficient determination unit 10 determines the complexity level G of the input character pattern and the input character pattern. A table showing the correspondence with a blurring coefficient C used when performing blurring processing is provided, and in response to the complexity G of the input character pattern, the blurring coefficient C is determined by referring to the blurring coefficient table. In this embodiment, the contents of this table are as follows.
【表】
ぼかし処理部11は、入力文字パターンの特徴
マトリツクスとぼかし係数とを受けて、注目特徴
要素の荷重をC/(C+2)とし、且つ隣接特徴
要素の荷重を1/(C+2)として、各特徴要素
をそのストローク方向と直交する方向で隣接する
2つの隣接要素で加重平均することによつて注目
特徴要素をぼかし、特徴マトリツクスと同様に4
×7×7次元のぼかし特徴要素FB(k、i、j)
(但し、k=h、v、r、l、i、j=1〜7)
からなるぼかし特徴マトリツクスを作成する。
すなわち、各サブパターン毎に隣接要素の指定
を異ならせた次の式演算を実行することによつて
ぼかし特徴マトリツクスを作成する。
水平サブパターンについては
FB(h、i、j)=C・F(h、i、j)+F(h、i
、j−1)+F(h、i、j+1)/C+2
垂直サブパターンについては
FB(v、i、j)=C・F(v、i、j)+F(v、i
−1、j)+F(v、i+1、j)/C+2
右斜めサブパターンについては
FB(r、i、j)=C・F(r、i、j)+F(r、i
−1、j+1)+F(r、i+1、j−1)/C+2
左斜めサブパターンについては
FB(l、i、j)=C・F(l、i、j)+F(l、i
−1、j−1)+F(l、i+1、j+1)/C+2
として求める。
なお、i−1=0、j−1=0となる特徴要素
については、夫々i=1、j=1なる特徴要素に
置き換え、且つi+1=8、j+1=8となる特
徴要素については夫々i=7、j=7なる特徴要
素に置き換えてぼかし特徴要素を求める。
識別部12には、標準文字マスクFS(k、i、
j)が入力文字パターンにおけるぼかし特徴マト
リツクスと同様に、標準文字の各サブパターンに
関する各分割単位領域(i、j)の黒ビツト和を
文字線幅とサブパターンに対応した文字枠の大き
さとで正規化され、更に複雑度に応じたぼかし係
数に従つて加重平均化されたぼかし特徴で表現さ
れ、前記複数のぼかし係数に対応して複数の辞書
が用意されていて、入力文字パターンの特徴マト
リツクスと標準文字マスクとの類似度が測定さ
れ、最も類似する標準文字マスクの文字コードを
入力文字パターン名として認識する。ここでは、
ぼかし係数C=3の辞書には複雑度GがG≦6の
標準文字マスクが収容されており、文字の画数が
1〜12画程度のものに対応する。ぼかし係数C=
4、5の辞書には夫々、6<G≦8、G>8なる
複雑度の標準マスクが収容され、文字の画数が
夫々4〜15画程度のもの、6画程度以上のものに
対応する。
なお、標準文字マスクのカテゴリが同一のもの
でも変形の大きいものはサブカテゴリとして2つ
の辞書に重複して記憶されており、また、複雑度
GがG=6、8なる境界領域にある標準文字マス
クも2つの辞書に重複して記憶してある。
識別部12は入力文字パターンORGのぼかし
特徴マトリツクスFB(k、i、j)とぼかし係数
Cとを受けてぼかし係数Cに対応した辞書、例え
ばC=3対応の辞書を選択して入力文字パターン
と標準文字マスクとの距離D、
D=√{(、、)−(、、)}
2
を計算し、最小の値となる標準マスクの文字コー
ドを文字名出力端子13に出力する。
以上説明したように、この実施例においては、
入力文字パターンの複雑度に応じて、3、4、5
なる3形式でぼかし係数Cを決定しているので、
書き手による手書文字のストローク変動を吸収し
て複雑さに追従した特徴を抽出することができる
利点がある。
なお、複雑度自体も文字を区別し得る特徴要素
であり、上記実施例程度の辞書数を用意する場合
は、各辞書の標準マスクの記憶配列を複雑度の順
に配列して区分けしておくことにより、或いは複
雑度と標準文字マスクのカテゴリとの対応を示す
テーブルを用意しておくことにより、複雑度に応
じて1つの辞書とその内での区分もしくはカテゴ
リ名を指定することにより、1つの辞書の1部の
標準文字マスクと照合するのみで文字を認識する
こともできる。
なおまた、入力文字パターンの複雑度は、文字
線密度に対応する量の和のみでなく、各サブパタ
ーンHSP、VSP、LSP、RSPにおけるストロー
クの数を検出し、それらの和を取ることによつて
検出することもできる。
また、本発明は、文字枠分割決定部7において
用いる所定の分割形式NX×NYを固定として説
明しているが、この分割形式を複数備え入力文字
の種類画数等に応じて使いわけるようにすること
もできる。この場合、辞書も複数の分割形式に対
応して備えておくものである。
以上の説明から明らかなように、本発明では複
雑度に応じてぼかし処理の度合を変えているた
め、個人差に関する安定性を維持して高い認識率
が得られる利点がある。[Table] The blurring processing unit 11 receives the feature matrix of the input character pattern and the blurring coefficient, and sets the weight of the featured feature element to C/(C+2), and sets the weight of the adjacent feature element to 1/(C+2), The feature element of interest is blurred by weighted averaging of each feature element with two adjacent elements in the direction orthogonal to its stroke direction, and the
×7 × 7-dimensional blur feature element FB (k, i, j)
(However, k=h, v, r, l, i, j=1 to 7)
Create a blur feature matrix consisting of . That is, a blurring feature matrix is created by executing the following formula operation with different designations of adjacent elements for each subpattern. For horizontal sub-patterns, FB(h,i,j)=CF(h,i,j)+F(h,i
, j-1)+F(h,i,j+1)/C+2 For vertical sub-patterns, FB(v,i,j)=CF(v,i,j)+F(v,i
-1, j) + F (v, i + 1, j) / C + 2 For the right diagonal sub-pattern, FB (r, i, j) = C・F (r, i, j) + F (r, i
-1,j+1)+F(r,i+1,j-1)/C+2 For the left diagonal subpattern, FB(l,i,j)=C・F(l,i,j)+F(l,i
-1, j-1)+F(l, i+1, j+1)/C+2. Note that the feature elements with i-1=0 and j-1=0 are replaced with feature elements with i=1 and j=1, respectively, and the feature elements with i+1=8 and j+1=8 are replaced with i, respectively. =7 and j=7 to find the blurring feature element. The identification unit 12 includes a standard character mask FS (k, i,
j) is the same as the blur feature matrix in the input character pattern, the black bit sum of each divided unit area (i, j) for each subpattern of the standard character is calculated using the character line width and the size of the character frame corresponding to the subpattern. The feature matrix of the input character pattern is expressed by a blur feature that is normalized and further weighted and averaged according to a blur coefficient according to the complexity level, and a plurality of dictionaries are prepared corresponding to the plurality of blur coefficients. The degree of similarity between the standard character mask and the standard character mask is measured, and the most similar character code of the standard character mask is recognized as the input character pattern name. here,
A dictionary with a blurring coefficient C=3 stores standard character masks with a complexity G of G≦6, which corresponds to characters whose number of strokes is about 1 to 12. Blur coefficient C=
Dictionaries 4 and 5 contain standard masks with a complexity of 6<G≦8 and G>8, respectively, and correspond to characters with a number of strokes of about 4 to 15, and characters with a number of strokes of about 6 or more, respectively. . Note that even if standard character masks have the same category, those with large deformations are stored redundantly in two dictionaries as subcategories, and standard character masks whose complexity G is in the boundary area where G = 6 and 8 are also stored in two dictionaries. The identification unit 12 receives the blurring feature matrix FB (k, i, j) of the input character pattern ORG and the blurring coefficient C, selects a dictionary corresponding to the blurring coefficient C, for example, a dictionary corresponding to C=3, and selects a dictionary corresponding to the blurring coefficient C, for example, a dictionary corresponding to C=3, and identifies the input character pattern. Distance D between and standard character mask, D=√{(,,)−(,,)}
2 is calculated, and the character code of the standard mask having the minimum value is output to the character name output terminal 13. As explained above, in this example,
3, 4, 5 depending on the complexity of the input character pattern
Since the blurring coefficient C is determined using the following three formats,
It has the advantage of being able to absorb stroke variations in handwritten characters by the writer and extract features that follow the complexity. Note that complexity itself is a characteristic element that can distinguish characters, and when preparing as many dictionaries as the above example, it is necessary to arrange and divide the storage array of standard masks for each dictionary in order of complexity. or by preparing a table that shows the correspondence between complexity and standard character mask categories, by specifying one dictionary and the classification or category name within it according to the complexity, one It is also possible to recognize characters simply by checking them against a standard character mask in a dictionary. Furthermore, the complexity of the input character pattern can be determined not only by the sum of the amounts corresponding to the character line density, but also by detecting the number of strokes in each subpattern HSP, VSP, LSP, and RSP, and calculating the sum of these. It can also be detected. Furthermore, although the present invention has been described as assuming that the predetermined division format NX×NY used in the character frame division determination section 7 is fixed, a plurality of division formats may be provided so that they can be used depending on the type of input character, the number of strokes, etc. You can also do that. In this case, dictionaries are also prepared to correspond to a plurality of division formats. As is clear from the above description, in the present invention, since the degree of blurring processing is changed according to the degree of complexity, there is an advantage that stability regarding individual differences can be maintained and a high recognition rate can be obtained.
第1図は本発明の一実施例を示すブロツク図、
第2図はサブパターンを示す図である。
1……光入力、2……光電変換部、3……パタ
ーンレジスタ、4……文字線幅計算部、5……文
字枠検出部、6……サブパターン抽出部、7……
文字枠分割決定部、8……特徴マトリツクス抽出
部、9……複雑度計算部、10……ぼかし係数決
定部、11……ぼかし処理部、12……識別部、
13……文字名出力端子。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is a diagram showing sub-patterns. 1... Optical input, 2... Photoelectric conversion section, 3... Pattern register, 4... Character line width calculation section, 5... Character frame detection section, 6... Sub pattern extraction section, 7...
Character frame division determination unit, 8...Feature matrix extraction unit, 9...Complexity calculation unit, 10...Blur coefficient determination unit, 11...Blur processing unit, 12...Identification unit,
13...Character name output terminal.
Claims (1)
あらわすサブパターンにおける任意の分割単位領
域の黒ビツト数を、文字線幅とストローク方向に
対応した文字枠の大きさとで正規化して得られる
量を特徴要素として、ストローク方向の異なる複
数の各サブパターン毎に且つ文字枠を分割するこ
とによつて得られる前記各分割単位領域毎に入力
文字パターンから前記特徴要素を抽出して特徴マ
トリツクスを作成し、各特徴要素のストローク方
向と直交する方向で隣接する隣接特徴要素で前記
各特徴要素をぼかし係数に従つて加重平均するこ
とによつてぼかし特徴マトリツクスを作成し、標
準文字マスクが当該ぼかし特徴マトリツクスと同
形式で記述されている辞書を参照して入力文字パ
ターンの認識を行う文字認識方式において、 文字の複雑度とぼかし係数との相関を示すテー
ブルを用意しておき、且つぼかし係数の異なる複
数の前記辞書を用意しておき、各サブパターンの
黒ビツト和を文字線幅とストローク方向に対応し
た文字枠の大きさとで正規化した量の総和もしく
は各サブパターンのストローク数の総和を複雑度
として検出し、前記テーブルを参照して前記複雑
度に対応したぼかし係数に従つて前記ぼかし特徴
マトリツクスを作成し、前記複雑度に対応した前
記ぼかし係数の辞書のすべての標準文字マスクも
しくは一群の標準文字マスクを指定し、これらの
標準文字マスクと前記入力文字パターンのぼかし
特徴マトリツクスとの類似度を測定して入力文字
パターンを認識する文字認識方式。[Claims] 1. Obtained by normalizing the number of black bits of an arbitrary divided unit area in a subpattern representing a stroke in a specific direction of an input character pattern by the character line width and the size of a character frame corresponding to the stroke direction. A feature matrix is created by extracting the feature elements from the input character pattern for each of the plurality of sub-patterns with different stroke directions and for each of the divided unit areas obtained by dividing the character frame, using the quantity as the feature element. A blurring feature matrix is created by weighted averaging of each feature element with adjacent feature elements adjacent in the direction orthogonal to the stroke direction of each feature element according to the blurring coefficient, and the standard character mask is In a character recognition method that recognizes an input character pattern by referring to a dictionary described in the same format as the blur feature matrix, a table showing the correlation between character complexity and blur coefficient is prepared, and the blur coefficient Prepare a plurality of dictionaries with different values, and calculate the sum of the black bits of each subpattern normalized by the character line width and the size of the character frame corresponding to the stroke direction, or the summation of the number of strokes of each subpattern. is detected as the complexity, the blur feature matrix is created according to the blur coefficient corresponding to the complexity with reference to the table, and all standard character masks or A character recognition method that recognizes an input character pattern by specifying a group of standard character masks and measuring the degree of similarity between these standard character masks and a blur feature matrix of the input character pattern.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57004927A JPS58123173A (en) | 1982-01-18 | 1982-01-18 | Character recognizing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57004927A JPS58123173A (en) | 1982-01-18 | 1982-01-18 | Character recognizing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS58123173A JPS58123173A (en) | 1983-07-22 |
| JPH0147834B2 true JPH0147834B2 (en) | 1989-10-17 |
Family
ID=11597225
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57004927A Granted JPS58123173A (en) | 1982-01-18 | 1982-01-18 | Character recognizing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS58123173A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2790507B2 (en) * | 1989-12-14 | 1998-08-27 | 富士電機株式会社 | Character recognition method |
-
1982
- 1982-01-18 JP JP57004927A patent/JPS58123173A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS58123173A (en) | 1983-07-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109993166B (en) | Automatic identification method of pointer meter reading based on scale search | |
| EP0543590A2 (en) | Method for comparing word shapes | |
| CN115760860B (en) | Multi-type workpiece dimension visual measurement method based on DXF file import | |
| JPH0587871B2 (en) | ||
| CN115187994A (en) | Target detection method based on lightweight target detection convolutional neural network | |
| JPH08508128A (en) | Image classification method and apparatus using distribution map | |
| Singh et al. | Cursive digit and character recognition in CEDAR database | |
| CN118397520A (en) | Target object identification processing method in industrial inspection process | |
| JPH0412512B2 (en) | ||
| JPH0412513B2 (en) | ||
| JPH0412511B2 (en) | ||
| JPH0147833B2 (en) | ||
| JPH0147835B2 (en) | ||
| JPH0147831B2 (en) | ||
| JPH0147832B2 (en) | ||
| JPH0147830B2 (en) | ||
| JPH0147829B2 (en) | ||
| JPS58123173A (en) | Character recognizing system | |
| JPH0346080A (en) | Feature extraction device | |
| CN116092088B (en) | Meter pointer reading identification method | |
| JPH0656625B2 (en) | Feature extraction method | |
| JPH10187886A (en) | Character recognition device and character recognition method | |
| CN118314577A (en) | Digital pressure instrument indication value and pressure unit identification method | |
| JP2749947B2 (en) | Character recognition method | |
| JPH0656624B2 (en) | Feature extraction method |