JPH0443315B2 - - Google Patents

Info

Publication number
JPH0443315B2
JPH0443315B2 JP58095627A JP9562783A JPH0443315B2 JP H0443315 B2 JPH0443315 B2 JP H0443315B2 JP 58095627 A JP58095627 A JP 58095627A JP 9562783 A JP9562783 A JP 9562783A JP H0443315 B2 JPH0443315 B2 JP H0443315B2
Authority
JP
Japan
Prior art keywords
closed
line segment
recognition
input
dictionary
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
JP58095627A
Other languages
Japanese (ja)
Other versions
JPS59221772A (en
Inventor
Hiroshi Shojima
Soshiro Kuzunuki
Kotaro Hirasawa
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58095627A priority Critical patent/JPS59221772A/en
Publication of JPS59221772A publication Critical patent/JPS59221772A/en
Publication of JPH0443315B2 publication Critical patent/JPH0443315B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は図形認識に係り、特に、オンライン手
書き図形認識に好適な図形認識前処理装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to figure recognition, and particularly to a figure recognition preprocessing device suitable for online handwritten figure recognition.

〔発明の背景〕[Background of the invention]

従来のオンライン手書き図形認識は、文字認識
と同様に、筆順、画数、傾きなどが厳しく制限さ
れていたため、マンマシン性が悪い欠点があつ
た。
Conventional online handwritten figure recognition, like character recognition, had severe restrictions on stroke order, number of strokes, tilt, etc., and had the disadvantage of poor man-machine performance.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、操作性の良好なオンライン手
書き図形装置及び認識方法を提供するにある。
An object of the present invention is to provide an online handwritten figure device and a recognition method with good operability.

〔発明の概要〕[Summary of the invention]

本発明の特徴は、図形認識装置において、手書
きにより順次入力されたストロークから得られる
複数の線分の、各線分の端点と他の線分の端点と
の接続の有無を示す接続情報を用いて全ての線分
が接続状態となつている線分群を閉図形と判定す
る線分接続検知手段を設け、線分接続検知手段に
より閉図形と判定された線分群を切り出し、切り
出された線分群と辞書図形とを比較し図形認識を
行なうことにより、連続的に手書き入力されるス
トロークの中から閉図形を構成する線分群を自動
的に切り出すことを可能とし、操作性の向上が図
られることにある。
A feature of the present invention is that a figure recognition device uses connection information indicating the presence or absence of a connection between the end point of each line segment and the end point of another line segment of a plurality of line segments obtained from strokes input sequentially by hand. A line segment connection detection means is provided which determines a line segment group in which all line segments are in a connected state to be a closed figure, and the line segment group determined to be a closed figure by the line segment connection detection means is cut out, and the cut out line segment group and By comparing shapes with dictionary shapes and performing shape recognition, it is possible to automatically cut out groups of line segments that make up closed shapes from continuously input handwritten strokes, improving operability. be.

さらにまた本発明の特徴は、手書きにより図形
を構成するストロークを入力し、前記入力された
ストロークが閉図形を構成する場合に当該閉図形
を切り出し、前記切り出された閉図形と辞書図形
とを比較し、対応する辞書図形を認識結果とする
ことにより、連続的に手書き入力されるストロー
クの中から閉図形を構成する線分群を自動的に切
り出すことを可能とし、操作性の向上が図られる
ことにある。
Furthermore, a feature of the present invention is that strokes constituting a figure are input by hand, and when the input strokes constitute a closed figure, the closed figure is cut out, and the cut out closed figure and the dictionary figure are compared. By using the corresponding dictionary figure as the recognition result, it is possible to automatically cut out a group of line segments constituting a closed figure from the strokes that are continuously input by hand, thereby improving operability. It is in.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の一実施例を第1図ないし第4図
により説明する。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 4.

第1図a,bに本発明のオンライン手書き図形
認識装置のブロツク図を示す。座標サンプル装置
1はタブレツト等現在の座標を適当な時間間隔で
サンプルする装置である。ここからサンプル座標
が入力されると、方向コードbの検知100では
2点のサンプル点より方向コードを発生する。な
お、サンプル座標にはストロークの始めと終りの
情報が含まれており、ストローク終了であれば、
方向コード検知100は処理を線分接続検知20
0に渡す。線分接続検知200では、二つのスト
ロークが接続しているかを判定し、接続リストを
作成し、全接続リストが、接続状態となると、処
理を相対的方向コード発生300へ渡す。もし、
接続リスト中に未接続のものがあれば、処理は方
向コード検知100に戻され、次のサンプル点の
チエツクを行なう。このようにして得られた相対
的方向コードにより認識部6は辞書とのマツチン
グにより入力図形を認識し、図形コード情報発生
8のマツチングした図形情報を渡す。以下、各部
の働きを詳細に説明する。
FIGS. 1a and 1b show block diagrams of an online handwritten figure recognition apparatus according to the present invention. The coordinate sampling device 1 is a device such as a tablet that samples the current coordinates at appropriate time intervals. When sample coordinates are input from here, a direction code is generated from the two sample points in direction code b detection 100. Note that the sample coordinates include information on the beginning and end of the stroke, and if the stroke ends,
Direction code detection 100 processes line segment connection detection 20
Pass to 0. Line segment connection detection 200 determines whether two strokes are connected, creates a connection list, and when all connection lists are in a connected state, passes processing to relative direction code generation 300. if,
If there are any unconnected points in the connection list, the process returns to direction code detection 100 to check the next sample point. The recognition unit 6 recognizes the input figure by matching it with a dictionary using the relative direction code obtained in this way, and passes the matched figure information to the figure code information generation 8. The function of each part will be explained in detail below.

第2図の方向コード検知100の処理の流れを
示す。101では前段の座標サンプル装置からの
ストローク開始信号により処理の起動を行なう。
ここでは、座標サンプル手段として、ダブレツト
を例にとることとし、以降ストローク開始はペン
ダウン、終了はペンアツプ、サンプリングされた
座標はペン座標と呼ぶ。102ではペンダウン時
のサンプル点1の座標を取り込み103で予め設
定された記憶回路に格納する。104で次のサン
プル点2を取り込み、105で先に格納したサン
プル点1と新しく取り込んだ点2による方向コー
ドを計算する。ここで、方向コードとは、予め、
360度をL個に分割した時、各方位に与えられた
番号のことである。次に、サンプル点2はペンア
ツプ情報を持つているかどうかを106で判定
し、Noならば前回の方向コードと今回の方向コ
ードが同一であるがどうかを107で判定する。
同一コードであれば、次の座標サンプルを行なう
ため、104へ戻る。また、方向コードが異なる
場合は108でサンプル点2を記憶領域のサンプ
ル点1の次に格納する109。ここで108で、
ペン座標格納X2とあるのは方向コードの変化に
より、ストロークを複数の線分に分割するため、
前の線分の終点座標を次の線分の始点座標として
新たに格納してるいるためである。この後、次の
サンプル点取り込みのため、104へ戻る。10
6で、ペンアツプが検知された場合、110で全
ストローク数が予め設定された最大ストローク数
Nより小さいかどうかを判定し、小さければ、1
11でサンプル点2の座標を格納し、線分接続検
知ルーチン200へジヤンプする。一方、ストロ
ーク数がNより大きくなつた場合には、認識不能
のエラメツセージを出力するルーチン400へジ
ヤンプする。
The flow of the process of direction code detection 100 shown in FIG. 2 is shown. At 101, processing is started by a stroke start signal from the coordinate sampling device at the previous stage.
Here, we will use a doublet as an example of the coordinate sampling means, and hereafter the start of the stroke will be referred to as pen down, the end as pen up, and the sampled coordinates will be referred to as pen coordinates. At step 102, the coordinates of sample point 1 when the pen is down are taken in and stored at step 103 in a preset storage circuit. At 104, the next sample point 2 is fetched, and at 105, a direction code is calculated based on the previously stored sample point 1 and the newly fetched point 2. Here, the direction code is defined in advance as
This is the number given to each direction when 360 degrees is divided into L parts. Next, it is determined in step 106 whether sample point 2 has pen-up information, and if no, it is determined in step 107 whether the previous direction code and the current direction code are the same.
If the codes are the same, the process returns to 104 to perform the next coordinate sample. If the direction codes are different, then in step 108, sample point 2 is stored next to sample point 1 in the storage area (109). Here at 108,
Pen coordinate storage X2 means that the stroke is divided into multiple line segments due to changes in the direction code.
This is because the coordinates of the end point of the previous line segment are newly stored as the coordinates of the start point of the next line segment. After this, the process returns to step 104 to acquire the next sample point. 10
If a pen-up is detected in step 6, it is determined in step 110 whether the total number of strokes is smaller than the preset maximum number of strokes N, and if it is, 1
In step 11, the coordinates of the sample point 2 are stored, and the process jumps to the line segment connection detection routine 200. On the other hand, if the number of strokes becomes greater than N, the routine jumps to a routine 400 that outputs an unrecognized error message.

第3図は線分の接続を検知し、200の処理の
流れを示す。201で記憶装置上の接続フラグリ
ストより未接続となつている線分の番号出力す
る。ここで接続フラグリストとは、線分数×2×
1ビツトから成つており各線分の両端が各々他の
線分と接続しているとき“1”、いずれかの線分
とも接続されていないとき“0”が格納されてい
る。202で前述のように出力された未接続座標
番号より、それに対応する座標を読み出す。20
3で他の座標番号を読み出し、204でこれら2
点が同一点かどうかを判定する。もし同一点なら
ば、他の座標として次に格納されている座標番号
を読み出す。205でその座標を取り込む。20
6で2点の排他的論理和を取り、207で予め設
定された下位nビツトをマスクし、結果が0であ
るかどうかを208で判定する。ここで、下位n
ビツトをマスクしたのは、手書入力による接続部
のハナレや交わりに多少のズレを許すためであ
る。208で結果が0であれば、2点の接続して
いると見なされ、209で接続フラグリストの該
当するアドレスに“1”を書き込む。210で全
フラグリストをチエツクし、全てが“1”のとき
入力図形は閉じた、と判定され300の相対的方
向コードが発生ルーチンへジヤンプする。全ての
フラグが“1”でない場合には、次の未接続座標
番号を見つけるため201へジヤンプする。一
方、上記208で2点が一致しない、と判定され
た場合、212で全サンプル点の接続チエツクが
終了したかどうかを判定し、終了していなければ
211に戻り、終了した場合には、新たな線分を
入力するため100へ戻る。
FIG. 3 shows the flow of processing 200 for detecting connection of line segments. In step 201, the numbers of unconnected line segments are output from the connection flag list on the storage device. Here, the connection flag list is the number of line segments x 2 x
It consists of 1 bit, and "1" is stored when both ends of each line segment are connected to each other line segment, and "0" is stored when the ends are not connected to any line segment. At step 202, the coordinates corresponding to the unconnected coordinate numbers output as described above are read. 20
3 reads the other coordinate numbers, and 204 reads these 2
Determine whether the points are the same point. If they are the same point, the next stored coordinate number is read out as the other coordinate. At step 205, the coordinates are taken in. 20
At 6, the exclusive OR of the two points is taken, at 207 the lower n bits set in advance are masked, and at 208 it is determined whether the result is 0 or not. Here, the lower n
The reason why the bits are masked is to allow for slight deviations in connections and intersections due to handwritten input. If the result in step 208 is 0, it is assumed that the two points are connected, and in step 209, "1" is written to the corresponding address in the connection flag list. At 210, the entire flag list is checked, and when all flags are "1", it is determined that the input figure is closed, and a relative direction code of 300 is jumped to the generating routine. If all the flags are not "1", the process jumps to 201 to find the next unconnected coordinate number. On the other hand, if it is determined in step 208 that the two points do not match, it is determined in step 212 whether the connection check for all sample points has been completed, and if it has not been completed, the process returns to step 211, and if completed, a new Return to step 100 to input a line segment.

第4図は相対的方向コード発生300の処理の
流れを示す。311で予め100の処理で格納さ
れた線分の第一番目の方向コード1を読み出す。
302で次の方向コード2を読み出し、303で
方向コード2が方向コード1より小ならば、30
6で方向コード2にコード数Lを加えた後、30
4で方向コード1を引く、その結果を新たな方向
コード2の値として格納する。また、305で全
方向コードの処理が終了したかどうかを判定し、
終了していなければ、302の次の方向コード読
み出しへ戻る。一方、終了した場合は、認識処理
へ進む。
FIG. 4 shows the process flow of relative direction code generation 300. In step 311, the first direction code 1 of the line segment stored in advance in the process 100 is read out.
The next direction code 2 is read in 302, and if direction code 2 is smaller than direction code 1 in 303, 30 is read.
After adding the code number L to the direction code 2 in 6, 30
4, subtract the direction code 1, and store the result as the new direction code 2 value. Also, in 305, it is determined whether the omnidirectional code processing is finished,
If not completed, the process returns to step 302 to read the next direction code. On the other hand, if the process has ended, the process proceeds to recognition processing.

第5図に本方式を実現する際の記憶装置のメモ
リ配置を示す。図中破線は、各座標に対応する方
向コードと、接続フラグリストの関係を示す。
FIG. 5 shows the memory arrangement of the storage device when implementing this method. Broken lines in the figure indicate the relationship between the direction code corresponding to each coordinate and the connection flag list.

第6図a,bに図形入力例と、その方向コード
の如何に拘らず、同一筆順の時、同じ相対方向コ
ードに変換される様子を示す。
FIGS. 6a and 6b show an example of a graphic input and how it is converted into the same relative direction code when the stroke order is the same, regardless of the direction code.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、図形認識における認識対象の
切り出しタイミングが自動的に検知されるので、
使用者は入力に専念でき、操作性の向上が図られ
る。
According to the present invention, the timing of cutting out a recognition target in figure recognition is automatically detected.
The user can concentrate on inputting information, and operability is improved.

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

第1図は本発明のオンライン手書図形認識装置
のブロツク図、第2図は方向コード検知処理のフ
ローチヤート、第3図は線分接続検知処理のフロ
ーチヤート、第4図は相対的方向コード発生処理
のフローチヤート、第5図は記憶装置のメモリマ
ツプ図、第6図a,bは図形入力例図である。 1……座標サンプル装置、100……方向コー
ド検知装置、200……線分接続検知装置、30
0……相対的方向コード発生装置、6……図形認
識装置、8……図形発生装置。
Fig. 1 is a block diagram of the online handwritten figure recognition device of the present invention, Fig. 2 is a flowchart of direction code detection processing, Fig. 3 is a flowchart of line segment connection detection processing, and Fig. 4 is a relative direction code A flowchart of the generation process, FIG. 5 is a memory map of the storage device, and FIGS. 6a and 6b are diagrams of graphic input examples. 1... Coordinate sample device, 100... Direction code detection device, 200... Line segment connection detection device, 30
0...Relative direction code generator, 6...Graphic recognition device, 8...Graphic generator.

Claims (1)

【特許請求の範囲】 1 手書きにより入力された少なくとも一つのス
トロークからなる図形を辞書図形と比較し認識す
るオンライン手書き図形認識装置において、 前記手書きにより順次入力されたストロークか
ら得られる複数の線分の、各線分の端点と他の線
分の端点との接続の有無を示す接続情報を用い
て、全ての線分が接続状態となつている線分群を
閉図形と判定する線分接続検知手段を設け、 前記線分接続検知手段により閉図形と判定され
た線分群を切り出し、当該切り出された線分群と
前記辞書図形とを比較し図形認識を行なうことを
特徴とするオンライン手書き図形認識装置。 2 手書きにより少なくとも一つのストロークか
らなる図形を入力し、入力された手書き図形と辞
書図形とを比較し認識するオンライン手書き図形
認識方法において、 手書きにより図形を構成するストロークを入力
し、前記入力されたストロークが閉図形を構成す
る場合に当該閉図形を切り出し、前記切り出され
た閉図形と辞書図形とを比較し、対応する辞書図
形を認識結果とすることを特徴とするオンライン
手書き図形認識方法。 3 特許請求の範囲第2項記載のオンライン手書
き図形認識方法において、前記入力されたストロ
ークを構成する線分間が全て接続されているとき
閉図形とし切り出すことを特徴とするオンライン
手書き図形認識方法。
[Scope of Claims] 1. An online handwritten figure recognition device that recognizes a figure made up of at least one stroke input by handwriting by comparing it with a dictionary figure, comprising: , line segment connection detection means for determining a group of line segments in which all line segments are connected to be a closed figure using connection information indicating whether or not the end point of each line segment is connected to the end point of another line segment. An online handwritten figure recognition device, comprising: cutting out a group of line segments determined to be closed figures by the line segment connection detection means, and performing figure recognition by comparing the cut out group of line segments with the dictionary figure. 2. An online handwritten figure recognition method in which a figure consisting of at least one stroke is input by hand, and the input handwritten figure is compared and recognized with a dictionary figure. An online handwritten figure recognition method, characterized in that when strokes constitute a closed figure, the closed figure is cut out, the cut out closed figure is compared with a dictionary figure, and the corresponding dictionary figure is taken as a recognition result. 3. The online handwritten figure recognition method according to claim 2, characterized in that when all line segments constituting the input stroke are connected, the figure is cut out as a closed figure.
JP58095627A 1983-06-01 1983-06-01 Pre-processor for recognition of on-line handwritten pattern Granted JPS59221772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58095627A JPS59221772A (en) 1983-06-01 1983-06-01 Pre-processor for recognition of on-line handwritten pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58095627A JPS59221772A (en) 1983-06-01 1983-06-01 Pre-processor for recognition of on-line handwritten pattern

Publications (2)

Publication Number Publication Date
JPS59221772A JPS59221772A (en) 1984-12-13
JPH0443315B2 true JPH0443315B2 (en) 1992-07-16

Family

ID=14142756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58095627A Granted JPS59221772A (en) 1983-06-01 1983-06-01 Pre-processor for recognition of on-line handwritten pattern

Country Status (1)

Country Link
JP (1) JPS59221772A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6395591A (en) * 1986-10-13 1988-04-26 Wacom Co Ltd Method for recognizing hand-written character

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5050841A (en) * 1973-09-05 1975-05-07
JPS6019548B2 (en) * 1978-05-31 1985-05-16 富士通株式会社 Stroke loop detection device

Also Published As

Publication number Publication date
JPS59221772A (en) 1984-12-13

Similar Documents

Publication Publication Date Title
KR0128734B1 (en) Hand written character recognition device
US5459809A (en) Character recognition system and method therefor accommodating on-line discrete and cursive handwritten
JP2003308480A (en) Online handwritten character pattern recognition and editing apparatus and method, and computer-executable program for implementing the method
JPH0792815B2 (en) Pattern recognition method
JPH07107708B2 (en) Pattern recognition method
US8005262B2 (en) System and method for video object identification
JPH07509576A (en) How to recognize characters
JPH0443315B2 (en)
JP4958236B2 (en) Method and apparatus for recognizing handwritten patterns
JP3221488B2 (en) Online character recognition device with verification function
JP2801602B2 (en) Word recognition device
JPH0210473B2 (en)
JPH0677252B2 (en) Japanese data input processor
KR100292352B1 (en) Editing method of recognizer using morphological analysis
JPS6336487A (en) Character reading system
JPH02173886A (en) Word recognizing system
JPH10334187A (en) Character recognition device and character recognition method
JPS6215683A (en) information recognition device
JPS60263275A (en) Character recognizing device
JP2722962B2 (en) Drawing recognition device
JP2972443B2 (en) Character recognition device
JP2519782B2 (en) Character separation method
JPS6376080A (en) Line figure separation device
JPH07192096A (en) Online handwriting recognition device
JPS6151278A (en) Figure classifying system