JPH03263281A - Handwritten line graphic input device - Google Patents

Handwritten line graphic input device

Info

Publication number
JPH03263281A
JPH03263281A JP2064541A JP6454190A JPH03263281A JP H03263281 A JPH03263281 A JP H03263281A JP 2064541 A JP2064541 A JP 2064541A JP 6454190 A JP6454190 A JP 6454190A JP H03263281 A JPH03263281 A JP H03263281A
Authority
JP
Japan
Prior art keywords
stroke
character
character frame
frame
pen
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
JP2064541A
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 JP2064541A priority Critical patent/JPH03263281A/en
Publication of JPH03263281A publication Critical patent/JPH03263281A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the degree of freedom for handwrite and to separate characters and graphics with high accuracy by displaying or erasing a character frame while deciding the circumscribed rectangle of a stroke as a character or graphic stroke corresponding to whether a length (l) of a long side in the rectangle is less or more than a threshold value. CONSTITUTION:When the starting position of the first stroke in the character is written down by a pen, a processing circuit 402 writes the character frame of one character in a size set in advance through an interface circuit 405 to a frame memory 5 with the coordinates of the position as a center, and writes a straight line linking those coordinate points into a memory 5. On the other hand, a control circuit 6 sends out the contents of the memory 5 to a display 2 at fixed cycles. The circuit 402 calculates the length (l) of the long side in the frame of the circumscribed rectangle to the stroke according to the respective coordinates of the first stroke, and compares the calculated length with the threshold value to be decided from the character frame. Corresponding to whether the length (l) is less or more than the threshold value, the stroke is decided as the character or the graphic. When the stroke is decided as the character, the central position of the character frame is moved to the central position of the stroke circumscribed rectangle and displayed 2. On the other hand, when the stroke is decided as the graphic, the character frame is erased.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、入力部と表示部が一体となった入力表示一体
型座標入力装置を用いる手書き線図型入力装置に関し、
特に入力線図をストローク単位に文字或いは図形に分離
することが可能な手書き線図形入力装置に関するもので
ある。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a handwritten line diagram type input device using an input display integrated coordinate input device in which an input section and a display section are integrated.
In particular, the present invention relates to a handwritten line figure input device that can separate input line figures into characters or figures on a stroke-by-stroke basis.

〔従来技術〕[Prior art]

従来、この種技術としては、特開昭60−204089
号に開示されたものがある。この技術は、入力表示一体
型座標入力装置の入力面上をあらかじめ設定された大き
さの格子状のます目に区切って、例えば入力ストローク
のX軸、y軸上への投影長さのうちの最大投影長さを求
め、この最大投影長さを所定の閾値と比較し、投影長さ
がこの所定の閾値より小さいときは文字ストローク、即
ち文字認識モードに、最大投影長さがこの閾値より大き
いときは図形認識モードに設定し、文字ストロークにつ
いて、同一まず目のストロークは同一文字のストローク
として1文字のセグメンテーションを行なっている。
Conventionally, this type of technology was disclosed in Japanese Patent Application Laid-Open No. 60-204089.
There is something disclosed in the issue. This technology divides the input surface of the input/display integrated coordinate input device into grid-like squares of preset size, and divides the projected length of the input stroke onto the X and Y axes, for example. Find the maximum projection length, compare this maximum projection length with a predetermined threshold, and if the projection length is smaller than this predetermined threshold, enter character stroke, i.e. character recognition mode, and the maximum projection length is greater than this threshold. At this time, the graphic recognition mode is set, and regarding character strokes, the first stroke of the same character is treated as the stroke of the same character, and segmentation of one character is performed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、上記従来の入力面上にあらかじめ設定さ
れたまず日内に文字を記入するという方法では、記入文
字数や文字間隔が制限されるという欠点、或いは場所に
よっては文字の大きさを任意に変えられないという欠点
、また記入対象とする図形の任意の位置に文字を書き込
めないという欠点があった。
However, with the above-mentioned conventional method of first writing characters on a preset day on the input screen, the disadvantage is that the number of characters and character spacing is limited, or the size of the characters cannot be changed arbitrarily depending on the location. There was also a drawback that characters could not be written at arbitrary positions on the figure to be written.

本発明は上述の点に鑑みてなされたもので、上記問題点
を除去し、入力面の任意の位置に所望の大きさの文字が
所望の間隔で記入でき、しかも1文字を構成するストロ
ークを他のストロークと正確に分離し得る、手書き自由
度が高く、且つ高精度の文字と図形の分離機能及び1文
字の切出し機能を備えた手書き線図形入力装置を提供す
ることにある。
The present invention has been made in view of the above-mentioned points, and it eliminates the above-mentioned problems, allows characters of a desired size to be written at desired intervals on an input surface, and also allows the strokes constituting one character to be written at any position on an input surface. To provide a handwritten line figure input device which can accurately separate strokes from other strokes, has a high degree of freedom in handwriting, and has a highly accurate character and figure separation function and a single character cutting function.

〔課題を解決するための手段〕[Means to solve the problem]

上記課題を解決するため本発明は、手書き線図形入力装
置を下記のように構成した。
In order to solve the above problems, the present invention has configured a handwritten line figure input device as follows.

