JP4236962B2 - Handwritten character drawing apparatus, handwritten character drawing method, and program for causing a computer to execute the handwritten character drawing method - Google Patents
Handwritten character drawing apparatus, handwritten character drawing method, and program for causing a computer to execute the handwritten character drawing method Download PDFInfo
- Publication number
- JP4236962B2 JP4236962B2 JP2003065637A JP2003065637A JP4236962B2 JP 4236962 B2 JP4236962 B2 JP 4236962B2 JP 2003065637 A JP2003065637 A JP 2003065637A JP 2003065637 A JP2003065637 A JP 2003065637A JP 4236962 B2 JP4236962 B2 JP 4236962B2
- Authority
- JP
- Japan
- Prior art keywords
- point
- line segment
- angle
- coordinate
- inter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Character Input (AREA)
- Character Discrimination (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、手書き文字描画装置、手書き文字描画方法、および手書き文字描画方法をコンピュータに実行させるためのプログラムに関し、特に座標の指定時に発生するノイズを除去する手書き文字描画装置、手書き文字描画方法、および手書き文字描画方法をコンピュータに実行させるためのプログラムに関する。
【0002】
【従来の技術】
現在、所定の範囲を有するパネル上において、オペレータが触れた(タッチした)点を検出し、検出された点を通る線分を表示する構成がある。このような構成は、電子ボードやタブレットと呼ばれ、黒板やホワイトボードと同様に文字や図形をオペレータが筆記したとおり表示することが可能である。本明細書では、オペレータが筆記した文字や図形を表示する構成を、以降、総称して手書き文字描画装置と記すものとする。なお、手書き文字認識装置には、手書きされた文字をそのまま表示するもの、あるいは手書きされた文字を認識してフォント化して表示するものがある。
【0003】
手書き文字描画装置は、近年、大型のディスプレイ装置と組み合わせれ、タッチパネル付きディスプレイ装置としてプレゼンテーションなどに使用されている。手書き文字描画装置を使ったタッチパネル付きディスプレイ装置の従来例としては、ディスプレイ画面上に筆記時の圧力を感知する膜(抵抗膜)を設け、膜によって感知された圧力によって筆記の軌跡を検出するものである(例えば、特許文献1)。
【0004】
また、手書き文字描画装置を使ったタッチパネル付きディスプレイ装置の他の例として、光源を設けてディスプレイ画面の全域に光を照射し、ディスプレイ画面の周囲に設けられた反射部材によって反射される反射光を受光する光学式のものもある。この手書き文字描画装置は、オペレータが指やペン(指示部材と記す)でディスプレイ画面にタッチしたことをタッチされた点を通る反射光が遮られることによってタッチされた点(タッチ点)を検出している(例えば特許文献2)。
【0005】
光学式の手書き文字描画装置は、抵抗膜を使った構成よりも構成が簡易でありながら充分な精度を得られるという利点を持っている。ただし、指示部材がディスプレイ画面に接触していないもののごく近い位置にあるときにも光が遮られ、オペレータが意図しない軌跡が表示される可能性がある。意図しない軌跡は、手書き文字描画におけるノイズであり、描画された文字の視認性を低下させ、誤読を招くという不具合を生じる。ノイズを除去するため、連続して描画された線分同士のなす角度を検出し、この角度に応じて軌跡がノイズであるか否かを判断する構成もある(例えば特許文献3)。
【0006】
【特許文献1】
特開平5−241717号公報(段落[0014]〜[0017])
【特許文献2】
特開2000−105671号公報(段落[0063]〜[0078])
【特許文献3】
特開平5−298490号公報(段落[0014]〜[0021])
【0007】
【発明が解決しようとする課題】
しかしながら、上記した従来技術のノイズ判定は、局所的に角度が急峻に変換する部分をノイズとして除去するため、文字の一部をも除去してしまう。特に日本語の漢字に見られる「はね」は、従来技術においてノイズと認識され、除去される可能性が高い。文字の一部がノイズと誤判定されて除去された場合、オペレータが意図した形状の文字が描画されないばかりでなく、手書き文字を文字認識装置にかけてフォント化する場合の認識精度もが低下する。
【0008】
本発明は、上記した点に鑑みてなされたものであり、手書き文字描画装置におけるノイズを正確に判断し、オペレータが描画した文字に関する情報を正確に認識し、描画できる手書き文字描画装置、手書き文字描画方法、および手書き文字描画方法をコンピュータに実行させるためのプログラムを得ることを目的とする。
【0009】
【課題を解決するための手段】
上記目的を達成するため、請求項1にかかる手書き文字描画装置は、ディスプレイ画面上にタッチしてから離れるまでの指示部材の位置を示す点の座標を所定の時間間隔でサンプリングして座標データとして蓄積し、該座標データをストロークデータとして記憶し、前記座標データが入力され、前記座標データが示す座標を通る線分を描画する線分描画手段を有する手書き文字描画装置であって、前記線分描画手段によって記憶されたストロークデータを構成する連続して入力された3点の前記座標データのうち、第1に入力された第1の点と前記第1の点の次に入力された第2の点との座標間距離を示す第1の座標間距離と、前記第2の点と前記第2の点の次に入力された第3の点との座標間距離を示す第2の座標間距離と、をそれぞれ算出する座標間距離算出手段と、前記第1の点と前記第2の点とを結ぶ線分の傾きを示す第1の角度と、前記第2の点と前記第3の点とを結ぶ線分の傾きを示す第2の角度と、をそれぞれ算出し、算出された第1の角度と第2の角度とに対して予め定められた基準の角度範囲に対応する値をそれぞれ求める線分角度算出手段と、前記第1の座標間距離を、前記第2の座標間距離で除算した座標間距離比が所定のしきい値より大きく、かつ、前記第1の角度と前記第2の角度とにそれぞれ対応する前記値の差分を示す変化量が所定のしきい値より大きい場合に、前記ストロークデータを構成する連続して入力された3点の前記座標データのうち、前記第2の点と前記第3の点を示す座標データを、前記ストロークデータから除去することによって、線分を消去する除去手段と、を備え、前記線分描画手段は、前記除去手段によって前記第1の点と前記第2の点を結ぶ線分が消去された後に、新規にストロークデータを生成し、生成された新規のストロークデータに対して、除去された座標データが示す前記第2の点を始点として前記第2の点と前記第3の点とを結ぶ線分を追加することを特徴とする。
【0010】
この請求項1に記載の発明によれば、座標データが示す座標を通って描画された線分において、座標データが示す座標間の距離である座標間距離を算出するとともに、座標データが示す座標間に描画された各線分の角度である線分角度を算出することができる。このため、座標間距離のみならず、線分角度に基づいて線分の描画を禁止することができる。
また、この請求項1に記載の発明によれば、座標間距離の算出に用いられた座標データまたは線分角度の算出に用いられた座標データを除去して線分の描画を禁止することができる。このため、入力した座標データのうち、座標間距離または線分角度が所定の条件を満たす座標データが除去され、この座標データを通って描画された線分だけを消去することができる。
また、この請求項1に記載の発明によれば、所定の条件を満たす座標データを通って描画された線分だけを消去した後、消去された座標データを始点とする線分を描画することができる。このため、消去された座標データが示す座標と、この座標データの直前に入力した座標データが示す座標との間に描画された線分を消去した上で以降に入力した座標データにしたがう線分を描画することができる。
また、この請求項1に記載の発明によれば、ある線分の傾きと、続いて描画された線分の傾きとの変化量が比較的大きい場合に描画された線分がノイズを含む可能性があると判断することができる。
また、この請求項1に記載の発明によれば、所定の条件を満たす座標データを通って描画された線分だけを消去した後、消去された座標データを始点とする線分を描画することができる。このため、消去された座標データが示す座標と、この座標データの直前に入力した座標データが示す座標との間に描画された線分を消去した上で以降に入力した座標データにしたがう線分を描画することができる。
【0015】
請求項2に記載の発明は、請求項1に記載の手書き文字描画装置であって、前記線分角度算出手段は、前記第1の角度と前記第2の角度とに対して予め定められた基準の角度範囲に対応する値を、前記第1の角度、前記第2の角度を、予め決められた角度範囲に対応する方向コードに近似して算出することを特徴とする。
【0016】
この請求項2に記載の発明によれば、第1の角度、第2の角度の算出にあたって充分な精度を維持しながら処理を簡易化することができる。
【0017】
請求項3に記載の発明は、手書き文字描画装置で実行される手書き文字描画方法であって、前記手書き文字描画装置は、ディスプレイ画面上にタッチしてから離れるまでの指示部材の位置を示す点の座標を所定の時間間隔でサンプリングして座標データとして蓄積し、該座標データをストロークデータとして記憶し、前記座標データが入力され、前記座標データが示す座標を通る線分を描画する線分描画手段を有し、前記線分描画手段によって記憶されたストロークデータを構成する連続して入力された3点の前記座標データのうち、第1に入力された第1の点と前記第1の点の次に入力された第2の点との座標間距離を示す第1の座標間距離と、前記第2の点と前記第2の点の次に入力された第3の点との座標間距離を示す第2の座標間距離と、をそれぞれ算出する座標間距離算出ステップと、前記第1の点と前記第2の点とを結ぶ線分の傾きを示す第1の角度と、前記第2の点と前記第3の点とを結ぶ線分の傾きを示す第2の角度と、をそれぞれ算出し、算出された第1の角度と第2の角度とに対して予め定められた基準の角度範囲に対応する値をそれぞれ求める線分角度算出ステップと、前記第1の座標間距離を、前記第2の座標間距離で除算した座標間距離比が所定のしきい値より大きく、かつ、前記第1の角度と前記第2の角度とにそれぞれ対応する前記値の差分を示す変化量が所定のしきい値より大きい場合に、前記ストロークデータを構成する連続して入力された3点の前記座標データのうち、前記第2の点と前記第3の点を示す座標データを、前記ストロークデータから除去することによって、線分を消去する除去ステップと、を含み、前記線分描画ステップは、前記除去ステップによって前記第1の点と前記第2の点を結ぶ線分が消去された後に、新規にストロークデータを生成し、生成された新規のストロークデータに対して、除去された座標データが示す前記第2の点を始点として前記第2の点と前記第3の点とを結ぶ線分を追加することを特徴とする。
【0018】
この請求項3に記載の発明によれば、座標データが示す座標を通って描画された線分において、座標データが示す座標間の距離である座標間距離を算出するとともに、座標データが示す座標間に描画された各線分の角度である線分角度を算出することができる。このため、座標間距離のみならず、線分角度に基づいて線分の描画を禁止することができる。
【0019】
請求項4に記載のプログラムは、ディスプレイ画面上にタッチしてから離れるまでの指示部材の位置を示す点の座標を所定の時間間隔でサンプリングして座標データとして蓄積し、該座標データをストロークデータとして記憶し、前記座標データが入力され、前記座標データが示す座標を通る線分を描画する線分描画手段を有するコンピュータを、前記線分描画手段によって記憶されたストロークデータを構成する連続して入力された3点の前記座標データのうち、第1に入力された第1の点と前記第1の点の次に入力された第2の点との座標間距離を示す第1の座標間距離と、前記第2の点と前記第2の点の次に入力された第3の点との座標間距離を示す第2の座標間距離と、をそれぞれ算出する座標間距離算出手段と、前記第1の点と前記第2の点とを結ぶ線分の傾きを示す第1の角度と、前記第2の点と前記第3の点とを結ぶ線分の傾きを示す第2の角度と、をそれぞれ算出し、算出された第1の角度と第2の角度とに対して予め定められた基準の角度範囲に対応する値をそれぞれ求める線分角度算出手段と、前記第1の座標間距離を、前記第2の座標間距離で除算した座標間距離比が所定のしきい値より大きく、かつ、前記第1の角度と前記第2の角度とにそれぞれ対応する前記値の差分を示す変化量が所定のしきい値より大きい場合に、前記ストロークデータを構成する連続して入力された3点の前記座標データのうち、前記第2の点と前記第3の点を示す座標データを、前記ストロークデータから除去することによって、線分を消去する除去手段と、して実行させるためのプログラムであって、前記線分描画手段は、前記除去手段によって前記第1の点と前記第2の点を結ぶ線分が消去された後に、新規にストロークデータを生成し、生成された新規のストロークデータに対して、除去された座標データが示す前記第2の点を始点として前記第2の点と前記第3の点とを結ぶ線分を追加することを特徴とする。
【0020】
この請求項4に記載の発明によれば、座標データが示す座標を通って描画された線分において、座標データが示す座標間の距離である座標間距離を算出するとともに、座標データが示す座標間に描画された各線分の角度である線分角度を算出することができる。このため、座標間距離のみならず、線分角度に基づいて線分の描画を禁止することができる。
【0033】
【発明の実施の形態】
以下に添付図面を参照して、この発明にかかる手書き文字描画装置および手書き文字描画方法をコンピュータに実行させるためのプログラムの好適な実施の形態を詳細に説明する。
【0034】
図1は、本発明の一実施の形態の手書き文字描画装置を説明するための図である。図示した手書き文字描画装置は、タッチパネル付きのディスプレイ装置115と組合されて構成されている。また、タッチパネル付きディスプレイ装置115は、ディスプレイ画面上にオペレータがタッチしたタッチ点を検出し、タッチ点の座標をデータ(座標データ)として入力する座標入力部101を有している。座標入力部101は、タッチパネル付きディスプレイ装置115のセンサ部分であり、ディスプレイ画面にオペレータの指やペンなどの指示部材がタッチする、またはディスプレイ画面に充分近づいた場合、ディスプレイ画面上における指示部材の位置を示すx−y座標を検出する。また、タッチパネル付きディスプレイ装置115は、画面上に画像を表示するための表示部103を備えている。表示部103は、CRTやプロジェクタなどの表示出力装置である。
【0035】
なお、本実施の形態では、タッチパネル付きディスプレイ装置115をタッチパネル(入力部)とディスプレイ画面(表示部)とを一体化した構成として説明したが、両者を独立に構成してもよい。また、本実施の形態では大型のディスプレイ画面を有するタッチパネル付きディスプレイ装置を用いた例をあげたが、タッチパネル部分のセンサやディスプレイ画面のサイズは限定されるものではない。
【0036】
さらに、本実施の形態の手書き文字描画装置は、座標データが示す座標を通る線分を描画する線分描画部109を備えている。線分描画部109は、座標データが示す座標間の距離である座標間距離を計測する距離計測部105、座標データが示す座標間を通る各線分の角度である線分角度を計測する角度計測部107を有している。また、線分描画部109は、距離計測部105が計測した座標間距離と角度計測部107が計測した線分角度とが所定の条件を満たした場合、線分の描画を禁止するノイズ除去部111を備えている。
【0037】
上記した構成のうち、距離計測部105は、座標データを用いて座標間の距離を算出することによって座標間距離を計測する。また、角度計測部107は、座標データを用い、座標データが示す座標を通る各線分の角度を算出することによって線分角度を計測する。なお、線分角度とは、連続して座標入力部101に入力した座標データのうちの2点を通る線分各々の角度であって、本実施の形態では矩形のディスプレイ画面の一辺(オペレータにとって横方向:以降水平方向と記す)と各線分とがなす角度とする。線分描画部109は、パソコンなどのコンピュータにより構成することができる。
【0038】
また、本実施の形態の手書き文字描画装置は、線分描画部109によって処理された座標データを受け取り、受け取った座標データにしたがって表示部103が有するディスプレイ画面の表示素子を制御する表示制御部113を備えている。なお、表示制御部113は、タッチパネル付きディスプレイ装置の一般的な構成である。
【0039】
以上述べた構成は、以下のように動作する。すなわち、線分描画部109は、座標入力部101が入力したx−y座標の座標データを一定時間ごとにサンプリングして蓄積し、ストロークデータとして記憶する。なお、ストロークデータとは、ディスプレイ画面にタッチしてから離れるまでの指示部材の位置を示す点のx−y座標を所定の時間間隔でサンプリングし、得られたデータである。
【0040】
図2は、タッチパネル付きディスプレイ装置115にオペレータが手書きで入力した「あ」の文字を示している。図示した「あ」の文字の入力に際し、オペレータは、点P0において指示部材のタッチを開始し、タッチを継続したまま点P1に指示部材を移動している。次に、オペレータは、点P1からタッチを継続したまま指示部材を点P2に移動し、さらに点P3まで指示部材を移動している。この場合、ストロークデータは、P0(x0,y0),P1(x1,y1),P2(x2,y2),P3(x3,y3)…となる。
【0041】
次に、線分描画部109は、距離計測部105によって座標間距離を算出する。座標間距離の算出は、ストロークデータの連続して入力した3点のうち、第1に入力した点(P1とする)と、点P1の次に入力した点P2との線分間距離D1と、点P2と点P2の次に入力した点P3との線分間距離D2とを、以下の式(1)、式(2)を用いて算出する。
D1=[(x1−x2)2+(y1−y2)2]1/2 …(1)
D2=[(x2−x3)2+(y2−y3)2]1/2 …(2)
さらに、線分描画部109は、線分間距離D1と線分間距離D2との比Dpを式(3)を用いて算出する。
Dp=D1/D2 …(3)
【0042】
そして、線分描画部109は、距離計測部105が算出した値Dpを所定のしきい値Dkと比較し、以下の関係が成立するか否か判断する。そして、成立する場合、座標間距離が所定の条件を満たしたものと判断する。
Dk<Dp …(7)
しきい値Dkの値は、例えば3とすることができる。ただし、Dkの値は装置の仕様や必要とされる精度などによって適宜決定される数値であり、本実施の形態の数値に限定されるものではない。
【0043】
図3(a)、(b)は、角度計測部107による線分角度の算出を説明するための図である。角度計測部107は、図3(a)に示すように、ストロークデータの連続して入力した3点のうち、第1に入力した点P1と点P1の次に入力した点P2とを結ぶ線分301の傾きである角度A1と、点P2と点P2の次に入力した点P3とを結ぶ線分302の傾きである角度A2とを、以下の式(4)、式(5)を用いて算出する。
A1=arctan[(y2−y1)/(x2−x1)] …(4)
A2=arctan[(y3−y2)/(x3−x2)] …(5)
【0044】
ここで、本実施の形態では、算出された角度A1、角度A2を予め決められた角度範囲に対応する方向コードに近似して算出する。方向コードとは、例えば、図3(b)に示すように、360度を16等分し、各角度に0〜15の数字を付して定めることができる。なお、0および8は、水平方向に対応している。図示した方向コードに従えば、線分301が図面の左斜め上方に向かって水平方向に対する45度の角度をもっていた場合、線分301の方向コードは、方向コード「10」に近似される。また、線分302の方向コードC2は、方向コード[5]に近似される。線分描画部109は、角度A1と角度A2との変化量Cpを、方向コードC1、方向コードC2との差分として求める。
【0045】
また、線分描画部109は、角度計測部107が算出した値Cpを所定のしきい値Ckと比較し、以下の関係が成立するか否か判断する。そして、成立する場合、線分角度が所定の条件を満たしたものと判断する。
Ck<Cp …(8)
しきい値Ckの値は、例えば2とすることができる。ただし、Ckの値は装置の仕様や必要とされる精度などによって適宜決定される数値であり、本実施の形態の数値に限定されるものではない。
【0046】
上記した式(7)、式(8)の関係が成立すると判断した場合、線分描画部109は、ノイズ除去部111によってストロークデータP1,P2,P3から一部の座標データであるP2(x2,y2),P3(x3,y3)を除去する。この結果、点P1、点P2を結ぶ線分がノイズ(尾引き)であるとして消去される。ノイズの除去の後、さらに、線分描画部109は、消去された後に描画された線分に対し、除去された座標データの少なくとも1つが示す座標を始点とする線分を描画し、ストロークに線分を追加する。この結果、本実施の形態では、図2に示した線分P1−P2が消去されたうえに除去された点P1、点P2のうち、点P2を始点とする線分P2−P3が追加され、尾引きのない文字「あ」が描画される。
【0047】
上記した本実施の形態によれば、連続して描画された線分のうち、先に描画された線分に対して続いて描画された線分が短く、かつ連続して描画された線分のうち、先に描画された線分のと続いて描画された線分の傾きとの変化量が比較的大きい場合に描画された線分がノイズを含むと判断する。一般的に「はね」は線引きよりも短く描画されることから、D1が「はね」を示す場合のD1/D2はD1が「線引き」を示す場合のD1/D2よりも小さくなる。このため、本実施の形態は、「はね」と「ノイズ」とを識別し、単に連続する線分の角度の変化量に基づいてノイズを判断するよりも正確に手書き文字の形状を判断することができる。
【0048】
なお、本実施の形態では、線分描画部109が、Dk<Dpを満たすDpの算出に用いられた(Ck<Cpを満たすCpの算出に用いられた)座標データのうち、線分P1−P2よりも後に描画される線分P2−P3が通る点P2、点P3を示す座標データをストロークデータから除去するものとした。ただし、本発明は、ストロークデータから除去される座標データの数を2点に限定するものではない。
【0049】
図4は、以上述べた本実施の形態の手書き文字描画装置で実行される手書き文字描画方法を説明するためのフローチャートである。図4に示した手書き文字描画方法は、線分描画部109において実行されるものである。線分描画部109は、タッチパネル付きディスプレイ装置115から座標データを入力する(ステップS401)。そして、座標データによって構成されるストロークデータから連続する3点(点P1,点P2,点P3)を取得し(ステップS402)、距離計測部105によって前記した式(1)〜式(3)を使って線分間距離D1と線分間距離D2との比Dpを算出する(ステップS403)。
【0050】
次に、線分描画部109は、角度計測部107において式(4)〜(6)を用い、点P1,点P2,点P3から角度A1と角度A2との変化量(方向コードの差分)Cpを算出する(ステップS404)。そして、ステップS403で算出された比Dpをしきい値Dkと比較し、さらにステップS404で算出された方向コードの差分Cpをしきい値Ckと比較する(ステップS405)。この結果、Dp>Dk、Cp>Ckの両方が成立すると判断した場合(ステップS405:Yes)、ノイズ除去部111が、すでに描画されているストローク(既存ストローク)のストロークデータから点P2、点P3を除去する(ステップS406)。この結果、線分P1−P2が消去される。なお、ステップS405において、Dp>Dk、Cp>Ckの少なくとも一方が成立しないと判断された場合(ステップS405:No)、線分描画部109は、次の座標データの入力に備える。
【0051】
線分の消去後、線分描画部109は、新規のストロークを描画する(ステップS407)。そして、新規ストロークに対し、除去された座標データが示す点P2、点P3のうち、点P2を始点として新たにストロークを追加する(ステップS408)。
【0052】
以下、ステップS407、ステップS408で述べた新規ストロークの描画について詳細に説明する。今、ストロークiの各座標点をPi1(x1,y1),Pi2(x2,y2),Pi3(x3,y3),…,PiN(xN,yN)のように表わすとする。このとき例えば線分PiN‐1(xN-1,yN-1)−PiN(xN,yN)がノイズとして処理されると、まずストロークi+1を生成する。さらにPiN(xN,yN)の座標値をPi+11(x1,y1)に代入する。これにより、ノイズとして処理された線分が削除され、新たなストロークを描画できる。
【0053】
図5(a)〜(c)は、以上述べた本実施の形態の手書き文字描画装置を適用して得られる結果を説明するための図である。図5(a)は「あ」、図5(b)は「か」、図5(c)は「会」という文字の描画を示している。図の横軸はx方向の座標、縦軸はy方向の座標であり、図中のプロットは、実際に光学式の手書き文字描画装置においてサンプリングされた座標を示している。図の太線で示された座標点間が本手法を適用しない場合に尾引きによって接続されてしまう個所である。図5(a)〜(c)に示すように、本発明は、図中の太線個所の接続を除去することができ、特に文字のような形式の情報を入力する場合に有効であることがわかる。したがって、本発明は、ディスプレイ上での文字描画の視認性を向上させることができ、またオンライン・オフラインの文字認識装置によって描画をフォント化する場合の認識精度を向上できる。
【0054】
図6は、上記した本発明の手書き文字描画装置600に適用される方法をコンピュータにインストールして実行可能な状態とするために用いられるプログラム、およびプログラムを記憶する媒体について説明するための図である。本実施の形態のプログラムは、例えば図6(a)に示すように、コンピュータ601に内蔵されている記録媒体としてのハードディスク603にあらかじめインストールした状態で提供できる。また、本実施の形態のプログラムは、図6(b)に示すように、記録媒体605に一時的あるいは永続的に格納し、コンピュータ601にユニットとして組み込む、あるいは着脱式の記録媒体として利用することで、パッケージソフトウェアとして提供できる。
【0055】
さらに、本実施の形態のプログラムを記憶する記録媒体としては、図6(c)に示すように、例えばフロッピー(登録商標)ディスク、CD−ROM(Compact Disc Read Only Memory)、MO(Magneto optical)ディスク、DVD(Digital Versatile Disc)、磁気ディスク、半導体メモリなどが利用できる。プログラムは図6(d)に示すように、ダウンロードサイト607から、LAN(Local Area Network)やインターネットといったネットワークを介して、有線または無線でコンピュータに転送し、コンピュータのハードディスクなどにダウンロードすることができる。
【0056】
【発明の効果】
以上説明したように、請求項1に記載の発明は、座標間距離のみならず、線分角度に基づいて線分の描画を禁止することができるので、手書き文字描画装置におけるノイズを正確に判断し、オペレータが描画した文字に関する情報を正確に認識し、描画できる手書き文字描画装置が提供できるという効果を奏する。
また、請求項1に記載の発明は、入力した座標データのうち、座標間距離または線分角度が所定の条件を満たす座標データが除去され、この座標データを通って描画された線分だけを消去することができるので、手書き文字描画装置におけるノイズを正確に判断し、オペレータが描画した文字に関する情報を正確に認識し、描画できる手書き文字描画装置が提供できるという効果を奏する。
また、請求項1に記載の発明は、「はね」と「線引き」との相違を正確に識別することができるので、手書き文字描画装置におけるノイズを正確に判断し、オペレータが描画した文字に関する情報を正確に認識し、描画できる手書き文字描画装置が提供できるという効果を奏する。
また、請求項1に記載の発明は、線分の傾きとの変化量が比較的大きい場合に描画された線分がノイズを含むと判断することができるので、手書き文字描画装置におけるノイズの発生の可能性を検知し、オペレータが描画した文字に関する情報を正確に認識し、描画できる手書き文字描画装置が提供できるという効果を奏する。
また、請求項1に記載の発明は、消去された座標データが示す座標と、この座標データの直前に入力した座標データが示す座標との間に描画された線分を消去した上で以降に入力した座標データにしたがう線分を描画することによってオペレータが描画した文字に関する情報を正確に認識し、描画できる手書き文字描画装置が提供できるという効果を奏する。
【0059】
請求項2に記載の発明は、第1の角度、第2の角度の算出にあたって充分な精度を維持しながら処理を簡易化できるので、文字認識の制度を維持しながら手書き文字描画装置における構成を簡易化し、しかも処理速度を高めることができるという効果を奏する。
【0060】
請求項3に記載の発明は、座標間距離のみならず、線分角度に基づいて線分の描画を禁止することができるので、手書き文字描画装置におけるノイズを正確に判断し、オペレータが描画した文字に関する情報を正確に認識し、描画できる手書き文字描画装置が提供できるという効果を奏する。
【0061】
請求項4に記載の発明は、座標間距離のみならず、線分角度に基づいて線分の描画を禁止することができるので、手書き文字描画装置におけるノイズを正確に判断し、オペレータが描画した文字に関する情報を正確に認識し、描画できる手書き文字描画装置が提供できるという効果を奏する。
【図面の簡単な説明】
【図1】本発明の一実施の形態の手書き文字描画装置を説明するための図である。
【図2】図1に示したタッチパネル付きディスプレイ装置にオペレータが手書きで入力した「あ」の文字を示すための図である。
【図3】図1に示した角度計測部による線分角度の算出を説明するための図である。
【図4】本発明の一実施の形態の手書き文字描画装置で実行される手書き文字描画方法を説明するためのフローチャートである。
【図5】本発明の一実施の形態の手書き文字描画装置を適用して得られる結果を説明するための図である。
【図6】本発明の一実施の形態の手書き文字描画装置に適用される方法をコンピュータにインストールして実行可能な状態とするために用いられるプログラム、およびプログラムを記憶する媒体について説明するための図である。
【符号の説明】
101 座標入力部
103 表示部
105 距離計測部
107 角度計測部
109 描画処理部
111 ノイズ除去部
113 表示制御部
115 タッチパネル付きディスプレイ装置[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a handwritten character drawing device,Handwritten drawing method, andThe present invention relates to a program for causing a computer to execute a handwritten character drawing method, and in particular, a handwritten character drawing device that removes noise generated when specifying coordinates,Handwritten drawing method, andThe present invention relates to a program for causing a computer to execute a handwritten character drawing method.
[0002]
[Prior art]
Currently, there is a configuration in which a point touched (touched) by an operator is detected on a panel having a predetermined range, and a line segment passing through the detected point is displayed. Such a configuration is called an electronic board or tablet, and can display characters and figures as written by the operator, like a blackboard or whiteboard. In the present specification, the configuration for displaying characters and figures written by the operator is hereinafter collectively referred to as a handwritten character drawing device. Some handwritten character recognition devices display a handwritten character as it is, or recognize a handwritten character and display it as a font.
[0003]
In recent years, handwritten character drawing devices are combined with large display devices and used for presentations and the like as display devices with touch panels. As a conventional example of a display device with a touch panel using a handwritten character drawing device, a film (resistive film) for sensing pressure at the time of writing is provided on the display screen, and the locus of writing is detected by the pressure sensed by the film (For example, Patent Document 1).
[0004]
As another example of a display device with a touch panel using a handwritten character drawing device, a light source is provided to irradiate light on the entire area of the display screen, and reflected light reflected by a reflecting member provided around the display screen is reflected. Some optical types receive light. This handwritten character drawing device detects a touched point (touch point) by blocking reflected light passing through the touched point when the operator touches the display screen with a finger or a pen (indicated as an indicating member). (For example, Patent Document 2).
[0005]
The optical handwritten character drawing apparatus has an advantage that sufficient accuracy can be obtained while the configuration is simpler than the configuration using the resistive film. However, even when the pointing member is not in contact with the display screen but is in a very close position, the light may be blocked and a trajectory unintended by the operator may be displayed. The unintended trajectory is noise in handwritten character drawing, causing a problem that the visibility of the drawn character is lowered and misreading is caused. In order to remove noise, there is a configuration in which an angle formed by continuously drawn line segments is detected, and whether or not the locus is noise is determined according to this angle (for example, Patent Document 3).
[0006]
[Patent Document 1]
JP-A-5-241717 (paragraphs [0014] to [0017])
[Patent Document 2]
JP 2000-105671 A (paragraphs [0063] to [0078])
[Patent Document 3]
JP-A-5-298490 (paragraphs [0014] to [0021])
[0007]
[Problems to be solved by the invention]
However, since the noise determination of the above-described prior art removes a portion where the angle is locally steeply converted as noise, part of the character is also removed. In particular, “hane” found in Japanese kanji is recognized as noise in the prior art and is likely to be removed. When a part of the character is erroneously determined as noise and removed, not only the character of the shape intended by the operator is not drawn, but also the recognition accuracy when the handwritten character is converted into a font by the character recognition device is lowered.
[0008]
The present invention has been made in view of the above-described points, and accurately determines noise in a handwritten character drawing device, accurately recognizes information related to characters drawn by an operator, and can draw a handwritten character drawing device.Handwritten drawing method, andAn object is to obtain a program for causing a computer to execute a handwritten character drawing method.
[0009]
[Means for Solving the Problems]
In order to achieve the above object, a handwritten character drawing apparatus according to claim 1 comprises:Sampling the coordinates of the points indicating the position of the pointing member from touching the display screen until leaving, and accumulating them as coordinate data, storing the coordinate data as stroke data,A handwritten character drawing apparatus having line segment drawing means for drawing a line segment that passes through coordinates indicated by the coordinate data and is input with the coordinate data, the line segment drawing meansCompose stroke data stored byAmong the coordinate data of the three points inputted successively, the first is the first inter-coordinate distance between the first point inputted first and the second point inputted next to the first point. The inter-coordinate distance calculation calculates the inter-coordinate distance and the second inter-coordinate distance indicating the inter-coordinate distance between the second point and the third point input next to the second point. A first angle indicating a slope of a line segment connecting the first point and the second point, and a slope of a line segment connecting the second point and the third point. 2 angles are calculated respectively.Then, a value corresponding to a predetermined reference angle range is obtained for each of the calculated first angle and second angle.Line segment angle calculating means and the first inter-coordinate distanceTheThe inter-coordinate distance ratio divided by the second inter-coordinate distance is greater than a predetermined threshold, and the first angle and the second angleAnd the difference between the corresponding valuesIf the amount of change is greater than a predetermined threshold,Configure the stroke dataEntered continuouslyOf the three coordinate data, coordinate data indicating the second point and the third point is obtained from the stroke data.Removing means for erasing the line segment by removingThe line segment drawing means generates new stroke data after the line segment connecting the first point and the second point is erased by the removing means, and for the generated new stroke data, And adding a line segment connecting the second point and the third point starting from the second point indicated by the removed coordinate dataIt is characterized by.
[0010]
According to the first aspect of the present invention, in the line segment drawn through the coordinates indicated by the coordinate data, the inter-coordinate distance, which is the distance between the coordinates indicated by the coordinate data, is calculated, and the coordinates indicated by the coordinate data are indicated. A line segment angle that is an angle of each line segment drawn between them can be calculated. For this reason, drawing of a line segment can be prohibited based not only on the distance between coordinates but also on the line segment angle.
According to the first aspect of the present invention, the coordinate data used for the calculation of the inter-coordinate distance or the coordinate data used for the calculation of the line segment angle can be removed to prohibit the drawing of the line segment. it can. For this reason, coordinate data in which the distance between coordinates or the line segment angle satisfies a predetermined condition is removed from the input coordinate data, and only the line segment drawn through the coordinate data can be erased.
According to the first aspect of the present invention, after erasing only the line segment drawn through the coordinate data satisfying the predetermined condition, the line segment starting from the erased coordinate data is drawn. Can do. Therefore, after deleting the line drawn between the coordinates indicated by the deleted coordinate data and the coordinates indicated by the coordinate data input immediately before this coordinate data, the line segments according to the coordinate data input thereafter are deleted. Can be drawn.
According to the first aspect of the present invention, the drawn line segment may contain noise when the amount of change between the slope of a certain line segment and the slope of the subsequently drawn line segment is relatively large. It can be judged that there is sex.
According to the first aspect of the present invention, after erasing only the line segment drawn through the coordinate data satisfying the predetermined condition, the line segment starting from the erased coordinate data is drawn. Can do. Therefore, after deleting the line drawn between the coordinates indicated by the deleted coordinate data and the coordinates indicated by the coordinate data input immediately before this coordinate data, the line segments according to the coordinate data input thereafter are deleted. Can be drawn.
[0015]
Claim2The invention described in claim1The handwritten character drawing apparatus according to claim 1, wherein the line segment angle calculation means includes the first angle and the second angle.A value corresponding to a predetermined reference angle range with respect to the first angle, the second angle,It is calculated by approximating a direction code corresponding to a predetermined angle range.
[0016]
This claim2According to the invention described in1st angle, 2nd angleThe processing can be simplified while maintaining sufficient accuracy in the calculation of.
[0017]
Claim3Is a handwritten character drawing method executed by a handwritten character drawing device, wherein the handwritten character drawing device includes:Sampling the coordinates of the points indicating the position of the pointing member from touching the display screen until leaving, and accumulating them as coordinate data, storing the coordinate data as stroke data,Coordinate data is input, and there is a line segment drawing means for drawing a line segment passing through the coordinates indicated by the coordinate data, and the line segment drawing meansCompose stroke data stored byAmong the coordinate data of the three points inputted successively, the first is the first inter-coordinate distance between the first point inputted first and the second point inputted next to the first point. The inter-coordinate distance calculation calculates the inter-coordinate distance and the second inter-coordinate distance indicating the inter-coordinate distance between the second point and the third point input next to the second point. A first angle indicating the slope of a line segment connecting the step, the first point and the second point, and a first angle indicating the slope of the line segment connecting the second point and the third point. 2 angles are calculated respectively.Then, a value corresponding to a predetermined reference angle range is obtained for each of the calculated first angle and second angle.A line segment angle calculating step and a distance between the first coordinatesTheThe inter-coordinate distance ratio divided by the second inter-coordinate distance is greater than a predetermined threshold, and the first angle and the second angleAnd the difference between the corresponding valuesIf the amount of change is greater than a predetermined threshold,Configure the stroke dataEntered continuouslyOf the three coordinate data, coordinate data indicating the second point and the third point is obtained from the stroke data.A removal step of erasing the line segment by removing, andAnd the line segment drawing step generates new stroke data after the line segment connecting the first point and the second point is erased by the removing step, and the generated new stroke data On the other hand, a line segment connecting the second point and the third point is added starting from the second point indicated by the removed coordinate data.It is characterized by that.
[0018]
This claim3According to the invention described in the above, in the line segment drawn through the coordinates indicated by the coordinate data, the inter-coordinate distance that is the distance between the coordinates indicated by the coordinate data is calculated, and the drawing is performed between the coordinates indicated by the coordinate data. A line segment angle that is an angle of each line segment can be calculated. For this reason, drawing of a line segment can be prohibited based not only on the distance between coordinates but also on the line segment angle.
[0019]
Claim4The program described inSampling the coordinates of the points indicating the position of the pointing member from touching the display screen until leaving, and accumulating them as coordinate data, storing the coordinate data as stroke data,A computer having line segment drawing means for drawing a line segment that is input with coordinate data and passes through the coordinates indicated by the coordinate data.Compose stroke data stored byAmong the coordinate data of the three points inputted successively, the first is the first inter-coordinate distance between the first point inputted first and the second point inputted next to the first point. The inter-coordinate distance calculation calculates the inter-coordinate distance and the second inter-coordinate distance indicating the inter-coordinate distance between the second point and the third point input next to the second point. A first angle indicating a slope of a line segment connecting the first point and the second point, and a slope of a line segment connecting the second point and the third point. 2 angles are calculated respectively.Then, a value corresponding to a predetermined reference angle range is obtained for each of the calculated first angle and second angle.Line segment angle calculating means and the first inter-coordinate distanceTheThe inter-coordinate distance ratio divided by the second inter-coordinate distance is greater than a predetermined threshold, and the first angle and the second angleAnd the difference between the corresponding valuesIf the amount of change is greater than a predetermined threshold,Configure the stroke dataEntered continuouslyOf the three coordinate data, coordinate data indicating the second point and the third point is obtained from the stroke data.Removing means for erasing the line segment by removing;The line segment drawing unit newly generates stroke data after the line segment connecting the first point and the second point is erased by the removing unit. A line segment connecting the second point and the third point is added to the generated new stroke data, starting from the second point indicated by the removed coordinate data.It is characterized by that.
[0020]
This claim4According to the invention described in the above, in the line segment drawn through the coordinates indicated by the coordinate data, the inter-coordinate distance that is the distance between the coordinates indicated by the coordinate data is calculated, and the drawing is performed between the coordinates indicated by the coordinate data. A line segment angle that is an angle of each line segment can be calculated. For this reason, drawing of a line segment can be prohibited based not only on the distance between coordinates but also on the line segment angle.
[0033]
DETAILED DESCRIPTION OF THE INVENTION
Exemplary embodiments of a program for causing a computer to execute a handwritten character drawing apparatus and a handwritten character drawing method according to the present invention will be described below in detail with reference to the accompanying drawings.
[0034]
FIG. 1 is a diagram for explaining a handwritten character drawing apparatus according to an embodiment of the present invention. The illustrated handwritten character drawing device is configured in combination with a
[0035]
In the present embodiment,
[0036]
Furthermore, the handwritten character drawing apparatus of the present embodiment includes a line
[0037]
Among the configurations described above, the
[0038]
In addition, the handwritten character drawing apparatus of the present embodiment receives the coordinate data processed by the line
[0039]
The configuration described above operates as follows. That is, the line
[0040]
FIG. 2 shows the character “A” input by hand to the
[0041]
Next, the line
D1 = [(x1-x2)2+ (Y1-y2)2]1/2 ... (1)
D2 = [(x2-x3)2+ (Y2−y3)2]1/2 ... (2)
Further, the line
Dp = D1 / D2 (3)
[0042]
Then, the line
Dk <Dp (7)
The value of the threshold value Dk can be set to 3, for example. However, the value of Dk is a numerical value that is appropriately determined depending on the specifications of the apparatus, required accuracy, and the like, and is not limited to the numerical value of the present embodiment.
[0043]
FIGS. 3A and 3B are diagrams for explaining the calculation of the line segment angle by the
A1 = arctan [(y2-y1) / (x2-x1)] (4)
A2 = arctan [(y3-y2) / (x3-x2)] (5)
[0044]
Here, in the present embodiment, the calculated angles A1 and A2 are calculated by approximating the direction code corresponding to a predetermined angle range. For example, as shown in FIG. 3B, the direction code can be determined by dividing 360 degrees into 16 equal parts and attaching numbers 0-15 to each angle. Note that 0 and 8 correspond to the horizontal direction. According to the illustrated direction code, when the
[0045]
Further, the line
Ck <Cp (8)
The threshold value Ck can be set to 2, for example. However, the value of Ck is a numerical value that is appropriately determined according to the specifications of the apparatus, required accuracy, and the like, and is not limited to the numerical value of the present embodiment.
[0046]
When it is determined that the relationship of the above formulas (7) and (8) is established, the line
[0047]
According to the above-described embodiment, among the continuously drawn line segments, the line segments drawn subsequent to the previously drawn line segments are short and the line segments drawn continuously. Of these, when the amount of change between the previously drawn line segment and the slope of the subsequently drawn line segment is relatively large, it is determined that the drawn line segment includes noise. Since “Splash” is generally drawn shorter than drawing, D1 / D2 when D1 indicates “Spring” is smaller than D1 / D2 when D1 indicates “drawing”. For this reason, the present embodiment discriminates "splash" and "noise" and determines the shape of the handwritten character more accurately than simply determining noise based on the amount of change in the angle of successive line segments. be able to.
[0048]
In the present embodiment, the line
[0049]
FIG. 4 is a flowchart for explaining the handwritten character drawing method executed by the handwritten character drawing apparatus of the present embodiment described above. The handwritten character drawing method shown in FIG. 4 is executed by the line
[0050]
Next, the
[0051]
After erasing the line segment, the line
[0052]
Hereinafter, the drawing of the new stroke described in step S407 and step S408 will be described in detail. Assume that the coordinate points of the stroke i are represented as Pi1 (x1, y1), Pi2 (x2, y2), Pi3 (x3, y3),..., PiN (xN, yN). At this time, for example, if the line segment PiN-1 (xN-1, yN-1) -PiN (xN, yN) is processed as noise, a stroke i + 1 is first generated. Further, the coordinate value of PiN (xN, yN) is substituted into Pi + 11 (x1, y1). Thereby, the line segment processed as noise is deleted, and a new stroke can be drawn.
[0053]
FIGS. 5A to 5C are diagrams for explaining results obtained by applying the above-described handwritten character drawing apparatus of the present embodiment. FIG. 5A shows a drawing of characters “A”, FIG. 5B shows a drawing of “KA”, and FIG. 5C shows a drawing of “Mei”. The horizontal axis in the figure is the coordinate in the x direction, the vertical axis is the coordinate in the y direction, and the plot in the figure shows the coordinates actually sampled in the optical handwritten character drawing apparatus. The coordinate points indicated by bold lines in the figure are connected by tailing when this method is not applied. As shown in FIGS. 5 (a) to 5 (c), the present invention can remove the connection at the bold line in the figure, and is particularly effective when inputting information in a form such as characters. Recognize. Therefore, the present invention can improve the visibility of the character drawing on the display, and can improve the recognition accuracy when the drawing is converted into a font by the online / offline character recognition device.
[0054]
FIG. 6 is a diagram for explaining a program used for installing the method applied to the above-described handwritten
[0055]
Further, as a recording medium for storing the program of the present embodiment, as shown in FIG. 6C, for example, a floppy (registered trademark) disk, a CD-ROM (Compact Disc Read Only Memory), an MO (Magneto optical). A disk, a DVD (Digital Versatile Disc), a magnetic disk, a semiconductor memory, or the like can be used. As shown in FIG. 6D, the program can be transferred from a
[0056]
【The invention's effect】
As described above, since the invention according to claim 1 can prohibit line drawing based on not only the distance between coordinates but also the line segment angle, it can accurately determine noise in the handwritten character drawing apparatus. As a result, it is possible to provide a handwritten character drawing apparatus capable of accurately recognizing and drawing information related to characters drawn by the operator.
According to the first aspect of the present invention, the coordinate data in which the distance between coordinates or the angle of the line segment satisfies the predetermined condition is removed from the input coordinate data, and only the line segment drawn through this coordinate data is removed. Since it can be erased, it is possible to provide a handwritten character drawing device capable of accurately determining noise in the handwritten character drawing device, accurately recognizing information related to characters drawn by the operator, and drawing.
The invention according to claim 1 is capable of accurately identifying the difference between “splash” and “drawing”, and thus accurately determines the noise in the handwritten character drawing device and relates to the character drawn by the operator. There is an effect that a handwritten character drawing apparatus capable of accurately recognizing and drawing information can be provided.
In the invention according to claim 1, since it can be determined that the drawn line segment includes noise when the amount of change from the slope of the line segment is relatively large, generation of noise in the handwritten character drawing apparatus It is possible to provide a handwritten character drawing apparatus capable of detecting the possibility of the above and accurately recognizing and drawing information on characters drawn by the operator.
In the invention described in claim 1, the line segment drawn between the coordinates indicated by the deleted coordinate data and the coordinates indicated by the coordinate data input immediately before the coordinate data is deleted, and thereafter By drawing a line segment in accordance with the input coordinate data, it is possible to provide a handwritten character drawing apparatus that can accurately recognize and draw information related to characters drawn by the operator.
[0059]
Claim2The invention described in1st angle, 2nd angleSince it is possible to simplify the processing while maintaining sufficient accuracy in the calculation, it is possible to simplify the configuration of the handwritten character drawing apparatus while maintaining the character recognition system, and to increase the processing speed.
[0060]
Claim3Since the invention described in the above can prohibit line drawing based not only on the distance between coordinates but also on the line segment angle, information on the character drawn by the operator by accurately determining noise in the handwritten character drawing apparatus It is possible to provide a handwritten character drawing device capable of accurately recognizing and drawing.
[0061]
Claim4Since the invention described in the above can prohibit line drawing based not only on the distance between coordinates but also on the line segment angle, information on the character drawn by the operator by accurately determining noise in the handwritten character drawing apparatus It is possible to provide a handwritten character drawing device capable of accurately recognizing and drawing.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining a handwritten character drawing apparatus according to an embodiment of the present invention;
FIG. 2 is a diagram for showing a character “A” input by handwriting on the display device with a touch panel shown in FIG. 1;
3 is a diagram for explaining calculation of a line segment angle by an angle measurement unit shown in FIG. 1; FIG.
FIG. 4 is a flowchart for explaining a handwritten character drawing method executed by the handwritten character drawing device according to the embodiment of the present invention;
FIG. 5 is a diagram for explaining a result obtained by applying the handwritten character drawing apparatus according to the embodiment of the present invention;
FIG. 6 is a diagram for explaining a program used for installing the method applied to the handwritten character drawing apparatus according to the embodiment of the present invention into a computer and making it executable, and a medium for storing the program; FIG.
[Explanation of symbols]
101 Coordinate input part
103 display
105 Distance measurement unit
107 Angle measurement unit
109 Drawing processor
111 Noise removal unit
113 Display control unit
115 Display device with touch panel
Claims (4)
前記線分描画手段によって記憶されたストロークデータを構成する連続して入力された3点の前記座標データのうち、第1に入力された第1の点と前記第1の点の次に入力された第2の点との座標間距離を示す第1の座標間距離と、前記第2の点と前記第2の点の次に入力された第3の点との座標間距離を示す第2の座標間距離と、をそれぞれ算出する座標間距離算出手段と、
前記第1の点と前記第2の点とを結ぶ線分の傾きを示す第1の角度と、前記第2の点と前記第3の点とを結ぶ線分の傾きを示す第2の角度と、をそれぞれ算出し、算出された第1の角度と第2の角度とに対して予め定められた基準の角度範囲に対応する値をそれぞれ求める線分角度算出手段と、
前記第1の座標間距離を、前記第2の座標間距離で除算した座標間距離比が所定のしきい値より大きく、かつ、前記第1の角度と前記第2の角度とにそれぞれ対応する前記値の差分を示す変化量が所定のしきい値より大きい場合に、前記ストロークデータを構成する連続して入力された3点の前記座標データのうち、前記第2の点と前記第3の点を示す座標データを、前記ストロークデータから除去することによって、線分を消去する除去手段と、を備え、
前記線分描画手段は、前記除去手段によって前記第1の点と前記第2の点を結ぶ線分が消去された後に、新規にストロークデータを生成し、生成された新規のストロークデータに対して、除去された座標データが示す前記第2の点を始点として前記第2の点と前記第3の点とを結ぶ線分を追加することを特徴とする手書き文字描画装置。 The coordinates of the point indicating the position of the pointing member from the touch on the display screen until it leaves are sampled at a predetermined time interval and accumulated as coordinate data, the coordinate data is stored as stroke data, and the coordinate data is input A handwritten character drawing device having line segment drawing means for drawing a line segment passing through the coordinates indicated by the coordinate data,
Of the three consecutively inputted coordinate data constituting the stroke data stored by the line segment drawing means, the first point inputted first and the point inputted next to the first point. A first inter-coordinate distance indicating the inter-coordinate distance with the second point, and a second inter-coordinate distance between the second point and the third point input next to the second point. Inter-coordinate distance calculation means for calculating the inter-coordinate distance,
The first angle indicating the slope of the line segment connecting the first point and the second point, and the second angle indicating the slope of the line segment connecting the second point and the third point Line segment angle calculating means for calculating values corresponding to a predetermined reference angle range with respect to the calculated first angle and second angle, respectively ,
The inter-coordinate distance ratio obtained by dividing the first inter-coordinate distance by the second inter-coordinate distance is greater than a predetermined threshold value, and corresponds to the first angle and the second angle , respectively. When the amount of change indicating the difference between the values is larger than a predetermined threshold value , the second point and the third point of the coordinate data of the three points that are continuously input that constitute the stroke data . Removing means for erasing a line segment by removing coordinate data indicating a point from the stroke data ;
The line segment drawing unit newly generates stroke data after the line segment connecting the first point and the second point is erased by the removing unit, and for the generated new stroke data A handwritten character drawing apparatus adding a line segment connecting the second point and the third point with the second point indicated by the removed coordinate data as a starting point .
前記手書き文字描画装置は、ディスプレイ画面上にタッチしてから離れるまでの指示部材の位置を示す点の座標を所定の時間間隔でサンプリングして座標データとして蓄積し、該座標データをストロークデータとして記憶し、前記座標データが入力され、前記座標データが示す座標を通る線分を描画する線分描画手段を有し、
前記線分描画手段によって記憶されたストロークデータを構成する連続して入力された3点の前記座標データのうち、第1に入力された第1の点と前記第1の点の次に入力された第2の点との座標間距離を示す第1の座標間距離と、前記第2の点と前記第2の点の次に入力された第3の点との座標間距離を示す第2の座標間距離と、をそれぞれ算出する座標間距離算出ステップと、
前記第1の点と前記第2の点とを結ぶ線分の傾きを示す第1の角度と、前記第2の点と前記第3の点とを結ぶ線分の傾きを示す第2の角度と、をそれぞれ算出し、算出された第1の角度と第2の角度とに対して予め定められた基準の角度範囲に対応する値をそれぞれ求める線分角度算出ステップと、
前記第1の座標間距離を、前記第2の座標間距離で除算した座標間距離比が所定のしきい値より大きく、かつ、前記第1の角度と前記第2の角度とにそれぞれ対応する前記値の差分を示す変化量が所定のしきい値より大きい場合に、前記ストロークデータを構成する連続して入力された3点の前記座標データのうち、前記第2の点と前記第3の点を示す座標データを、前記ストロークデータから除去することによって、線分を消去する除去ステップと、を含み、
前記線分描画ステップは、前記除去ステップによって前記第1の点と前記第2の点を結ぶ線分が消去された後に、新規にストロークデータを生成し、生成された新規のストロー クデータに対して、除去された座標データが示す前記第2の点を始点として前記第2の点と前記第3の点とを結ぶ線分を追加することを特徴とする手書き文字描画方法。A handwritten character drawing method executed by a handwritten character drawing device,
The handwritten character drawing apparatus samples the coordinates of points indicating the position of the pointing member from the time the user touches the display screen until it leaves, accumulates the coordinates as coordinate data, and stores the coordinate data as stroke data The coordinate data is input, and has a line segment drawing means for drawing a line segment passing through the coordinates indicated by the coordinate data,
Of the three consecutively inputted coordinate data constituting the stroke data stored by the line segment drawing means, the first point inputted first and the point inputted next to the first point. A first inter-coordinate distance indicating the inter-coordinate distance with the second point, and a second inter-coordinate distance between the second point and the third point input next to the second point. The inter-coordinate distance calculation step for calculating the inter-coordinate distance,
The first angle indicating the slope of the line segment connecting the first point and the second point, and the second angle indicating the slope of the line segment connecting the second point and the third point And a line segment angle calculating step for obtaining values corresponding to predetermined reference angle ranges for the calculated first angle and second angle, respectively ,
The inter-coordinate distance ratio obtained by dividing the first inter-coordinate distance by the second inter-coordinate distance is greater than a predetermined threshold value, and corresponds to the first angle and the second angle , respectively. When the amount of change indicating the difference between the values is larger than a predetermined threshold value , the second point and the third point of the coordinate data of the three points that are continuously input that constitute the stroke data . Removing a line segment by removing coordinate data indicating a point from the stroke data ,
The line segment drawing step, after the line segment connecting the second point and the point of the first is erased by said removal step, to generate a new stroke data, for the generated new straw Kudeta A handwritten character drawing method, wherein a line segment connecting the second point and the third point is added starting from the second point indicated by the removed coordinate data .
前記線分描画手段によって記憶されたストロークデータを構成する連続して入力された3点の前記座標データのうち、第1に入力された第1の点と前記第1の点の次に入力された第2の点との座標間距離を示す第1の座標間距離と、前記第2の点と前記第2の点の次に入力された第3の点との座標間距離を示す第2の座標間距離と、をそれぞれ算出する座標間距離算出手段と、
前記第1の点と前記第2の点とを結ぶ線分の傾きを示す第1の角度と、前記第2の点と前記第3の点とを結ぶ線分の傾きを示す第2の角度と、をそれぞれ算出し、算出された第1の角度と第2の角度とに対して予め定められた基準の角度範囲に対応する値をそれぞれ求める線分角度算出手段と、
前記第1の座標間距離を、前記第2の座標間距離で除算した座標間距離比が所定のしきい値より大きく、かつ、前記第1の角度と前記第2の角度とにそれぞれ対応する前記値の差分を示す変化量が所定のしきい値より大きい場合に、前記ストロークデータを構成する連続して入力された3点の前記座標データのうち、前記第2の点と前記第3の点を示す座標データを、前記ストロークデータから除去することによって、線分を消去する除去手段と、して実行させるためのプログラムであって、
前記線分描画手段は、前記除去手段によって前記第1の点と前記第2の点を結ぶ線分が消去された後に、新規にストロークデータを生成し、生成された新規のストロークデータに対して、除去された座標データが示す前記第2の点を始点として前記第2の点と前記第3の点とを結ぶ線分を追加することを特徴とするプログラム。 The coordinates of the point indicating the position of the pointing member from the touch on the display screen until it leaves are sampled at a predetermined time interval and accumulated as coordinate data, the coordinate data is stored as stroke data, and the coordinate data is input A computer having line segment drawing means for drawing a line segment passing through the coordinates indicated by the coordinate data,
Of the three consecutively inputted coordinate data constituting the stroke data stored by the line segment drawing means, the first point inputted first and the point inputted next to the first point. A first inter-coordinate distance indicating the inter-coordinate distance with the second point, and a second inter-coordinate distance between the second point and the third point input next to the second point. Inter-coordinate distance calculation means for calculating the inter-coordinate distance,
The first angle indicating the slope of the line segment connecting the first point and the second point, and the second angle indicating the slope of the line segment connecting the second point and the third point Line segment angle calculating means for calculating values corresponding to a predetermined reference angle range with respect to the calculated first angle and second angle, respectively ,
The inter-coordinate distance ratio obtained by dividing the first inter-coordinate distance by the second inter-coordinate distance is greater than a predetermined threshold value, and corresponds to the first angle and the second angle , respectively. When the amount of change indicating the difference between the values is larger than a predetermined threshold value , the second point and the third point of the coordinate data of the three points that are continuously input that constitute the stroke data . A program for executing coordinate data indicating a point as removal means for erasing a line segment by removing the coordinate data from the stroke data ,
The line segment drawing unit newly generates stroke data after the line segment connecting the first point and the second point is erased by the removing unit, and for the generated new stroke data A program for adding a line segment connecting the second point and the third point starting from the second point indicated by the removed coordinate data .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003065637A JP4236962B2 (en) | 2003-03-11 | 2003-03-11 | Handwritten character drawing apparatus, handwritten character drawing method, and program for causing a computer to execute the handwritten character drawing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003065637A JP4236962B2 (en) | 2003-03-11 | 2003-03-11 | Handwritten character drawing apparatus, handwritten character drawing method, and program for causing a computer to execute the handwritten character drawing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004272813A JP2004272813A (en) | 2004-09-30 |
| JP4236962B2 true JP4236962B2 (en) | 2009-03-11 |
Family
ID=33126609
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003065637A Expired - Fee Related JP4236962B2 (en) | 2003-03-11 | 2003-03-11 | Handwritten character drawing apparatus, handwritten character drawing method, and program for causing a computer to execute the handwritten character drawing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4236962B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4807321B2 (en) * | 2007-05-18 | 2011-11-02 | 大日本印刷株式会社 | Handwriting reproduction drawing method, handwriting reproduction drawing apparatus, and program used therefor |
| US8442348B2 (en) | 2008-11-06 | 2013-05-14 | Seiko Epson Corporation | Image noise reduction for digital images using Gaussian blurring |
| JP2016076103A (en) * | 2014-10-07 | 2016-05-12 | 株式会社ログバー | Noise removal method in gesture input |
-
2003
- 2003-03-11 JP JP2003065637A patent/JP4236962B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004272813A (en) | 2004-09-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6687614B2 (en) | Navigation device, information display device, object creation method, and recording medium | |
| CN100524184C (en) | Freehand input method | |
| US9665276B2 (en) | Character deletion during keyboard gesture | |
| US8004503B2 (en) | Auto-calibration of a touch screen | |
| KR101126167B1 (en) | Touch screen and method of displaying | |
| US20150077398A1 (en) | Method for interacting with a dynamic tactile interface | |
| JP2015072534A (en) | Information processing apparatus, information processing method, and program | |
| US20040246240A1 (en) | Detection of a dwell gesture by examining parameters associated with pen motion | |
| US20130120282A1 (en) | System and Method for Evaluating Gesture Usability | |
| JP2012190392A (en) | Display device with touch panel, control method for event switching and program | |
| CN1717648A (en) | User interface for mobile representation with touch areas | |
| US20140300606A1 (en) | Drawing device, drawing method, and drawing program | |
| JP2002328040A (en) | Navigation device, information display device, image scale change method, storage medium, program | |
| CN106650648A (en) | Identification method and system for erasing handwriting | |
| WO2010017711A1 (en) | Execution method, apparatus and movable terminal for graphic touch commands | |
| CN102455887A (en) | Input display apparatus and input display method | |
| WO2012169189A1 (en) | Touch panel input device | |
| JP5560151B2 (en) | Handwritten figure recognition system, handwritten figure recognition method and program | |
| TWI354223B (en) | ||
| WO2015049934A1 (en) | Information processing device, information processing method, and program | |
| JP5486977B2 (en) | Coordinate input device and program | |
| CN104423838A (en) | Document dividing and merging | |
| JP4236962B2 (en) | Handwritten character drawing apparatus, handwritten character drawing method, and program for causing a computer to execute the handwritten character drawing method | |
| CN110347318A (en) | Handwriting drawing method, device, equipment and storage medium | |
| TW201423563A (en) | Apparatus and method for processing handwriting input |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20051208 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080513 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080714 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080826 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20081027 |
|
| A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20081104 |
|
| 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: 20081216 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20081217 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111226 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111226 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121226 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131226 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |