JP2008287540A - Handwriting reproducing-plotting method, handwriting reproducing-plotting device, and program used for the same - Google Patents

Handwriting reproducing-plotting method, handwriting reproducing-plotting device, and program used for the same Download PDF

Info

Publication number
JP2008287540A
JP2008287540A JP2007132452A JP2007132452A JP2008287540A JP 2008287540 A JP2008287540 A JP 2008287540A JP 2007132452 A JP2007132452 A JP 2007132452A JP 2007132452 A JP2007132452 A JP 2007132452A JP 2008287540 A JP2008287540 A JP 2008287540A
Authority
JP
Japan
Prior art keywords
coordinate point
distance
threshold
coordinate
point
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.)
Granted
Application number
JP2007132452A
Other languages
Japanese (ja)
Other versions
JP4807321B2 (en
Inventor
Masayoshi Imai
政敬 今井
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2007132452A priority Critical patent/JP4807321B2/en
Publication of JP2008287540A publication Critical patent/JP2008287540A/en
Application granted granted Critical
Publication of JP4807321B2 publication Critical patent/JP4807321B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a handwriting reproducing-plotting method for accurately reproducing handwriting in straight lines based on a plurality of coordinate points having an age-based sequence corresponding to handwriting. <P>SOLUTION: With respect to a plurality of coordinate points t(0), t(1), t(2), t(3), ..., t(k), etc., t(0) is set as a reference point to compute a distance d(k-2) from t(k-1) to a straight line c(k-2) connecting t(0) to t(k). All of each distance between coordinate points from t(0) to t(k) are compared with a first threshold Dex. When all the distances between the coordinate points are the threshold Dex or more, the distance d(k-2) is compared with a second threshold dc. When the distance less than the first threshold Dex exists among the respective distances between the coordinate points, the distance d(k-2) is compared with a third threshold de shorter than the second threshold dc. When the distance d(k-2) is the threshold or more, plotting is performed in a straight line between t(0) and t(k-1), and t(k-1) is reallocated from the reference coordinate point t(0) to repeat the first step onward. Meanwhile when the distance d(k-2) is less than the threshold, k is increased to repeat from the first step. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、電子ペン等で記載された筆跡を再現するための描画処理技術に関する。   The present invention relates to a drawing processing technique for reproducing handwriting described with an electronic pen or the like.

近年、「電子ペン」、「デジタルペン」などと呼ばれるペン型入力デバイスが登場しており(以下、本明細書では「電子ペン」と呼ぶ。)、その代表的なものとしてスウェーデンのAnoto 社が開発した「アノトペン(Anoto pen )」が知られている(特許文献1参照)。アノトペンは、所定のドットパターンが印刷された専用紙(以下、「専用ペーパー」とも呼ぶ。)と共に使用される。アノトペンは、通常のインクタイプのペン先部に加えて、専用紙上のドットパターンを読み取るための小型カメラと、データ通信ユニットを搭載している。利用者が専用紙上にアノトペンで文字などを書いたり、専用紙上に図案化されている画像にチェックマークを記入したりすると、ペンの移動に伴って小型カメラが専用紙に印刷されたドットパターンを検出し、利用者が書き込んだ文字、画像などの記入情報が取得される。この記入情報が、データ通信ユニットによりアノトペンから近くのパーソナルコンピュータや携帯電話などの端末装置に送信される。このアノトペンを利用したシステムは、キーボードに代わる入力デバイスとして利用することが可能であり、上述のパーソナルコンピュータやキーボードの使用に抵抗がある利用者にとっては非常に使いやすい。そのため、現在、各種ビジネス上の書類、申込書、契約書等に記入されたデータをデジタル化する手法として、電子ペンを利用したシステムが普及しつつある(例えば、特許文献2)。   In recent years, pen-type input devices called “electronic pens” and “digital pens” have appeared (hereinafter referred to as “electronic pens” in this specification). The developed “Anoto pen” is known (see Patent Document 1). Anotopen is used together with dedicated paper (hereinafter also referred to as “dedicated paper”) on which a predetermined dot pattern is printed. In addition to the normal ink-type pen tip, the Anoto pen is equipped with a small camera for reading the dot pattern on the dedicated paper and a data communication unit. When a user writes characters on the special paper with an annotation pen, or puts a check mark on the image designed on the special paper, the small camera displays the dot pattern printed on the special paper as the pen moves. Entry information such as characters and images detected and written by the user is acquired. This entry information is transmitted from the Anotopen by the data communication unit to a terminal device such as a nearby personal computer or mobile phone. The system using this anotopen can be used as an input device in place of the keyboard, and is very easy to use for users who are reluctant to use the personal computer and keyboard described above. Therefore, as a method for digitizing data entered in various business documents, application forms, contracts, etc., a system using an electronic pen is becoming widespread (for example, Patent Document 2).

また、複数の線分からなる線図形から直線成分を抽出する提案がなされている(特許文献3〜5)。特許文献3に提案されている直線成分を抽出する方法は、例えば、座標点P1,P2,P3の間で線分V1,V2が描かれている場合に、座標点P2と、座標点P1及びP2とで結ばれる線分との距離tを求め、その距離tが所定閾値T以下である場合は、線分V1,V2を、座標点P1及びP3とで結ばれる線分に置き換え、距離tが所定閾値Tを超えている場合は、線分V1,V2をそのまま採用するという方法で直線成分を抽出するものである。   Moreover, the proposal which extracts a linear component from the line figure which consists of a some line segment is made | formed (patent documents 3-5). The method of extracting the straight line component proposed in Patent Document 3 is, for example, when the line segments V1, V2 are drawn between the coordinate points P1, P2, P3, and the coordinate point P2, the coordinate point P1, and The distance t with the line segment connected with P2 is obtained, and when the distance t is equal to or less than the predetermined threshold T, the line segments V1 and V2 are replaced with the line segments connected with the coordinate points P1 and P3, and the distance t Is greater than the predetermined threshold value T, the straight line component is extracted by a method of adopting the line segments V1 and V2 as they are.

特許文献4に提案されている直線抽出方法は、特許文献3に提案された直線抽出方法を改良し、線分の交差点における線分の誤統合を防止すべく、線分を折線状にベクトル近似し、注目ベクトルと隣接ベクトルとの間のなす角度と線幅とが閾値以下の隣接ベクトルを注目ベクトルと同じ直線の候補ベクトルと判定すること等を提案している。さらに、特許文献5においては、折線状に連結した直線ベクトルに対し、隣接するベクトルの連結部分における折れ角度を基準角度と比較し、折れ角度がわずかである場合はその連結部分を省いた両ベクトルの両端を直線ベクトルで結ぶ方法が提案されている。   The straight line extraction method proposed in Patent Document 4 is an improvement of the straight line extraction method proposed in Patent Document 3, and the line segment is approximated to a polygonal line in order to prevent erroneous integration of the line segments at the intersection of the line segments. In addition, it has been proposed that an adjacent vector whose angle and line width between the target vector and the adjacent vector are equal to or less than a threshold value is determined as a candidate vector having the same straight line as the target vector. Further, in Patent Document 5, with respect to a straight line vector connected in a broken line shape, the bending angle at the connecting portion of adjacent vectors is compared with a reference angle, and when the bending angle is small, both vectors are omitted from the connecting portion. There has been proposed a method of connecting both ends of a line vector with a straight line vector.

特表2003−511761号公報Japanese translation of PCT publication No. 2003-511761 特開2004−153612号公報JP 2004-153612 A 特開平1−269185号公報JP-A-1-269185 特開平4−4479号公報JP-A-4-4479 特開平8−69525号公報JP-A-8-69525

上述の従来提案されているような固定的な閾値を用いた直線抽出方法を、例えば図14に示すように、tt(0) ,tt(1) ,…,tt(6) ,…の順で筆跡に応じた経時的な順序を有する複数の座標点に対して適用しようとした場合の問題点について、描画例を示して説明する。   A straight line extraction method using a fixed threshold as previously proposed is performed in the order of tt (0), tt (1),..., Tt (6),. A problem when applying to a plurality of coordinate points having a temporal order according to handwriting will be described with reference to a drawing example.

図15に示すように、座標点tt(0) ,tt(1) ,…,tt(6) ,…のデータ列を座標点t(0),t(1),…,t(6),…と置き換えたとし、座標点t(0)からt(2)へ直線を引き、その直線をc(0)とし、直線c(0)と座標点t(1)との距離をd(0)とする。距離d(0)は閾値以下であるとすると、続いて座標点t(0)からt(3)へ直線c(1)を引くこととなる。そして、直線c(1)と座標点t(2)との距離d(1)を求め、その距離d(1)が閾値以下であるとすると、さらに座標点t(0)からt(4)への直線c(2)を引く。直線c(2)と座標点t(3)との距離d(2)を求め、距離d(2)も閾値以下とすれば、さらに、座標点t(0)からt(5)へ直線c(3)を引く。そして、直線c(3)と座標点t(4)との距離d(3)が閾値を越えているとすると、座標点t(0)とt(4)とを直線で描画する。   As shown in FIG. 15, a data string of coordinate points tt (0), tt (1), ..., tt (6), ... is converted into coordinate points t (0), t (1), ..., t (6), ..., a straight line is drawn from coordinate point t (0) to t (2), the straight line is c (0), and the distance between straight line c (0) and coordinate point t (1) is d (0 ). If the distance d (0) is equal to or less than the threshold value, then a straight line c (1) is drawn from the coordinate point t (0) to t (3). Then, the distance d (1) between the straight line c (1) and the coordinate point t (2) is obtained, and if the distance d (1) is equal to or less than the threshold value, the coordinate point t (0) to t (4) Draw a straight line c (2) to If the distance d (2) between the straight line c (2) and the coordinate point t (3) is obtained, and the distance d (2) is also less than or equal to the threshold, the straight line c from the coordinate point t (0) to t (5) Draw (3). If the distance d (3) between the straight line c (3) and the coordinate point t (4) exceeds the threshold value, the coordinate points t (0) and t (4) are drawn with straight lines.

図16は、図15における座標点t(0)とt(4)とを直線で描画して、座標点t(4)以降の座標点をt(0)からナンバリングし直した様子を示す図である。この図16においても、座標点t(0)と同様の処理を行うことになる。すなわち、図16における座標点t(0)からt(2)へ直線c(0)を引き、直線c(0)と座標点t(1)との距離d(0)を求める。この距離d(0)が閾値を越えているとすれば、図17に示すように、座標点t(0)からt(1)へ直線を描画することとなる。   FIG. 16 is a diagram showing a state in which the coordinate points t (0) and t (4) in FIG. 15 are drawn with straight lines, and the coordinate points after the coordinate point t (4) are renumbered from t (0). It is. Also in FIG. 16, processing similar to that for the coordinate point t (0) is performed. That is, a straight line c (0) is drawn from the coordinate point t (0) in FIG. 16 to t (2) to obtain a distance d (0) between the straight line c (0) and the coordinate point t (1). If the distance d (0) exceeds the threshold value, a straight line is drawn from the coordinate point t (0) to t (1) as shown in FIG.

そうすると、図17からも分かるように、基準座標点t(0)とある座標点t(k)とで結ばれる直線c(k-2)と、座標点t(k-1)との距離を固定的な閾値と比較して、座標点を直線で描画する判断を行っていたのでは、曲線状に配列した座標点を再現できず、大まか直線近似となってしまうおそれがある。かといって、閾値を小さくすれば、殆ど全ての座標点を直線描画のために採用してしまい、直線近似の意義が減退してしまう。   Then, as can be seen from FIG. 17, the distance between the straight line c (k-2) connected by the reference coordinate point t (0) and a certain coordinate point t (k) and the coordinate point t (k-1) is expressed as follows. If it is determined that the coordinate points are drawn in a straight line as compared with a fixed threshold value, the coordinate points arranged in a curved line cannot be reproduced, and there is a risk of rough linear approximation. However, if the threshold value is reduced, almost all coordinate points are adopted for straight line drawing, and the significance of straight line approximation is reduced.

そこで本発明は、筆跡に応じた経時的な順序を有する複数の座標点から一部の座標点を選択して、筆跡を直線で精度よく再現する筆跡再現描画方法及び筆跡再現描画装置並びにそれに用いられるプログラムを提供することを目的とする。   Therefore, the present invention selects a part of coordinate points from a plurality of coordinate points having a temporal order according to the handwriting, and reproduces the handwriting with a straight line with high accuracy, a handwriting reproduction drawing apparatus, and a handwriting reproduction drawing apparatus The purpose is to provide a program.

本発明に係る筆跡再現描画方法は、筆跡に応じた経時的な順序を有する複数の座標点t(0),t(1),t(2),t(3),…,t(k),…から一部の座標点を選択して、筆跡を複数の直線で再現するための筆跡再現描画方法であって、座標点t(0)を基準点とし、座標点t(k-1)から、座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)を演算する第1ステップと、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であるか否かを判定する第2ステップと、第2ステップにおいて座標点t(0)から座標点t(k)までの各座標点間距離のすべてが第1の閾値Dex 以上である場合には、第1ステップで演算された距離d(k-2)と第2の閾値dcとを比較し、第2ステップにおいて座標点t(0)から座標点t(k)までの各座標点間距離の中に第1の閾値Dex 未満のものが存在する場合には、第1ステップで演算された距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとを比較する第3ステップと、第3ステップにおいて距離d(k-2)と第2の閾値dc又は第3の閾値deとを比較した結果、距離d(k-2)が第2の閾値dc又は第3の閾値de以上の場合には、座標点t(0)と座標点t(k-1)との間を直線で描画するとともに、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0),t(1),t(2),t(3),…, t(k),…と振り直して、第1ステップ以降の各ステップに移行する一方、距離d(k-2)が第2の閾値dc又は第3の閾値de未満の場合には、k をインクリメントして、第1ステップ以降の各ステップに移行する第4ステップとを含むことを特徴とする。   The handwriting reproduction drawing method according to the present invention includes a plurality of coordinate points t (0), t (1), t (2), t (3),..., T (k) having a temporal order corresponding to the handwriting. A handwriting reproduction drawing method for selecting a part of coordinate points from, ... and reproducing the handwriting with a plurality of straight lines, with the coordinate point t (0) as a reference point and the coordinate point t (k-1) The first step of calculating the distance d (k-2) from the coordinate point t (0) and t (k) to the straight line c (k-2), and the coordinate point t (0) to the coordinate point t a second step for determining whether or not all the distances between the coordinate points up to (k) are greater than or equal to the first threshold Dex, and the coordinate point t (0) to the coordinate point t (k) in the second step. If all the distances between the coordinate points up to are not less than the first threshold Dex, the distance d (k−2) calculated in the first step is compared with the second threshold dc, and the second step There is a distance between each coordinate point from coordinate point t (0) to coordinate point t (k) that is less than the first threshold Dex. If present, the third step of comparing the distance d (k−2) calculated in the first step with the third threshold de shorter than the second threshold dc, and the distance d ( If the distance d (k-2) is greater than or equal to the second threshold dc or the third threshold de as a result of comparing k-2) with the second threshold dc or the third threshold de, the coordinate point t Draws a straight line between (0) and coordinate point t (k-1), and coordinates after coordinate point t (k-1) with coordinate point t (k-1) as reference coordinate point t (0) The point is reassigned as coordinate point t (0), t (1), t (2), t (3), ..., t (k), ..., and the process moves to each step after the first step, while the distance and d (k−2) is less than the second threshold value dc or the third threshold value de, and includes a fourth step that increments k and shifts to each step after the first step. To do.