ペンダウンからペンアップまでを1ストロークとし、ペ
ンダウン時にその位置を中心とする文字枠を表示し、1
ストロークの入力毎に入力されたストロークの外接矩形
の長辺の長さ2と、文字枠の大きさから決まる閾値とを
比較して、長さ2が該閾値未満のとき当該ストロークを
文字ストロークと判定すると共に、文字枠の中心位置を
ストローク外接矩形の中心位置へ移動して表示し、長さ
lが閾値以上であるときには、当該ストロークを図形ス
トロークと判定して文字枠を消去し、ペンダウン時のス
トロークの始点が表示されている文字枠内に位置すると
きに辻、当該ストロークの始点を文字ストロークの始点
と判定して、文字枠表示を継続し、ペンダウン時のスト
ロークの始点が表示されている前記文字枠外に位置する
ときには表示されている文字枠を消去して、ストローク
の始点を中心とする新たな文字枠を表示する機能を有す
る構成とした。
One stroke is from pen down to pen up, and when the pen is down, a character frame centered at that position is displayed, and 1
Each time a stroke is input, the length 2 of the long side of the circumscribed rectangle of the input stroke is compared with a threshold determined from the size of the character frame, and when the length 2 is less than the threshold, the stroke is recognized as a character stroke. At the same time, the center position of the character frame is moved to the center position of the stroke circumscribing rectangle and displayed. If the length l is greater than or equal to the threshold value, the stroke is determined to be a figure stroke, the character frame is erased, and when the pen is down, When the start point of the stroke is located within the displayed character frame, the start point of the stroke is determined to be the start point of the character stroke, the character frame continues to be displayed, and the start point of the stroke when the pen is down is displayed. When the character frame is located outside the existing character frame, the currently displayed character frame is erased and a new character frame centered at the starting point of the stroke is displayed.

また、前記文字枠の大きさは、表示面上の位置に対応し
て予めフォーマット化されたものであることを特徴とす
る。
Further, the size of the character frame is formatted in advance in accordance with the position on the display surface.

〔作用〕[Effect]

本発明によれば、ストロークの外接矩形の長辺の長さL
が文字枠の大きさから決まる閾値未満のときはストロー
クを文字ストロークと判定し、文字枠の中心位置をスト
ローク外接矩形の中心位置へ移動して表示し、長さ乏が
閾値以上であるときは図形ストロークと判定して文字枠
を消去し、ペンダウン時のストロークの始点が表示され
ている文字枠内に位置するときは当該ストロークの始点
を文字ストロークの始点と判定して、文字枠表示ヲ継続
し、ペンダウン時のストロークの始点が表示されている
文字枠外に位置するときには、表示されている文字枠を
消去して、ストロークの始点を中心とする新たな文字枠
を表示するから、記入者は表示された文字枠を見ながら
文字或いは図形の手書き入力が可能となり、文字を大き
く書き過ぎたり、また図形を小さく書き過ぎたりするこ
とによって、文字が図形と判断されたり、図形が文字と
判定されるようなな記入の誤りを防止することができる
。文字と図形の分離と、文字については1文字づつに分
離した情報が得られる他、任意の位置に所望の大きさの
文字が所望の間隔で記入できる。
According to the present invention, the length L of the long side of the circumscribed rectangle of the stroke
If the length is less than the threshold determined by the size of the character frame, the stroke is determined to be a character stroke, and the center position of the character frame is moved to the center position of the stroke circumscribing rectangle and displayed. If it is determined to be a figure stroke and the character frame is erased, and the start point of the stroke when the pen is down is located within the displayed character frame, the start point of the stroke is determined to be the character stroke start point and the character frame display continues. However, if the start point of the stroke when the pen is down is located outside the displayed character frame, the displayed character frame is erased and a new character frame centered at the stroke start point is displayed, so the user can It is now possible to input characters or shapes by hand while looking at the displayed character frame, and if you write the characters too large or the shapes too small, the characters may be judged as figures or the figures may be judged as letters. It is possible to prevent entry errors such as In addition to being able to separate characters and figures and obtain information separated for each character, it is also possible to write characters of a desired size in any position at a desired interval.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基づいて説明する。 Embodiments of the present invention will be described below based on the drawings.

第1図は本発明の実施例である手書き線図形入力装置の
構成を示すブロック図である。手書き線図形入力装置は
図示するように、スタイラスペン1、液晶デイスプレィ
2、タブレット3、あ連部4、フレームメモリ5、表示
部制御部6及びキーボード入力部7とから構成される。
FIG. 1 is a block diagram showing the configuration of a handwritten line figure input device according to an embodiment of the present invention. The handwritten line figure input device is comprised of a stylus pen 1, a liquid crystal display 2, a tablet 3, a link section 4, a frame memory 5, a display control section 6, and a keyboard input section 7, as shown in the figure.

この液晶デイスプレィ2とタブレット3は一体的に構成
され、公知の所謂入力表示一体型座標入力装置を構成す
る。
The liquid crystal display 2 and the tablet 3 are integrally constructed to constitute a known input/display integrated coordinate input device.

処理部4は図示するように、入力インターフェース回路
401、処理回路402、座標メモリ403、ストロー
クメモリ404及びフレームメモリインターフェース回
路405から構成される。
As shown in the figure, the processing section 4 includes an input interface circuit 401, a processing circuit 402, a coordinate memory 403, a stroke memory 404, and a frame memory interface circuit 405.

