JPH02187885A - Character recognizing device - Google Patents
Character recognizing deviceInfo
- Publication number
- JPH02187885A JPH02187885A JP1006509A JP650989A JPH02187885A JP H02187885 A JPH02187885 A JP H02187885A JP 1006509 A JP1006509 A JP 1006509A JP 650989 A JP650989 A JP 650989A JP H02187885 A JPH02187885 A JP H02187885A
- Authority
- JP
- Japan
- Prior art keywords
- character
- input
- gravity
- coordinates
- centroid
- 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.)
- Pending
Links
- 230000005484 gravity Effects 0.000 claims description 31
- 238000010586 diagram Methods 0.000 description 9
- 239000000284 extract Substances 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Landscapes
- Character Input (AREA)
- Character Discrimination (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、傾斜した文字の認識を行う文字認識装置に関
するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a character recognition device that recognizes slanted characters.
[従来の技術]
従来、文字認識装置においては入力された文字から特徴
抽出を行い、辞書に登録されている登録パターンとのマ
ツチングにより認識を行っている。[Prior Art] Conventionally, character recognition devices extract features from input characters and perform recognition by matching the extracted characters with registered patterns registered in a dictionary.
[発明が解決しようとしている課題]
しかしながら手書き文字は、人によって占き方か様々存
在し、特に傾斜されて書かれた場合には、辞書とのマツ
チングの際に入力文字が傾斜しているが登録パターンか
傾斜していないため誤認識を招き、上記従来例ては認識
率が低下するという問題がある。[Problem to be solved by the invention] However, there are various ways of predicting handwritten characters depending on the person, and especially when the characters are written at an angle, when matching with a dictionary, the input characters are at an angle. Since the registered pattern is not tilted, erroneous recognition occurs, and the above conventional example has a problem in that the recognition rate decreases.
[課題を解決するための手段及び作用]この課題を解決
するために、本発明の文字認識装置は、文字入力部から
入力された文字の重心及びその重心を通る直線により分
けられた部分の重心を検出し、それらを用いて文字の傾
斜角を求め、入力された文字あるいは登録されたパター
ンを補正することを特徴とするものである。[Means and effects for solving the problem] In order to solve this problem, the character recognition device of the present invention detects the center of gravity of a character input from a character input unit and the center of gravity of a portion divided by a straight line passing through the center of gravity. This method is characterized by detecting the angle of inclination of the character using the detected angle of inclination, and correcting the input character or registered pattern.
[作用]
かかる構成において、傾斜角を補正することにより認識
率を高めることかてきる。[Operation] In such a configuration, the recognition rate can be increased by correcting the tilt angle.
[実施例]
第6図は本実施例の文字層a装置の外観図を示す、■は
入力部の入力ベン、■は透明タブレットで、その下に液
晶デイスプレィDISPが設置されている。MIAは訂
正、編集などを指示を与える時に用いるメニュー領域、
CIAは文字入力に用いる文字入力領域、Pはプリンタ
である。[Embodiment] Fig. 6 shows an external view of the character layer a device of this embodiment, where ■ is an input ben of the input section, ■ is a transparent tablet, and a liquid crystal display DISP is installed below it. MIA is a menu area used when giving instructions for correction, editing, etc.
CIA is a character input area used for character input, and P is a printer.
第6図に示すブロック図を第1図に示す。The block diagram shown in FIG. 6 is shown in FIG.
第1図は、本実施例の文字認識装置のハードウェア構成
図を示す。lはタブレット等の入力部、2は演算処理用
のCPU、3は第5図に示すCPU2の処理プログラム
を格納するROM、4は補助記憶用のRAMで、入力部
1から得られた入力点のX座標、X座標を格納する入力
座標メモリ4a、入力座標メモリ4aに格納された入力
座標から算出した等間隔点、特徴点を格納する等間隔点
メモリ4b、入力特徴点メモリ4C1等間隔点から求め
られた重心を格納する全体重心メモリ4d、全体重心メ
モリ4dに格納された重心のX座標よりも大きなX座標
をもつ等間隔点から算出した重心を格納する上部重心メ
モリ4e、全体重心メモリ4d及び上部重心メモリ4e
に格納されている各々の重心から算出した文字の傾斜角
を格納する傾斜者メモリ4f、その細文字認識を実行す
る際に必要なワークメモリ4gを含んでいる。FIG. 1 shows a hardware configuration diagram of the character recognition device of this embodiment. 1 is an input unit such as a tablet, 2 is a CPU for arithmetic processing, 3 is a ROM that stores the processing program of the CPU 2 shown in FIG. 5, 4 is a RAM for auxiliary storage, and input points obtained from the input unit 1 an input coordinate memory 4a that stores the X coordinate, an input coordinate memory 4a that stores the An upper center of gravity memory 4e stores the center of gravity calculated from equally spaced points having an X coordinate larger than the X coordinate of the center of gravity stored in the overall center of gravity memory 4d, and an overall center of gravity memory 4d. 4d and upper center of gravity memory 4e
It includes a tilt person memory 4f for storing the tilt angle of each character calculated from the center of gravity of each character stored in the memory, and a work memory 4g necessary for executing the thin character recognition.
5は文字認識をする際に用いる認識用辞書、6は文字認
識結果を表示する表示部で、文字認識結果など表示デー
タを格納する表示用メモリを含んでいる。5 is a recognition dictionary used for character recognition; 6 is a display unit for displaying character recognition results, and includes a display memory for storing display data such as character recognition results.
第2図は、本実施例に3ける入力文字及び算出された2
つの重心、傾斜角及び文字枠を示した図である。同図に
於てlOは入力された文字、11は入力文字全体の重心
、12は入力文字のうち全体の重心11より上側部分の
重心、13は傾斜角θ、14は文字枠を示している。Figure 2 shows the input characters in 3 and the calculated 2 in this example.
FIG. 2 is a diagram showing a center of gravity, an inclination angle, and a character frame. In the figure, lO is the input character, 11 is the center of gravity of the entire input character, 12 is the center of gravity of the input character above the entire center of gravity 11, 13 is the tilt angle θ, and 14 is the character frame. .
第3図は、本実施例における文字枠、X軸、y軸、重心
及び傾斜角を示した図である。同図に於て、20はX軸
、21はy軸を示している。FIG. 3 is a diagram showing a character frame, an X axis, a y axis, a center of gravity, and an inclination angle in this embodiment. In the figure, 20 indicates the X-axis and 21 indicates the y-axis.
第4図は、認識用辞書5の詳細を示す図で、文字コート
及び特徴点座標が記述されている。FIG. 4 is a diagram showing details of the recognition dictionary 5, in which character coats and feature point coordinates are described.
次に以上の構成より成る本実施例装鐙の文字認識処理を
第5図のフローチャートを参照して説明する。Next, the character recognition process of the stirrup according to the present embodiment having the above configuration will be explained with reference to the flowchart shown in FIG.
まずステップS30にて操作者により操作されるペンを
用いてタブレット1を介して文字が入力される。入力さ
れた文字の座標は続くステップS31にて順次入力座標
メモリ4aに記憶され、ステップS32にて一文字の終
了か確認されるとステップS3°3へ進む。−文字の入
力が終了していない時はステップS32よりステップS
30に戻る。ステップS33ではCPU2により入力さ
れた文字の座標から等間隔点を求める。まず、入力され
た点を各ストロークごとに直線で結び、その直線上に始
点から順に一定距離ごとに点を抽出して(この点を等間
隔点と呼ぶ)等間隔点メモリ4bに記憶する6次にステ
ップS34ては、ステップS33で求めた等間隔点から
X座標、X座標ごとに平均をとり、第3図11の全体重
心G o(X a 、 ’Y o)を求め全体重心メモ
リ4dに格納する。ステップS35ては、ステップS3
4て求めた全体重心Go(Xo 、 yo)のy座標y
。よりも大きなX座標をもつ等間隔点のみから重心を求
め、第3図12の上部重心G +(x + 、 y+)
を求める。続くステップS36、ステップS37にて2
つの重心G。。First, in step S30, characters are input via the tablet 1 using a pen operated by an operator. The coordinates of the input characters are sequentially stored in the input coordinate memory 4a in the subsequent step S31, and when it is confirmed in step S32 that one character has been completed, the process advances to step S3°3. - If character input is not completed, step S32 to step S
Return to 30. In step S33, equally spaced points are determined from the coordinates of the characters input by the CPU 2. First, connect the input points with a straight line for each stroke, extract points on the straight line at regular distances from the starting point (these points are called equally spaced points), and store them in the equally spaced point memory 4b. Next, in step S34, the average is taken for each X coordinate and X coordinate from the equally spaced points obtained in step S33, and the overall center of gravity G o (X a , 'Y o) in FIG. Store in. Step S35 is step S3
The y-coordinate y of the entire center of gravity Go (Xo, yo) found in step 4
. The center of gravity is determined only from equidistant points with X coordinates larger than , and the upper center of gravity G + (x + , y +
seek. In the following steps S36 and S37, 2
One center of gravity G. .
G、より次式のように傾斜角θを求め、傾斜角が−30
<0<30ならばステップ33Bへ進み、−30〈θ〈
30の範囲外ならばステップここで傾斜角を−30〈θ
<30としたのは、入力された文字が極端に傾いたりす
ることはないかうである。ステップ338では、求めら
れた傾斜角θから入力文字の補正を行う。入力座標メモ
リ4aに格納されている各入力点を全体重心G。(xo
、 yo)中心に傾斜角θがゼロとなるように回転さ
せて求めた座標を入力座標メモリ4aに格納されている
はじめの入力座標といれかえる。続くステップS39に
て、補正された入力座標から始点、終点、尖点などから
なる特徴点を求め、入力特徴点メモリ4Cに格納する。G, calculate the inclination angle θ using the following formula, and find that the inclination angle is -30
If <0<30, proceed to step 33B and -30〈θ〈
If it is outside the range of 30, step here to set the inclination angle to -30〈θ
The reason for setting <30 is to ensure that input characters are not tilted to an extreme degree. In step 338, the input character is corrected based on the obtained tilt angle θ. Each input point stored in the input coordinate memory 4a is the overall center of gravity G. (xo
, yo) Replace the coordinates obtained by rotating the center so that the inclination angle θ becomes zero with the initial input coordinates stored in the input coordinate memory 4a. In the following step S39, feature points consisting of a starting point, an ending point, a cusp, etc. are determined from the corrected input coordinates and stored in the input feature point memory 4C.
この特徴点と認識辞書5に登録されている特徴点とのマ
ツチングにより、認識辞書5の中て最も入力文字に近い
ものを認識結果とし、次のステップS40で表示部6(
Disp)を介して表示を行う。By matching this feature point with the feature points registered in the recognition dictionary 5, the one closest to the input character in the recognition dictionary 5 is set as the recognition result, and in the next step S40, the display unit 6 (
Display is performed via the Display.
[実施例2]
実施例1の第5図でステップS33の前に入力文字の特
徴点を抽出し、そこで抽出された特徴点を用いて文字傾
斜角補正を行う文字認識装置。[Embodiment 2] A character recognition device extracts feature points of an input character before step S33 in FIG. 5 of Embodiment 1, and performs character inclination angle correction using the extracted feature points.
[実施例3]
実施例1の第5図ステップS38にて、入力文字の傾き
を補正するかわりに、認識用辞書5を補正し、ステップ
S39て文字認識を行う文字認識装置。[Embodiment 3] A character recognition device that corrects the recognition dictionary 5 instead of correcting the inclination of the input character in step S38 in FIG. 5 of the first embodiment, and performs character recognition in step S39.
[実施例4コ
実施例1の第5図ステップS35にて、入力文字の上側
部分の重心を求めるかわりに下側(yoより小の部分)
、あるいは右側(x oより大の部分)、あるいは左側
(xoより小の部分)など上側以外の部分の重心を用い
て傾斜角を求め、補正を行う文字認識装置。[Example 4] In step S35 of Fig. 5 of Example 1, instead of finding the center of gravity of the upper part of the input character, the lower part (part smaller than yo)
, or a character recognition device that calculates the tilt angle using the center of gravity of a portion other than the upper side, such as the right side (portion larger than xo) or the left side (portion smaller than xo), and performs correction.
[発明の効果]
以上説明して来た様に、本発明によれば、入力文字から
文字の重心を用いて傾斜角を検出し、補正を行うことに
より、認識率を高めるという効果がある。[Effects of the Invention] As described above, according to the present invention, the inclination angle is detected from the input character using the center of gravity of the character and corrected, thereby increasing the recognition rate.
第1図は本発明に係る一実施例の手書き文字認識装置の
ハードウェア構成図、
第2図は入力文字、検出された2つの重心、傾斜角及び
文字枠を示した図、
第3図は文字枠、X軸、y軸、重心及び傾斜角を示した
図、
第4図は認識用辞書を示す図、
第5図は本実施例装置の文字認識処理フローチャート、
第6図は本実施例の文字認識装置の外観図である。
lは入力部、2は中央処理装置(CPU)、3は読出し
専用メモリ(ROM)、4はランダムアクセスメモリ(
RAM)、5は認識用辞書、6は表示部、10は入力文
字、11は入力文字全体の重心、12は入力文字のうち
全体の重心11より上側部分の重心、13は傾斜角、1
4は文字枠、20はX軸、21はy軸、41は入力ベン
、42は透明タブレット、43はメニュー領域、44は
文字入力領域、45はプリンターである。FIG. 1 is a hardware configuration diagram of a handwritten character recognition device according to an embodiment of the present invention. FIG. 2 is a diagram showing input characters, two detected centroids, tilt angles, and character frames. Figure 4 is a diagram showing the character frame, X axis, y axis, center of gravity, and inclination angle. Figure 4 is a diagram showing a recognition dictionary. Figure 5 is a flowchart of character recognition processing of the device of this embodiment. Figure 6 is this embodiment. FIG. 2 is an external view of the character recognition device of FIG. 1 is an input unit, 2 is a central processing unit (CPU), 3 is a read-only memory (ROM), and 4 is a random access memory (
RAM), 5 is a recognition dictionary, 6 is a display unit, 10 is an input character, 11 is the center of gravity of the entire input character, 12 is the center of gravity of the part of the input character above the entire center of gravity 11, 13 is an inclination angle, 1
4 is a character frame, 20 is an X axis, 21 is a y axis, 41 is an input bench, 42 is a transparent tablet, 43 is a menu area, 44 is a character input area, and 45 is a printer.
Claims (1)
直線により分けられた部分の重心を検出し、それらを用
いて文字の傾斜角を求め、補正を行う手段を有すること
を特徴とする文字認識装置。[Claims] A character recognition device that inputs and recognizes written characters detects the center of gravity of the input character and the center of gravity of a portion divided by a straight line passing through the center of gravity, and uses these to detect the inclination of the character. A character recognition device characterized by having means for determining and correcting corners.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1006509A JPH02187885A (en) | 1989-01-13 | 1989-01-13 | Character recognizing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1006509A JPH02187885A (en) | 1989-01-13 | 1989-01-13 | Character recognizing device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02187885A true JPH02187885A (en) | 1990-07-24 |
Family
ID=11640392
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1006509A Pending JPH02187885A (en) | 1989-01-13 | 1989-01-13 | Character recognizing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02187885A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7027624B2 (en) | 2001-03-29 | 2006-04-11 | Nec Corporation | Pattern collation device and pattern collating method thereof, and pattern collation program |
-
1989
- 1989-01-13 JP JP1006509A patent/JPH02187885A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7027624B2 (en) | 2001-03-29 | 2006-04-11 | Nec Corporation | Pattern collation device and pattern collating method thereof, and pattern collation program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4803735A (en) | Method and apparatus for calculating position and orientation by combination of features of partial shapes | |
JP6815707B2 (en) | Face posture detection method, device and storage medium | |
JP2007094906A (en) | Characteristic point detection device and method | |
JPH02187885A (en) | Character recognizing device | |
JPH0997311A (en) | Handwriting pattern recognition device | |
US6208756B1 (en) | Hand-written character recognition device with noise removal | |
CN104731492B (en) | A kind of magic pen and its display control method | |
JP2002109471A (en) | Input character processor | |
JP3169946B2 (en) | Image processing method and image processing apparatus | |
JP2751114B2 (en) | Character processing method | |
JPS60196836A (en) | Vector drawing control method | |
JPH02186491A (en) | Character graphic recognizing device | |
JP2761679B2 (en) | Online handwritten character recognition device | |
CN113536210B (en) | Calculation method for light stripe center coordinates based on vector traversal line structure | |
JP2746908B2 (en) | Character feature extraction circuit | |
JPS60191369A (en) | Graphic output device | |
JPH06131502A (en) | Handwriting recognition method | |
JP2688520B2 (en) | Handwriting input device | |
JPH06187504A (en) | On-line handwritten character recognizer | |
JPH02231693A (en) | Character and graphic recognizing device | |
JPH04584A (en) | Method for recognizing rotated character | |
JPH05120426A (en) | Picture processor equipped with calculated result display function | |
JP2641877B2 (en) | Information processing system | |
JPH0467673B2 (en) | ||
JPS62237587A (en) | handwritten character recognition device |