この筆跡再現描画方法によれば、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であるか否かによって、座標点t(k-1)から座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)と比較する閾値が異なる。すなわち、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上である場合には、距離d(k-2)と第2の閾値dcとを比較し、第1の閾値Dex 未満のものが存在する場合には、距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとを比較する。そして、距離d(k-2)が、第2の閾値dc又は第3の閾値de以上である場合には、座標点t(0)と座標点t(k)とを直線で結ぶには座標点t(k-1)と離れすぎていて許容できないため、座標点t(k)よりも時系列的に一つ前の座標点t(k-1)と座標点t(0)との間を直線で描画する。また、このとき、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0),t(1),t(2),t(3),…,t(k),…と振り直して、第1ステップ以降の各ステップに移行することで、直線描画を連続的に繰り返す。その一方、距離d(k-2)が第2の閾値dc又は第3の閾値de未満の場合には、k をインクリメントして、第1ステップ以降の各ステップに移行することで、座標点t(k-1)の時系列的に次の座標点t(k)と座標点t(0)との直線描画の適否を判定していく。このように、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上である場合には、距離d(k-2)と第2の閾値dcとを比較し、第1の閾値Dex 未満のものが存在する場合には、距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとを比較することで、精度よく筆跡を再現することができる。   According to this handwriting reproduction drawing method, depending on whether or not all the distances between the coordinate points from the coordinate point t (0) to the coordinate point t (k) are equal to or greater than the first threshold Dex, the coordinate point t ( The threshold value to be compared with the distance d (k-2) from k-1) to the straight line c (k-2) connected by the coordinate points t (0) and t (k) is different. That is, when all the coordinate point distances from the coordinate point t (0) to the coordinate point t (k) are equal to or greater than the first threshold Dex, the distance d (k-2) and the second threshold Compared with dc, if there is a value less than the first threshold value Dex, the distance d (k−2) is compared with the third threshold value de shorter than the second threshold value dc. When the distance d (k−2) is equal to or greater than the second threshold dc or the third threshold de, the coordinates for connecting the coordinate point t (0) and the coordinate point t (k) with a straight line Since it is too far from the point t (k-1) and cannot be tolerated, it is between the coordinate point t (k-1) and the coordinate point t (0) immediately before the coordinate point t (k). Is drawn with a straight line. At this time, the coordinate point t (k-1) is the reference coordinate point t (0), and the coordinate points after the coordinate point t (k-1) are coordinate points t (0), t (1), t (2 ), T (3),..., T (k),..., And the process moves to each step after the first step, so that straight line drawing is continuously repeated. On the other hand, if the distance d (k−2) is less than the second threshold value dc or the third threshold value de, the coordinate point t is incremented by incrementing k and moving to each step after the first step. The suitability of line drawing at the next coordinate point t (k) and coordinate point t (0) is determined in time series of (k-1). Thus, when all the distances between the coordinate points from the coordinate point t (0) to the coordinate point t (k) are not less than the first threshold Dex, the distance d (k-2) and the second If there is a threshold value dc less than the first threshold value Dex, the distance d (k−2) is compared with a third threshold value de that is shorter than the second threshold value dc. The handwriting can be accurately reproduced.

このような筆跡再現描画方法において、k の初期値を2として第1〜第4ステップを行うとよい。k の初期値を2とすれば、最初の座標点t(0),t(1),t(2)の三点から第1〜第4ステップによって処理され、座標点t(0)とt(1)との間における直線描画の適否から判定されることとなる。   In such a handwriting reproduction drawing method, it is preferable to perform the first to fourth steps by setting the initial value of k to 2. If the initial value of k is 2, the first coordinate points t (0), t (1), and t (2) are processed by the first to fourth steps from the first three coordinate points t (0), t (1), and t (2). It is determined from the suitability of line drawing with (1).

本発明に係る筆跡再現描画装置は、筆跡に応じた経時的な順序を有する複数の座標点t(0),t(1),t(2),t(3),…,t(k),…から一部の座標点を選択して、筆跡を複数の直線で再現する筆跡再現描画装置であって、座標点t(0)を基準点とし、座標点t(k-1)から、座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)を演算する垂線長演算手段と、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であるか否かを判定する座標点間距離判定手段と、前記座標点間距離判定手段によって、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であると判定された場合には、前記垂線長演算手段によって演算された距離d(k-2)と第2の閾値dcとを比較する第1の比較判定手段と、前記座標点間距離判定手段によって、座標点t(0)から座標点t(k)までの各座標点間距離の中に第1の閾値Dex 未満のものが存在すると判定された場合には、前記垂線長演算手段によって演算された距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとを比較する第2の比較判定手段と、前記第1又は第2の比較判定手段によって、距離d(k-2)と第2の閾値dc又は第3の閾値deとが比較された結果、距離d(k-2)が第2の閾値dc又は第3の閾値de以上であると判定された場合には、座標点t(0)と座標点t(k-1)との間を直線で描画するとともに、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0),t(1),t(2),t(3),…,t(k),…と振り直して前記垂線長演算手段に処理を行わせ、その一方、前記第1又は第2の比較判定手段によって、距離d(k-2)が第2の閾値dc又は第3の閾値de未満であると判定された場合には、k をインクリメントして、前記垂線長演算手段に処理を行わせる描画制御手段とを備えることを特徴とする。   The handwriting reproduction drawing apparatus according to the present invention includes a plurality of coordinate points t (0), t (1), t (2), t (3),. , ..., a handwriting reproduction drawing device that selects a part of the coordinate points and reproduces the handwriting with a plurality of straight lines, using the coordinate point t (0) as a reference point, and from the coordinate point t (k-1), Perpendicular length calculation means for calculating a distance d (k-2) to a straight line c (k-2) connected by coordinate points t (0) and t (k), and coordinate point t (0) to coordinate point t (0) The coordinate point t (0) is determined by the coordinate point distance determination means for determining whether or not all the distances between the coordinate points up to k) are equal to or greater than the first threshold Dex and the distance determination means between the coordinate points. If it is determined that all the distances between the coordinate points from the coordinate point t (k) to the coordinate point t (k) are greater than or equal to the first threshold Dex, the distance d (k−2) calculated by the perpendicular length calculation means A first comparison determination unit that compares the second threshold dc with the second threshold value dc, and a distance determination unit between the coordinate points. When it is determined that there is a distance between the coordinate points t (0) to the coordinate point t (k) that is less than the first threshold Dex, the perpendicular length calculation means The second comparison / determination unit that compares the calculated distance d (k−2) and the third threshold de that is shorter than the second threshold dc, and the first or second comparison / determination unit As a result of comparing (k-2) with the second threshold dc or the third threshold de, it is determined that the distance d (k-2) is greater than or equal to the second threshold dc or the third threshold de. In this case, a straight line is drawn between the coordinate point t (0) and the coordinate point t (k-1), and the coordinate point t (k-1) is used as the reference coordinate point t (0). k-1) and subsequent coordinate points are reassigned to coordinate points t (0), t (1), t (2), t (3), ..., t (k), ... and processed by the perpendicular length calculation means On the other hand, the distance d (k−2) is less than the second threshold dc or the third threshold de by the first or second comparison / determination means. If it is determined that increments the k, characterized in that it comprises a drawing control means for causing the process to the perpendicular line length calculating means.

この筆跡再現描画装置によれば、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であるか否かによって、座標点t(k-1)から座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)と比較する閾値が異なる。すなわち、座標点間距離判定手段によって、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であると判定された場合には、垂線長演算手段によって演算された距離d(k-2)と第2の閾値dcとが第1の比較判定手段によって比較され、第1の閾値Dex 未満のものが存在する場合には、距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとが第2の比較判定手段によって比較される。そして、距離d(k-2)が、第2の閾値dc又は第3の閾値de以上である場合には、座標点t(0)と座標点t(k)とを直線で結ぶには座標点t(k-1)と離れすぎていて許容できないため、描画制御手段は、座標点t(k)よりも時系列的に一つ前の座標点t(k-1)と座標点t(0)との間を直線で描画する。また、このとき、描画制御手段は、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0),t(1),t(2),t(3),…,t(k),…と振り直して、垂線長演算手段に処理を行わせるため、同様の描画処理が連続的に繰り返される。その一方、距離d(k-2)が第2の閾値dc又は第3の閾値de未満であると判定された場合には、描画制御手段は、k をインクリメントして、垂線長演算手段に処理を行わせるため、同様の描画処理が連続的に繰り返される。このように、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上である場合には、距離d(k-2)と第2の閾値dcとを比較し、第1の閾値Dex 未満のものが存在する場合には、距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとを比較することで、精度よく筆跡を再現することができる。   According to the handwriting reproduction drawing apparatus, the coordinate point t (() depends on whether or not all the distances between the coordinate points from the coordinate point t (0) to the coordinate point t (k) are not less than the first threshold Dex. The threshold value to be compared with the distance d (k-2) from k-1) to the straight line c (k-2) connected by the coordinate points t (0) and t (k) is different. That is, when it is determined by the coordinate point distance determination means that all the coordinate point distances from the coordinate point t (0) to the coordinate point t (k) are equal to or greater than the first threshold Dex, The distance d (k−2) calculated by the perpendicular length calculation means and the second threshold value dc are compared by the first comparison / determination means, and if there is a distance less than the first threshold Dex, the distance d (k-2) and a third threshold de shorter than the second threshold dc are compared by the second comparison / determination means. When the distance d (k−2) is equal to or greater than the second threshold dc or the third threshold de, the coordinates for connecting the coordinate point t (0) and the coordinate point t (k) with a straight line Since it is too far from the point t (k-1) and cannot be tolerated, the drawing control means chronologically precedes the coordinate point t (k-1) and the coordinate point t ( Draw a straight line between (0). At this time, the drawing control means uses the coordinate point t (k-1) as the reference coordinate point t (0), and coordinates points t (k-1) and subsequent coordinate points t (0), t (1 ), T (2), t (3),..., T (k),..., And the vertical line length calculation means performs the processing, so that the same drawing processing is repeated continuously. On the other hand, when it is determined that the distance d (k−2) is less than the second threshold value dc or the third threshold value de, the drawing control unit increments k and processes it to the perpendicular length calculation unit. In order to perform the above, the same drawing process is continuously repeated. Thus, when all the distances between the coordinate points from the coordinate point t (0) to the coordinate point t (k) are not less than the first threshold Dex, the distance d (k-2) and the second If there is a threshold value dc less than the first threshold value Dex, the distance d (k−2) is compared with a third threshold value de that is shorter than the second threshold value dc. The handwriting can be accurately reproduced.

このような筆跡再現描画装置において、k の初期値を2とする初期値設定手段をさらに備えるとよい。k の初期値を2とすれば、最初の座標点t(0),t(1),t(2)の三点から描画処理が施され、座標点t(0)とt(1)との間における直線描画の適否から判定されることとなる。   Such a handwriting reproduction drawing apparatus may further include initial value setting means for setting the initial value of k to 2. If the initial value of k is 2, drawing processing is performed from the first three coordinate points t (0), t (1), and t (2), and the coordinate points t (0), t (1), It is determined from the suitability of line drawing during the interval.

上記筆跡再現描画装置は、描画を表示する表示手段をさらに備え、前記描画制御手段は、座標点t(0)と座標点t(k-1)との間を直線で描画する都度、前記表示手段に描画させる構成とするとよい。この構成により、表示手段による直線描画を、筆跡に応じた経時的な順序に従って迅速に行わせることができる。   The handwriting reproduction drawing apparatus further includes display means for displaying a drawing, and the drawing control means each time the display is drawn with a straight line between the coordinate point t (0) and the coordinate point t (k-1). It is preferable to have a configuration in which the means draws. With this configuration, it is possible to quickly perform straight line drawing by the display unit according to a time-dependent order corresponding to the handwriting.

また、本発明に係るプログラムは、筆跡に応じた経時的な順序を有する複数の座標点t(0),t(1),t(2),t(3),…,t(k),…から一部の座標点を選択して、筆跡を複数の直線で再現する筆跡再現描画装置により実行されるプログラムであって、座標点t(0)を基準点とし、座標点t(k-1)から、座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)を演算する垂線長演算手段、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であるか否かを判定する座標点間距離判定手段、前記座標点間距離判定手段によって、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であると判定された場合には、前記垂線長演算手段によって演算された距離d(k-2)と第2の閾値dcとを比較する第1の比較判定手段、前記座標点間距離判定手段によって、座標点t(0)から座標点t(k)までの各座標点間距離の中に第1の閾値Dex 未満のものが存在すると判定された場合には、前記垂線長演算手段によって演算された距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとを比較する第2の比較判定手段、前記第1又は第2の比較判定手段によって、距離d(k-2)と第2の閾値dc又は第3の閾値deとが比較された結果、距離d(k-2)が第2の閾値dc又は第3の閾値de以上であると判定された場合には、座標点t(0)と座標点t(k-1)との間を直線で描画するとともに、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0) , t(1), t(2), t(3),…,t(k),…と振り直して前記垂線長演算手段に処理を行わせ、その一方、前記第1又は第2の比較判定手段によって、距離d(k-2)が第2の閾値dc又は第3の閾値de未満であると判定された場合には、k をインクリメントして、前記垂線長演算手段に処理を行わせる描画制御手段を備える筆跡再現描画装置としてコンピュータを機能させることを特徴とする。   The program according to the present invention includes a plurality of coordinate points t (0), t (1), t (2), t (3),. A program executed by a handwriting reproduction drawing device that selects a part of coordinate points from ... and reproduces the handwriting with a plurality of straight lines, with the coordinate point t (0) as the reference point and the coordinate point t (k- A perpendicular length calculation means for calculating a distance d (k-2) from 1) to a straight line c (k-2) connected by coordinate points t (0) and t (k), coordinates from coordinate point t (0) A coordinate point t (k) is determined by the coordinate point distance determination means for determining whether or not all the distances between the coordinate points up to the point t (k) are equal to or greater than the first threshold Dex. If it is determined that all the distances between the coordinate points from 0) to the coordinate point t (k) are greater than or equal to the first threshold Dex, the distance d (k− 1st comparison judgment means which compares 2) and 2nd threshold value dc, the said coordinate If it is determined by the point distance determination means that there is a distance between the coordinate points t (0) to the coordinate point t (k) that is less than the first threshold Dex, the perpendicular line A second comparison / determination unit that compares the distance d (k−2) calculated by the length calculation unit with a third threshold de that is shorter than the second threshold dc, and the first or second comparison / determination unit. When the distance d (k−2) is compared with the second threshold dc or the third threshold de, the distance d (k−2) is greater than or equal to the second threshold dc or the third threshold de. If determined, draw a straight line between the coordinate point t (0) and the coordinate point t (k-1), and use the coordinate point t (k-1) as the reference coordinate point t (0). Revert the coordinate points after point t (k-1) to coordinate points t (0), t (1), t (2), t (3), ..., t (k), ... On the other hand, the distance d (k−2) is set to the second threshold dc or the third by the first or second comparison / determination unit. When it is determined that the value is less than the threshold de, the computer is caused to function as a handwriting reproduction drawing apparatus including drawing control means for incrementing k and causing the perpendicular length calculation means to perform processing.