入力インターフェース回路401はタブレット3からの
座標データを入力するインターフェース回路であり、処
理回路402はマイクロプログラムの制御の下にストロ
ークを文字或いは図形と判定する処理や、文字枠、スト
ロークをフレームメモリに描画する処理等を行なう処理
回路であり、座標メモリ403はストロークの各点の座
標を格納するための座標メモリである。また、ストロー
クメモリ404はストローク毎の文字9図形の判定結果
等の情報を格納するためのメモリ、フレームメモリイン
ターフェース回路405は描画データをフレームメモリ
5に出力するためのインターフェース回路である。
The input interface circuit 401 is an interface circuit that inputs coordinate data from the tablet 3, and the processing circuit 402 performs processing to determine strokes as characters or figures under the control of a microprogram, and draws character frames and strokes in frame memory. The coordinate memory 403 is a coordinate memory for storing the coordinates of each point of a stroke. Further, a stroke memory 404 is a memory for storing information such as determination results of nine characters and figures for each stroke, and a frame memory interface circuit 405 is an interface circuit for outputting drawing data to the frame memory 5.

電磁誘導型のスタイラスペン1を用いて液晶デイスプレ
ィ2の表面をペンタッチ(ペンダウン)すると、電磁型
のタブレット3はその位置を検出して、その座標値(X
、Y)とスタイラスペン1のペンアップ/ペンダウン等
のデータを処理部4へ送出する。
When you touch (pen down) the surface of the liquid crystal display 2 with the electromagnetic induction stylus pen 1, the electromagnetic tablet 3 detects the position and displays its coordinate value (X
, Y) and data such as pen-up/pen-down of the stylus pen 1 are sent to the processing unit 4.

処理部4の処理回路402は前記タブレット3から送出
される上記データを入力インターフェース回路401を
介して入力すると以下の処理をマイクロプログラムの制
御の下に実行する。このときの動作を第3図を用いて説
明する。
When the processing circuit 402 of the processing section 4 receives the above data sent from the tablet 3 via the input interface circuit 401, it executes the following processing under the control of a microprogram. The operation at this time will be explained using FIG.

第3図(A)〜(C)は文字“A”を第1のストローク
(A)、第2のストローク(−)の順に入力したときの
液晶デイスプレィ2の表示内容の変化を示したもので、
第1のストロークの始点位置がペンダウン(ベンタッチ
)されると(第4図(a)の参照)、処理回路402は
その座標(X、Y)を中心として、予め設定された、大
きさの1文字の文字枠CFをフレームメモリインターフ
ェース回路405を介してフレームメモリ5に書き込み
、筆跡が進むにつれて後続の座標データが読み込まれ、
それらの座標点を結ぶ直線が同様にしてフレームメモリ
5に書き込まれる。
Figures 3 (A) to (C) show changes in the display contents on the liquid crystal display 2 when the character "A" is input in the order of the first stroke (A) and the second stroke (-). ,
When the starting point position of the first stroke is pen-down (pen-touched) (see FIG. 4(a)), the processing circuit 402 sets a preset size of 1 with the coordinates (X, Y) as the center. The character frame CF of the character is written into the frame memory 5 via the frame memory interface circuit 405, and subsequent coordinate data is read as the handwriting progresses.
A straight line connecting those coordinate points is similarly written into the frame memory 5.

一方、表示部制御部6は所定の同期でフレームメモリ5
の内容を液晶デイスプレィ2に送出する。
On the other hand, the display unit control unit 6 controls the frame memory 5 in predetermined synchronization.
The contents are sent to the liquid crystal display 2.

その結果、前記第1のストロークの入力直後には第3図
(a)のように表示され、この第1のストロークの入力
が終了すると処理回路402は、このストロークの各座
標から、当該ストロークに外接する外接矩形枠の長辺の
長さlを計算し、その値を前記文字枠CFの大きさから
決まる閾値と比較し、文字2図形の判定を行ない、当該
ストロ一りを文字と判定する。このとき、第3図(b)
に示すように、前記文字枠CFの中心位置を第1のスト
ローク外接矩形枠の中心位置に移動させるようにフレー
ムメモリ5の内容を書き換える。
As a result, immediately after inputting the first stroke, a display as shown in FIG. Calculate the length l of the long side of the circumscribed rectangular frame, compare that value with a threshold value determined from the size of the character frame CF, determine whether there are two character shapes, and determine that one stroke is a character. . At this time, Fig. 3(b)
As shown in FIG. 3, the contents of the frame memory 5 are rewritten so as to move the center position of the character frame CF to the center position of the first stroke circumscribed rectangular frame.

第2のストローク(−)が入力されると、そのストロー
クの始点が前記文字枠CF内にあることから、前記第1
のストロークと同一文字のストロークであると判定され
る(第3図(c)参照)。
When the second stroke (-) is input, since the starting point of the stroke is within the character frame CF, the first
It is determined that the stroke is of the same character as the stroke (see FIG. 3(c)).

このとき、第1のストロークと第2のストロークとが文
字であることを示すフラグ情報と同一文字“A11のス
トロークであることを示す情報、また第1.第2の各ス
トロークを構成する座標数等がストロークメモリ404
へ格納され、また各点の座標は座標メモリ403へ格納
される。
At this time, flag information indicating that the first stroke and the second stroke are characters, information indicating that they are strokes of the same character "A11," and the number of coordinates constituting each of the first and second strokes. etc. are the stroke memory 404
The coordinates of each point are stored in the coordinate memory 403.

第3図(e)〜(g)は文字“A11の右に文字“B 
ITが書き込まれるときの様子を示したものであって、
第3図(C)に示される文字“A”の文字枠外にペンダ
ウンすると、文字“A”とは異なる文字の入力開始と判
定される。第3図(e)に示すように文字“A”の文字
枠CFは消去され、前記同様のペンダウン時の座標位置
を中心として、新しい文字の入力のための文字枠CFが
表示される。続いて、第3図(f)に示すように文字“
B”の第1のストローク(I)が入力されて、文字枠C
Fの中心位置が移動し、次のストローク(:3)の入力
が開始されたときの表示を示している。
Figures 3(e) to (g) show the letter “B” to the right of the letter “A11”.
It shows how IT is written,
When the pen is moved down outside the character frame of the character "A" shown in FIG. 3(C), it is determined that the input of a character different from the character "A" has started. As shown in FIG. 3(e), the character frame CF for the character "A" is erased, and a character frame CF for inputting a new character is displayed centered on the same coordinate position when the pen is down. Then, as shown in Figure 3(f), the characters "
The first stroke (I) of “B” is input and the character frame C
This shows the display when the center position of F has moved and input of the next stroke (:3) has started.

第3図(g)は文字“B 11の入力が終了したときの
表示状態を示しており、文字“A”と同様に文字“B”
のストローク(1)と(3)の各ストロークの座標が座
標メモリ403へ格納され、またフラグ情報等がストロ
ークメモリ404へ格納される。
Figure 3 (g) shows the display state when the input of the character "B 11" is completed, and the character "B" is displayed in the same way as the character "A".
The coordinates of each stroke (1) and (3) are stored in the coordinate memory 403, and flag information etc. are stored in the stroke memory 404.

第3図(h)〜(k)は枠間形(ロ)入力時の様子を示
している。第1のストローク(1)の入力が開始される
と、第3図(h)に示すように、文字枠CFが表示され
る。第1のストロークの入力終了時に、該ストロークの
長辺が前記閾値を越えることから、当該ストロークは図
形のストロークと判定され、第3図(i)に示すように
文字枠CFの表示は消去される。次の第2のストローク
(コ)の入力開始時にも、第3図(j)に示すように文
字枠CFの表示が行なわれるが、ストローク入力終了時
に、当該ストロークは図形と判定されるため、文字枠C
Fの表示は消去され、第3図(k)が表示される。この
とき上記2つのストロークに関する座標データ、フラグ
情報等が前記同様座標メモリ403、ストロークメモリ
404に各々格納される。
FIGS. 3(h) to 3(k) show the state when inputting the interframe form (b). When the input of the first stroke (1) is started, a character frame CF is displayed as shown in FIG. 3(h). At the end of inputting the first stroke, since the long side of the stroke exceeds the threshold value, the stroke is determined to be a graphic stroke, and the display of the character frame CF is erased as shown in FIG. 3(i). Ru. At the start of inputting the next second stroke (C), a character frame CF is displayed as shown in FIG. 3(j), but at the end of stroke input, the stroke is determined to be a figure. Character frame C
The display of F is erased and FIG. 3(k) is displayed. At this time, coordinate data, flag information, etc. regarding the two strokes are stored in the coordinate memory 403 and stroke memory 404, respectively, as described above.

第2図(A)〜(C)は上記処理部4の動作フローを示
すものであり、以下同図を用いて処理部4の動作を詳細
に説明する。
FIGS. 2A to 2C show the operation flow of the processing section 4, and the operation of the processing section 4 will be explained in detail below using the same figures.

処理が開始されると(ステップ5TO)、先ずステップ
STIにおいて、ストローク数を計数する変数n、スト
ローク毎の座標数を計数する変数k及び座標数の累計数
を計数する変数mが初期化され(n=o 、 k=o 
、 m−0)、また文字数を計数する変数ic、1文字
のストロークの数を計数する変数151図形のストロー
ク数を計数する変数jzを初期化する( icwO,1
s−0、jzxO)。
When the process starts (step 5TO), first in step STI, a variable n that counts the number of strokes, a variable k that counts the number of coordinates for each stroke, and a variable m that counts the cumulative number of coordinates are initialized ( n=o, k=o
, m-0), and initialize the variable ic that counts the number of characters, the variable 151 that counts the number of strokes for one character, and the variable jz that counts the number of strokes of a figure (
s-0, jzxO).

次に、ステップST2では状態変数5TATUSを初期
化(5TATUS−0)L、続くステップST3にでは
入力インターフェース回路401を介してデータを読み
込み、続くステップST4とステップST5或いはステ
ップST4とステップST7でペンアップ/ペンダウン
の状態と5TATUS変数の組み合せにより以下の処理
を行なう。■ペンアップで5TATUS−0のとき入力
待ちのためステップST3に戻る。
Next, in step ST2, the state variable 5TATUS is initialized (5TATUS-0)L, in the following step ST3, data is read via the input interface circuit 401, and in the following steps ST4 and ST5, or step ST4 and step ST7, the pen is raised. /The following processing is performed depending on the combination of the pen down state and the 5TATUS variable. - When the pen is up and 5TATUS-0, the process returns to step ST3 to wait for input.

■ペンアップで5TATUS−1のとき、後述ノペンダ
ウン→ペンアップ処理を行なう。
② When 5TATUS-1 is reached with pen up, perform the below-mentioned no pen down → pen up process.

■ペンダウンで5TATUS−0のとき後述のペンアッ
プ→ペンダウン処理を行なう。
② When 5TATUS-0 in pen down, perform the pen up → pen down process described below.

■ペンダウンで5TATUS=1のとき、例えばフォー
トラン(FORTRAN)言語の処理系で定義されてい
るグラフ描画機能を用いて、前回入力の座標点から今回
入力の座標点位置までフレームメモリインターフェース
回路405を介して、フレームメモリ5上に直線を描画
する。
■When 5TATUS=1 in pen down, for example, using the graph drawing function defined in the processing system of the FORTRAN language, the coordinate point position of the previous input to the coordinate point position of the current input is transferred via the frame memory interface circuit 405. Then, a straight line is drawn on the frame memory 5.

