JPH03226877A - Hand-written character and graphic separating method - Google Patents

Hand-written character and graphic separating method

Info

Publication number
JPH03226877A
JPH03226877A JP2022669A JP2266990A JPH03226877A JP H03226877 A JPH03226877 A JP H03226877A JP 2022669 A JP2022669 A JP 2022669A JP 2266990 A JP2266990 A JP 2266990A JP H03226877 A JPH03226877 A JP H03226877A
Authority
JP
Japan
Prior art keywords
stroke
character
strokes
graphic
determined
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
Application number
JP2022669A
Other languages
Japanese (ja)
Inventor
Kenichiro Uchimura
内村 憲一朗
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2022669A priority Critical patent/JPH03226877A/en
Publication of JPH03226877A publication Critical patent/JPH03226877A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the separation result of high precision by discriminating the stroke discriminated as a character stroke once to discriminate the final character or graphic stroke. CONSTITUTION:A recognizing device consists of an input part 1, a first processing part 2, a coordinate memory 3, a stroke memory 4, and a second processing part 5. After graphic strokes other than character strokes are surely separated in the first processing, strokes changing from characters to graphic or changing from graphics to characters out of discrimination results obtained by the first processing are finally discriminated as character strokes or graphic strokes again by the second processing based on proximity relations to graphic strokes. Thus, strokes are correctly separated to improve the precision of character recognition and graphic recognition.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はタブレットを用いて手書きされる文字や図形を
、文字と図形とに分離判定する手書き文字・図形分離方
法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a handwritten character/figure separation method for separating and determining characters and figures handwritten using a tablet into characters and figures.

[従来の技術] この種の従来技術としては、例えば特開昭60−233
780号公報に開示された方法が知られている。この方
法は文字や図形を構成するストローク毎にこれに外接す
る矩形枠を設定し、その矩形枠の長辺の長さにしたがっ
てストロークを分離するようにしたものである。すなわ
ちタブレット上に手書きされる線図形を時系列的に座標
データとして入力し、ペンダウンからペンアップまでを
1ストロークとして、この1ストロークの時系列座標デ
ータ(xt 、y+ )から最大値と最小値とを求めて
これに所望の演算を行ってその演算結果と閾値とを比較
して、ストロークの判定を行うものであった。
[Prior art] As this type of conventional technology, for example, Japanese Patent Application Laid-Open No. 60-233
A method disclosed in Japanese Patent No. 780 is known. In this method, a rectangular frame is set circumscribing each stroke constituting a character or figure, and the strokes are separated according to the length of the long side of the rectangular frame. In other words, a line figure handwritten on a tablet is input as time-series coordinate data, and one stroke is defined as from pen-down to pen-up, and the maximum and minimum values are calculated from the time-series coordinate data (xt, y+) of this one stroke. The stroke was determined by calculating the value, performing a desired calculation on it, and comparing the result of the calculation with a threshold value.

ここで1ストロークの時系列座標データ(xt、y、)
において、X、の最大値をX maxとし、最小値をX
m1n、またy、の最大値をY maxまた最小値をY
 minとし、ΔX = X max −X min 
、ΔY = Y max −Y +l1inとする。こ
こでΔXとΔYとの大きい方の値が予め定めた閾値より
大きい場合には、当該矩形枠内のストロークは文字以外
の線図形を構成するストロークであると判定し、それ以
外の場合には文字を構成するストロークであると判定す
る。
Here, time series coordinate data of one stroke (xt, y,)
, let the maximum value of X be X max and the minimum value X
The maximum value of m1n and y is Y max and the minimum value is Y
ΔX = X max −X min
, ΔY = Y max −Y +l1in. Here, if the larger value of ΔX and ΔY is larger than a predetermined threshold, the stroke within the rectangular frame is determined to be a stroke that constitutes a line figure other than a character; otherwise, It is determined that the strokes constitute a character.

[発明が解決しようとする課題] しかし上述した従来の方法では、本来の文字ストローク
以外の短い図形ストロークも、文字ストローク毎クて分
類されるという問題があった。
[Problems to be Solved by the Invention] However, the conventional method described above has a problem in that short graphic strokes other than original character strokes are also classified as individual character strokes.

第2図(a)は従来の方法によるストロークの認識方法
を説明するための図で、81〜823はそれぞれ文字ま
たは図形を構成するストロークを示している。また第2
図(b)は、ストローク単3 位に設定される外接矩形枠とその座標を示している。従
来の方法では第2図(a)に示すように。
FIG. 2(a) is a diagram for explaining a conventional stroke recognition method, and 81 to 823 indicate strokes forming a character or a figure, respectively. Also the second
Figure (b) shows the circumscribed rectangular frame and its coordinates set for the stroke unit. In the conventional method, as shown in FIG. 2(a).