このプログラムにより、本発明に係る筆跡再現描画装置としてコンピュータを機能させることができる。   With this program, it is possible to cause a computer to function as a handwriting reproduction drawing apparatus according to the present invention.

本発明によれば、筆跡に応じた経時的な順序を有する複数の座標点から一部の座標点を選択して、筆跡を直線で精度よく再現することができる。   According to the present invention, it is possible to select a part of coordinate points from a plurality of coordinate points having a chronological order according to the handwriting, and to accurately reproduce the handwriting with a straight line.

以下、図面を参照しながら、本発明の好適な実施形態について説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.

本実施形態における筆跡再現描画処理は、図1に示すように、電子ペン1と、専用紙2と、端末装置(PC)3とから構成される筆跡再現描画システム4における端末装置(筆跡再現描画装置)3で行われる。図1は、電子ペン1の使用形態を示している。専用紙2には、ドットパターン(コード化パターン)が印刷されている。電子ペン1は、通常のインクペンと同様のペン先部6を備えており、ユーザーが通常のインクペンと同様にペン先部6によって専用紙2に文字や絵柄などを書くと、電子ペン1は、ペン先部6の移動した軌跡(筆跡)に沿って、専用紙2に印刷されたドットパターンを局所的、連続的に読み取り、専用紙2におけるその局所位置の座標を算出し、その座標データともに、電子ペン1を識別する電子ペン識別ID、筆記された時刻情報(タイムスタンプ)等を関連付けて端末装置3に送信する。端末装置3は、電子ペン1より電子ペン識別IDや座標データ等を受信すると、座標データを基に、電子ペン1の筆跡を再現してディスプレイ(表示手段24)に描画する。   As shown in FIG. 1, the handwriting reproduction drawing process in the present embodiment is a terminal device (handwriting reproduction drawing) in a handwriting reproduction drawing system 4 including an electronic pen 1, a dedicated paper 2, and a terminal device (PC) 3. Device 3). FIG. 1 shows a usage pattern of the electronic pen 1. A dot pattern (coded pattern) is printed on the dedicated paper 2. The electronic pen 1 has a pen tip portion 6 similar to a normal ink pen. When the user writes characters or a pattern on the dedicated paper 2 by the pen tip portion 6 in the same manner as a normal ink pen, the electronic pen 1 The dot pattern printed on the dedicated paper 2 is read locally and continuously along the trajectory (handwriting) of the pen tip 6 and the coordinates of the local position on the dedicated paper 2 are calculated. The electronic pen identification ID for identifying the electronic pen 1, the written time information (time stamp), and the like are associated and transmitted to the terminal device 3. When the terminal device 3 receives the electronic pen identification ID, coordinate data, and the like from the electronic pen 1, the terminal device 3 reproduces the handwriting of the electronic pen 1 based on the coordinate data and draws it on the display (display means 24).

[ 専用紙 ]
まず、専用紙2について説明する。専用紙2は、用紙にドットパターンが印刷され、さらにその上に罫線や記入枠などの図案や項目、文言、イラスト等が印刷されたものである。ドットパターンは、赤外線を吸収するカーボンを含んだインキにより印刷される。また、図案等は、カーボンを含まない通常のインキにより印刷される。ドットパターンと図案等とは用紙に対して同時に印刷してもよいし、どちらかを先に印刷してもよい。
[Special paper]
First, the dedicated paper 2 will be described. The special paper 2 is a paper in which a dot pattern is printed on paper, and further, designs, items such as ruled lines and entry frames, words, words, illustrations, and the like are printed thereon. The dot pattern is printed with ink containing carbon that absorbs infrared rays. In addition, the design and the like are printed with ordinary ink that does not contain carbon. The dot pattern and the design may be printed on the paper at the same time, or either one may be printed first.

[ ドットパターン ]
続いて、ドットパターンについて説明する。電子ペン1によって読み取られるドットパターンは、上述のアノト技術を採用している。図2は、専用紙2に印刷されるドットパターンのドットの位置とそのドットが変換される値との関係を説明する図である。図2に示すように、ドットパターンの各ドットは、その位置によって所定の値に対応付けられている。すなわち、ドットの位置を格子の基準位置(縦線及び横線の交差点:格子点)から上下左右のどの方向にシフトされているかによって、各ドットは、0〜3の値に対応付けられている。また、各ドットの値は、さらに、X座標用の第1ビット値及びY座標用の第2ビット値に変換される。このようにして対応付けられた情報の組合せにより、ドットパターンは、専用紙2における位置座標が決定されるよう構成されている。
[Dot pattern]
Next, the dot pattern will be described. The dot pattern read by the electronic pen 1 employs the above-mentioned Anoto technology. FIG. 2 is a diagram illustrating the relationship between the dot position of the dot pattern printed on the dedicated paper 2 and the value to which the dot is converted. As shown in FIG. 2, each dot of the dot pattern is associated with a predetermined value depending on its position. That is, each dot is associated with a value of 0 to 3 depending on the direction in which the position of the dot is shifted from the reference position of the grid (intersection of vertical and horizontal lines: grid point). The value of each dot is further converted into a first bit value for the X coordinate and a second bit value for the Y coordinate. The dot pattern is configured such that the position coordinates on the dedicated paper 2 are determined by the combination of information thus associated.

図3(a)は、専用紙2における、ある局所部のドットパターンの配列を示している。図3(a)に示すように、縦横約2mmの範囲内に6×6個のドットが、専用紙2上のどの部分から6×6ドットを取ってもユニークなパターンとなるように配置されている。これら36(=6×6)個のドットにより形成されるドットパターンは位置座標(例えば、そのドットパターンがその専用紙2上のどの位置にあるのか)を保持している。図3(b)は、図3(a)に示す各ドットを、格子の基準位置からのシフト方向によって、図2に示す規則性に基づいて対応づけられた値に変換したものである。この変換は、ドットパターンの画像を撮影する電子ペン1によって行われる。   FIG. 3A shows an arrangement of dot patterns in a certain local portion on the dedicated paper 2. As shown in FIG. 3 (a), 6 × 6 dots are arranged within a range of about 2 mm in length and width so that a unique pattern can be obtained no matter where 6 × 6 dots are taken from any part of the dedicated paper 2. ing. The dot pattern formed by these 36 (= 6 × 6) dots holds the position coordinates (for example, where the dot pattern is located on the dedicated paper 2). FIG. 3B is a diagram in which each dot shown in FIG. 3A is converted into a value associated with the regularity shown in FIG. 2 according to the shift direction from the reference position of the lattice. This conversion is performed by the electronic pen 1 that captures an image of a dot pattern.

[ 電子ペン ]
次に電子ペン1について説明する。図4に示すように、電子ペン1は、その筐体7の内部に、プロセッサ8、メモリ9、データ通信ユニット11、バッテリー12、LED13、CMOSカメラ14、圧力センサ16、及びインクカートリッジ17を備える。インクカートリッジ17の先端は、ペン先部6となっており、ユーザは、電子ペン1のペン先部6を専用紙2に当接させながら文字や絵柄を描くことができる。
[Electronic pen]
Next, the electronic pen 1 will be described. As shown in FIG. 4, the electronic pen 1 includes a processor 8, a memory 9, a data communication unit 11, a battery 12, an LED 13, a CMOS camera 14, a pressure sensor 16, and an ink cartridge 17 inside the housing 7. . The tip of the ink cartridge 17 is a pen tip portion 6, and the user can draw a character or a picture while bringing the pen tip portion 6 of the electronic pen 1 into contact with the dedicated paper 2.

LED13とCMOSカメラ14は、電子ペン1のペン先部6付近に取り付けられており、筐体7におけるLED13及びCMOSカメラ14が向く部分には、開口部18が形成されている。LED13は、専用紙2上のペン先部6近傍(領域19:参照図1)に向けて、赤外線を照明する。領域19は、ペン先部6が専用紙2に接触する位置とはわずかにずれている。カメラ14は、LED13によって照明された領域19内におけるドットパターンを撮影し、そのドットパターンの画像データをプロセッサ8に供給する。ここで、カーボンは赤外線を吸収するため、LED13によって照射された赤外線は、ドットの部分でドットに含まれるカーボンによって吸収される。そのため、ドットの部分は、赤外線の反射量が少なく、ドット以外の部分は赤外線の反射量が多い。したがって、カメラ14の撮影により、赤外線の反射量の違いから、カーボンを含むドットの領域とそれ以外の領域を区別することができる。たとえ撮影領域に罫線や枠などが印刷されてあったとしても、罫線や枠などのインクには、カーボンが含まれていないため、ドットパターンを認識することができる。なお、カメラ14による撮影領域は、図3(a)に示すような約2mm×約2mmの大きさを含む範囲であり、カメラ14の撮影は、毎秒75回行われる。   The LED 13 and the CMOS camera 14 are attached in the vicinity of the pen tip portion 6 of the electronic pen 1, and an opening 18 is formed in a portion of the housing 7 facing the LED 13 and the CMOS camera 14. The LED 13 illuminates infrared rays toward the vicinity of the pen tip portion 6 on the dedicated paper 2 (region 19: reference FIG. 1). The region 19 is slightly deviated from the position where the pen tip portion 6 contacts the special paper 2. The camera 14 captures a dot pattern in the area 19 illuminated by the LED 13 and supplies image data of the dot pattern to the processor 8. Here, since carbon absorbs infrared rays, the infrared rays irradiated by the LED 13 are absorbed by the carbon contained in the dots at the dot portions. Therefore, the dot portion has a small amount of infrared reflection, and the portion other than the dot has a large amount of infrared reflection. Therefore, the area of the dot containing carbon and the other area can be distinguished from the difference in the amount of reflected infrared light by photographing with the camera 14. Even if a ruled line, a frame, or the like is printed in the photographing region, the dot pattern can be recognized because the ink of the ruled line, the frame, etc. does not contain carbon. Note that the shooting area by the camera 14 is a range including a size of about 2 mm × about 2 mm as shown in FIG. 3A, and shooting by the camera 14 is performed 75 times per second.

バッテリー12は電子ペン1内の各部品に電力を供給するためのものであり、例えば電子ペン1のキャップ(図示せず)の脱着により電子ペン1自体の電源のオン/オフを行うよう構成させてもよい。圧力センサ16は、ユーザが電子ペン1により専用紙2上に文字などを書く際にペン先部6に与えられる圧力、即ち筆圧を検出し、プロセッサ8へ供給する。   The battery 12 is for supplying electric power to each component in the electronic pen 1. For example, the battery 12 is configured to turn on / off the electronic pen 1 itself by removing a cap (not shown) of the electronic pen 1. May be. The pressure sensor 16 detects the pressure applied to the pen tip 6 when the user writes characters or the like on the dedicated paper 2 with the electronic pen 1, that is, the writing pressure, and supplies the detected pressure to the processor 8.

プロセッサ8は、圧力センサ16から与えられる筆圧データに基づいて、LED13及びカメラ14のスイッチのオン/オフを切換える。即ち、ユーザが電子ペン1で専用紙2上に文字などを書くと、ペン先部6には筆圧がかかり、圧力センサ16によって所定値以上の筆圧が検出されたときに、プロセッサ8は、ユーザが記入を開始したと判定して、LED13及びカメラ14を作動させる。   The processor 8 switches on / off the switches of the LED 13 and the camera 14 based on the writing pressure data supplied from the pressure sensor 16. That is, when the user writes characters or the like on the dedicated paper 2 with the electronic pen 1, the pen pressure is applied to the pen tip 6, and when the pressure sensor 16 detects a writing pressure higher than a predetermined value, the processor 8 Then, it is determined that the user has started entry, and the LED 13 and the camera 14 are operated.

プロセッサ8は、ユーザの記入が行われる間、カメラ14によって供給される画像データのドットパターンから、ユーザが記入するストローク(筆跡)の専用紙2上におけるX,Y座標(単に「座標データ」とも呼ぶ)を連続的に演算していく。すなわち、プロセッサ8は、カメラ14によって供給される、図3(a)に示されるようなドットパターンの画像データを図3(b)に示すデータ配列に変換し、さらに、X座標ビット値・Y座標ビット値に変換して、そのデータ配列から所定の演算方法によりX,Y座標データを演算する。そしてプロセッサ8は、内蔵クロックから発信される現在時刻(タイムスタンプ)、筆圧データ及びX,Y座標データとを関連付け、これらの情報を、データ通信ユニット11によって端末装置3へ送信させる。なお、専用紙2における6×6のドットパターンは、その専用紙2内で重複することはないため、ユーザが電子ペン1で必要事項を記入すると、記入された位置が専用紙2のどの位置に当たるかを、プロセッサ8による座標演算により特定することができる。また、座標データには、ユーザが電子ペン1を用いて記入した時刻情報(タイムスタンプ)が関連付けられており、座標データは、経時的な情報を有し、時系列順に配列されて、データ通信ユニット11から端末装置3へ送信される。   The processor 8 performs X and Y coordinates (simply “coordinate data”) on the dedicated paper 2 of the stroke (handwriting) to be entered by the user from the dot pattern of the image data supplied by the camera 14 while the user is filling in. Is called continuously. That is, the processor 8 converts the image data of the dot pattern as shown in FIG. 3A supplied by the camera 14 into the data array shown in FIG. 3B, and further converts the X coordinate bit value · Y The data is converted into a coordinate bit value, and X and Y coordinate data are calculated from the data array by a predetermined calculation method. Then, the processor 8 associates the current time (time stamp) transmitted from the built-in clock, the pen pressure data, and the X and Y coordinate data, and causes the data communication unit 11 to transmit the information to the terminal device 3. Since the 6 × 6 dot pattern on the dedicated paper 2 does not overlap within the dedicated paper 2, when the user fills in the necessary items with the electronic pen 1, the entered position is any position on the dedicated paper 2. Can be specified by coordinate calculation by the processor 8. In addition, time information (time stamp) entered by the user using the electronic pen 1 is associated with the coordinate data, and the coordinate data has time-dependent information and is arranged in time series order for data communication. It is transmitted from the unit 11 to the terminal device 3.

メモリ9には、電子ペン1を識別するための電子ペン識別IDが記憶されており、また、プロセッサ11によって演算される座標データが時刻情報(タイムスタンプ)と共に時系列順に配列されて記憶されていく。   An electronic pen identification ID for identifying the electronic pen 1 is stored in the memory 9, and coordinate data calculated by the processor 11 is arranged and stored in time series together with time information (time stamp). Go.

データ通信ユニット11は、近傍にある端末装置3とデータの送受信を行う。データ通信ユニット11による送信は、Bluetooth (登録商標)の無線送信によると好適である。   The data communication unit 11 transmits / receives data to / from the terminal device 3 in the vicinity. Transmission by the data communication unit 11 is preferably performed by wireless transmission of Bluetooth (registered trademark).

[ 端末装置(筆跡再現描画装置) ]
次に、端末装置(筆跡再現描画装置)3について説明する。図5は、端末装置3の機能ブロック図である。図5に示すように、端末装置3は、機能的には、データ通信手段21、記憶手段22、処理部23、及び表示手段24を備えている。そして処理部23は、初期値設定手段25、垂線長演算手段26、座標点間距離判定手段27、第1の比較判定手段28、第2の比較判定手段29、及び描画制御手段30を備える。
[Terminal device (handwriting reproduction drawing device)]
Next, the terminal device (handwriting reproduction drawing device) 3 will be described. FIG. 5 is a functional block diagram of the terminal device 3. As shown in FIG. 5, the terminal device 3 functionally includes a data communication unit 21, a storage unit 22, a processing unit 23, and a display unit 24. The processing unit 23 includes an initial value setting unit 25, a perpendicular length calculation unit 26, a coordinate point distance determination unit 27, a first comparison determination unit 28, a second comparison determination unit 29, and a drawing control unit 30.

データ通信手段21は、電子ペン1によって送信された電子ペン識別ID、座標データ、及び時刻情報(タイムスタンプ)等を受信し、処理部22に伝送するものであって、ハードウェアとして、電子ペン1とのデータ通信が可能なアンテナ装置等により構成されている。   The data communication unit 21 receives an electronic pen identification ID, coordinate data, time information (time stamp), and the like transmitted by the electronic pen 1 and transmits them to the processing unit 22. 1 is configured by an antenna device or the like that can perform data communication with 1.

記憶手段22は、データ通信手段21によって受信された電子ペン識別ID、座標データ、及び時刻情報(タイムスタンプ)等を処理部23による指示により記憶したり、処理部23の処理の過程で演算されるデータや、処理の結果得られたデータを記憶する。記憶手段22は、ハードウェアとしては、ROMやRAMといったメモリ、ハードディスク等により構成される。   The storage unit 22 stores the electronic pen identification ID, coordinate data, time information (time stamp) received by the data communication unit 21 according to an instruction from the processing unit 23, or is calculated in the course of processing of the processing unit 23. Data and data obtained as a result of processing are stored. The storage unit 22 includes hardware such as a memory such as a ROM and a RAM, a hard disk, and the like.

処理部23は、筆跡再現描画処理をつかさどり、データ通信手段21によって伝送された情報のうち、特に、時系列的に配列された座標点の座標データを処理するものであり、ハードウェアとしては、CPUといったプロセッサ等により構成される。処理部23は、記憶手段22に対して、座標点の位置座標を時系列的にデータ配列tt(m)に格納させ、描画開始点をt(0)として、データ配列をt(0),t(1),…にナンバリングして振り直した後、処理部23が備える各手段に筆跡再現描画処理のための処理を行わせる。以下、各手段について、図5とともに図6を参照しつつ説明する。   The processing unit 23 is in charge of handwriting reproduction drawing processing, and in particular, processes coordinate data of coordinate points arranged in time series among the information transmitted by the data communication means 21. As hardware, It is constituted by a processor such as a CPU. The processing unit 23 causes the storage unit 22 to store the position coordinates of the coordinate points in the data array tt (m) in time series, the drawing start point is t (0), and the data array is t (0), After numbering t (1),... and reshaping, each means included in the processing unit 23 performs processing for handwriting reproduction drawing processing. Hereinafter, each means will be described with reference to FIG. 6 together with FIG.

初期値設定手段25は、基準となる座標点t(0)と他の座標点t(k-1)とを直線で描画するか否かを、座標点を順次変えて判定するための変数kに対して、初期値「2」を設定する。   The initial value setting means 25 is a variable k for sequentially changing the coordinate point to determine whether or not to draw the reference coordinate point t (0) and the other coordinate point t (k-1) as a straight line. Is set to an initial value “2”.

垂線長演算手段26は、座標点t(0)を基準点とし、座標点t(k-1)から、座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)を演算する。   The perpendicular length calculation means 26 uses the coordinate point t (0) as a reference point, and extends from the coordinate point t (k-1) to the straight line c (k-2) connected by the coordinate points t (0) and t (k). The distance d (k−2) is calculated.

座標点間距離判定手段27は、座標点t(0)から座標点t(k)までの各座標点間距離、すなわち、座標点t(0)−t(1)間の距離、座標点t(1)−t(2)間の距離、…座標点t(k-1)−t(k)間の距離のすべてが、第1の閾値Dex 以上であるか否かを判定する。   The coordinate point distance determination means 27 is a coordinate point distance from the coordinate point t (0) to the coordinate point t (k), that is, a distance between coordinate points t (0) -t (1), a coordinate point t. It is determined whether the distance between (1) -t (2), ..., the distance between coordinate points t (k-1) -t (k) is not less than the first threshold Dex.

第1の比較判定手段28は、座標点間距離判定手段27によって、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であると判定された場合には、垂線長演算手段26によって演算された距離d(k-2)と第2の閾値dcとを比較する。   The first comparison / determination unit 28 uses the inter-coordinate point distance determination unit 27 to make all of the inter-coordinate point distances from the coordinate point t (0) to the coordinate point t (k) equal to or greater than the first threshold Dex. Is determined, the distance d (k−2) calculated by the perpendicular length calculation means 26 is compared with the second threshold value dc.

第2の比較判定手段29は、座標点間距離判定手段27によって、座標点t(0)から座標点t(k)までの各座標点間距離の中に、第1の閾値Dex 未満のものが存在すると判定された場合には、垂線長演算手段26によって演算された距離d(k-2)と、第2の閾値dcよりも短い第3の閾値deとを比較する。   The second comparison determination means 29 has a distance between the coordinate points t (0) to the coordinate point t (k) by the coordinate point distance determination means 27 that is less than the first threshold Dex. Is determined to exist, the distance d (k−2) calculated by the perpendicular length calculation means 26 is compared with the third threshold de that is shorter than the second threshold dc.

描画制御手段30は、第1の比較判定手段28によって、距離d(k-2)と第2の閾値dcとが比較された結果、距離d(k-2)が第2の閾値dc以上であると判定された場合には、座標点t(0)と座標点t(k-1)との間を直線で描画するとともに、表示手段24に対して、その描画した直線を表示させる。そして、描画制御手段30は、記憶手段22の空き容量確保のため、記憶手段22に記憶された座標点t(0)からt(k-2)までの座標データを消去するとともに、それらに対応するデータ配列tt(m) も消去する。   The drawing control unit 30 compares the distance d (k−2) with the second threshold value dc by the first comparison / determination unit 28. As a result, the distance d (k−2) is equal to or larger than the second threshold value dc. If it is determined that there is, the line between the coordinate point t (0) and the coordinate point t (k-1) is drawn with a straight line, and the drawn straight line is displayed on the display means 24. Then, the drawing control means 30 deletes the coordinate data from the coordinate points t (0) to t (k-2) stored in the storage means 22 in order to secure the free space of the storage means 22, and responds to them. The data array tt (m) to be deleted is also deleted.

同様に、描画制御手段30は、第2の比較判定手段29によって、距離d(k-2)と第3の閾値deとが比較された結果、距離d(k-2)が第3の閾値de以上であると判定された場合には、座標点t(0)と座標点t(k-1)との間を直線で描画するとともに、表示手段24に対して、その描画した直線を表示させる。また、描画制御手段30は、記憶手段22の空き容量確保のため、記憶手段22に記憶された座標点t(0)からt(k-2)までの座標データを消去するとともに、それらに対応するデータ配列tt(m) も消去する。   Similarly, the drawing control unit 30 compares the distance d (k−2) with the third threshold de by the second comparison / determination unit 29, so that the distance d (k−2) is the third threshold. If it is determined that the value is greater than or equal to de, the line between the coordinate point t (0) and the coordinate point t (k-1) is drawn with a straight line, and the drawn straight line is displayed on the display unit 24. Let Further, the drawing control means 30 deletes the coordinate data from the coordinate points t (0) to t (k-2) stored in the storage means 22 in order to secure the free space of the storage means 22, and responds to them. The data array tt (m) to be deleted is also deleted.

描画制御手段30は、第1の比較判例手段28又は第2の比較判定手段29によって、距離d(k-2)と第2の閾値dc又は第3の閾値deとが比較された結果、距離d(k-2)が第2の閾値dc又は第3の閾値de以上であると判定された場合には、時系列的に次の座標点t(k+1)が存在するか否か判定する。そして、座標点t(k+1)が存在する場合、描画制御手段30は、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0),t(1),t(2),t(3),…,t(k),…と振り直して(ナンバリング)、初期値設定手段25にk を初期化させ(k=2 )、垂線長演算手段26に処理を行わせる。その一方、座標点t(k+1)が存在しない場合、描画制御手段30は、座標点t(k-1)とt(k)との間を直線で描画し、表示手段24にその直線を表示させ、記憶手段22に記憶された座標点t(k-1)及びt(k)の座標データを消去するとともに、それらに対応するデータ配列tt(m) も消去する。   The drawing control unit 30 compares the distance d (k−2) with the second threshold dc or the third threshold de by the first comparison case unit 28 or the second comparison determination unit 29. If it is determined that d (k-2) is greater than or equal to the second threshold dc or the third threshold de, it is determined whether or not the next coordinate point t (k + 1) exists in time series To do. When the coordinate point t (k + 1) exists, the drawing control unit 30 sets the coordinate point t (k-1) as the reference coordinate point t (0) and the coordinate points after the coordinate point t (k-1). Are re-assigned to the coordinate points t (0), t (1), t (2), t (3), ..., t (k), ... (numbering), and the initial value setting means 25 initializes k. (K = 2), the normal length calculation means 26 performs processing. On the other hand, when the coordinate point t (k + 1) does not exist, the drawing control means 30 draws a straight line between the coordinate points t (k-1) and t (k) and displays the straight line on the display means 24. Is displayed, the coordinate data of the coordinate points t (k-1) and t (k) stored in the storage means 22 are deleted, and the data array tt (m) corresponding to them is also deleted.

また、描画制御手段30は、第1の比較判例手段28又は第2の比較判定手段29によって、距離d(k-2)と第2の閾値dc又は第3の閾値deとが比較された結果、距離d(k-2)が第2の閾値dc又は第3の閾値de未満であると判定された場合には、k をインクリメント(k=k++ )して、新たな距離d(k-2)を垂線長演算手段26に求めるところから処理を行わせる。   In addition, the drawing control means 30 compares the distance d (k−2) with the second threshold dc or the third threshold de by the first comparison case means 28 or the second comparison judgment means 29. , When it is determined that the distance d (k−2) is less than the second threshold value dc or the third threshold value de, k is incremented (k = k ++) to obtain a new distance d (k−2). ) To the perpendicular length calculation means 26 to perform processing.

表示手段24は、描画制御手段30によって描画された直線を表示するものであり、ハードウェアとしては、ディスプレイ等により構成される。   The display unit 24 displays a straight line drawn by the drawing control unit 30 and is configured by a display or the like as hardware.

[ 描画処理アプリケーション ]
次に、描画処理アプリケーション40について図7を参照して説明する。図7は、端末装置(筆跡再現描画装置)3において実行される描画処理アプリケーション40のモジュール構成図であり、描画処理プログラムと対応する。
[Drawing application]
Next, the drawing processing application 40 will be described with reference to FIG. FIG. 7 is a module configuration diagram of the drawing processing application 40 executed in the terminal device (handwriting reproduction drawing device) 3 and corresponds to the drawing processing program.

図7に示すように、描画処理アプリケーション40は、データ通信モジュール40、情報記憶モジュール42、処理モジュール43からなり、処理モジュール43は、初期値設定モジュール44、垂線長演算モジュール45、座標点間距離判定モジュール46、第1の比較判定手段47、第2の比較判定手段48、描画制御モジュール49とを備える。   As shown in FIG. 7, the drawing processing application 40 includes a data communication module 40, an information storage module 42, and a processing module 43. The processing module 43 includes an initial value setting module 44, a perpendicular length calculation module 45, and a coordinate point distance. A determination module 46, a first comparison determination unit 47, a second comparison determination unit 48, and a drawing control module 49 are provided.

データ通信モジュール41は、電子ペン1によって送信された電子ペン識別ID、座標点の座標データ、時刻情報(タイムスタンプ)等を受信する機能を有し、端末装置3にデータ通信手段21を構成させるモジュールである。   The data communication module 41 has a function of receiving an electronic pen identification ID, coordinate data of coordinate points, time information (time stamp), and the like transmitted by the electronic pen 1, and causes the terminal device 3 to configure the data communication means 21. It is a module.

情報記憶モジュール42は、データ通信手段21によって受信された電子ペン識別ID、座標データ、及び時刻情報(タイムスタンプ)等を処理部23による指示により記憶したり、処理部23の処理の過程で演算されるデータや、処理の結果得られたデータを記憶手段22に記憶させる機能を有し、端末装置3に、記憶手段22を構成させるモジュールである。   The information storage module 42 stores the electronic pen identification ID, coordinate data, time information (time stamp), etc. received by the data communication means 21 in accordance with an instruction from the processing unit 23, or calculates in the process of the processing unit 23. This is a module that has a function of storing the data to be processed and the data obtained as a result of the processing in the storage unit 22, and causes the terminal device 3 to configure the storage unit 22.

処理モジュール43は、筆跡再現描画処理をつかさどり、記憶手段22に対して、座標点の位置座標を時系列的にデータ配列tt(m) に格納させ、描画開始点をt(0)として、データ配列をt(0),t(1),…にナンバリングして振り直した後、処理部23が備える各手段に筆跡再現描画処理のための処理を行わせる機能を有し、端末装置3に処理部23を構成させるモジュールである。   The processing module 43 controls the handwriting reproduction drawing process, causes the storage means 22 to store the position coordinates of the coordinate points in the data array tt (m) in time series, and sets the drawing start point as t (0). After the array is numbered t (0), t (1), ... and re-assigned, each means provided in the processing unit 23 has a function of performing processing for handwriting reproduction drawing processing. This module constitutes the processing unit 23.

初期値設定モジュール44は、基準となる座標点t(0)と他の座標点t(k-1)とを直線で描画するか否かを、座標点を順次変えて判定するための変数kに対して、初期値を設定する機能を有し、端末装置3に対して初期値設定手段25を構成させるモジュールである。   The initial value setting module 44 determines whether or not to draw a reference coordinate point t (0) and another coordinate point t (k-1) as a straight line by sequentially changing the coordinate points. On the other hand, this is a module that has a function of setting an initial value and causes the terminal device 3 to configure the initial value setting means 25.

垂線長演算モジュール45は、座標点t(0)を基準点とし、座標点t(k-1)から、座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)を演算する機能を有し、端末装置3に垂線長演算手段26を構成させるモジュールである。   The perpendicular length calculation module 45 uses the coordinate point t (0) as a reference point, and extends from the coordinate point t (k-1) to the straight line c (k-2) connected by the coordinate points t (0) and t (k). This is a module that has the function of calculating the distance d (k−2) of the terminal device 3 and constitutes the perpendicular length calculating means 26 in the terminal device 3.

座標点間距離判定モジュール46は、座標点t(0)から座標点t(k)までの各座標点間距離、すなわち、座標点t(0)−t(1)間の距離、座標点t(1)−t(2)間の距離、…座標点t(k-1)−t(k)間の距離のすべてが、第1の閾値Dex 以上であるか否かを判定する機能を有し、端末装置3に座標点間距離判定手段27を構成させるモジュールである。   The inter-coordinate point distance determination module 46 determines the inter-coordinate point distance from the coordinate point t (0) to the coordinate point t (k), that is, the distance between the coordinate points t (0) -t (1), the coordinate point t. (1) Has a function to determine whether the distance between t (2), ..., the distance between coordinate points t (k-1) -t (k) is equal to or greater than the first threshold Dex. This is a module that causes the terminal device 3 to form the coordinate point distance determination means 27.

第1の比較判定モジュール47は、座標点間距離判定手段27によって、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であると判定された場合に、垂線長演算手段26によって演算された距離d(k-2)と第2の閾値dcとを比較する機能を有し、端末装置3に、第1の比較判定手段28を構成させるモジュールである。   The first comparison / determination module 47 uses the inter-coordinate point distance determination means 27 to make all the inter-coordinate point distances from the co-ordinate point t (0) to the co-ordinate point t (k) equal to or greater than the first threshold Dex. If it is determined, the distance d (k−2) calculated by the perpendicular length calculation unit 26 and the second threshold value dc are compared, and the terminal device 3 includes the first comparison determination unit 28. Is a module that configures

第2の比較判定モジュール48は、座標点間距離判定手段27によって、座標点t(0)から座標点t(k)までの各座標点間距離の中に、第1の閾値Dex 未満のものが存在すると判定された場合に、垂線長演算手段26によって演算された距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとを比較する機能を有し、端末装置3に第2の比較判定手段29を構成させるモジュールである。   The second comparison determination module 48 uses the distance between coordinate points determination means 27 to determine that the distance between coordinate points t (0) to t (k) is less than the first threshold Dex. A terminal device that has a function of comparing the distance d (k−2) calculated by the perpendicular length calculation means 26 with a third threshold de that is shorter than the second threshold dc, 3 is a module that constitutes the second comparison determination means 29.

描画制御モジュール50は、第1の比較判定手段28による判定や第2の比較判定手段29による判定の結果によって、基準となる座標点t(0)と座標点t(k-1)との間を直線で描画し、表示手段24に表示させて、新たに基準座標点t(0)から設定し直して直線を描画する適否の処理を進めたり、あるいはk をインクリメントして、基準座標点t(0)と新たに設定された座標点t(k-1)との間において直線を描画する適否の処理を進めたり、描画処理の過程で、空き容量確保のために不要となった座標データを記憶手段22から消去させたりする機能を有する。この描画制御モジュール50は、端末装置3に描画制御手段30を構成させるモジュールである。   The drawing control module 50 determines whether the reference coordinate point t (0) and the coordinate point t (k-1) are based on the result of the determination by the first comparison determination unit 28 or the determination by the second comparison determination unit 29. Is drawn on a straight line and displayed on the display means 24, and a new setting is made from the reference coordinate point t (0) to proceed with the appropriateness of drawing a straight line, or k is incremented to increase the reference coordinate point t. Coordinate data that became unnecessary to secure free space in the process of drawing a straight line between (0) and the newly set coordinate point t (k-1) Or the like from the storage means 22. The drawing control module 50 is a module that causes the terminal device 3 to form the drawing control means 30.

[ 描画処理フロー ]
次に、端末装置(筆跡再現描画装置)3における描画処理フローについて、図8を参照しつつ説明する。この描画処理フローは、電子ペン1によって送信された筆跡に応じた経時的な順序を有する座標点の座標データを、端末装置3が受信後に処理するフローチャートである。
[Drawing process flow]
Next, a drawing processing flow in the terminal device (handwriting reproduction drawing device) 3 will be described with reference to FIG. This drawing processing flow is a flowchart in which the terminal device 3 processes the coordinate data of coordinate points having a temporal order corresponding to the handwriting transmitted by the electronic pen 1 after receiving.

端末装置3において、電子ペン1によって送信された電子ペン識別ID、座標点の座標データ、時刻情報(タイムスタンプ)等が、データ通信手段21によって受信され、処理部23に伝送される。処理部23は、これらの電子ペン識別ID、座標データ、及び時刻情報等を記憶手段22に記憶させるとともに、順次送信されてきた座標データを時系列的に、記憶手段22のデータ配列tt(m) [ m = 0, 1, 2,…] に格納する(ステップ101)。   In the terminal device 3, the electronic pen identification ID, the coordinate data of the coordinate point, time information (time stamp), and the like transmitted by the electronic pen 1 are received by the data communication unit 21 and transmitted to the processing unit 23. The processing unit 23 stores the electronic pen identification ID, the coordinate data, the time information, and the like in the storage unit 22 and also stores the sequentially transmitted coordinate data in the data array tt (m in the storage unit 22 in time series. ) [m = 0, 1, 2,...] (step 101).

処理部23は、さらに、描画開始点tt(0) をt(0)として、データ配列をt(0),t(1),…にナンバリングして振り直す(ステップ102)。続いて、初期値設定手段25は、変数k に対して、初期値「2」を設定する(ステップ103)。   Further, the processing unit 23 sets the drawing start point tt (0) to t (0), numbers the data array to t (0), t (1),. Subsequently, the initial value setting means 25 sets an initial value “2” for the variable k (step 103).

垂線長演算手段26は、k = 2 として、座標点t(0)及びt(2)で結ばれる直線c(0)と、座標点t(1)との距離d(0)を演算する(ステップ104)。続いて、座標点間距離判定手段27は、座標点t(0)から座標点t(2)までの各座標点間距離、すなわち、座標点t(0)−t(1)間の距離、座標点t(1)−t(2)間の距離のすべてが、第1の閾値Dex 以上であるか否かを判定する(ステップ105)。   The perpendicular length calculation means 26 calculates the distance d (0) between the straight line c (0) connected by the coordinate points t (0) and t (2) and the coordinate point t (1), where k = 2. Step 104). Subsequently, the inter-coordinate point distance determination unit 27 determines the inter-coordinate point distance from the co-ordinate point t (0) to the co-ordinate point t (2), that is, the distance between the co-ordinate points t (0) -t (1), It is determined whether all the distances between the coordinate points t (1) -t (2) are equal to or greater than the first threshold Dex (step 105).

座標点間距離判定手段27によって、座標点t(0)−t(1)間の距離、座標点t(1)−t(2)間の距離のすべてが、第1の閾値Dex 以上であると判断された場合(ステップ105:イエス)、第1の比較判定手段28は、垂線長演算手段26によって演算された距離d(0)と第2の閾値dcとを比較する(ステップ106)。その一方、座標点間距離判定手段27によって、座標点t(0)−t(1)間の距離、座標点t(1)−t(2)間の距離の中に、第1の閾値Dex 未満のものが存在すると判断された場合(ステップ105:ノー)、第2の比較判定手段29は、垂線長演算手段26によって演算された距離d(k-2)と、第2の閾値dcよりも短い第3の閾値deとを比較する(ステップ107)。   The distance between the coordinate points t (0) -t (1) and the distance between the coordinate points t (1) -t (2) are all greater than or equal to the first threshold Dex by the distance determination means 27 between the coordinate points. (Step 105: Yes), the first comparison determination means 28 compares the distance d (0) calculated by the perpendicular length calculation means 26 with the second threshold dc (Step 106). On the other hand, the inter-coordinate-point distance determining means 27 determines the first threshold Dex among the distance between the coordinate points t (0) -t (1) and the distance between the coordinate points t (1) -t (2). When it is determined that there is less than (step 105: NO), the second comparison / determination means 29 uses the distance d (k−2) calculated by the perpendicular length calculation means 26 and the second threshold value dc. Is compared with the short third threshold value de (step 107).

第1の比較判定手段28によって、距離d(0)と第2の閾値dcとが比較された結果、距離d(0)が第2の閾値dc未満であると判定された場合(ステップ106:ノー)、或いは、第2の比較判定手段29によって、距離d(0)と第3の閾値deとが比較された結果、距離d(0)が第3の閾値de未満であると判定された場合(ステップ107:ノー)には、描画制御手段30は、k をインクリメント(k = 2 + 1 = 3となる) し(ステップ108)、ステップ104〜107を繰り返し実行させる。すなわち、ステップ104では、垂線長演算手段26によって、座標点t(0)及びt(3)で結ばれる直線c(1)と、座標点t(2)との距離d(1)が演算され、ステップ105においては、座標点間距離判定手段27によって、座標点t(0)から座標点t(3)までの各座標点間距離のすべてが、第1の閾値Dex 以上であるか否かが判定される。そして、ステップ106においては、第1の比較判定手段28によって、距離d(1)と第2の閾値dcとが比較され、ステップ107においては、第2の比較判定手段29によって、距離d(1)と第3の閾値deとが比較される。   As a result of comparing the distance d (0) with the second threshold dc by the first comparison / determination means 28, it is determined that the distance d (0) is less than the second threshold dc (step 106: No) Or, as a result of comparing the distance d (0) with the third threshold de by the second comparison / determination means 29, it is determined that the distance d (0) is less than the third threshold de. In the case (step 107: No), the drawing control means 30 increments k (k = 2 + 1 + 1 = 3) (step 108), and repeatedly executes steps 104 to 107. That is, in step 104, the perpendicular length calculation means 26 calculates the distance d (1) between the straight line c (1) connected by the coordinate points t (0) and t (3) and the coordinate point t (2). In Step 105, whether or not all the coordinate point distances from the coordinate point t (0) to the coordinate point t (3) are greater than or equal to the first threshold Dex by the coordinate point distance determination means 27. Is determined. In step 106, the first comparison / determination means 28 compares the distance d (1) with the second threshold value dc. In step 107, the second comparison / determination means 29 compares the distance d (1). ) And the third threshold de.

このようにして、ステップ106,107において、距離d(k-2)が第2の閾値dc又は第3の閾値de未満の場合には、座標点t(k-1)と基準座標点t(0)との間で直線を描画する必要ないと判断されるため、描画制御手段30は、k をインクリメントとして、次の座標点と基準座標点との間における直線による描画の適否を判断していく。   In this way, when the distance d (k-2) is less than the second threshold dc or the third threshold de in steps 106 and 107, the coordinate point t (k-1) and the reference coordinate point t ( 0), it is determined that it is not necessary to draw a straight line, and the drawing control means 30 increments k to determine whether or not to draw a straight line between the next coordinate point and the reference coordinate point. Go.

その一方、ステップ106,107において、距離d(k-2)が第2の閾値dc又は第3の閾値de以上であると判断された場合(ステップ106,107:イエス)には、描画制御手段30は、座標点t(0)と座標点t(k-1)との間を直線で描画するとともに、表示手段24に対して、その描画した直線を表示させる(ステップ109)。さらに、描画制御手段30は、記憶手段22の空き容量確保のため、記憶手段22に記憶された座標点t(0)からt(k-2)までの座標データを消去するとともに、それらに対応するデータ配列tt(m) も消去する(ステップ110)。   On the other hand, if it is determined in steps 106 and 107 that the distance d (k−2) is greater than or equal to the second threshold dc or the third threshold de (steps 106 and 107: Yes), the drawing control means. 30 draws a straight line between the coordinate point t (0) and the coordinate point t (k-1) and causes the display unit 24 to display the drawn straight line (step 109). Furthermore, the drawing control means 30 deletes the coordinate data from the coordinate points t (0) to t (k-2) stored in the storage means 22 in order to secure free space in the storage means 22, and responds to them. The data array tt (m) to be deleted is also deleted (step 110).

さらに、描画制御手段30は、時系列的に次の座標点t(k+1)が存在するか否か判定する(ステップ111)。これは、座標点t(k+1)が、ペン・アップされたことによる最後の座標点であるのか、それとも、時系列的に続く座標点がさらに存在するのかを判定するものである。そして、座標点t(k+1)が存在する場合、描画制御手段30は、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0),t(1),t(2),t(3),…,t(k),…とナンバリングして振り直し(ステップ112)、ステップ103〜111を繰り返し処理させる。これは、描画した直線の一方の端点を新たな基準座標点t(0)として、続けて直線描画処理を行うためである。   Further, the drawing control means 30 determines whether or not the next coordinate point t (k + 1) exists in time series (step 111). This is to determine whether the coordinate point t (k + 1) is the last coordinate point that has been pen-up, or whether there are more coordinate points that continue in time series. When the coordinate point t (k + 1) exists, the drawing control unit 30 sets the coordinate point t (k-1) as the reference coordinate point t (0) and the coordinate points after the coordinate point t (k-1). Are renumbered as coordinate points t (0), t (1), t (2), t (3),..., T (k), ... (step 112), and steps 103 to 111 are repeated. . This is because one end point of the drawn straight line is set as a new reference coordinate point t (0) and the straight line drawing process is subsequently performed.