また、ステップ5TIOにおいて、ストロークに外接す
る矩形枠の空隙(Xm1n 、 Ymin )を下式に
より求める。
Further, in step 5TIO, the gap (Xm1n, Ymin) of the rectangular frame circumscribed to the stroke is determined by the following formula.

Xm1n= M i n (X 、 Xmin)Xma
x= M a x (X 、 Xmax )Ymin=
M i n (Y 、 Ymin)Ymax= M a
 x (Y 、 Ymax )但し、(X、Y)は今回
入力の座標であり、Min(a、b)及びMax(a、
b)は各々変数a。
Xm1n= M i n (X, Xmin)Xma
x= M a x (X, Xmax) Ymin=
M in (Y, Ymin) Ymax= M a
x (Y, Ymax) However, (X, Y) are the coordinates of this input, and Min (a, b) and Max (a,
b) are each variable a.

bの最小、最大を求める処理である。ステップSTI 
Oの後はステップ5T108の処理を行なう。
This is a process to find the minimum and maximum of b. step STI
After O, the process of step 5T108 is performed.

第2図(B)は前述のペンアップ→ダウン処理の詳細を
示す図である。処理が開始されるとぐステップ5T10
0)、先ずステップSTI O1−C’ペンアップ状態
からペンダウン状態に移行したことを記憶するための状
態変数5TATUSを1に設定しく5TATUS−1)
、次ニステッフ5T102で前記1文字のストロークの
数を計数する変数isの値に応じて、1s−0であれば
、ステップ5T106へ、is≠0であれば、ステップ
ST103の処理を行なう。ステップ5T103では入
力座標、即ちストロークの始点位[(X、Y)がすでに
設定されている文字枠内にあるか否かを判定する。即ち
、文字枠の左上と右下の座標を各々(X s r Y 
S) + (Xe 、Ye )として、Xs≦X≦Xe
          ・・・・・・・・(1〉Ys5Y
≦Ye          ・・・・・・・・(2)の
条件を調べて、上記式(1)と(2〉が共に、満足され
るとき入力されてストロークの始点は文字枠内であると
してステップ5T108に進み、上記式(1〉と〈2〉
のいずれか一方が満足されていないときは、入力開始点
は、新しい文字又は図形ストロークの開始点であるとし
て、ステップ5T104へ進み、表示されている文字枠
を消去する処理を行なう。この処理は、例えば前記と同
様の描画機能を用いて前記文字枠座標(Xs、Ys)、
(Xe。
FIG. 2(B) is a diagram showing details of the above-mentioned pen up->down process. Once the process is started, step 5T10
0), First, step STI O1-C' Set the state variable 5TATUS to 1 to remember that the pen-up state has transitioned to the pen-down state.5TATUS-1)
, In the next step 5T102, depending on the value of the variable is for counting the number of strokes of one character, if 1s-0, the process goes to step 5T106, and if is≠0, the process goes to step ST103. In step 5T103, it is determined whether the input coordinates, that is, the starting point position of the stroke [(X, Y), are within the already set character frame. That is, the coordinates of the upper left and lower right of the character frame are respectively (X s r Y
S) + (Xe, Ye), Xs≦X≦Xe
・・・・・・・・・(1〉Ys5Y
≦Ye...Check the condition (2), and if both the above expressions (1) and (2> are satisfied, it is input and the stroke start point is within the character frame, and step 5T108 Proceed to the above formula (1> and <2>
If either one of the above conditions is not satisfied, the input start point is determined to be the start point of a new character or graphic stroke, and the process proceeds to step 5T104 to erase the displayed character frame. This process uses the same drawing function as described above to calculate the character frame coordinates (Xs, Ys),
(Xe.

Ye)を対角線とする四辺形の内部を背景色と同一にぬ
り潰すことにより行なう。
This is done by filling the inside of a quadrilateral with the diagonal line ``Ye'' in the same color as the background color.

次に、ステップ5T105において、前記1文字のスト
ロークの数を計数する変数1ss=0としり後、ステッ
プSTI 06でストロークの外接矩形位置を計算する
ための変数Xm1n 、 Xmax 、 Ymin、Y
maxを入力座標(X、Y)を用いて初期設定する( 
Xm1n= X 、 Xmaxx X 、 Ymin=
 Y 、 Ymax−Y)。
Next, in step 5T105, the variable 1ss for counting the number of strokes of one character is set to 0, and then in step STI 06 variables Xm1n, Xmax, Ymin, Y are used to calculate the circumscribed rectangular position of the stroke.
Initialize max using input coordinates (X, Y) (
Xm1n=X, XmaxxX, Ymin=
Y, Ymax-Y).

次に、ステップ5T107で入力座標、即ちストローク
の始点(X、Y)を中心とする文字枠を描画する。この
処理L!X5=X−ΔX、YS=Y−Δ)’ t X 
e = X+Δx、Ye−Y+△yとして前記と同様の
グラフ描画機能を用いて2点(Xs、Ys)と(Xe、
Ye)を対角線とする四角形を指定した線種(例えば点
線)で描画することにより行なう。
Next, in step 5T107, a character frame centered at the input coordinates, that is, the starting point (X, Y) of the stroke is drawn. This process L! X5=X-ΔX, YS=Y-Δ)' t X
With e = X + Δx, Ye - Y + Δy, use the same graph drawing function as above to draw two points (Xs, Ys) and (Xe,
This is done by drawing a rectangle whose diagonal is ``Ye'' using a specified line type (for example, a dotted line).

但し、上記ΔX、Δyはあらがじめキーボード入力等に
より設定される文字枠の大きさを示すパラメータである
However, the above ΔX and Δy are parameters indicating the size of the character frame, which are set in advance by keyboard input or the like.

ステップSTI 07の処理の後、ステップ5T108
で入力座標を座標メモリ403 (MZ)に格納しくm
=m+1 、(X、Y”)+MZ(m))座標を計数す
る変数kを歩進する(k=に+1)。
After the processing of step STI 07, step 5T108
to store the input coordinates in the coordinate memory 403 (MZ).
=m+1, (X, Y'')+MZ(m)) Increment the variable k that counts the coordinates (+1 to k=).

第2図(C)は1ストロークの入力が終了して、ペンダ
ウン−ベンアップと変化したときの処理について詳細に
説明する。
FIG. 2(C) describes in detail the processing when the input of one stroke is completed and changes from pen down to pen up.

処理が開始されると(ステップST200 )、ステッ
プST201で前記ストローク数を計数する変数nを歩
進しくn−n+1)、続くステップST202では、入
力されたストロークが文字が図形かの判定を行なうため
に、ストロークの外接矩形の長辺を下記により計算する
When the process is started (step ST200), the variable n for counting the number of strokes is incremented (n-n+1) in step ST201, and in the following step ST202, it is determined whether the input stroke is a character or a figure. Then, calculate the long side of the circumscribed rectangle of the stroke as follows.

即ち、ΔX −Xmax −Xm1n 、ΔY−Yma
x−Y@inとして、 ↓−M a x (ΔX、ΔY) により長辺の長さ1を求める。
That is, ΔX −Xmax −Xm1n, ΔY−Yma
As x-Y@in, find the length 1 of the long side by ↓-M a x (ΔX, ΔY).

次にステップ5T203では、上記長辺を長さlと閾値
thlを比較して5.E<thlであれば当該ストロー
クを文字と判定して、ステップ5T209で文字1図形
の判定フラグをFLG−0として、又は1≧thtでで
あれば図形と判定して続くステップ5T204で判定フ
ラグをFLG−1とする。ここで上記閾値thlは前述
の文字枠パラメータΔX、Δyから、例えばthl−0
,7M a x (ΔX、Δy)として設定される値で
ある。
Next, in step 5T203, the length l of the long side is compared with the threshold value thl, and 5. If E<thl, the stroke is determined to be a character, and in step 5T209, the determination flag for character 1 figure is set to FLG-0, or if 1≧tht, it is determined to be a figure, and the determination flag is set in step 5T204. It is called FLG-1. Here, the threshold value thl is determined from the character frame parameters ΔX and Δy, for example, thl-0
, 7M a x (ΔX, Δy).

入力ストロークが図形と判定されると、ステップ5T2
05で1文字のストロークを計数する本数jsを歩進し
く js= js+ 1 )、ストロークメモリ4o4
(Ms(n))に前記フラグFLG、js、にの情報を
書き込む(ステップ5T206)。
If the input stroke is determined to be a figure, step 5T2
Step 05 to count the number of strokes for one character js (js=js+1), stroke memory 4o4
Information on the flags FLG, js, is written to (Ms(n)) (step 5T206).

その後、前記ステップ5T104と同様の方法で文字枠
を消去した(ステップST207 )後、ステップ5T
20Bで前記ストローク毎の座標数を計数する変数kを
に=oとして、第2図(A)のステップST2へ戻る。
Thereafter, after erasing the character frame in the same manner as in step 5T104 (step ST207), step 5T
At step 20B, the variable k for counting the number of coordinates for each stroke is set to =o, and the process returns to step ST2 in FIG. 2(A).

また、入力ストロークが文字と判定された場合には、ス
テップST209の後に、ステップST210において
、ストロークの外接矩形の中心位置を求め(Xo−(X
max十Xm1n)/ 2 、 Yo= (Ymax+
Ymin)/ 2 )、ステップST211において、
文字枠の中心を上記外接矩形の中心位置(Xo、Yo)
に移動する処理を行なう。即ち、表示されていた文字枠
を前記方法で消去した後、新しい文字枠の対角線上の2
点(Xs、 Ys、i 、(Xe、Ye)を、X5=X
o−Δx、Ys−Xo−Δy Xe=Xo+Δx、ysxxo+Δy により求めて、上記2点を対角線とする四角形を指定線
種で描画する。
If the input stroke is determined to be a character, in step ST210 after step ST209, the center position of the circumscribing rectangle of the stroke is determined (Xo-(X
max 10Xm1n)/2, Yo= (Ymax+
Ymin)/2), in step ST211,
Set the center of the character frame to the center position of the above circumscribed rectangle (Xo, Yo)
Perform processing to move to. That is, after deleting the displayed character frame using the method described above, the two diagonal lines of the new character frame
Point (Xs, Ys, i, (Xe, Ye), X5=X
o-Δx, Ys-Xo-Δy Xe=Xo+Δx, ysxxo+Δy, and a rectangle with the above two points as diagonals is drawn using the specified line type.

その後、ステップST212では前記1文字のストロー
クの数を計数する変数i、がi、+mQであれば、ステ
ップST213で前記文字を計数する変数icを歩進し
た( icz ic+1 )後、ステップST214で
ストローク数をカウントアツプしく 1s=is+l 
)、ステップST215で文字と判定されたストローク
情報FLG、is、ic、kをストロークメモリ404
(MS(n))に格納した後、前述のステップ5T20
8を介して第2図(A)のステップST2へ戻る。
Thereafter, in step ST212, if the variable i, which counts the number of strokes of one character, is i,+mQ, the variable ic, which counts the number of characters, is incremented (icz ic+1) in step ST213, and then the stroke number is counted in step ST214. Count up the numbers 1s=is+l
), the stroke information FLG, is, ic, k determined as a character in step ST215 is stored in the stroke memory 404.
(MS(n)), the above step 5T20
8, the process returns to step ST2 in FIG. 2(A).

第4図は第1図の座標メモリ403及びストロークメモ
リ404の内容を説明するための図である、同図(a)
は座標メモリ403を、同図(b)はストロークメモリ
404を示す、座標メモリ403は前記座標数の累計数
を計数する変数mをアドレスとして人力座標(X、Y)
が格納され、ストロークメモリ404にはストローク数
を計数する変数nをアドレスとして、1ストローク毎の
文字2図形の判定結果を示すフラグ情報FLGと、該ス
トロークを構成する座標変数k、及びフラグFLGの値
に対応してFLG=O(文字)の場合は、文字数を計数
する変数’1 cと1文字のストロークの数を計数する
変数isが、またFLG−1(I3C形)の場合は、図
形ストロークの通し番号を表わす変数jsが各々格納さ
れる。
FIG. 4 is a diagram for explaining the contents of the coordinate memory 403 and stroke memory 404 in FIG.
shows the coordinate memory 403, and FIG.
is stored in the stroke memory 404, with a variable n for counting the number of strokes as an address, flag information FLG indicating the determination result of two characters and two figures for each stroke, a coordinate variable k constituting the stroke, and a flag FLG. Corresponding to the value, if FLG = O (character), the variable '1 c that counts the number of characters and the variable is that counts the number of strokes of one character, and if FLG-1 (I3C type), the figure A variable js representing the serial number of each stroke is stored.

なお、本実施例においては、表示される文字枠の大きさ
は必要に応じてキーボード入力部7から前述のパラメー
タΔX、△yを入力することは可能であり、また入力面
上の位置に対応してあらかじめ文字枠の大きさをフォー
マット化することによって自動設定することが可能であ
る。
In this embodiment, the size of the displayed character frame can be determined by inputting the above-mentioned parameters ΔX and Δy from the keyboard input section 7 as necessary, and can also be determined according to the position on the input screen. It is possible to automatically set the size of the character frame by formatting it in advance.

また、入力面上位置に対応してあらかじめ文字枠の大き
さをフォーマット化したフォーマット情報を記憶するこ
とによりペンダウンした位置に応じて自動的に文字枠の
大きさを設定することも可能となり、文字サイズに関す
る書式の固定された文書入力に有効である。
In addition, by storing format information that formats the size of the character frame in advance according to the position on the input screen, it is possible to automatically set the size of the character frame according to the position where the pen is down. This is useful for inputting documents with fixed formats related to size.

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

以上説明したように本発明によれば下記のような優れた
効果が得られる。
As explained above, according to the present invention, the following excellent effects can be obtained.

(1)記入者は表示された文字枠を見ながら文字或いは
図形の手書き入力が可能となるため、文字を大きく書き
過ぎたり、また図形を小さく書き過ぎたりすることによ
って、文字が図形と判断されたり、図形が文字と判定さ
れるようなな記入の誤りを防止することができる。
(1) Since the person writing the text can input characters or figures by hand while looking at the displayed character frame, if the person writes the letters too large or the figures too small, the text may be judged as a figure. It is possible to prevent errors in writing, such as when a figure is determined to be a character.

従って、従来例と同様文字と図形の分離効果かせ得られ
、また文字については1文字つづに分離した情報が得ら
れる他、任意の位置に所望の大きさの文字が所望の間隔
で記入できるという従来の装置では得られない、手書き
自由度の高い装置となる。
Therefore, as with the conventional example, it is possible to obtain the effect of separating characters and figures, and in addition to obtaining information separated for each character, it is also possible to write characters of a desired size in any position at a desired interval. This device provides a high degree of freedom in handwriting that cannot be achieved with conventional devices.

(2〉また、図形入力時には文字枠表示が消去されて見
易くなるためマンマシン性が向上し、入力効率が向上す
る。
(2> Also, when inputting figures, the character frame display is erased to make it easier to see, improving man-machine performance and improving input efficiency.

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

第1図は本発明の手書き線図入力装置の構成を示すブロ
ック図、第2図(A)、(B)、(C)は手書き線図入
力装置の処理部の動作フローを示す図、第3図は処理回
路の動作を説明するための図、第4図は座標メモリ及び
ストロークメモリの内容を説明するための図である。 図中、1・・・・スタイラスペン、2・・・・液晶デイ
スプレィ、3・・・・タブレット、4・・・・処理部、
5・・・・フレームメモリ、6・・・・表示部制御部、
7・・・・キーボード入力部、4o1・・・・入力イン
ターフェース回路、402・・・・処理回路、403・
・・・座標メモリ、404・・・・ストロークメモリ、
4o5・・・・フレームメモリインターフェース回路。
FIG. 1 is a block diagram showing the configuration of the handwritten line diagram input device of the present invention, and FIGS. FIG. 3 is a diagram for explaining the operation of the processing circuit, and FIG. 4 is a diagram for explaining the contents of the coordinate memory and stroke memory. In the figure, 1: stylus pen, 2: liquid crystal display, 3: tablet, 4: processing unit,
5...Frame memory, 6...Display unit control unit,
7...keyboard input section, 4o1...input interface circuit, 402...processing circuit, 403...
...coordinate memory, 404...stroke memory,
4o5...Frame memory interface circuit.

Claims (2)

【特許請求の範囲】[Claims] (1)入力面と表示面とが一体に構成された入力表示一
体型座標入力装置を具備し、ペンを用いて手書きにより
線図形を入力する手書き線図形入力装置において、 ペンダウンからペンアップまでを1ストロークとし計数
する手段、 前記ペンダウン時にその位置を中心とする文字枠を表示
する手段、 前記1ストロークの入力毎に入力されたストロークの外
接矩形の長辺の長さlと、前記文字枠の大きさから決ま
る閾値とを比較して、前記長さlが該閾値未満のとき当
該ストロークを文字ストロークと判定すると共に、前記
文字枠の中心位置をストローク外接矩形の中心位置へ移
動して表示し、前記長さlが前記閾値以上であるときに
は、当該ストロークを図形ストロークと判定して前記文
字枠を消去する手段、 前記ペンダウン時のストロークの始点が表示されている
文字枠内に位置するときには、当該ストロークの始点を
文字ストロークの始点と判定して、前記文字枠の表示を
継続する手段、 前記ペンダウン時のストロークの始点が表示されている
前記文字枠外に位置するときには、表示されいする文字
枠を消去して、前記ストロークの始点を中心とする新た
な文字枠を表示する手段とを具備することた特徴とする
手書き線図形入力装置。
(1) In a handwritten line figure input device that is equipped with an input/display integrated coordinate input device in which an input surface and a display surface are integrated, and which inputs line figures by hand using a pen, it is possible to input line figures by hand from pen down to pen up. means for counting each stroke as one stroke; means for displaying a character frame centered at that position when the pen is down; and a means for displaying a character frame centered at the position when the pen is down; When the length l is less than the threshold value, the stroke is determined to be a character stroke, and the center position of the character frame is moved to the center position of the stroke circumscribing rectangle and displayed. , when the length l is greater than or equal to the threshold, means for determining the stroke as a graphic stroke and erasing the character frame; when the starting point of the stroke when the pen is down is located within the displayed character frame; means for determining the starting point of the stroke as the starting point of a character stroke and continuing to display the character frame; when the starting point of the stroke when the pen is down is located outside the displayed character frame, the character frame to be displayed; A handwritten line figure input device comprising means for erasing the character frame and displaying a new character frame centered at the starting point of the stroke.
(2)前記文字枠の大きさは、表示面上の位置に対応し
て予めフォーマット化されたものであることを特徴とす
る請求項(1)記載の手書き線図形入力装置。
(2) The handwritten line figure input device according to claim (1), wherein the size of the character frame is formatted in advance in accordance with the position on the display surface.
JP2064541A 1990-03-14 1990-03-14 Handwritten line graphic input device Pending JPH03263281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2064541A JPH03263281A (en) 1990-03-14 1990-03-14 Handwritten line graphic input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2064541A JPH03263281A (en) 1990-03-14 1990-03-14 Handwritten line graphic input device

Publications (1)

Publication Number Publication Date
JPH03263281A true JPH03263281A (en) 1991-11-22

Family

ID=13261189

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2064541A Pending JPH03263281A (en) 1990-03-14 1990-03-14 Handwritten line graphic input device

Country Status (1)

Country Link
JP (1) JPH03263281A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013084687A1 (en) * 2011-12-09 2013-06-13 日本電気株式会社 Information processing device
JP2014527234A (en) * 2012-05-31 2014-10-09 マルチタッチ オーユー User interface for drawing with electronic devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013084687A1 (en) * 2011-12-09 2013-06-13 日本電気株式会社 Information processing device
JP2014527234A (en) * 2012-05-31 2014-10-09 マルチタッチ オーユー User interface for drawing with electronic devices

Similar Documents

Publication Publication Date Title
US5636297A (en) Method and system for recognizing a graphic object&#39;s shape, line style, and fill pattern in a pen environment
US5590219A (en) Method and apparatus for recognizing gestures on a computer system
EP1683075B1 (en) Boxed and lined input panel
JP2925359B2 (en) Character processing method and apparatus
US5926567A (en) Method and apparatus for storing and rapidly displaying graphic data
US11402923B2 (en) Input method, apparatus based on visual recognition, and electronic device
US20130328938A1 (en) Object sharing system and non-transitory computer readable medium storing object input assistance program
KR100713407B1 (en) Pen input method and apparatus in pen computing system
US11514696B2 (en) Display device, display method, and computer-readable recording medium
JPH03263281A (en) Handwritten line graphic input device
JP3105100B2 (en) Character input device and character input method
JP4669597B2 (en) Handwritten character input device
JP3422634B2 (en) Handwritten character recognition method and apparatus
JPH03111926A (en) Data processor
JPH08315167A (en) Method for securing blank at handwriting stroke input time
JPH08212306A (en) Handwriting data thinning-out method, dictionary generating method, and character recognition device
JPS62190565A (en) Device for making fair copy of hand-written pattern
JP3388519B2 (en) Handwriting input device
JPH01251217A (en) Electronic simple terminal writer
JPH0721311A (en) On-line character segmenting device
JPH10171602A (en) Pen input system and device therefor
JPH087034A (en) Handwritten character recognition and input system
JPH0816727A (en) Document preparing device and dictionary registering method
JPH09161089A (en) Handwritten data editing device and its method
JPH09237321A (en) Device for recognizing handwritten character