短かく書かれた接続線を表わすス1−ロークS ]、 
4やシンボルの一部を表わすストロークS1、S2、S
15が文字として分離されてしまう。したがって文字認
識のエラーが増加し、また図形認識においてシンボルの
ストロークが部分的に欠落する等の原因からりジェツト
が増加するという問題点があった。
1-stroke S representing a short connecting line],
Strokes S1, S2, S that represent 4 or part of a symbol
15 is separated as a character. Therefore, there are problems in that errors in character recognition increase, and jets increase in figure recognition due to reasons such as partial omission of symbol strokes.

そこで本発明は上述した問題点を解決するために、1度
文字ストロークと判定されたストロークについてさらに
判定を行い、最終的な文字または図形ストロークを判定
することにより、高精度の分離結果の得られる手書き文
字・図形分離方法を提供することを目的とする。
Therefore, in order to solve the above-mentioned problems, the present invention further performs a determination on strokes that have been determined to be character strokes, and determines the final character or figure stroke, thereby obtaining highly accurate separation results. The purpose is to provide a method for separating handwritten characters and figures.

[課題を解決するための手段] 本発明はタブレット上に手書きされる文字・図形を文字
と図形とに分離する手書き文字・図形分離方法において
、ペンダウンからペンアップまでを1ストロークとし、
ストローク毎に外接する矩4 形枠を設定しこの矩形枠の長辺の長さと予め設定した閾
値とを比較して、前記長辺の長さが、前記閾値より大き
い時には、前記矩形枠内のストロタを図形ストロークと
判定し、それ以外の時には文字ストロークと判定する第
1の過程と、前記第1の過程で前後のストロークの判定
結果が文字ストロークから図形ストロークへ、または図
形ストロークから文字ストロークへと変化している場合
には、この文字ストロークの端点が、図形ストロークと
近接関係にあるか否かに基づいて当該文字ストロークを
文字ストローク、または図形ストロークに再判定する第
2の過程とを設けたものである。
[Means for Solving the Problems] The present invention provides a handwritten character/figure separation method for separating characters/figures handwritten on a tablet into characters and figures.
Set a rectangular frame that circumscribes each stroke, compare the length of the long side of this rectangular frame with a preset threshold, and if the length of the long side is greater than the threshold, the length of the rectangular frame is A first process in which a stroke is determined to be a figure stroke, and in other cases it is determined to be a character stroke, and in the first process, the determination result of the previous and subsequent strokes is from a character stroke to a figure stroke, or from a figure stroke to a character stroke. If the character stroke has changed, a second process is provided in which the character stroke is re-determined as a character stroke or a graphic stroke based on whether or not the end point of the character stroke is in a proximity relationship with the graphic stroke. It is something that

[作用] 本発明の第1の過程では、予め設定された文字枠のサイ
ズに比べて大きな分離判定サイズのストローク枠を設定
することにより、まず文字以外の図形ストロークを確実
に分離する。ついで閾値より小さく文字として判定され
たストロークについては、図形ストロークの一部である
可能性があることから第2の過程では、文字から図形へ
または図形から文字へと変化するストロークの内、文字
ストロークに着目し図形ストロークとの近接関係を簡単
な特徴判定を行うことにより、最終的な文字ストローク
あるいは図形ストロークを得るようにしている。
[Operation] In the first step of the present invention, graphic strokes other than characters are first reliably separated by setting a stroke frame with a separation determination size larger than a preset character frame size. Next, strokes that are smaller than the threshold and are determined to be characters may be part of a figure stroke, so in the second process, strokes that are smaller than the threshold and judged as characters are selected as character strokes among strokes that change from a character to a figure or from a figure to a character. The final character stroke or graphic stroke is obtained by focusing on the character stroke and performing a simple feature determination of the proximity relationship with the graphic stroke.

[実施例コ 第1図は本発明の手書き文字・図形分離方法の実施に用
いられる認識装置のブロック図である。
[Example 1] FIG. 1 is a block diagram of a recognition device used to implement the handwritten character/figure separation method of the present invention.

1はステーラスペンとタブレットから構成される入力部
、2は入力部1から出力される手書き文字・図形のス1
−ロークの大きさを閾値と比較して文字と図形との分離
処理を行う第1の処理部、3はストロークの各点の座標
を格納する座標メモリ(MZ) 、4はストローク毎の
文字・図形判定結果あるいは外接矩形情報、座標メモリ
とのリンク情報等を格納するストロークメモリ(MS)
、5は全てのストロークの入力終了後座標メモリ3とス
トロークメモリ4とを参照して、最終的な文字・図形分
離判定を行うための第2の処理部である。
1 is an input section consisting of a styluse pen and a tablet; 2 is a screen 1 of handwritten characters and figures output from the input section 1;
- A first processing unit that performs separation processing between characters and figures by comparing the size of the stroke with a threshold value; 3 is a coordinate memory (MZ) that stores the coordinates of each point of a stroke; 4 is a character and a figure for each stroke; Stroke memory (MS) that stores figure judgment results, circumscribed rectangle information, link information with coordinate memory, etc.
, 5 is a second processing unit that refers to the coordinate memory 3 and the stroke memory 4 after inputting all strokes and makes a final character/figure separation determination.

このような構成装置を用いて、本発明による文字・図形
分離方法の概要を第2図(a)に示す線画が入力された
場合を例にあげ説明する。
An outline of the character/figure separation method according to the present invention using such a configuration device will be explained by taking as an example the case where a line drawing shown in FIG. 2(a) is input.

入力部1においては、タブレット上でのスタイラスペン
の動きをペンダウンからペンアップまでを1ストローク
として認識し、この1ストローク内のスタイラスペンの
動きを、一定の時間でサンプリングしペン位置を時系列
の座標データ(xk、yk)として取り出す。処理部2
はこれらの座標データを座標メモリ3に格納すると共に
、第2図(b)に示すようにストロークの外接矩形情報
として、x、にの最大値(Xmax)、最小値(Xmi
n)、およびyy、の最大値(Ymax)、最小値(Y
mjn)を得て、ΔX=Xmax −Xmin 、とΔ
Y=Ymax−Yminとを計算し、その内の大きいほ
う(]、=max(ΔX、八Y))と閾値(thi )
とを比較し、]≧thlであれは当該ストロークを図形
ストロークと判定しくJFLG=1)、l<thlであ
れは当該ストロークを文字ストロークと判定する(JF
LG=O)。これらの判定結果とストロークの外接矩形
の情報等はストロークメモリ4に格納される。なおこの
時の閾値(thl)は、図示しないキーボード入力部等
を用いて第3図に示すような文字枠サイズを決めるパラ
メータΔX、Δyを入力した際、この値を用いて例えば
thl =1.5 Xmax  (ΔX、Δy)と設定
される。
The input unit 1 recognizes the movement of the stylus pen on the tablet from pen down to pen up as one stroke, samples the movement of the stylus pen within this one stroke at a fixed time, and records the pen position in chronological order. Extract as coordinate data (xk, yk). Processing section 2
stores these coordinate data in the coordinate memory 3, and also stores the maximum value (Xmax) and minimum value (Xmi) of x as circumscribed rectangle information of the stroke as shown in FIG. 2(b).
n), and the maximum value (Ymax) and minimum value (Y
mjn), ΔX=Xmax −Xmin, and Δ
Calculate Y = Ymax - Ymin, and calculate the larger of them (], = max (ΔX, 8Y)) and the threshold (thi)
]≧thl, the stroke is determined to be a figure stroke (JFLG=1), and l<thl, the stroke is determined to be a character stroke (JFLG=1).
LG=O). These determination results, information on the circumscribed rectangle of the stroke, etc. are stored in the stroke memory 4. Note that the threshold value (thl) at this time is determined by using, for example, thl = 1. 5 Xmax (ΔX, Δy).

なお上述の文字枠サイズは、表示入力一体型のタブレッ
ト(例えば液晶タブレット)等を用いて表示面上の所定
のエリアに表示することにより、記入者の文字サイズや
図形サイズの判定の目安とすることが出来る。
The above-mentioned character frame size is displayed in a predetermined area on the display screen using a tablet with integrated display and input (for example, a liquid crystal tablet), and is used as a guide for determining the character size and graphic size of the person filling out the form. I can do it.

以上のようにして第1の処理部2による文字・図形の判
定結果を第4図の第手行目に示す。ここで0.1は各々
文字、図形の判定結果に対応し。
The results of character/figure determination by the first processing section 2 as described above are shown in the first row of FIG. Here, 0.1 corresponds to the determination results for characters and figures, respectively.

この段階ではストロークS14と815とは文字ストロ
ークと誤判定されている。
At this stage, strokes S14 and 815 are erroneously determined to be character strokes.

ついで第2の処理部5は、ストロークメモリ4に格納さ
れた前記判定結果を参照して、文字から図形または図形
から文字に変化しているストロークに関して、文字と判
定されたストロークに着目一 し、そのストロークの始点または終点の近傍に図形と判
定されたストロークが存在するかどうかをチエツクする
。この時図形と判定されたストログが存在した場合には
1着目ストロークは図形ストロークと再判定する。同様
の操作を繰り返し、新たに文字から図形または図形から
文字へと変化するトスローフの組がなくなるまで上述し
た処理が繰り返される。
Next, the second processing unit 5 refers to the determination results stored in the stroke memory 4, and focuses on strokes that are determined to be characters, with respect to strokes that change from characters to figures or from figures to characters, It is checked whether there is a stroke determined to be a figure near the start point or end point of the stroke. If there is a stroke determined to be a graphic at this time, the first stroke of interest is re-determined to be a graphic stroke. The above-described process is repeated until there is no new set of toslovs that change from a character to a figure or from a figure to a character.

第4図の2行目は処理部1の結果を参照して、ストロー
クS2、S5−815.818、S22に着目した場合
の処理結果を示したものである。
The second line of FIG. 4 shows the processing results when focusing on the strokes S2, S5-815.818, and S22 with reference to the results of the processing section 1.

ストロークS2とストロークS3、S4の始点が近傍に
存在しているため、ストロークS2は図形と判定され、
またス1〜ローク515の端点はストローク816.8
17の端点近傍に存在しているため同様に図形ストロー
クと判定されている。
Since the starting points of stroke S2 and strokes S3 and S4 are located nearby, stroke S2 is determined to be a figure.
Also, the end points of stroke 1 to stroke 515 are stroke 816.8
Since it exists near the end point of No. 17, it is similarly determined to be a graphic stroke.

この再判定処理の結果、新たにス1〜ロークS1とスト
ロークS14とが着目対象ス1〜ロークとなる。そして
ストロークSlについては、ストログS2と同様にその
端点がストロークS3、S4の端点近傍に存在すること
から図形ス1〜ロークと判定される。またストロークS
14については、その端点とストロークS4.816の
中間点が近接することから図形ストロークと判定される
。この処理結果が第4図の3行目に示されている。この
結果新たに図形から文字へ、文字から図形へと変化する
ストロークが存在しないため最終判定となる。
As a result of this re-determination process, strokes S1 to S1 and stroke S14 newly become the target strokes of interest. As for the stroke S1, since its end point exists near the end points of the strokes S3 and S4, similarly to the stroke S2, it is determined that the stroke S1 is a figure stroke. Also stroke S
14 is determined to be a graphic stroke because its end point and the midpoint of stroke S4.816 are close to each other. The result of this processing is shown in the third line of FIG. As a result, there is no new stroke that changes from a figure to a character or from a character to a figure, so the determination is final.

第5図は本発明の手書き文字・図形分離方法の全体の処
理フローを示すフローチャートを、第6図〜第8図はそ
の細部の処理フローを示したフローチャートである。こ
れらのフローチャートを用いて、本発明の文字・図形分
離方法についてさらに詳細に説明する。
FIG. 5 is a flowchart showing the overall processing flow of the handwritten character/figure separation method of the present invention, and FIGS. 6 to 8 are flowcharts showing the detailed processing flow. The character/figure separation method of the present invention will be explained in more detail using these flowcharts.

第5図において処理が開始されると(ステップ5TO)
 、入力部1から得られる時系列の座標ブタを用いて第
1の処理を行い(ステップ5TI)、その結果を座標メ
モリ3とストロークメモリ4とに格納する。第1の処理
が終了後、変数iを初期値1に設定しくステップ5T2
) 、また第2の処理の結果文字から図形に判定が変化
したストロークがあることを示す変数CHGFを初期化
する(ステップ5T3)。次に変数iで示されるアドレ
スのストロークメモリ4からフラグ情報PFLGiを読
み込む。
When the process starts in FIG. 5 (step 5TO)
, a first process is performed using the time-series coordinates obtained from the input unit 1 (step 5TI), and the results are stored in the coordinate memory 3 and the stroke memory 4. After the first process is completed, set the variable i to the initial value 1 in step 5T2.
), and a variable CHGF indicating that there is a stroke whose determination has changed from character to graphic as a result of the second process is initialized (step 5T3). Next, flag information PFLGi is read from the stroke memory 4 at the address indicated by variable i.

なお第9図(a)は、第1図に示す座標メモリ3とスト
ロークメモリ4のメモリ内容を示している。PFLGは
後続のステップST5とSr1の処理が必要か否かを判
定するフラグであって、PFLGi=1ならステップS
T5、Sr1の処理を行わずにステップST7へ進み、
PFLGi=0ならステップST5へ進む。ステップS
T4では変数iおよびi−1、i+1で示されるストロ
ークメモリMSからJ F LG+ 、J F LG+
−+、J F L G s、r を読みだして、JFL
GI =OかつJFLGl、、、=1あるいはJFLG
、=OかつJFLGl、、=1の条件が成立すればスト
ロークiを着目ストロークとして第2の処理を行う(ス
テップ5T6)。
Note that FIG. 9(a) shows the memory contents of the coordinate memory 3 and stroke memory 4 shown in FIG. PFLG is a flag that determines whether the subsequent steps ST5 and Sr1 are necessary; if PFLGi=1, step S
Proceed to step ST7 without performing the processing of T5 and Sr1,
If PFLGi=0, proceed to step ST5. Step S
At T4, from the stroke memory MS indicated by variables i, i-1, and i+1, J F LG+ , J F LG+
−+, JFL G s, r, and JFL
GI=O and JFLGl,,,=1 or JFLG
, =O and JFLGl, , =1, the second process is performed with stroke i as the stroke of interest (step 5T6).

上述した条件が成立しなければ、ステップST 1− 9で変数iを歩進させ、全ての入力ストロークについて
上記ステップST4〜ST6の処理を繰り返して行い(
ステップ5T8)、終了後CHGF=1であれば(ステ
ップ5T9)、すなわち判定結果が文字から図形へと変
化したストロークが存在すれば、ステップST2へもど
って、同様の処理を行う。またCHGF==0であれば
文字・図形分離処理を終了する(ステップ5TIO)。
If the above-mentioned conditions are not satisfied, the variable i is incremented in steps ST1-9, and the processes of steps ST4-ST6 are repeated for all input strokes (
In step 5T8), if CHGF=1 after the end (step 5T9), that is, if there is a stroke in which the determination result changes from a character to a figure, the process returns to step ST2 and the same process is performed. Further, if CHGF==0, the character/figure separation process is ended (step 5TIO).

第6図は第1の処理のフローチャートを示したもので、
まず処理を開始すると(ステップ5TI00)、ストロ
ーク数髪計数する変数nと、座標数の累計数を計数する
変数mとを初期化しくステップ5TIOI)、状態変数
5TATUSを初期設定する(ステップ5T102)。
Figure 6 shows a flowchart of the first process.
First, when the process starts (step 5TI00), a variable n for counting the number of strokes and a variable m for counting the cumulative number of coordinates are initialized (step 5TIOI), and a state variable 5TATUS is initialized (step 5T102).

ついでステップ5T103で入力データの読み込みを行
う。入力データには座標データ以外にペンがタブレット
上に接しているか否かを示すデータ(ペンアップ/ダウ
ン)あるいは特定の用途のためのスイッチのオン/オフ
を示すデータも含まれる。ステップ5T104では、上
記スイッチオンを検出すると12〜 、全てのストロークの入力終了と判定し、処理を終了す
る(ステップ5T119)。ステップ5T105ではペ
ンダウン、ペンアップの状態を検出し、ペンアップであ
ればステップSTI 12以下の処理へ、ペンダウンで
あればステップST’IO6以下の処理へ進む。ステッ
プ5T106では5TATUS変数をチエツクし、5T
ATUS=0であれば、ペンオンからペンダウン状態に
変化したものと判定し、ステップ5T107からステッ
プ5T110までの処理を行う。ステップ5T107で
はペンダウン状態であることを保持するために、5TA
TUS=1とし、またn番目のストロークの座標情゛報
が格納される座標メモリの先頭アドレスをTPAnに保
持する(ステップ5TI08)。
Next, in step 5T103, input data is read. In addition to coordinate data, the input data also includes data indicating whether the pen is in contact with the tablet (pen up/down) or data indicating on/off of a switch for a specific application. In step 5T104, when the switch-on is detected, it is determined that all stroke inputs have been completed, and the process is ended (step 5T119). In step 5T105, the state of pen down or pen up is detected, and if the pen is up, the process proceeds to step STI12 and subsequent steps, and if the pen is down, the process proceeds to step ST'IO6 and subsequent steps. In step 5T106, check the 5TATUS variable and
If ATUS=0, it is determined that the state has changed from pen-on to pen-down, and the processes from step 5T107 to step 5T110 are performed. In step 5T107, in order to maintain the pen down state, 5TA
TUS=1 is set, and the start address of the coordinate memory where the coordinate information of the nth stroke is stored is held in TPAn (step 5TI08).

さらにストロークの外接矩形情報を得るための変数Xm
1n +’Xmax +Ymin +Ymaxの初期値
として現在入力の座標値(x、y)を設定しくステップ
5r409)−ステップS T 110で座標値(X、
’Y)を座標メモリ3へ書き込む。ステップ5TI06
で5TATUS=1の時には、1ス1〜ロークの記入が
継続していることを意味するため、ステップ5TILL
で外接矩形情報を更新したのち、ステップ5T11〇八
進む。ステップ5T112で5TATUS=Oの時には
、ステップ5T103へ戻るが、5TATUS=1の時
にはペンダウン状態からペンアップ状態へ変化した、す
なわち1ストロークの入力が完了したと判定し、ストロ
ーク数を歩進しくステップSTI 13)、外接矩形枠
の長辺の長さ(1)を算出する(ステップ5T114.
)。この長辺の長さ]の値と前述した閾値thlとを比
較することにより、m番目のストロークの文字・図形の
判定を行い(ステップ5T116.5T117)、判定
結果と座標メモリの先頭アドレスおよび外接矩形情報を
変数nをアドレスとするストロークメモリMS(n)に
格納する(ステップ5T118)。この時前述したフラ
グ情報PFLGの項はOとして格納する。
Furthermore, a variable Xm to obtain the circumscribed rectangle information of the stroke
Set the currently input coordinate values (x, y) as the initial values of 1n +'
'Y) is written to the coordinate memory 3. Step 5TI06
When 5TATUS=1, it means that the entry of 1st stage to 1st row is continuing, so step 5TILL
After updating the circumscribed rectangle information, the process proceeds to step 5T1108. When 5TATUS=O in step 5T112, the process returns to step 5T103, but when 5TATUS=1, it is determined that the pen-down state has changed to the pen-up state, that is, the input of one stroke has been completed, and the number of strokes is increased in step STI. 13), calculate the length (1) of the long side of the circumscribed rectangular frame (step 5T114.
). The character/figure of the m-th stroke is determined by comparing the value of ``length of this long side'' with the aforementioned threshold value thl (steps 5T116.5T117), and the determination result is used to determine the start address of the coordinate memory and the circumscribed The rectangle information is stored in the stroke memory MS(n) whose address is variable n (step 5T118). At this time, the term of the flag information PFLG mentioned above is stored as O.

第7図は第2の処理のフローチャートである。FIG. 7 is a flowchart of the second process.

まず処理開始後(ステップ5T600)、変数jを初期
設定しくステップ5T601)、変数Jをアドレスとす
るストロークメモリMS (j)からJ F L G 
r を読みだしくステップ5T602)、その値が1す
なわち図形ストロークである場合にはステップ5T60
3の処理を行う。またJFLG、=0であれば、ステッ
プ5T602.5T603を繰り返すためにステップ5
T604.5T605へと進む。ここでステップ5T6
03では、着目ス1−ロークiとストロークjが近接す
るか否かを後述する方法で判定し、近接する時には着目
ス1〜ロークlは図形ストロークと再判定してフラグ情
報を変更しくステップ5T607)、前述した変数CH
G Fを1に設定する。さらに判定フラグが文字から図
形へ変化したストロークがある旨を記憶しくステップ5
T608)、処理を終了する(ステップ5T609) 
、、またステップ5T603から5T605を経て1着
目ストロークjが図形ス1〜ロークに近接しないと判定
した場合には、当該着目ストローク1は最終的に文字と
判定されたことを記憶しくステップ5T606)、処 
5 理を終了する。
First, after starting the process (step 5T600), initialize the variable j (step 5T601), and write J F L G from the stroke memory MS (j) whose address is the variable J.
Read r (Step 5T602), and if the value is 1, that is, the figure stroke, Step 5T60
Perform step 3. Also, if JFLG=0, step 5 is used to repeat steps 5T602 and 5T603.
Proceed to T604.5T605. Here step 5T6
In Step 5T607, it is determined whether or not the noticed stroke i and the stroke j are close to each other by the method described later. ), the variable CH mentioned above
Set GF to 1. Furthermore, remember that there is a stroke where the judgment flag changes from text to figure.Step 5
T608), end the process (step 5T609)
,,Also, if it is determined through steps 5T603 to 5T605 that the first stroke j is not close to the graphics 1 to 5T605, remember that the stroke 1 of interest is finally determined to be a character (step 5T606), place
5 Finish the process.

第8図は前述したステップ5T603の近接判定処理フ
ローを示したフローチャートである。まずステップ5T
6031において、ストロークiとストロークjとの座
標情報を読みだすための先頭アドレスと最終アドレスと
をストロークメモリ4から読みだす。そしてストローク
iの座標データの先頭と最終アドレスを各々is、1e
に、またストロークjの座標データの先頭および最終ア
ドレスを各々js、jeにそれぞれ記憶する。ついでス
テップST603において、ストローク1とストローク
jの外接矩形の位置関係により近接するストロークであ
るか否かをチ・エラグする。すなわちストロークi、j
の外接矩形の位置を(Ximin、 Y 1m1n)、
(X jmax、Y imax)および(Xjmin、
 Y jmin)、(X jmax、Y jmax)と
した時、Xjmjn−D≦X 1m1n、 X jma
x≦X jmax+ D  (1)Yjmin−D≦Y
 1m1n、 Y imax≦Y Jmax+ D  
(2)が成立する時には、ストロークiとストロークj
とは近接するストロークであると判定し、さらに 6 ステップ5T6033以下の条件をチエツクする。そし
てこの条件が成立しなければ、前述のステップ5T60
4へ戻る。ここで前述の(1)、(2)式におけるパラ
メータDは実験的に求められる。ステップ5T6033
ではストロークの端点間の距離が前記パラメータD以下
であるかがチエツクされる。すなわち、 dis(i 、 j ) =max(ΔXIj、ΔY 
Ij)+(Δ8.。
FIG. 8 is a flowchart showing the proximity determination processing flow of step 5T603 described above. First step 5T
At 6031, the start address and end address for reading the coordinate information of stroke i and stroke j are read from the stroke memory 4. Then, the start and end addresses of the coordinate data of stroke i are is and 1e, respectively.
In addition, the start and end addresses of the coordinate data of stroke j are stored in js and je, respectively. Next, in step ST603, it is checked whether the strokes 1 and j are close to each other in terms of the positional relationship of the circumscribed rectangles. That is, strokes i, j
The position of the circumscribed rectangle is (Ximin, Y 1m1n),
(X jmax, Y imax) and (Xjmin,
Y jmin), (X jmax, Y jmax), Xjmjn-D≦X 1m1n, X jma
x≦X jmax+D (1) Yjmin−D≦Y
1m1n, Y imax≦Y Jmax+D
When (2) holds true, stroke i and stroke j
It is determined that the strokes are close to each other, and the following conditions are checked in step 5T6033. If this condition is not satisfied, step 5T60 described above
Return to 4. Here, the parameter D in the above-mentioned equations (1) and (2) is determined experimentally. Step 5T6033
Then, it is checked whether the distance between the end points of the stroke is less than or equal to the parameter D. That is, dis(i, j) = max(ΔXIj, ΔY
Ij)+(Δ8..

、Δう+a )/2    ’           
  (3)ΔXI J =]X1−Xj1. A Y 
I J”(Yl−’/J)     (4)として、d
is(i、j)<Dを(is、Js)、(is、 je
)、 (je、js)、 (ie、 je)の端点の組
についてチエツクし、いずれかの組で満足されれば、文
字と判定された着目ストロークiは図形と判定されたス
トロークjに端点においては近接しているため、前述し
たステップ5T607へ進む。ステップ5T6033の
条件が不成立の場合にはさらにストロークiの端点とス
トロークjの中間点の近接関係を調べるため、ステップ
5T6034以降のステップへ進む。ステップ5603
4で変数j”を設定し、ストロークJの両端点を除く中
間点に対しくステップ5T6035)、ステップ5T6
036の条件をチエ□ツクする。すなわちdis (i
s、je)<Dあるいはd i s (i e、je)
 <Dのいずれか一方の条件が成立するか否かをチエツ
クする。成立すればストロークiの端点とストロークj
の中間点とが近接すると判定しステップ5T607へと
進み成立しなければステップ5T604へと進む。
,Δu+a)/2'
(3) ΔXI J =]X1−Xj1. A Y
I J''(Yl-'/J) (4), d
is (i, j) < D (is, Js), (is, je
), (je, js), (ie, je), and if any of the pairs is satisfied, the stroke i determined to be a character is connected to the stroke j determined to be a figure at the end point. are close to each other, the process advances to step 5T607 described above. If the condition of step 5T6033 is not satisfied, the process proceeds to step 5T6034 and subsequent steps in order to further investigate the proximity relationship between the end point of stroke i and the midpoint of stroke j. Step 5603
Step 5T6035), step 5T6, set the variable j" in step 4, and apply it to the intermediate point excluding both end points of the stroke J.
Check the conditions of 036. That is, dis (i
s, je) < D or d i s (i e, je)
<Check whether one of the conditions D holds true. If established, the end point of stroke i and stroke j
It is determined that the intermediate point is close to each other, and the process proceeds to step 5T607, and if not satisfied, the process proceeds to step 5T604.

[発明の効果] 以上実施例に基づいて詳細に説明したように本発明によ
れば、第1の処理においてまず文字以外の図形ストロー
クを確実に分離した上、第2の処理により第1の処理で
得られた判定結果のうち文字から図形へまたは図形から
文字へと変化するストロークについては、再度図形スト
ロークとの近接関係に基づいて最終的な文字ストローク
と図形ストロークとの判定を行うようにしているため、
従来の方法では誤って分離されるストロークを正しく分
離することが出来る。したがって文字認識や図形認識の
精度向上が期待でき、しかも高精度の手書き文字・図形
認識装置への応用が可能となる。
[Effects of the Invention] As described above in detail based on the embodiments, according to the present invention, graphic strokes other than characters are first reliably separated in the first process, and then the first process is separated in the second process. Among the judgment results obtained in , for strokes that change from characters to figures or from figures to characters, the final judgment is made between character strokes and figure strokes based on the proximity relationship with figure strokes. Because there are
Strokes that are incorrectly separated using conventional methods can be correctly separated. Therefore, it is expected that the precision of character recognition and figure recognition will be improved, and furthermore, the present invention can be applied to high-precision handwritten character and figure recognition devices.

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

第1図は本発明の手書き文字・図形分離方法の実施に用
いる認識装置の概略構成を示すブロック図、第2図は従
来の方法によるストローク抽出方法を説明する図、第3
図は本発明による文字枠サイズと分離判定サイズとの設
定を説明するための図、第4図は本発明による文字・図
形の分離結果を示す図、第5図は本発明の全体の処理フ
ローを示すフローチャート、第6図は本発明の第1の処
理のフローを示すフローチャート、第7図は本発明の第
2の処理のフローを示すフローチャート、第8図は本発
明による近接判定処理フローを示すフローチャート、第
9図は本発明で用いられる座標メモリとストロークメモ
リとの内容を示す図である。 の処理部。
FIG. 1 is a block diagram showing a schematic configuration of a recognition device used to implement the handwritten character/figure separation method of the present invention, FIG. 2 is a diagram illustrating a conventional stroke extraction method, and FIG.
The figure is a diagram for explaining the setting of the character frame size and separation judgment size according to the present invention, Figure 4 is a diagram showing the separation result of characters and figures according to the present invention, and Figure 5 is the overall processing flow of the present invention. 6 is a flowchart showing the flow of the first process of the present invention, FIG. 7 is a flowchart showing the flow of the second process of the present invention, and FIG. 8 is a flowchart showing the flow of the proximity determination process according to the present invention. The flowchart shown in FIG. 9 is a diagram showing the contents of the coordinate memory and stroke memory used in the present invention. processing section.

Claims (1)

【特許請求の範囲】 タブレット上に手書きされる文字・図形を文字と図形と
に分離する手書き文字・図形分離方法において、 ペンダウンからペンアップまでを1ストロークとし、ス
トローク毎に外接する矩形枠を設定し、この矩形枠の長
辺の長さと予め設定した閾値とを比較して前記長辺の長
さが前記閾値より大きいときには前記矩形枠内のストロ
ークを図形ストロークと判定し、それ以外のときには文
字ストロークと判定する第1の過程と、 前記第1の過程で前後のストロークの判定結果が文字ス
トロークから図形ストロークへ、または図形ストローク
から文字ストロークへと変化している場合には、この文
字ストロークの端点が図形ストロークと近接関係にある
か否かに基づいて当該文字ストロークを文字ストローク
又は図形ストロークに再判定する第2の過程とを具備し
たことを特徴とする手書き文字・図形分離方法。
[Claims] In a handwritten character/figure separation method for separating characters/figures handwritten on a tablet into characters and figures, one stroke is defined as from pen down to pen up, and a rectangular frame circumscribing each stroke is set. Then, the length of the long side of this rectangular frame is compared with a preset threshold value, and if the length of the long side is larger than the threshold value, the stroke within the rectangular frame is determined to be a figure stroke, and otherwise, it is determined that the stroke is a character stroke. The first process of determining a stroke; and If the determination results of the previous and subsequent strokes in the first process change from a character stroke to a figure stroke, or from a figure stroke to a character stroke, this character stroke A handwritten character/figure separation method comprising: a second step of re-determining the character stroke as a character stroke or a figure stroke based on whether the end point is in a proximity relationship with the figure stroke.
JP2022669A 1990-02-01 1990-02-01 Hand-written character and graphic separating method Pending JPH03226877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022669A JPH03226877A (en) 1990-02-01 1990-02-01 Hand-written character and graphic separating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022669A JPH03226877A (en) 1990-02-01 1990-02-01 Hand-written character and graphic separating method

Publications (1)

Publication Number Publication Date
JPH03226877A true JPH03226877A (en) 1991-10-07

Family

ID=12089258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022669A Pending JPH03226877A (en) 1990-02-01 1990-02-01 Hand-written character and graphic separating method

Country Status (1)

Country Link
JP (1) JPH03226877A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018530042A (en) * 2015-09-29 2018-10-11 アップル インコーポレイテッドApple Inc. Device and method for providing handwriting support in document editing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018530042A (en) * 2015-09-29 2018-10-11 アップル インコーポレイテッドApple Inc. Device and method for providing handwriting support in document editing

Similar Documents

Publication Publication Date Title
US6249606B1 (en) Method and system for gesture category recognition and training using a feature vector
US5923793A (en) Handwritten character recognition apparatus with an improved feature of correction to stroke segmentation and method for correction to stroke segmentation for recognition of handwritten character
US5513278A (en) Handwritten character size determination apparatus based on character entry area
US6493464B1 (en) Multiple pen stroke character set and handwriting recognition system with immediate response
KR20060096208A (en) Method for displaying script in character recognition system
JPH03226877A (en) Hand-written character and graphic separating method
JPS60136890A (en) Real-time recognition device of hand-written locus
US7133556B1 (en) Character recognition device and method for detecting erroneously read characters, and computer readable medium to implement character recognition
JP3187913B2 (en) Document processing device
JP3422634B2 (en) Handwritten character recognition method and apparatus
JPS62159291A (en) Sentence input device
JP3167800B2 (en) Online character input device
JPH0442316A (en) Electronic computer
JPH07160801A (en) On-line character recognizing device
JP3365538B2 (en) Online character recognition method and apparatus
JPH10162101A (en) Device and method for recognizing handwritten character
JPH08190603A (en) Character recognition device and its candidate character display method
JPH02207387A (en) On-line handwritten character input device
KR950001060B1 (en) Data recognition apparatus
JP3190776B2 (en) Online handwritten character recognition device
JPS61153787A (en) Information processing device
JPH07141468A (en) Handwritten character recognition processing method in handwriting input character device
JPH06203215A (en) On-line character recognizing device
JPH04199485A (en) Character input device
JPH06131503A (en) Character recognizing processor