ステップ111において、座標点t(k+1)が存在しない場合には、座標点t(k)が最後の座標点であるため、描画制御手段30は、座標点t(k-1)とt(k)との間を直線で描画し、表示手段24にその直線を表示させ(ステップ113)、記憶手段22に記憶された座標点t(k-1)及びt(k)の座標データを消去するとともに、それらに対応するデータ配列tt(m) も消去する(ステップ114)。   In step 111, when the coordinate point t (k + 1) does not exist, since the coordinate point t (k) is the last coordinate point, the drawing control means 30 determines that the coordinate point t (k-1) and t (k) is drawn as a straight line, the straight line is displayed on the display means 24 (step 113), and the coordinate data of the coordinate points t (k-1) and t (k) stored in the storage means 22 are displayed. In addition to erasing, the data array tt (m) corresponding to them is also erased (step 114).

[ 描画例 ]
次に図9〜図13を参照して、本描画処理による描画例を示す。ここでは、図9に示すように、電子ペン1によって送信された筆跡に応じた経時的な順序を有する座標点tt(0) 〜tt(6) の7点に対する描画について説明する。なお、座標点tt(0) −tt(1) 間の距離、座標点tt(1) −tt(2) 間の距離、座標点tt(4) −tt(5) 間の距離、及び座標点tt(5) −tt(6) 間の距離は、第1の閾値Dex 以上であるとし、座標点tt(2) −tt(3) 間の距離、及び座標点tt(3) −tt(4) 間の距離は、第1の閾値Dex 未満であるとする。
[Drawing example]
Next, with reference to FIG. 9 to FIG. 13, a drawing example by this drawing process is shown. Here, as shown in FIG. 9, a description will be given of drawing on seven coordinate points tt (0) to tt (6) having a temporal order corresponding to the handwriting transmitted by the electronic pen 1. Note that the distance between coordinate points tt (0)-tt (1), the distance between coordinate points tt (1)-tt (2), the distance between coordinate points tt (4)-tt (5), and the coordinate points The distance between tt (5) and tt (6) is not less than the first threshold Dex, and the distance between the coordinate points tt (2) and tt (3) and the coordinate points tt (3) and tt (4 ) Is assumed to be less than the first threshold Dex.

処理部23は、データ通信手段21によって受信した、経時的な順序を有する座標データを、時系列的に記憶手段22のデータ配列tt(m) [ m = 0 〜6]に格納する(ステップ101)。そして、図10に示すように、処理部23は、さらに、描画開始点tt(0) をt(0)として、データ配列tt(0) ,tt(1) ,…をt(0),t(1),…にナンバリングして振り直す(ステップ102)。続いて、初期値設定手段25は、変数k に対して、初期値「2」を設定する(ステップ103)。   The processing unit 23 stores the coordinate data having the time order received by the data communication unit 21 in the data array tt (m) [m = 0 to 6] of the storage unit 22 in time series (step 101). ). Then, as shown in FIG. 10, the processing unit 23 further sets the drawing start point tt (0) to t (0) and sets the data arrays tt (0), tt (1),... To t (0), t Numbering (1), ... and re-assigning (step 102). Subsequently, the initial value setting means 25 sets an initial value “2” for the variable k (step 103).

垂線長演算手段26は、k = 2 として、座標点t(0)及びt(2)で結ばれる直線c(0)と、座標点t(1)との距離d(0)を演算する(ステップ104)。続いて、座標点間距離判定手段27は、座標点t(0)から座標点t(2)までの各座標点間距離、すなわち、座標点t(0)−t(1)間の距離、座標点t(1)−t(2)間の距離と第1の閾値Dex とを比較し、いずれの座標点間距離も第1の閾値Dex 以上であると判定する(ステップ105:イエス)。   The perpendicular length calculation means 26 calculates the distance d (0) between the straight line c (0) connected by the coordinate points t (0) and t (2) and the coordinate point t (1), where k = 2. Step 104). Subsequently, the inter-coordinate point distance determination unit 27 determines the inter-coordinate point distance from the co-ordinate point t (0) to the co-ordinate point t (2), that is, the distance between the co-ordinate points t (0) -t (1), The distance between the coordinate points t (1) -t (2) is compared with the first threshold Dex, and it is determined that the distance between any coordinate points is equal to or greater than the first threshold Dex (step 105: YES).

座標点間距離判定手段27の判定を受け、第2の比較判定手段29は、垂線長演算手段26によって演算された距離d(0)と第2の閾値dcとを比較し、d(0)<dcと判定したとする(ステップ106:ノー)。すると、描画制御手段30は、k をインクリメント(k = 2 + 1 = 3となる) し(ステップ108)、ステップ104〜107を繰り返し実行させる。   In response to the determination by the coordinate point distance determination means 27, the second comparison determination means 29 compares the distance d (0) calculated by the perpendicular length calculation means 26 with the second threshold value dc, and d (0). It is assumed that <dc is determined (Step 106: No). Then, the drawing control means 30 increments k (k = 2 + 1 = 3) (step 108), and repeatedly executes steps 104 to 107.

すなわち、垂線長演算手段26は、座標点t(0)及びt(3)で結ばれる直線c(1)と、座標点t(2)との距離d(1)を演算する(ステップ104)。続いて、座標点間距離判定手段27は、座標点t(0)から座標点t(3)までの各座標点間距離、すなわち、座標点t(0)−t(1)間の距離、座標点t(1)−t(2)間の距離、座標点t(2)−t(3)間の距離と、第1の閾値Dex とをそれぞれ比較し、座標点t(2)−t(3)間の距離が第1の閾値Dex 未満であると判定する(ステップ105:ノー)。   That is, the perpendicular length calculation means 26 calculates the distance d (1) between the straight line c (1) connected by the coordinate points t (0) and t (3) and the coordinate point t (2) (step 104). . Subsequently, the inter-coordinate-point distance determining unit 27 determines the inter-coordinate point distance from the coordinate point t (0) to the coordinate point t (3), that is, the distance between the coordinate points t (0) −t (1), The distance between the coordinate point t (1) -t (2), the distance between the coordinate point t (2) -t (3), and the first threshold Dex are respectively compared, and the coordinate point t (2) -t It is determined that the distance between (3) is less than the first threshold Dex (step 105: No).

続いて、第2の比較判定手段29は、垂線長演算手段26によって演算された距離d(1)と第3の閾値deとを比較し、d(1)>deであると判定したとする(ステップ107:イエス)。すると、描画制御手段30は、座標点t(0)と座標点t(2)との間を直線で描画するとともに、表示手段24に対して、その描画した直線を表示させる(ステップ109)。それとともに、描画制御手段30は、記憶手段22の空き容量確保のため、記憶手段22に記憶された座標点t(0)からt(1)までの座標データを消去するとともに、それらに対応するデータ配列tt(0) ,tt(1) も消去する(ステップ110)。   Subsequently, the second comparison / determination means 29 compares the distance d (1) calculated by the perpendicular length calculation means 26 with the third threshold de, and determines that d (1)> de. (Step 107: Yes). Then, the drawing control means 30 draws a straight line between the coordinate point t (0) and the coordinate point t (2) and causes the display means 24 to display the drawn straight line (step 109). At the same time, the drawing control means 30 deletes the coordinate data from the coordinate points t (0) to t (1) stored in the storage means 22 in order to secure free space in the storage means 22, and responds to them. The data arrays tt (0) and tt (1) are also deleted (step 110).

さらに、描画制御手段30は、時系列的に次の座標点t(4)(参照図10)が存在すると判定し(ステップ111:イエス)、座標点t(2)を新たな基準座標点t(0)として座標点t(2)以降の座標点を座標点t(0),t(1),t(2),t(3),…,t(k),…とナンバリングして振り直し(ステップ112)、ステップ104に戻る。このときの描画処理の状況を図11に示す。   Further, the drawing control means 30 determines that the next coordinate point t (4) (see FIG. 10) exists in time series (step 111: YES), and sets the coordinate point t (2) as a new reference coordinate point t. As (0), the coordinate points after coordinate point t (2) are numbered and shaken as coordinate points t (0), t (1), t (2), t (3), ..., t (k), ... Fix (step 112) and return to step 104. The state of the drawing process at this time is shown in FIG.

そして、初期値設定手段25によってk が初期値「2」とされ、垂線長演算手段26は、新たな座標点t(0)及びt(2)で結ばれる直線c(0)と、座標点t(1)との距離d(0)を演算する(ステップ104)。続いて、座標点間距離判定手段27は、座標点t(0)から座標点t(2)までの各座標点間距離、すなわち、座標点t(0)−t(1)間の距離、座標点t(1)−t(2)間の距離は、いずれも第1の閾値Dex 未満であると判定し(ステップ105:ノー)、第2の比較判定手段29は、垂線長演算手段26によって演算された距離d(0)と第3の閾値deとを比較して、d(0)<deと判定する(ステップ107:ノー)。   Then, the initial value setting means 25 sets k to an initial value “2”, and the perpendicular length calculation means 26 determines that the straight line c (0) connected by the new coordinate points t (0) and t (2) and the coordinate point A distance d (0) from t (1) is calculated (step 104). Subsequently, the inter-coordinate point distance determination unit 27 determines the inter-coordinate point distance from the co-ordinate point t (0) to the co-ordinate point t (2), that is, the distance between the co-ordinate points t (0) -t (1), The distances between the coordinate points t (1) -t (2) are both determined to be less than the first threshold Dex (step 105: No), and the second comparison / determination means 29 is the perpendicular length calculation means 26. The distance d (0) calculated by the above and the third threshold value de are compared, and d (0) <de is determined (step 107: No).

続いて、描画制御手段30は、k をインクリメント(k = 2 + 1 = 3となる) し(ステップ108)、垂線長演算手段26は、座標点t(0)及びt(3)で結ばれる直線c(1)と、座標点t(2)との距離d(1)を演算する(ステップ104)。続いて、座標点間距離判定手段27は、座標点t(0)から座標点t(3)までの各座標点間距離、すなわち、座標点t(0)−t(1)間の距離、座標点t(1)−t(2)間の距離、座標点t(2)−t(3)間の距離と第1の閾値Dex とをそれぞれ比較し、座標点t(0)−t(1)間の距離及び座標点t(1)−t(2)間の距離が第1の閾値Dex 未満であると判定する(ステップ105:ノー)。   Subsequently, the drawing control means 30 increments k (k = 2 + 1 = 3) (step 108), and the perpendicular length calculation means 26 is connected at the coordinate points t (0) and t (3). A distance d (1) between the straight line c (1) and the coordinate point t (2) is calculated (step 104). Subsequently, the inter-coordinate-point distance determining unit 27 determines the inter-coordinate point distance from the coordinate point t (0) to the coordinate point t (3), that is, the distance between the coordinate points t (0) −t (1), The distance between the coordinate points t (1) −t (2), the distance between the coordinate points t (2) −t (3) and the first threshold Dex are respectively compared, and the coordinate point t (0) −t ( It is determined that the distance between 1) and the distance between coordinate points t (1) -t (2) are less than the first threshold Dex (step 105: No).

第2の比較判定手段29は、垂線長演算手段26によって演算された距離d(1)と、第3の閾値deとを比較し、d(1)>deと判定したとする(ステップ107:イエス)。すると、描画制御手段30は、座標点t(0)と座標点t(2)との間を直線で描画するとともに、表示手段24に対して、その描画した直線を表示させる(ステップ109)。さらに、描画制御手段30は、記憶手段22の空き容量確保のため、記憶手段22に記憶された座標点t(0)からt(1)までの座標データを消去するとともに、それらに対応するデータ配列tt(2) ,tt(3) も消去する(ステップ110)。   The second comparison / determination means 29 compares the distance d (1) calculated by the perpendicular length calculation means 26 with the third threshold de, and determines that d (1)> de (step 107: Jesus). Then, the drawing control means 30 draws a straight line between the coordinate point t (0) and the coordinate point t (2) and causes the display means 24 to display the drawn straight line (step 109). Further, the drawing control means 30 deletes the coordinate data from the coordinate points t (0) to t (1) stored in the storage means 22 to secure the free space in the storage means 22, and the data corresponding thereto. The arrays tt (2) and tt (3) are also deleted (step 110).

さらに、描画制御手段30は、時系列的に次の座標点t(4)が存在すると判定し(ステップ111)、座標点t(2)を新たな基準座標点t(0)として座標点t(2)以降の座標点を座標点t(0),t(1),t(2)とナンバリングして振り直し(ステップ112)、ステップ104に戻る。このときの描画処理の状況を図12に示す。   Further, the drawing control means 30 determines that the next coordinate point t (4) exists in time series (step 111), and uses the coordinate point t (2) as a new reference coordinate point t (0). (2) The subsequent coordinate points are numbered with the coordinate points t (0), t (1), and t (2) and re-assigned (step 112), and the process returns to step 104. The state of the drawing process at this time is shown in FIG.

初期値設定手段25はk を初期値「2」とし、垂線長演算手段26は、k = 2 として、座標点t(0)及びt(2)で結ばれる直線c(0)と、座標点t(1)との距離d(0)を演算する(ステップ104)。続いて、座標点間距離判定手段27は、座標点t(0)から座標点t(2)までの各座標点間距離、すなわち、座標点t(0)−t(1)間の距離、座標点t(1)−t(2)間の距離と、第1の閾値Dex とを比較し、いずれの座標点間距離とも第1の閾値Dex 以上であると判定する(ステップ105:イエス)。それに続き、第1の比較判定手段28は、垂線長演算手段26によって演算された距離d(0)と第2の閾値dcとを比較し、d(0)>dcと判定したとする(ステップ106:イエス)。   The initial value setting means 25 sets k to an initial value “2”, and the perpendicular length calculation means 26 sets k = 2, the straight line c (0) connected by the coordinate points t (0) and t (2), and the coordinate point A distance d (0) from t (1) is calculated (step 104). Subsequently, the inter-coordinate point distance determination unit 27 determines the inter-coordinate point distance from the co-ordinate point t (0) to the co-ordinate point t (2), that is, the distance between the co-ordinate points t (0) -t (1), The distance between the coordinate points t (1) -t (2) is compared with the first threshold value Dex, and it is determined that both the coordinate point distances are equal to or greater than the first threshold value Dex (step 105: YES). . Subsequently, the first comparison / determination means 28 compares the distance d (0) calculated by the perpendicular length calculation means 26 with the second threshold dc and determines that d (0)> dc (step). 106: Yes).

描画制御手段30は、第1の比較判定手段28の判定を受け、座標点t(0)と座標点t(1)との間を直線で描画するとともに、表示手段24に対して、その描画した直線を表示させる(ステップ109)。さらに、描画制御手段30は、記憶手段22の空き容量確保のため、記憶手段22に記憶された座標点t(0)の座標データを消去するとともに、それらに対応するデータ配列tt(4) も消去する(ステップ110)。   The drawing control unit 30 draws a straight line between the coordinate point t (0) and the coordinate point t (1) in response to the determination of the first comparison determination unit 28 and draws the drawing on the display unit 24. The straight line thus displayed is displayed (step 109). Further, the drawing control means 30 deletes the coordinate data of the coordinate point t (0) stored in the storage means 22 in order to secure the free space in the storage means 22, and also the data array tt (4) corresponding to them. Erase (step 110).

さらに、描画制御手段30は、時系列的に次の座標点t(3)が存在しないことを判定し(ステップ111:ノー)、座標点t(2)が、ペン・アップされたことによる最後の座標点であると認識すると、図13に示すように、座標点t(1)とt(2)との間を直線で描画し、表示手段24にその直線を表示させ(ステップ113)、記憶手段22に記憶された座標点t(0),t(1),t(2)の座標データを消去するとともに、それらに対応するデータ配列tt(4) ,tt(5) ,tt(6) も消去する(ステップ114)。このようにして最終的には、座標点tt(0) ,tt(2) ,tt(4) ,tt(5) ,tt(6) が選択されてこの順に直線を描画した画像が得られた(参照図9、図13)。   Further, the drawing control means 30 determines that the next coordinate point t (3) does not exist in time series (step 111: No), and the last point due to the coordinate point t (2) being pen-up. When the coordinate point is recognized, as shown in FIG. 13, a straight line is drawn between the coordinate points t (1) and t (2) and the straight line is displayed on the display means 24 (step 113). The coordinate data of the coordinate points t (0), t (1), t (2) stored in the storage means 22 is deleted, and the corresponding data arrays tt (4), tt (5), tt (6 ) Is also deleted (step 114). Finally, coordinate points tt (0), tt (2), tt (4), tt (5), and tt (6) were selected, and an image with straight lines drawn in this order was obtained. (See FIGS. 9 and 13).

[ 本描画処理による作用効果 ]
本端末装置3による描画処理によれば、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であるか否かによって、座標点t(k-1)から座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)と比較する閾値が異なる。すなわち、座標点間距離判定手段27によって、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であると判定された場合には、垂線長演算手段25によって演算された距離d(k-2)と第2の閾値dcとが第1の比較判定手段28によって比較され、第1の閾値Dex 未満のものが存在する場合には、距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとが第2の比較判定手段29によって比較される。そのうえで、距離d(k-2)が、第2の閾値dc又は第3の閾値de以上である場合には、描画制御手段30は、座標点t(0)と座標点t(k)とを直線で結ぶには座標点t(k-1)と離れすぎていて許容できないため、描画制御手段は、座標点t(k)よりも時系列的に一つ前の座標点t(k-1)と座標点t(0)との間を直線で描画する。さらに、描画制御手段30は、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0),t(1),t(2),t(3),…,t(k),…と振り直して、垂線長演算手段26に処理を行わせるため、同様の描画処理が連続的に繰り返される。
[Effects of this drawing process]
According to the drawing process by the terminal device 3, the coordinate point is determined depending on whether or not all the distances between the coordinate points from the coordinate point t (0) to the coordinate point t (k) are equal to or greater than the first threshold Dex. The threshold value to be compared with the distance d (k-2) from t (k-1) to the straight line c (k-2) connected by the coordinate points t (0) and t (k) is different. That is, when it is determined by the coordinate point distance determination means 27 that all the coordinate point distances from the coordinate point t (0) to the coordinate point t (k) are equal to or greater than the first threshold Dex. When the distance d (k−2) calculated by the perpendicular length calculation means 25 and the second threshold value dc are compared by the first comparison / determination means 28, and there is a value less than the first threshold value Dex. The second comparison / determination means 29 compares the distance d (k−2) with the third threshold de that is shorter than the second threshold dc. In addition, when the distance d (k−2) is equal to or greater than the second threshold value dc or the third threshold value de, the drawing control unit 30 calculates the coordinate point t (0) and the coordinate point t (k). Since it is too far from the coordinate point t (k-1) to be connected by a straight line, the drawing control means does not accept the coordinate point t (k-1) in time series before the coordinate point t (k). ) And a coordinate point t (0). Furthermore, the drawing control means 30 uses the coordinate point t (k-1) as the reference coordinate point t (0), and coordinates points after the coordinate point t (k-1) as coordinate points t (0), t (1), .., t (k),... are re-assigned to cause the perpendicular length calculation means 26 to perform processing, so that the same drawing processing is continuously repeated.

このように座標点間の距離によって、大きさの異なる第2の閾値dcと第3の閾値deと、座標点t(k-1)から座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)と比較して、直線を描画するか否かを判定しているため、従来のように固定的な閾値と比較する場合よりも、精度よく筆跡を再現することができる。   As described above, the second threshold value dc and the third threshold value de having different sizes are connected from the coordinate point t (k−1) to the coordinate points t (0) and t (k) according to the distance between the coordinate points. Compared with the distance d (k-2) to the straight line c (k-2), it is determined whether or not to draw a straight line. The handwriting can be accurately reproduced.

また、ステップ109に示すように、描画制御手段30は、座標点t(0)と座標点t(k-1)との間を直線で描画するとともに、表示手段24に対して、その描画した直線を表示させるため、直線で描画することが適当であると判断される都度、表示手段24に表示されることとなり、筆跡に応じた経時的な順序に従って迅速に行わせることができる。よって、電子ペン1を用いた筆記と端末装置3による描画処理がほぼ同時に行わせれば、表示手段24による表示も、電子ペン1による筆記とほぼリアルタイムに行わせることができる。   Further, as shown in step 109, the drawing control unit 30 draws a straight line between the coordinate point t (0) and the coordinate point t (k-1) and draws it on the display unit 24. Since a straight line is displayed, it is displayed on the display means 24 each time it is determined that drawing with a straight line is appropriate, and the drawing can be performed promptly according to the order over time according to the handwriting. Therefore, if the writing using the electronic pen 1 and the drawing process by the terminal device 3 are performed almost simultaneously, the display by the display means 24 can be performed in almost real time as the writing by the electronic pen 1.

また、ステップ110に示すように、描画制御手段30は、記憶手段22に記憶された、不要となった座標点t(0)からt(k-2)までの座標データを消去するとともに、それらに対応するデータ配列tt(m) も消去するため、記憶手段22の空き容量が確保され、処理の負担を軽減することができる。   Further, as shown in step 110, the drawing control means 30 deletes the coordinate data from the coordinate points t (0) to t (k-2) that are no longer needed, stored in the storage means 22, and Since the data array tt (m) corresponding to is also deleted, the free space of the storage means 22 is secured, and the processing load can be reduced.

なお、本発明は、上記実施形態に限られない。   The present invention is not limited to the above embodiment.

ユーザが専用紙2に対して同じ位置に電子ペン1のペン先部6をしばらく位置付けておいた場合には、端末装置3は、同じ座標点の位置座標データを連続して複数受信することとなる。そのような場合には、描画処理の負担を軽減するため、処理部23に、連続する同じ座標点の位置座標データを一つの座標データに集約して、描画処理を行わせるとよい。   When the user has positioned the pen tip 6 of the electronic pen 1 at the same position with respect to the dedicated paper 2 for a while, the terminal device 3 continuously receives a plurality of position coordinate data of the same coordinate point. Become. In such a case, in order to reduce the burden of the drawing process, it is preferable that the processing unit 23 collects the position coordinate data of the same continuous coordinate point into one coordinate data and performs the drawing process.

また、上記実施形態では、電子ペン1内に記憶され、端末装置3へ送信させる情報として電子ペン識別IDを採用したが、そのほか、電子ペン1のバッテリーレベル、ペン製造者番号、ペンソフトウェアのバージョン、サブスクリプションプロバイダのID、空きメモリ容量などを記憶させ、端末装置3へ送信させるようにしてもよい。あるいは、ペン所有者情報として、国籍、言語、タイムゾーン、emailアドレス、名称、住所、ファックス/電話番号、携帯電話番号などを電子ペン1内に記憶させ、端末装置3へ送信させるようにしてもよい。   In the above embodiment, the electronic pen identification ID is adopted as the information stored in the electronic pen 1 and transmitted to the terminal device 3, but in addition, the battery level of the electronic pen 1, the pen manufacturer number, the version of the pen software The ID of the subscription provider, the free memory capacity, etc. may be stored and transmitted to the terminal device 3. Alternatively, nationality, language, time zone, email address, name, address, fax / phone number, mobile phone number, etc. may be stored in the electronic pen 1 and transmitted to the terminal device 3 as pen owner information. Good.

また、上記実施形態では、ドットは赤外線を吸収するカーボンを含むインクとし、電子ペン1のLED13を、赤外線を照射するLEDとし、カメラ14によって赤外線の反射量の差によって、電子ペン1でドットパターンを読み取っていたが、これに限らない。例えば、ドットは所定波長の光によって所定波長を発光するインクとし、電子ペン1のLED13を、ドットのインクを発光させる光を照射するものとし、カメラ14によってドットのインクが発光する波長の領域を検知することによって、電子ペン1でドットパターンを読み取るようにしてもよく、カメラ14によってドットパターンが読み取れれば、ドットのインクの種別やLED13の照射光等は上記実施形態で示したものに限られない。また、専用紙2における位置座標が特定できるものであれば、ドットパターンの代わりに、別のコード化されたパターン、例えば、2次元コードパターンなどであってもよい。   Further, in the above embodiment, the dots are ink containing carbon that absorbs infrared rays, the LEDs 13 of the electronic pen 1 are LEDs that irradiate infrared rays, and the dot pattern of the electronic pen 1 is determined by the difference in the amount of reflected infrared rays by the camera 14. However, it is not limited to this. For example, the dot is ink that emits light of a predetermined wavelength by light of a predetermined wavelength, the LED 13 of the electronic pen 1 is irradiated with light that emits the ink of the dot, and the region of the wavelength that the ink of the dot emits light by the camera 14 is set. By detecting the dot pattern, the electronic pen 1 may read the dot pattern. If the dot pattern can be read by the camera 14, the ink type of the dot and the irradiation light of the LED 13 are limited to those shown in the above embodiment. I can't. Further, as long as the position coordinates on the dedicated paper 2 can be specified, another coded pattern such as a two-dimensional code pattern may be used instead of the dot pattern.

本実施形態における筆跡再現描画システムの構成を示す図である。It is a figure which shows the structure of the handwriting reproduction drawing system in this embodiment. 専用紙に印刷されたドットパターンのドットが変換される値を説明する図である。It is a figure explaining the value by which the dot of the dot pattern printed on the exclusive paper is converted. (a)は、ドットパターンの模式図であり、(b)は、それに対応する変換値の分布を示す図である。(A) is a schematic diagram of a dot pattern, and (b) is a diagram showing a distribution of conversion values corresponding thereto. 電子ペンの構成を示すブロック図である。It is a block diagram which shows the structure of an electronic pen. 端末装置の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of a terminal device. 本描画処理を説明するための概念図である。It is a conceptual diagram for demonstrating this drawing process. 描画処理アプリケーションのモジュール構成図である。It is a module block diagram of a drawing process application. 本描画処理のフローチャートである。It is a flowchart of this drawing process. 本描画処理による描画例における座標点の初期状態を示す図である。It is a figure which shows the initial state of the coordinate point in the example of a drawing by this drawing process. 本描画処理による描画例の処理過程(その1)を示す図である。It is a figure which shows the process (the 1) of the example of a drawing by this drawing process. 本描画処理による描画例の処理過程(その2)を示す図である。It is a figure which shows the process (the 2) of the example of a drawing by this drawing process. 本描画処理による描画例の処理過程(その3)を示す図である。It is a figure which shows the process (the 3) of the example of a drawing by this drawing process. 本描画処理による描画例の描画結果を示す図であるIt is a figure which shows the drawing result of the example of a drawing by this drawing process 従来の描画処理による描画例における座標点の初期状態を示す図である。It is a figure which shows the initial state of the coordinate point in the example of a drawing by the conventional drawing process. 従来の描画処理による描画例の処理過程(その1)を示す図である。It is a figure which shows the process (the 1) of the example of a drawing by the conventional drawing process. 従来の描画処理による描画例の処理過程(その2)を示す図である。It is a figure which shows the process (the 2) of the example of a drawing by the conventional drawing process. 従来の描画処理による描画例の描画結果を示す図であるIt is a figure which shows the drawing result of the example of a drawing by the conventional drawing process.

符号の説明Explanation of symbols

1…電子ペン、2…専用紙、3…端末装置、4…筆跡再現描画システム、21…データ通信手段、22…記憶手段、23…処理部、24…表示手段、25…初期値設定手段、26…垂線長演算手段、27…座標点間距離判定手段、28…第1の比較判定手段、29…第2の比較判定手段、30…描画制御手段、40…描画処理アプリケーション、41…データ通信モジュール、42…情報記憶モジュール、43…処理モジュール、44…初期値設定モジュール、45…垂線長演算モジュール、46…座標点間距離判定モジュール、47…第1の比較判定モジュール、48…第2の比較判定モジュール、49…描画制御モジュール。   DESCRIPTION OF SYMBOLS 1 ... Electronic pen, 2 ... Exclusive paper, 3 ... Terminal device, 4 ... Handwriting reproduction drawing system, 21 ... Data communication means, 22 ... Memory | storage means, 23 ... Processing part, 24 ... Display means, 25 ... Initial value setting means, 26 ... perpendicular length calculation means, 27 ... distance determination means between coordinate points, 28 ... first comparison judgment means, 29 ... second comparison judgment means, 30 ... drawing control means, 40 ... drawing processing application, 41 ... data communication Module, 42 ... Information storage module, 43 ... Processing module, 44 ... Initial value setting module, 45 ... Perpendicular length calculation module, 46 ... Distance determination module between coordinate points, 47 ... First comparison determination module, 48 ... Second Comparison determination module 49... Drawing control module.

Claims (6)

