JP2015230518A - Method of correcting deviation in detection position in touch panel device, touch panel device, and program - Google Patents
Method of correcting deviation in detection position in touch panel device, touch panel device, and program Download PDFInfo
- Publication number
- JP2015230518A JP2015230518A JP2014115239A JP2014115239A JP2015230518A JP 2015230518 A JP2015230518 A JP 2015230518A JP 2014115239 A JP2014115239 A JP 2014115239A JP 2014115239 A JP2014115239 A JP 2014115239A JP 2015230518 A JP2015230518 A JP 2015230518A
- Authority
- JP
- Japan
- Prior art keywords
- correction
- touch panel
- point
- coordinates
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Position Input By Displaying (AREA)
Abstract
Description
本発明は、タッチパネル装置における検出位置のずれの補正方法、タッチパネル装置及びプログラムに関する。 The present invention relates to a detection position shift correction method, a touch panel device, and a program in a touch panel device.
従来より、タッチパネル上のタッチ入力位置と画面上の表示位置とを一致させるタッチパネル自動補正装置が知られている(例えば、特許文献1参照)。このタッチパネル自動補正装置では、タッチ入力位置と画面上の表示位置とを一致させる自動補正ができるが、カメラなどの撮影装置、加圧治具、及び加圧治具を移動させる機構などが必要であり、装置が大型になっている。 Conventionally, a touch panel automatic correction apparatus that matches a touch input position on a touch panel with a display position on a screen is known (see, for example, Patent Document 1). This touch panel automatic correction device can automatically correct the touch input position to match the display position on the screen, but it requires an imaging device such as a camera, a pressure jig, and a mechanism for moving the pressure jig. Yes, the device is large.
また、従来より、検出領域の全体のずれを調整し且つ部分的に生じた検出位置のずれを調整することができるタッチパネル装置の補正方法が知られている(例えば、特許文献2参照)。 Conventionally, there is known a correction method for a touch panel device that can adjust the displacement of the entire detection area and adjust the displacement of the detection position that partially occurs (see, for example, Patent Document 2).
上記特許文献2の補正方法では、部分的に生じた検出位置のずれを調整することができるが、操作者自身がずれの判定や補正範囲の決定を行う必要があるため、操作者に専門的な知識や技術が要求されて、操作者の負担が大きいという問題がある。
In the correction method of the above-mentioned
本発明は、操作者の負担を軽減して、部分的に生じた検出位置のずれを調整することができるタッチパネル装置における検出位置のずれの補正方法、タッチパネル装置及びプログラムを提供することにある。 It is an object of the present invention to provide a detection position deviation correction method, a touch panel apparatus, and a program in a touch panel device that can reduce a burden on an operator and adjust a partial deviation in detection position.
上記目的を達成するため、明細書に開示されたタッチパネル装置における検出位置のずれの補正方法は、タッチパネル上の複数の補正点の座標に、前記タッチパネルの操作により入力された前記複数の補正点に対応する入力座標を一致させる第1補正を実行し、前記第1補正の結果に基づいて、画像をタッチパネル上に表示し、前記画像をなぞって入力された入力座標を取得し、前記画像の座標及び前記画像をなぞって取得された入力座標に閾値以上のずれがある場合に追加補正点をタッチパネル上に設定し、前記補正点及び追加補正点の座標に、前記タッチパネルから入力された補正点及び追加補正点に対応する入力座標を一致させる第2補正を実行することを特徴とする。 In order to achieve the above object, the correction method of the displacement of the detection position in the touch panel device disclosed in the specification is applied to the coordinates of a plurality of correction points on the touch panel and the plurality of correction points input by operating the touch panel. Performing a first correction for matching corresponding input coordinates, displaying an image on a touch panel based on the result of the first correction, obtaining input coordinates by tracing the image, and coordinates of the image And an additional correction point is set on the touch panel when the input coordinates acquired by tracing the image have a deviation of a threshold value or more, and the correction point input from the touch panel and the coordinates of the correction point and the additional correction point The second correction for matching the input coordinates corresponding to the additional correction point is performed.
明細書に開示されたタッチパネル装置は、タッチパネル上の複数の補正点の座標に、前記タッチパネルの操作により入力された前記複数の補正点に対応する入力座標を一致させる第1補正を実行する第1手段と、前記第1補正の結果に基づいて、画像をタッチパネル上に表示する第2手段と、前記画像をなぞって入力された入力座標を取得する第3手段と、前記画像の座標及び前記画像をなぞって取得された入力座標に閾値以上のずれがある場合に、追加補正点をタッチパネル上に設定する第4手段と、前記補正点及び追加補正点の座標に、前記タッチパネルから入力された補正点及び追加補正点に対応する入力座標を一致させる第2補正を実行する第5手段とを備えることを特徴とする。 The touch panel device disclosed in the specification executes a first correction for matching the coordinates of a plurality of correction points on the touch panel with input coordinates corresponding to the plurality of correction points input by operating the touch panel. Means, second means for displaying an image on the touch panel based on the result of the first correction, third means for acquiring input coordinates input by tracing the image, coordinates of the image and the image When the input coordinates obtained by tracing the difference between the input coordinates and the threshold value are more than a threshold, the fourth means for setting an additional correction point on the touch panel, and the correction input from the touch panel to the coordinates of the correction point and the additional correction point And fifth means for executing a second correction for matching the input coordinates corresponding to the points and the additional correction points.
明細書に開示されたプログラムは、コンピュータを、タッチパネル上の複数の補正点の座標に、前記タッチパネルの操作により入力された前記複数の補正点に対応する入力座標を一致させる第1補正を実行する第1手段、前記第1補正の結果に基づいて、画像をタッチパネル上に表示する第2手段、前記画像をなぞって入力された入力座標を取得する第3手段、前記画像の座標及び前記画像をなぞって取得された入力座標に閾値以上のずれがある場合に、追加補正点をタッチパネル上に設定する第4手段、及び前記補正点及び追加補正点の座標に、前記タッチパネルから入力された補正点及び追加補正点に対応する入力座標を一致させる第2補正を実行する第5手段として機能させることを特徴とする。 A program disclosed in the specification executes a first correction that causes a computer to match input coordinates corresponding to a plurality of correction points input by operating the touch panel to coordinates of a plurality of correction points on a touch panel. First means, second means for displaying an image on a touch panel based on the result of the first correction, third means for acquiring input coordinates input by tracing the image, coordinates of the image and the image Fourth means for setting an additional correction point on the touch panel when the input coordinates obtained by tracing are shifted by a threshold value or more, and the correction point input from the touch panel to the coordinates of the correction point and the additional correction point And it is made to function as a 5th means which performs the 2nd correction | amendment which makes the input coordinate corresponding to an additional correction point correspond.
本発明によれば、従来よりも操作者の負担を軽減して、部分的に生じた検出位置のずれを調整することができる。 According to the present invention, it is possible to reduce the burden on the operator as compared with the prior art, and to adjust the partial displacement of the detected position.
以下、図面を参照しながら本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本実施の形態にかかるタッチパネル装置の構成図である。図1のタッチパネル装置30は、ディスプレイ50上に配置されるタッチパネル1、タッチパネルコントローラ2及びコンピュータ3を備えている。タッチパネルコントローラ2はタッチパネル1の動作を制御すると共に、タッチ位置の座標データをコンピュータ3へ送信する。コンピュータ3は、CPU(Central Processing Unit)11、RAM(Random Access Memory)12、ハードディスクドライブ(HDD)13、インターフェース(IF)14A及びビデオインターフェース(IF)14Bを備えている。IF14はタッチパネルコントローラ2と接続される。
FIG. 1 is a configuration diagram of a touch panel device according to the present embodiment. The
HDD13は、アプリケーションプログラム15、オペレーティングシステム(OS)16、及びタッチパネルドライバ17を備えている。アプリケーションプログラム15、オペレーティングシステム(OS)16、及びタッチパネルドライバ17はCPU11により適宜RAM12に読み出されて、実行される。例えば、タッチパネルドライバ17を実行するCPU11が、第1手段〜第5手段に対応する。
The
アプリケーションプログラム15は、タッチが検出される位置(以下、タッチ検出位置という)のずれを補正する補正プログラムである。OS16は、各種のデータ、後述する補正点の座標データ、及び補正プログラムで設定された、タッチ検出位置のずれを補正するための変換式のデータを保存するデータ保存領域16Aを有する。データ保存領域16Aとして、HDD13又はRAM12の記憶領域の一部が割り当てられている。タッチパネルドライバ17は、補正プログラムで実行される補正の計算処理や、座標の変換処理などを行う。
The
タッチパネル1において指又はペンで入力された情報は、タッチパネルコントローラ2を介してコンピュータ3に入力される。また、補正プログラムにおける操作者のタッチ入力を求める情報は、ビデオIF14Bを介してディスプレイ50に表示される。タッチパネル1の接触領域(操作者がタッチする領域)は、透明な部材で構成されているので、ディスプレイ50に表示される操作者のタッチ入力を求める情報は、あたかもタッチパネル1上に表示されているように見える。
Information input with a finger or a pen on the
図2(A)〜(F)は、タッチパネル1におけるタッチ検出位置のずれを説明する図である。図2(A)は、タッチパネル1の正常状態(タッチ位置にずれが生じない状態)を示す。タッチパネル1の中央には、タッチパネル1の接触領域100及び検出領域101が配置されている。接触領域100は、指又はペンが接触する領域であり、一点鎖線で示されている。検出領域101は、実際に、接触領域100に指又はペンを接触させた際に、座標位置として検出された領域であり、点線で示されている。タッチパネル1が正常であれば、接触領域100と検出領域101とは一致している。しかしながら、タッチ検出位置(検出領域101)のずれが生じている場合には、接触領域100は検出領域101と一致しなくなる。
2A to 2F are diagrams for explaining the shift of the touch detection position on the
例えば、図2(B)〜(F)は、タッチ検出位置のずれが生じている場合を示す。図2(B)では、検出領域101は接触領域100に対して上方向にずれている。図2(C)では、検出領域101は接触領域100に対して下方向にずれている。図2(D)では、検出領域101は接触領域100に対して左方向にずれている。図2(E)では、検出領域101は接触領域100に対して右方向にずれている。図2(F)では、検出領域101の一部101Aが部分的に歪み、検出領域101は接触領域100に対してずれが生じている。ここで、図2(B)〜図2(E)の場合には、検出領域101に対して全体補正を行うことにより(即ち、検出領域101を接触領域100に一致するように移動させる)、タッチ検出位置のずれを解消することができる。
For example, FIGS. 2B to 2F show a case where a touch detection position shift occurs. In FIG. 2B, the
しかしながら、図2(F)に示す場合には、検出領域101に対して全体補正を行なっただけでは、歪んでいる検出領域の一部101Aを、十分に調整することができない。即ち、全体補正を行なっただけでは、検出領域の一部101Aにおけるずれは解消されず、タッチ検出位置のずれは残ったままとなる。本実施の形態におけるタッチ検出位置のずれの補正方法は、検出領域の一部101Aのように、部分的に歪んだタッチ検出位置のずれを補正することができる。
However, in the case shown in FIG. 2F, a part of the
図3(A)及び(B)は、タッチ検出位置のずれを補正する方法を説明する図である。この補正方法は、拡縮補正という方法であるが、補正方法の一例であり、本実施形態は、この補正方法に限定されるものではない。 FIGS. 3A and 3B are diagrams for explaining a method of correcting the shift of the touch detection position. This correction method is a method called enlargement / reduction correction, but is an example of a correction method, and the present embodiment is not limited to this correction method.
拡縮補正では、画面上に設定された補正点(図3(A)の例では2点)の理論座標及び補正点に対応する入力座標から、タッチ検出位置のずれを補正するための座標の補正計算式を求める。理論座標は、アプリケーションプログラム15が予め保持している座標(即ち、コンピュータ3で管理される、補正点が設定されているタッチパネル1上の絶対値座標)であり、入力座標は、操作者がタッチパネル1を押下した際に操作位置として検出された座標である。
In the enlargement / reduction correction, the correction of coordinates for correcting the shift of the touch detection position from the theoretical coordinates of the correction points set on the screen (two points in the example of FIG. 3A) and the input coordinates corresponding to the correction points. Find the formula. The theoretical coordinates are coordinates held in advance by the application program 15 (that is, absolute value coordinates on the
まず、アプリケーションプログラム15が図3(A)に示す2つの補正点A1,A2の理論座標及び操作者のタッチにより検出された入力座標を取得し、取得した2つの補正点A1,A2の理論座標及び入力座標をデータ保存領域16Aに保持する。補正点A1,A2の理論座標はアプリケーションプログラム15が予め保持しており、補正点A1,A2の入力座標は、操作者のタッチ入力によってタッチパネル1からタッチパネルコントローラ2を介して取得される。ここでは、補正点A1の理論座標が(X1,Y1)であり、補正点A1の入力座標が(x1,y1)であるとする。また、補正点A2の理論座標が(X2,Y2)であり、補正点A2の入力座標が(x2,y2)であるとする。
First, the
タッチパネルドライバ17は、補正点A1,A2の理論座標及び入力座標に基づいて、入力座標系を理論座標系に一致させるためのX座標及びY座標の倍率(a,b)を算出する。X座標の倍率a及びY座標の倍率bは以下の式(1)及び(2)によりそれぞれ算出される。
a=(X2−X1)/(x2−x1) …(1)
b=(Y2−Y1)/(y2−y1) …(2)
The
a = (X2-X1) / (x2-x1) (1)
b = (Y2-Y1) / (y2-y1) (2)
次に、タッチパネルドライバ17は、検出領域101(つまりタッチ検出位置)が接触領域100に対して上下左右にずれている場合に対処するため、入力座標のずれ量(c,d)を以下の式(3)及び(4)により算出する。
c=x1−(X1*a) …(3)
d=y1−(Y1*b) …(4)
Next, in order to deal with the case where the detection area 101 (that is, the touch detection position) is shifted vertically and horizontally with respect to the
c = x1- (X1 * a) (3)
d = y1- (Y1 * b) (4)
以上の算出により、補正計算用の係数「a」〜「d」が算出される。タッチパネルドライバ17は、係数「a」〜「d」を使用した下記の補正計算式(5)及び(6)を作成し、係数「a」〜「d」と共に補正計算式(5)及び(6)をデータ保存領域16Aに格納する。そして、タッチパネルドライバ17が入力座標の補正計算を行う場合には、タッチパネルドライバ17は、補正計算式(5)及び(6)をデータ保存領域16Aから読み出して、入力座標の補正を行う。ここで、補正前の入力座標を(X’,Y’)とし、補正後の入力座標を(X,Y)とする。
X=aX’−c …(5)
Y=bY’−d …(6)
With the above calculation, the correction calculation coefficients “a” to “d” are calculated. The
X = aX′−c (5)
Y = bY′−d (6)
ここでは、拡縮補正の原理を説明するために、2点補正を例に挙げている。図3(B)に示す9点補正などの場合も、拡縮補正の原理は適用でき、タッチパネルドライバ17がタッチパネル1の検出領域101を4つに分けて、それぞれの領域で補正計算用の係数「a」〜「d」を算出し、補正計算式を作成することで、それぞれの領域で入力座標の補正計算を行うことができる。また、補正計算用の係数を算出するための補正点を増やすことにより、精度の高い補正係数を作成することができる。
Here, in order to explain the principle of enlargement / reduction correction, two-point correction is taken as an example. In the case of the nine-point correction shown in FIG. 3B, the principle of enlargement / reduction correction can be applied, and the
次に、タッチ検出位置のずれが補正された場合に、補正結果を表示する方法を説明する。図4(A)は、補正点の入力画面の一例を示す図である。図4(B)は、タッチ検出位置のずれが補正された場合の補正結果の一例を示す図である。図4(C)は、タッチ検出位置のずれが補正された場合の補正結果の他の例を示す図である。尚、図4(A)〜(C)では、水平方向がX軸であり、垂直方向がY軸である。 Next, a method of displaying the correction result when the shift of the touch detection position is corrected will be described. FIG. 4A is a diagram illustrating an example of a correction point input screen. FIG. 4B is a diagram illustrating an example of a correction result when the shift of the touch detection position is corrected. FIG. 4C is a diagram illustrating another example of the correction result when the shift of the touch detection position is corrected. 4A to 4C, the horizontal direction is the X axis, and the vertical direction is the Y axis.
まず、タッチ検出位置のずれを補正するために、アプリケーションプログラム15は、図4(A)に示すような、補正点B1〜B9の入力を要求するデータをビデオIF14Bを介してディスプレイ50に出力する。操作者は、タッチパネル1に表示された補正点B1〜B9に対応する位置を押下する。タッチ入力された各補正点のデータ(即ち、補正点B1〜B9に対応する入力座標)はタッチパネルコントローラ2を介してアプリケーションプログラム15に通知される。補正点B1〜B9の理論座標及び補正点B1〜B9に対応する入力座標は、データ保存領域16Aに保存される。尚、図4(A)の補正点B1〜B9は、後述する全体補正の実行前の補正点である。
First, in order to correct the displacement of the touch detection position, the
タッチパネルドライバ17は、図3(B)に示すように、タッチパネル1の検出領域を4つに分けて、それぞれの領域で補正計算用の係数を算出し、補正計算式を作成し、補正計算式及び補正点B1〜B9に対応する入力座標を用いて、補正を行う。ここでは、補正点B1〜B9の理論座標に補正点B1〜B9に対応する入力座標を一致させる補正が行われる。この補正は、第1補正又は全体補正といわれる場合がある。
As shown in FIG. 3B, the
タッチパネルドライバ17は、全体補正の完了後に、操作者が補正結果を確認できるように、図4(B)又は図4(C)に示すような補正結果確認用の線又は点をビデオIF14Bを介してディスプレイ50に出力する。補正結果確認用の線又は点は、補正点を用いた補正の効果が一番弱い部分、即ち、隣接する補正点の中間位置に表示される点又は線とする。これにより、補正結果確認用の線又は点の理論座標及び入力座標のずれの発生が検出しやすくなり、後述する部分補正が必要かどうかの判断が容易になる。
The
図4(B)は、補正結果確認用の線L1〜L4を示す。タッチパネルドライバ17は、下記の計算式(7)で補正点B4と補正点B5との中間位置のX座標を算出し、当該X座標を通過する垂直な直線を補正結果確認用の線L1とする。
線L1のX座標=(補正点B5のX座標−補正点B4のX座標)/2+(補正点B4のX座標) …(7)
FIG. 4B shows correction result confirmation lines L1 to L4. The
X coordinate of line L1 = (X coordinate of correction point B5−X coordinate of correction point B4) / 2 + (X coordinate of correction point B4) (7)
また、タッチパネルドライバ17は、下記の計算式(8)で補正点B6と補正点B5との中間位置のX座標を算出し、当該X座標を通過する垂直な直線を補正結果確認用の線L2とする。
線L2のX座標=(補正点B6のX座標−補正点B5のX座標)/2+(補正点B5のX座標) …(8)
Further, the
X coordinate of line L2 = (X coordinate of correction point B6−X coordinate of correction point B5) / 2 + (X coordinate of correction point B5) (8)
また、タッチパネルドライバ17は、下記の計算式(9)で補正点B5と補正点B2との中間位置のY座標を算出し、当該Y座標を通過する水平な直線を補正結果確認用の線L3とする。
線L3のY座標=(補正点B5のY座標−補正点B2のY座標)/2+(補正点B2のY座標) …(9)
Further, the
Y coordinate of line L3 = (Y coordinate of correction point B5−Y coordinate of correction point B2) / 2 + (Y coordinate of correction point B2) (9)
また、タッチパネルドライバ17は、下記の計算式(10)で補正点B8と補正点B5との中間位置のY座標を算出し、当該Y座標を通過する水平な直線を補正結果確認用の線L4とする。
線L4のY座標=(補正点B8のY座標−補正点B5のY座標)/2+(補正点B5のY座標) …(10)
尚、計算式(7)〜(10)の各補正点のX座標及びY座標は、補正後の座標である。
Further, the
Y coordinate of line L4 = (Y coordinate of correction point B8−Y coordinate of correction point B5) / 2 + (Y coordinate of correction point B5) (10)
The X and Y coordinates of the correction points in the calculation formulas (7) to (10) are the coordinates after correction.
図4(C)は、補正結果確認用の点C1〜C12を示す。
タッチパネルドライバ17は、下記の計算式(11)及び(12)によって点C1の座標を算出する。
点C1のX座標=(補正点B2のX座標−補正点B1のX座標)/2+(補正点B1のX座標) …(11)
点C1のY座標=補正点B2のY座標 …(12)
FIG. 4C shows points C1 to C12 for checking the correction result.
The
X coordinate of point C1 = (X coordinate of correction point B2−X coordinate of correction point B1) / 2 + (X coordinate of correction point B1) (11)
Y coordinate of point C1 = Y coordinate of correction point B2 (12)
タッチパネルドライバ17は、下記の計算式(13)及び(14)によって点C2の座標を算出する。
点C2のX座標=(補正点B3のX座標−補正点B2のX座標)/2+(補正点B2のX座標) …(13)
点C2のY座標=補正点B2のY座標 …(14)
The
X coordinate of point C2 = (X coordinate of correction point B3−X coordinate of correction point B2) / 2 + (X coordinate of correction point B2) (13)
Y coordinate of point C2 = Y coordinate of correction point B2 (14)
タッチパネルドライバ17は、下記の計算式(15)及び(16)によって点C3の座標を算出する。
点C3のX座標=補正点B4のX座標 …(15)
点C3のY座標=(補正点B4のY座標−補正点B1のY座標)/2+(補正点B1のY座標) …(16)
The
X coordinate of point C3 = X coordinate of correction point B4 (15)
Y coordinate of point C3 = (Y coordinate of correction point B4−Y coordinate of correction point B1) / 2 + (Y coordinate of correction point B1) (16)
タッチパネルドライバ17は、下記の計算式(17)及び(18)によって点C4の座標を算出する。
点C4のX座標=(補正点B5のX座標−補正点B4のX座標)/2+(補正点B4のX座標) …(17)
点C4のY座標=(補正点B5のY座標−補正点B2のY座標)/2+(補正点B2のY座標) …(18)
The
X coordinate of point C4 = (X coordinate of correction point B5−X coordinate of correction point B4) / 2 + (X coordinate of correction point B4) (17)
Y coordinate of point C4 = (Y coordinate of correction point B5−Y coordinate of correction point B2) / 2 + (Y coordinate of correction point B2) (18)
タッチパネルドライバ17は、下記の計算式(19)及び(20)によって点C5の座標を算出する。
点C5のX座標=(補正点B6のX座標−補正点B5のX座標)/2+(補正点B5のX座標) …(19)
点C5のY座標=(補正点B5のY座標−補正点B2のY座標)/2+(補正点B2のY座標) …(20)
The
X coordinate of point C5 = (X coordinate of correction point B6−X coordinate of correction point B5) / 2 + (X coordinate of correction point B5) (19)
Y coordinate of point C5 = (Y coordinate of correction point B5−Y coordinate of correction point B2) / 2 + (Y coordinate of correction point B2) (20)
タッチパネルドライバ17は、下記の計算式(21)及び(22)によって点C6の座標を算出する。
点C6のX座標=補正点B6のX座標 …(21)
点C6のY座標=(補正点B6のY座標−補正点B3のY座標)/2+(補正点B3のY座標) …(22)
The
X coordinate of point C6 = X coordinate of correction point B6 (21)
Y coordinate of point C6 = (Y coordinate of correction point B6−Y coordinate of correction point B3) / 2 + (Y coordinate of correction point B3) (22)
タッチパネルドライバ17は、下記の計算式(23)及び(24)によって点C7の座標を算出する。
点C7のX座標=補正点B4のX座標 …(23)
点C7のY座標=(補正点B7のY座標−補正点B4のY座標)/2+(補正点B4のY座標) …(24)
The
X coordinate of point C7 = X coordinate of correction point B4 (23)
Y coordinate of point C7 = (Y coordinate of correction point B7−Y coordinate of correction point B4) / 2 + (Y coordinate of correction point B4) (24)
タッチパネルドライバ17は、下記の計算式(25)及び(26)によって点C8の座標を算出する。
点C8のX座標=(補正点B5のX座標−補正点B4のX座標)/2+(補正点B4のX座標) …(25)
点C8のY座標=(補正点B8のY座標−補正点B5のY座標)/2+(補正点B5のY座標) …(26)
The
X coordinate of point C8 = (X coordinate of correction point B5−X coordinate of correction point B4) / 2 + (X coordinate of correction point B4) (25)
Y coordinate of point C8 = (Y coordinate of correction point B8−Y coordinate of correction point B5) / 2 + (Y coordinate of correction point B5) (26)
タッチパネルドライバ17は、下記の計算式(27)及び(28)によって点C9の座標を算出する。
点C9のX座標=(補正点B6のX座標−補正点B5のX座標)/2+(補正点B5のX座標) …(27)
点C9のY座標=(補正点B8のY座標−補正点B5のY座標)/2+(補正点B5のY座標) …(28)
The
X coordinate of point C9 = (X coordinate of correction point B6−X coordinate of correction point B5) / 2 + (X coordinate of correction point B5) (27)
Y coordinate of point C9 = (Y coordinate of correction point B8−Y coordinate of correction point B5) / 2 + (Y coordinate of correction point B5) (28)
タッチパネルドライバ17は、下記の計算式(29)及び(30)によって点C10の座標を算出する。
点C10のX座標=補正点B6のX座標 …(29)
点C10のY座標=(補正点B9のY座標−補正点B6のY座標)/2+(補正点B6のY座標) …(30)
The
X coordinate of point C10 = X coordinate of correction point B6 (29)
Y coordinate of point C10 = (Y coordinate of correction point B9−Y coordinate of correction point B6) / 2 + (Y coordinate of correction point B6) (30)
タッチパネルドライバ17は、下記の計算式(31)及び(32)によって点C11の座標を算出する。
点C11のX座標=(補正点B8のX座標−補正点B7のX座標)/2+(補正点B7のX座標) …(31)
点C11のY座標=補正点B8のY座標 …(32)
The
X coordinate of point C11 = (X coordinate of correction point B8−X coordinate of correction point B7) / 2 + (X coordinate of correction point B7) (31)
Y coordinate of point C11 = Y coordinate of correction point B8 (32)
タッチパネルドライバ17は、下記の計算式(33)及び(34)によって点C12の座標を算出する。
点C12のX座標=(補正点B9のX座標−補正点B8のX座標)/2+(補正点B8のX座標) …(33)
点C12のY座標=補正点B8のY座標 …(34)
尚、計算式(11)〜(34)の各補正点のX座標及びY座標は、全体補正による補正後の座標である。
The
X coordinate of point C12 = (X coordinate of correction point B9−X coordinate of correction point B8) / 2 + (X coordinate of correction point B8) (33)
Y coordinate of point C12 = Y coordinate of correction point B8 (34)
In addition, the X coordinate and Y coordinate of each correction point in the calculation formulas (11) to (34) are coordinates after correction by the overall correction.
次に、タッチパネルドライバ17が(第2補正に相当する)部分補正に必要な追加補正点をディスプレイ50に表示させる方法を説明する。図5(A)は、追加補正点が必要か否かを判定するために設定される領域を示す図である。図5(B)は、補正結果確認用の線をなぞることによってタッチパネルドライバ17に入力された線を示す図である。図5(C)は、補正結果確認用の点をなぞることによってタッチパネルドライバ17に入力された点を示す図である。図5(D)は、ディスプレイ50に表示される追加補正点の例を示す図である。図5(E)は、ディスプレイ50に表示される追加補正点の他の例を示す図である。尚、図5(A)、図5(D)及び図5(E)の補正点B1〜B9は、全体補正を実行した後の補正点であり、全体補正により図4(A)の補正点B1〜B9のそれぞれを同一方向に一定量だけ移動している点を示す。
Next, a method in which the
まず、図5(A)に示すように、タッチパネルドライバ17は、追加補正点が必要か否かを判定するために、補正点B2及び補正点B8を結ぶ直線と、補正点B4及び補正点B6を結ぶ直線とによって、タッチパネル1の検出領域を4つに分割し、分割された領域を追加補正点の要否判別用の領域として設定する。
First, as shown in FIG. 5A, the
次に、図5(B)に示すように、操作者が、図4(B)の補正結果確認用の線をなぞることによってタッチ入力された座標がタッチパネルドライバ17に入力される。図5(B)では、細い点線が図4(B)の補正結果確認用の線を示し、太い点線が図4(B)の補正結果確認用の線をなぞることによってタッチパネルドライバ17に入力された入力座標の軌跡を示す線を示す。図5(B)では、補正結果確認用の線をなぞることによってタッチパネルドライバ17に入力された入力座標の軌跡を示す線が補正結果確認用の線とともに示されているが、入力座標の軌跡を示す線はディスプレイ50に表示されてもよいし、又は表示されなくてもよい。補正結果確認用の線をなぞることによって入力座標の軌跡を示す線をディスプレイ50に表示する場合には、操作者がずれを確認することができる。尚、補正結果確認用の線をなぞることによってタッチパネルドライバ17に入力された線をディスプレイ50に表示するか否かは、操作者がタッチパネルドライバ17で設定できる。
Next, as shown in FIG. 5B, the touch input coordinates are input to the
また、図5(C)に示すように、操作者が、図4(C)の補正結果確認用の点をなぞる(タッチする)ことによって、タッチ入力の座標がタッチパネルドライバ17に入力されてもよい。図5(C)では、小さい円が図4(C)の補正結果確認用の点を示し、大きい円が図4(C)の補正結果確認用の点をなぞることによってタッチパネルドライバ17に入力された入力座標に対応する点を示す。図5(C)では、図4(C)の補正結果確認用の点をなぞることによってタッチパネルドライバ17に入力された入力座標に対応する点が補正結果確認用の点とともに示されているが、入力座標に対応する点はディスプレイ50に表示されてもよいし、又は表示されなくてもよい。補正結果確認用の点をなぞることによってタッチパネルドライバ17に入力された点をディスプレイ50に表示する場合には、操作者がずれを確認することができる。尚、補正結果確認用の点をなぞることによってタッチパネルドライバ17に入力された点をディスプレイ50に表示するか否かは、操作者がタッチパネルドライバ17で設定できる。
Further, as shown in FIG. 5C, even if the operator inputs the touch input coordinates to the
タッチパネルドライバ17は、補正結果確認用の線又は点をなぞることによって入力された座標を補正結果確認用の線又は点の座標と比較することによって、閾値以上のずれが発生しているか否かを判別する。尚、ずれを検出するための閾値は、タッチパネルドライバ17を編集することで任意の値に設定することができる。閾値以上のずれが発生していない場合には、部分補正は必要ないので、タッチパネルドライバ17は追加補正点をディスプレイ50に表示させることなく、処理を終了する。
The
閾値以上のずれが発生している場合には、部分補正が必要であるので、タッチパネルドライバ17は、ずれが発生している追加補正点の要否判別用の領域を特定する。例えば、図5(B),(C)では、タッチパネルドライバ17は、領域4にずれが発生していることが分かるので、図5(D)に示すように、タッチパネルドライバ17は、領域4に追加補正点D1〜D5を設定し、追加補正点D1〜D5をディスプレイ50に表示させる。
If a deviation equal to or greater than the threshold value has occurred, partial correction is necessary, and the
タッチパネルドライバ17は、追加補正点D1を補正点B5及びB6の中間に設定し、追加補正点D2を補正点B5及びB8の中間に設定し、追加補正点D3を補正点B5及びB9の中間に設定し、追加補正点D4を補正点B6及びB9の中間に設定し、追加補正点D5を補正点B8及びB9の中間に設定する。このように、追加補正点を隣接する補正点の中間に設定するので、タッチパネルドライバ17は、補正点の座標の平均値を算出することで追加補正点の座標を自動的に算出することができる。
The
また、タッチパネルドライバ17は、追加補正点D1〜D5及び補正点B5,B6,B8及びB9を用いて、領域4をさらに4分割することで、図3(A),(B)で説明したタッチ検出位置のずれを補正する方法を実行することができる。つまり、タッチパネルドライバ17は、領域4に含まれる補正点及び追加補正点がタッチパネル1の検出領域全体に対する補正で使用する9つの補正点と同一の配置関係になり且つ同一の個数になるように、5つの追加補正点を領域4に設定するので、全体補正と同様の方法(つまり同一の方式)で領域4に対する部分補正を実行することができる。尚、上記同一の配置関係とは、領域4を拡大したときに、領域4に含まれる4つ補正点及び5つの追加補正点がタッチパネル1の全体補正で使用する9つの補正点と重なることを意味する。
In addition, the
図5(D)では、タッチパネルドライバ17は、領域4に追加補正点D1〜D5を設定し、追加補正点D1〜D5をディスプレイ50に表示させたが、図5(E)に示すように、タッチパネルドライバ17は、領域4に追加補正点D3のみを設定し、追加補正点D3をディスプレイ50に表示させてもよい。上述したように2点あれば拡縮補正が実行できるので、追加補正点が1つでも部分補正を実行できる。この場合、タッチパネルドライバ17は、領域4を4分割し、補正点B5と追加補正点D3の組み合わせ、補正点B6と追加補正点D3の組み合わせ、補正点B8と追加補正点D3の組み合わせ、及び補正点B9と追加補正点D3の組み合わせのそれぞれで部分補正(拡縮補正)を実行する。
In FIG. 5D, the
図6は、タッチパネル装置30で実行される処理を示すフローチャートである。
FIG. 6 is a flowchart illustrating processing executed by the
まず、アプリケーションプログラム15は、図4(A)に示すような、補正点B1〜B9の入力を要求するデータを、ビデオIF14Bを介してディスプレイ50に表示する(ステップS1)。これにより、操作者は、タッチパネル1に表示された補正点B1〜B9に対応する位置を押下する。補正点B1〜B9の理論座標は、データ保存領域16Aに保存されている。
First, the
タッチパネルドライバ17は、タッチ入力されたデータ(即ち、補正点B1〜B9に対応する入力座標)を取得し(ステップS2)、補正点B1〜B9の理論座標に補正点B1〜B9に対応する入力座標を一致させる全体補正を行う(ステップS3)。ここでは、タッチパネル1の検出領域全体をディスプレイ50の画面に位置合わせする補正が行われている。
The
ついで、タッチパネルドライバ17は、全体補正の完了後に、補正結果確認用の線又は点をビデオIF14Bを介してディスプレイ50に表示する(ステップS4)。タッチパネルドライバ17は、補正点B2及び補正点B8を結ぶ直線と、補正点B4及び補正点B6を結ぶ直線とによって、タッチパネル1の検出領域を4つに分割し、分割された領域を追加補正点の要否判別用の領域として設定する(ステップS5)。タッチパネルドライバ17は、操作者が補正結果確認用の線又は点をなぞることによって入力された線又は点の座標を取得する(ステップS6)。
Next, the
タッチパネルドライバ17は、補正結果確認用の線又は点をなぞることによって入力された座標を補正結果確認用の線又は点の理論座標と比較することによって、両座標に閾値以上のずれが発生しているか否かを判別する(ステップS7)。入力座標と理論座標との間に閾値以上のずれが発生していない場合には(ステップS7でNO)、本処理を終了する。閾値以上のずれが発生している場合には(ステップS7でYES)、タッチパネルドライバ17は、閾値以上の座標のずれが発生している追加補正点の要否判別用の領域を特定する(ステップS8)。
The
タッチパネルドライバ17は、特定された追加補正点の要否判別用の領域に追加補正点を設定し、ディスプレイ50に表示する(ステップS9)。その後、操作者が、追加補正点を押下する。これによって、追加補正点の入力座標が取得される。タッチパネルドライバ17は、特定された追加補正点の要否判別用の領域に含まれる補正点及び追加補正点の理論座標に、当該領域に含まれる補正点の入力座標(上記全体補正時に既に入力済み)及び追加補正点の入力座標を一致させる部分補正を行い(ステップS10)、本処理を終了する。
The
以上説明したように、本実施の形態によれば、タッチパネルドライバ17は、予め保持されたタッチパネル1上の複数の補正点の理論座標に、タッチパネル1から入力された複数の補正点に対応する入力座標を一致させる全体補正を実行し(ステップS3)、全体補正の結果確認用の線又は点を表示し(ステップS4)、全体補正の結果確認用の線又は点をなぞって入力された入力座標を取得する(ステップS6)。さらに、タッチパネルドライバ17は、全体補正の結果確認用の線又は点の理論座標及びステップS6で取得された入力座標に閾値以上のずれがある場合に(ステップS7でYES)、ずれを含む領域に追加補正点を設定し(ステップS9)、ずれを含む領域に含まれる補正点及び追加補正点の理論座標に、タッチパネル1から入力された、当該補正点及び追加補正点に対応する入力座標を一致させる部分補正を実行する(ステップS10)。
As described above, according to the present embodiment, the
このように、タッチパネルドライバ17がずれの判定を行い、ずれを含む領域に追加補正点を設定して、部分補正を実行するので、従来のように、操作者自身がずれの判定や補正範囲の決定を行う必要がなくなる。従って、操作者の負担を軽減して、部分的に生じた検出位置のずれを調整することができる。
As described above, the
タッチパネル装置30の機能を実現するためのソフトウェアのプログラムを、コンピュータ3に供給し、CPU11が当該プログラムを読み出し実行することによっても、上記実施の形態と同様の効果を奏する。
The same effect as that of the above-described embodiment can also be obtained by supplying a software program for realizing the functions of the
尚、本発明は、上述した実施の形態に限定されるものではなく、その要旨を逸脱しない範囲内で種々変形して実施することが可能である。 The present invention is not limited to the above-described embodiment, and can be implemented with various modifications within a range not departing from the gist thereof.
1 タッチパネル
2 タッチパネルコントローラ
3 コンピュータ
11 CPU
12 RAM
13 ハードディスクドライブ(HDD)
14A インターフェース(IF)
14B ビデオインターフェース(IF)
15 アプリケーションプログラム
16 オペレーティングシステム(OS)
17 タッチパネルドライバ
30 タッチパネル装置
50 ディスプレイ
1
12 RAM
13 Hard disk drive (HDD)
14A interface (IF)
14B video interface (IF)
15
17
Claims (8)
前記第1補正の結果に基づいて、画像をタッチパネル上に表示し、
前記画像をなぞって入力された入力座標を取得し、
前記画像の座標及び前記画像をなぞって取得された入力座標に閾値以上のずれがある場合に追加補正点をタッチパネル上に設定し、
前記補正点及び追加補正点の座標に、前記タッチパネルから入力された補正点及び追加補正点に対応する入力座標を一致させる第2補正を実行する
ことを特徴とするタッチパネル装置における検出位置のずれの補正方法。 Performing a first correction to match the coordinates of a plurality of correction points on the touch panel with the input coordinates corresponding to the plurality of correction points input by operating the touch panel;
Based on the result of the first correction, an image is displayed on the touch panel,
Obtain the input coordinates entered by tracing the image,
If there is a deviation of a threshold value or more between the coordinates of the image and the input coordinates obtained by tracing the image, an additional correction point is set on the touch panel,
A second correction is executed to match the coordinates of the correction point and the additional correction point with the input coordinates corresponding to the correction point input from the touch panel and the additional correction point. Correction method.
前記画像の座標及び前記画像をなぞって取得された入力座標に閾値以上のずれがある場合、複数に分割された前記タッチパネルの押下を検出する検出領域から前記ずれを含む領域を特定し、
前記特定された領域に前記追加補正点を設定することを特徴とする請求項1乃至5のいずれか1項に記載のタッチパネル装置における検出位置のずれの補正方法。 Dividing the detection area for detecting pressing of the touch panel into a plurality of areas,
When there is a shift greater than or equal to a threshold in the coordinates of the image and the input coordinates obtained by tracing the image, an area including the shift is specified from a detection area that detects pressing of the touch panel divided into a plurality of parts,
6. The correction method of the detection position shift in the touch panel device according to claim 1, wherein the additional correction point is set in the specified region.
前記第1補正の結果に基づいて、画像をタッチパネル上に表示する第2手段と、
前記画像をなぞって入力された入力座標を取得する第3手段と、
前記画像の座標及び前記画像をなぞって取得された入力座標に閾値以上のずれがある場合に、追加補正点をタッチパネル上に設定する第4手段と、
前記補正点及び追加補正点の座標に、前記タッチパネルから入力された補正点及び追加補正点に対応する入力座標を一致させる第2補正を実行する第5手段と
を備えることを特徴とするタッチパネル装置。 First means for executing a first correction to match the coordinates of a plurality of correction points on the touch panel with input coordinates corresponding to the plurality of correction points input by operating the touch panel;
A second means for displaying an image on the touch panel based on the result of the first correction;
Third means for acquiring input coordinates input by tracing the image;
A fourth means for setting an additional correction point on the touch panel when the coordinates of the image and the input coordinates obtained by tracing the image have a shift greater than or equal to a threshold value;
And a fifth means for performing a second correction for matching the coordinates of the correction point and the additional correction point with the input coordinates corresponding to the correction point and the additional correction point input from the touch panel. .
タッチパネル上の複数の補正点の座標に、前記タッチパネルの操作により入力された前記複数の補正点に対応する入力座標を一致させる第1補正を実行する第1手段、
前記第1補正の結果に基づいて、画像をタッチパネル上に表示する第2手段、
前記画像をなぞって入力された入力座標を取得する第3手段、
前記画像の座標及び前記画像をなぞって取得された入力座標に閾値以上のずれがある場合に、追加補正点をタッチパネル上に設定する第4手段、及び
前記補正点及び追加補正点の座標に、前記タッチパネルから入力された補正点及び追加補正点に対応する入力座標を一致させる第2補正を実行する第5手段
として機能させることを特徴とするプログラム。 Computer
First means for executing a first correction for matching the coordinates of a plurality of correction points on the touch panel with the input coordinates corresponding to the plurality of correction points input by operating the touch panel;
A second means for displaying an image on the touch panel based on the result of the first correction;
A third means for acquiring input coordinates input by tracing the image;
The fourth means for setting an additional correction point on the touch panel when the coordinates of the image and the input coordinates obtained by tracing the image have a shift equal to or greater than a threshold, and the coordinates of the correction point and the additional correction point, A program which functions as a fifth means for executing a second correction for matching input coordinates corresponding to a correction point and an additional correction point input from the touch panel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014115239A JP2015230518A (en) | 2014-06-03 | 2014-06-03 | Method of correcting deviation in detection position in touch panel device, touch panel device, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014115239A JP2015230518A (en) | 2014-06-03 | 2014-06-03 | Method of correcting deviation in detection position in touch panel device, touch panel device, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2015230518A true JP2015230518A (en) | 2015-12-21 |
Family
ID=54887282
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014115239A Pending JP2015230518A (en) | 2014-06-03 | 2014-06-03 | Method of correcting deviation in detection position in touch panel device, touch panel device, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2015230518A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111142762A (en) * | 2018-11-05 | 2020-05-12 | 上海博泰悦臻电子设备制造有限公司 | Vehicle, vehicle machine equipment and touch operation intelligent correction method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0895698A (en) * | 1994-09-26 | 1996-04-12 | Matsushita Electric Ind Co Ltd | Correction and control system for position of resistance film tablet |
US20090046079A1 (en) * | 2007-08-15 | 2009-02-19 | International Business Machines Corporation | Correcting Coordinates on Touch Panel to True Display Coordinates |
US20090109195A1 (en) * | 2007-10-26 | 2009-04-30 | Kent Joel C | Method and apparatus for laplace constrained touchscreen calibration |
JP2011034485A (en) * | 2009-08-05 | 2011-02-17 | Seiko Epson Corp | Information terminal apparatus |
US20120287087A1 (en) * | 2010-02-02 | 2012-11-15 | Zte Corporation | Touch screen calibration parameter obtaining method and device |
JP2013137709A (en) * | 2011-12-28 | 2013-07-11 | Canon Inc | Calibration device, method of controlling the same, and program |
-
2014
- 2014-06-03 JP JP2014115239A patent/JP2015230518A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0895698A (en) * | 1994-09-26 | 1996-04-12 | Matsushita Electric Ind Co Ltd | Correction and control system for position of resistance film tablet |
US20090046079A1 (en) * | 2007-08-15 | 2009-02-19 | International Business Machines Corporation | Correcting Coordinates on Touch Panel to True Display Coordinates |
JP2009048277A (en) * | 2007-08-15 | 2009-03-05 | Internatl Business Mach Corp <Ibm> | Method for correcting coordinate on touch panel to true display coordinate |
US20090109195A1 (en) * | 2007-10-26 | 2009-04-30 | Kent Joel C | Method and apparatus for laplace constrained touchscreen calibration |
JP2011034485A (en) * | 2009-08-05 | 2011-02-17 | Seiko Epson Corp | Information terminal apparatus |
US20120287087A1 (en) * | 2010-02-02 | 2012-11-15 | Zte Corporation | Touch screen calibration parameter obtaining method and device |
JP2013137709A (en) * | 2011-12-28 | 2013-07-11 | Canon Inc | Calibration device, method of controlling the same, and program |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111142762A (en) * | 2018-11-05 | 2020-05-12 | 上海博泰悦臻电子设备制造有限公司 | Vehicle, vehicle machine equipment and touch operation intelligent correction method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI402793B (en) | Calibrating apparatus and method for image processing apparatus | |
JP6847576B2 (en) | Touch screen display device and its driving method | |
US10761721B2 (en) | Systems and methods for interactive image caricaturing by an electronic device | |
JP2007207056A (en) | Information input system | |
JP2015230518A (en) | Method of correcting deviation in detection position in touch panel device, touch panel device, and program | |
US9507440B2 (en) | Apparatus and method to detect coordinates in a pen-based display device | |
JP4811177B2 (en) | Graph display device and graph display processing program | |
WO2014132472A1 (en) | Control apparatus | |
JP6470431B2 (en) | Generating object geometry | |
JP2008299490A (en) | Input device | |
JP7020225B2 (en) | Information processing equipment, information processing methods and information processing programs | |
JP2020102002A (en) | Compensation device, display system, compensation method, and program | |
US10310668B2 (en) | Touch screen display system and a method for controlling a touch screen display system | |
JP2017102857A (en) | Touch panel input device | |
JP2006085410A (en) | Electronic board system | |
JP5955002B2 (en) | Correction method for touch panel device and touch panel device | |
US20220100359A1 (en) | Information processing apparatus and non-transitory computer readable medium | |
JP2020091795A (en) | Information processing apparatus, control program, and control method | |
TWI566128B (en) | Virtual control device | |
KR100988481B1 (en) | Input method and apparatus for mode transformed image | |
JP6217467B2 (en) | Program and character input device for character input system | |
JP2005057509A (en) | Projector | |
JP2014157399A (en) | Information processing device, information processing method, and program | |
JP2011170437A (en) | Touch panel input device, and input position adjustment method and program therefor | |
JP2014035637A (en) | Electronic apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170403 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180122 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180206 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180409 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20180424 |