筆跡に応じた経時的な順序を有する複数の座標点t(0),t(1),t(2),t(3),…,t(k),…から一部の座標点を選択して、筆跡を複数の直線で再現するための筆跡再現描画方法であって、
座標点t(0)を基準点とし、座標点t(k-1)から、座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)を演算する第1ステップと、
座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であるか否かを判定する第2ステップと、
第2ステップにおいて座標点t(0)から座標点t(k)までの各座標点間距離のすべてが第1の閾値Dex 以上である場合には、第1ステップで演算された距離d(k-2)と第2の閾値dcとを比較し、第2ステップにおいて座標点t(0)から座標点t(k)までの各座標点間距離の中に第1の閾値Dex 未満のものが存在する場合には、第1ステップで演算された距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとを比較する第3ステップと、
第3ステップにおいて距離d(k-2)と第2の閾値dc又は第3の閾値deとを比較した結果、距離d(k-2)が第2の閾値dc又は第3の閾値de以上の場合には、座標点t(0)と座標点t(k-1)との間を直線で描画するとともに、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0),t(1),t(2),t(3),…,t(k),…と振り直して、第1ステップ降の各ステップに移行する一方、距離d(k-2)が第2の閾値dc又は第3の閾値de未満の場合には、k をインクリメントして、第1ステップ以降の各ステップに移行する第4ステップと
を含むことを特徴とする筆跡再現描画方法。
Select some coordinate points from multiple coordinate points t (0), t (1), t (2), t (3), ..., t (k), ... that have a time-dependent order according to the handwriting Then, a handwriting reproduction drawing method for reproducing handwriting with a plurality of straight lines,
The distance d (k-2) from the coordinate point t (0) to the straight line c (k-2) connected by the coordinate points t (0) and t (k) with the coordinate point t (0) as the reference point ) To calculate),
A second step for determining whether or not all the distances between the coordinate points from the coordinate point t (0) to the coordinate point t (k) are equal to or greater than a first threshold Dex;
In the second step, when all the distances between the coordinate points t (0) to the coordinate point t (k) are greater than or equal to the first threshold Dex, the distance d (k calculated in the first step -2) and the second threshold value dc, and in the second step, the distance between coordinate points t (0) to coordinate point t (k) is less than the first threshold Dex. If present, a third step of comparing the distance d (k−2) calculated in the first step with a third threshold de that is shorter than the second threshold dc;
As a result of comparing the distance d (k-2) with the second threshold dc or the third threshold de in the third step, the distance d (k-2) is greater than or equal to the second threshold dc or the third threshold de. In this case, a straight line is drawn between the coordinate point t (0) and the coordinate point t (k-1), and the coordinate point t (k-1) is used as the reference coordinate point t (0). k-1) and subsequent coordinate points are re-assigned as coordinate points t (0), t (1), t (2), t (3),..., t (k),. On the other hand, if the distance d (k−2) is less than the second threshold dc or the third threshold de, the fourth step increments k and proceeds to each step after the first step. A handwriting reproduction drawing method characterized by including.
k の初期値を2として第1〜第4ステップを行うことを特徴とする請求項1に記載の筆跡再現描画方法。   The handwriting reproduction drawing method according to claim 1, wherein the first to fourth steps are performed with an initial value of k being 2. 筆跡に応じた経時的な順序を有する複数の座標点t(0),t(1),t(2),t(3),…,t(k),…から一部の座標点を選択して、筆跡を複数の直線で再現する筆跡再現描画装置であって、
座標点t(0)を基準点とし、座標点t(k-1)から、座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)を演算する垂線長演算手段と、
座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であるか否かを判定する座標点間距離判定手段と、
前記座標点間距離判定手段によって、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが第1の閾値Dex 以上であると判定された場合には、前記垂線長演算手段によって演算された距離d(k-2)と第2の閾値dcとを比較する第1の比較判定手段と、
前記座標点間距離判定手段によって、座標点t(0)から座標点t(k)までの各座標点間距離の中に第1の閾値Dex 未満のものが存在すると判定された場合には、前記垂線長演算手段によって演算された距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとを比較する第2の比較判定手段と、
前記第1又は第2の比較判定手段によって、距離d(k-2)と第2の閾値dc又は第3の閾値deとが比較された結果、距離d(k-2)が第2の閾値dc又は第3の閾値de以上であると判定された場合には、座標点t(0)と座標点t(k-1)との間を直線で描画するとともに、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0),t(1),t(2),t(3),…,t(k),…と振り直して前記垂線長演算手段に処理を行わせ、その一方、前記第1又は第2の比較判定手段によって、距離d(k-2)が第2の閾値dc又は第3の閾値de未満であると判定された場合には、k をインクリメントして、前記垂線長演算手段に処理を行わせる描画制御手段と
を備えることを特徴とする筆跡再現描画装置。
Select some coordinate points from multiple coordinate points t (0), t (1), t (2), t (3), ..., t (k), ... that have a time-dependent order according to the handwriting A handwriting reproduction drawing device that reproduces handwriting with a plurality of straight lines,
The distance d (k-2) from the coordinate point t (0) to the straight line c (k-2) connected by the coordinate points t (0) and t (k) with the coordinate point t (0) as the reference point ) For calculating the perpendicular length,
A coordinate point distance determination means for determining whether or not all the coordinate point distances from the coordinate point t (0) to the coordinate point t (k) are equal to or greater than a first threshold Dex;
If the distance between coordinate points is determined by the coordinate point distance determination means to be equal to or greater than the first threshold Dex from the coordinate point t (0) to the coordinate point t (k), the perpendicular line First comparison determination means for comparing the distance d (k−2) calculated by the length calculation means with the second threshold dc;
When it is determined by the coordinate point distance determination means that there is a distance between the coordinate points t (0) to the coordinate point t (k) that is less than the first threshold Dex, A second comparison / determination unit that compares the distance d (k−2) calculated by the perpendicular length calculation unit with a third threshold de that is shorter than the second threshold dc;
As a result of comparing the distance d (k−2) with the second threshold value dc or the third threshold value de by the first or second comparison / determination means, the distance d (k−2) becomes the second threshold value. If it is determined that dc or greater than the third threshold de, the coordinate point t (0) and the coordinate point t (k-1) are drawn with a straight line, and the coordinate point t (k-1 ) As a reference coordinate point t (0), coordinate points after coordinate point t (k-1) are coordinate points t (0), t (1), t (2), t (3), ..., t (k ),..., And causes the perpendicular length calculation means to perform processing, while the distance d (k−2) is set to a second threshold value dc or a third value by the first or second comparison / determination means. A handwriting reproduction drawing apparatus, comprising: a drawing control means for incrementing k and causing the perpendicular length calculation means to perform processing when it is determined that the value is less than the threshold de.
k の初期値を2とする初期値設定手段をさらに備えることを特徴とする請求項3に記載の筆跡再現描画装置。   The handwriting reproduction drawing apparatus according to claim 3, further comprising initial value setting means for setting an initial value of k to 2. 描画を表示する表示手段をさらに備え、
前記描画制御手段は、座標点t(0)と座標点t(k-1)との間を直線で描画する都度、前記表示手段に描画させることを特徴とする請求項3又は4に記載の筆跡再現描画装置。
A display means for displaying the drawing;
The said drawing control means makes the said display means draw whenever it draws between the coordinate point t (0) and the coordinate point t (k-1) with a straight line, The Claim 3 or 4 characterized by the above-mentioned. Handwriting reproduction drawing device.
筆跡に応じた経時的な順序を有する複数の座標点t(0),t(1),t(2),t(3),…,t(k),…から一部の座標点を選択して、筆跡を複数の直線で再現する筆跡再現描画装置により実行されるプログラムであって、
座標点t(0)を基準点とし、座標点t(k-1)から、座標点t(0)及びt(k)で結ばれる直線c(k-2)までの距離d(k-2)を演算する垂線長演算手段、
座標点t(0)から座標点t(k)までの各座標点間距離のすべてが、第1の閾値Dex 以上であるか否かを判定する座標点間距離判定手段、
前記座標点間距離判定手段によって、座標点t(0)から座標点t(k)までの各座標点間距離のすべてが第1の閾値Dex 以上であると判定された場合には、前記垂線長演算手段によって演算された距離d(k-2)と第2の閾値dcとを比較する第1の比較判定手段、
前記座標点間距離判定手段によって、座標点t(0)から座標点t(k)までの各座標点間距離の中に第1の閾値Dex 未満のものが存在すると判定された場合には、前記垂線長演算手段によって演算された距離d(k-2)と第2の閾値dcよりも短い第3の閾値deとを比較する第2の比較判定手段、
前記第1又は第2の比較判定手段によって、距離d(k-2)と第2の閾値dc又は第3の閾値deとが比較された結果、距離d(k-2)が第2の閾値dc又は第3の閾値de以上であると判定された場合には、座標点t(0)と座標点t(k-1)との間を直線で描画するとともに、座標点t(k-1)を基準座標点t(0)として座標点t(k-1)以降の座標点を座標点t(0),t(1),t(2),t(3),…,t(k),…と振り直して前記垂線長演算手段に処理を行わせ、その一方、前記第1又は第2の比較判定手段によって、距離d(k-2)が第2の閾値dc又は第3の閾値de未満であると判定された場合には、k をインクリメントして、前記垂線長演算手段に処理を行わせる描画制御手段
を備える筆跡再現描画装置としてコンピュータを機能させることを特徴とするプログラム。
Select some coordinate points from multiple coordinate points t (0), t (1), t (2), t (3), ..., t (k), ... that have a time-dependent order according to the handwriting And a program executed by a handwriting reproduction drawing device that reproduces handwriting with a plurality of straight lines,
The distance d (k-2) from the coordinate point t (0) to the straight line c (k-2) connected by the coordinate points t (0) and t (k) with the coordinate point t (0) as the reference point ) For calculating the perpendicular length,
A coordinate point distance determination means for determining whether or not all the coordinate point distances from the coordinate point t (0) to the coordinate point t (k) are equal to or greater than a first threshold Dex;
If the distance between coordinate points is determined by the coordinate point distance determination means to be equal to or greater than the first threshold Dex from the coordinate point t (0) to the coordinate point t (k), the perpendicular line First comparison determination means for comparing the distance d (k−2) calculated by the length calculation means with the second threshold value dc;
When it is determined by the coordinate point distance determination means that there is a distance between the coordinate points t (0) to the coordinate point t (k) that is less than the first threshold Dex, A second comparison / determination unit that compares the distance d (k−2) calculated by the perpendicular length calculation unit with a third threshold de that is shorter than the second threshold dc;
As a result of comparing the distance d (k−2) with the second threshold value dc or the third threshold value de by the first or second comparison / determination means, the distance d (k−2) becomes the second threshold value. If it is determined that dc or greater than the third threshold de, the coordinate point t (0) and the coordinate point t (k-1) are drawn with a straight line, and the coordinate point t (k-1 ) As a reference coordinate point t (0), coordinate points after coordinate point t (k-1) are coordinate points t (0), t (1), t (2), t (3), ..., t (k ),..., And causes the perpendicular length calculation means to perform processing, while the distance d (k−2) is set to a second threshold value dc or a third value by the first or second comparison / determination means. A program that causes a computer to function as a handwriting reproduction drawing apparatus including a drawing control unit that increments k and causes the perpendicular length calculation unit to perform processing when it is determined that the value is less than a threshold de.
JP2007132452A 2007-05-18 2007-05-18 Handwriting reproduction drawing method, handwriting reproduction drawing apparatus, and program used therefor Expired - Fee Related JP4807321B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007132452A JP4807321B2 (en) 2007-05-18 2007-05-18 Handwriting reproduction drawing method, handwriting reproduction drawing apparatus, and program used therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007132452A JP4807321B2 (en) 2007-05-18 2007-05-18 Handwriting reproduction drawing method, handwriting reproduction drawing apparatus, and program used therefor

Publications (2)

Publication Number Publication Date
JP2008287540A true JP2008287540A (en) 2008-11-27
JP4807321B2 JP4807321B2 (en) 2011-11-02

Family

ID=40147195

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007132452A Expired - Fee Related JP4807321B2 (en) 2007-05-18 2007-05-18 Handwriting reproduction drawing method, handwriting reproduction drawing apparatus, and program used therefor

Country Status (1)

Country Link
JP (1) JP4807321B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01269185A (en) * 1988-04-20 1989-10-26 Fujitsu Ltd Straight line component extracting system
JPH0869525A (en) * 1994-08-31 1996-03-12 Fujitsu Ltd Method and device for converting vector data
JP2004272813A (en) * 2003-03-11 2004-09-30 Ricoh Co Ltd Handwritten character drawing device, and program for executing handwritten character drawing method on computer
JP2006288532A (en) * 2005-04-07 2006-10-26 Nintendo Co Ltd Game program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01269185A (en) * 1988-04-20 1989-10-26 Fujitsu Ltd Straight line component extracting system
JPH0869525A (en) * 1994-08-31 1996-03-12 Fujitsu Ltd Method and device for converting vector data
JP2004272813A (en) * 2003-03-11 2004-09-30 Ricoh Co Ltd Handwritten character drawing device, and program for executing handwritten character drawing method on computer
JP2006288532A (en) * 2005-04-07 2006-10-26 Nintendo Co Ltd Game program

Also Published As

Publication number Publication date
JP4807321B2 (en) 2011-11-02

Similar Documents

Publication Publication Date Title
JP5391860B2 (en) Stroke display device and program
JP5256700B2 (en) Terminal device and program thereof
JP4583232B2 (en) Terminal device and program
JP4807321B2 (en) Handwriting reproduction drawing method, handwriting reproduction drawing apparatus, and program used therefor
JP4919089B2 (en) Electronic pen and program
JP5305256B2 (en) Terminal device and program thereof
JP2009187235A (en) Electronic pen and program used for the same
JP4973384B2 (en) Terminal device, program used therefor and information processing system
JP4962338B2 (en) Electronic pen and program
JP4835529B2 (en) Terminal device and program used therefor
JP5109701B2 (en) Terminal device, program used therefor and information processing system
JP2009146273A (en) Terminal device and program thereof
JP2007102403A (en) Erasure processor, program, and business form for electronic pen
JP5239283B2 (en) Terminal device and program used therefor
JP4957296B2 (en) Terminal device, processing system, and program
JP4849043B2 (en) Electronic pen and scanner and program used for them
JP5041340B2 (en) Terminal device and program thereof
JP5098680B2 (en) Terminal device, program used therefor and information processing system
JP6442995B2 (en) Information processing apparatus, information processing system, and program
JP4935552B2 (en) Electronic pen, scanner and program used for them
JP4911056B2 (en) Terminal device, program used therefor and information processing system
JP2009163554A (en) Terminal device, program for use with the same, and information processing system
JP2009163553A (en) Electronic pen and program
JP2009187236A (en) Terminal device, program and information processing system used for the same
JP2009187194A (en) Terminal device, program and information processing system used for the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100113

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110719

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110720

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110801

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140826

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4807321

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees