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 PDF

Info

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
Application number
JP2014115239A
Other languages
Japanese (ja)
Inventor
敏彦 坂井
Toshihiko Sakai
敏彦 坂井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Component Ltd
Original Assignee
Fujitsu Component Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Component Ltd filed Critical Fujitsu Component Ltd
Priority to JP2014115239A priority Critical patent/JP2015230518A/en
Publication of JP2015230518A publication Critical patent/JP2015230518A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method of correcting a deviation of a detection position for a touch panel device, a touch panel device, and a program capable of alleviating operator's burden and adjusting a partially-occurring deviation of the detection position.SOLUTION: A method of correcting a deviation of a detection position for a touch panel device executes an overall correction (S3); displays a line or a point for confirming a result of the overall correction (S4); acquires input coordinates input to trace the line or the point (S6); and sets an additional correction point in an area including the deviation (S9) and executes partial correction (S10) if there is a deviation equal to or higher than a threshold between theoretical coordinates of the line or the point for confirming the result of the overall correction and the acquired input coordinates deviate.

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).

特開2006−4089号公報JP 2006-4089 A

特開2013−152649号公報JP 2013-152649 A

上記特許文献2の補正方法では、部分的に生じた検出位置のずれを調整することができるが、操作者自身がずれの判定や補正範囲の決定を行う必要があるため、操作者に専門的な知識や技術が要求されて、操作者の負担が大きいという問題がある。   In the correction method of the above-mentioned patent document 2, it is possible to adjust the deviation of the detection position that partially occurs, but it is necessary for the operator himself to determine the deviation and determine the correction range. There is a problem that a lot of burden is placed on the operator because of the need for knowledge and skills.

本発明は、操作者の負担を軽減して、部分的に生じた検出位置のずれを調整することができるタッチパネル装置における検出位置のずれの補正方法、タッチパネル装置及びプログラムを提供することにある。   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.

図1は、本実施の形態にかかるタッチパネル装置の構成図である。FIG. 1 is a configuration diagram of a touch panel device according to the present embodiment. (A)〜(F)は、タッチパネルにおけるタッチ検出位置のずれを説明する図である。(A)-(F) is a figure explaining the shift | offset | difference of the touch detection position in a touch panel. (A)及び(B)は、タッチ検出位置のずれを補正する方法を説明する図である。(A) And (B) is a figure explaining the method of correct | amending the shift | offset | difference of a touch detection position. (A)は、補正点の入力画面の一例を示す図である。(B)は、タッチ検出位置のずれが補正された場合の補正結果の一例を示す図である。(C)は、タッチ検出位置のずれが補正された場合の補正結果の他の例を示す図である。(A) is a figure which shows an example of the input screen of a correction point. (B) is a figure which shows an example of the correction result when the shift | offset | difference of a touch detection position is correct | amended. (C) is a figure which shows the other example of the correction result when the shift | offset | difference of a touch detection position is correct | amended. (A)は、追加補正点が必要か否かを判定するために設定される領域を示す図である。(B)は、補正結果確認用の線をなぞることによってタッチパネルドライバに入力された線を示す図である。(C)は、補正結果確認用の点をなぞることによってタッチパネルドライバに入力された点を示す図である。(D)は、ディスプレイに表示される追加補正点の例を示す図である。(E)は、ディスプレイに表示される追加補正点の他の例を示す図である。(A) is a figure which shows the area | region set in order to determine whether an additional correction point is required. (B) is a figure which shows the line input into the touchscreen driver by tracing the line for a correction result confirmation. (C) is a figure which shows the point input into the touch panel driver by tracing the point for a correction result confirmation. (D) is a figure which shows the example of the additional correction point displayed on a display. (E) is a figure showing other examples of an additional correction point displayed on a display. タッチパネル装置で実行される処理を示すフローチャートである。It is a flowchart which shows the process performed with a touchscreen apparatus.

以下、図面を参照しながら本発明の実施の形態を説明する。   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 touch panel device 30 of FIG. 1 includes a touch panel 1, a touch panel controller 2, and a computer 3 that are arranged on a display 50. The touch panel controller 2 controls the operation of the touch panel 1 and transmits coordinate data of the touch position to the computer 3. The computer 3 includes a CPU (Central Processing Unit) 11, a RAM (Random Access Memory) 12, a hard disk drive (HDD) 13, an interface (IF) 14A, and a video interface (IF) 14B. The IF 14 is connected to the touch panel controller 2.

HDD13は、アプリケーションプログラム15、オペレーティングシステム(OS)16、及びタッチパネルドライバ17を備えている。アプリケーションプログラム15、オペレーティングシステム(OS)16、及びタッチパネルドライバ17はCPU11により適宜RAM12に読み出されて、実行される。例えば、タッチパネルドライバ17を実行するCPU11が、第1手段〜第5手段に対応する。   The HDD 13 includes an application program 15, an operating system (OS) 16, and a touch panel driver 17. The application program 15, the operating system (OS) 16, and the touch panel driver 17 are appropriately read by the CPU 11 into the RAM 12 and executed. For example, the CPU 11 that executes the touch panel driver 17 corresponds to first to fifth means.

アプリケーションプログラム15は、タッチが検出される位置(以下、タッチ検出位置という)のずれを補正する補正プログラムである。OS16は、各種のデータ、後述する補正点の座標データ、及び補正プログラムで設定された、タッチ検出位置のずれを補正するための変換式のデータを保存するデータ保存領域16Aを有する。データ保存領域16Aとして、HDD13又はRAM12の記憶領域の一部が割り当てられている。タッチパネルドライバ17は、補正プログラムで実行される補正の計算処理や、座標の変換処理などを行う。   The application program 15 is a correction program for correcting a shift in a position where a touch is detected (hereinafter referred to as a touch detection position). The OS 16 has a data storage area 16A for storing various data, coordinate data of correction points to be described later, and conversion formula data for correcting the shift of the touch detection position set by the correction program. A part of the storage area of the HDD 13 or RAM 12 is allocated as the data storage area 16A. The touch panel driver 17 performs correction calculation processing and coordinate conversion processing executed by the correction program.

タッチパネル1において指又はペンで入力された情報は、タッチパネルコントローラ2を介してコンピュータ3に入力される。また、補正プログラムにおける操作者のタッチ入力を求める情報は、ビデオIF14Bを介してディスプレイ50に表示される。タッチパネル1の接触領域(操作者がタッチする領域)は、透明な部材で構成されているので、ディスプレイ50に表示される操作者のタッチ入力を求める情報は、あたかもタッチパネル1上に表示されているように見える。   Information input with a finger or a pen on the touch panel 1 is input to the computer 3 via the touch panel controller 2. Further, information for requesting the operator's touch input in the correction program is displayed on the display 50 via the video IF 14B. Since the contact area (area where the operator touches) of the touch panel 1 is made of a transparent member, information for requesting the operator's touch input displayed on the display 50 is displayed on the touch panel 1. looks like.

図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 touch panel 1. FIG. 2A shows a normal state of the touch panel 1 (a state in which no deviation occurs in the touch position). In the center of the touch panel 1, a contact area 100 and a detection area 101 of the touch panel 1 are arranged. The contact area 100 is an area where a finger or a pen comes into contact, and is indicated by a one-dot chain line. The detection area 101 is an area detected as a coordinate position when the finger or pen is actually brought into contact with the contact area 100, and is indicated by a dotted line. If the touch panel 1 is normal, the contact area 100 and the detection area 101 coincide. However, when the touch detection position (detection region 101) is shifted, the contact region 100 does not coincide with the detection region 101.

例えば、図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 detection area 101 is shifted upward with respect to the contact area 100. In FIG. 2C, the detection area 101 is shifted downward with respect to the contact area 100. In FIG. 2D, the detection area 101 is shifted leftward with respect to the contact area 100. In FIG. 2E, the detection area 101 is shifted to the right with respect to the contact area 100. In FIG. 2F, a part 101 </ b> A of the detection area 101 is partially distorted, and the detection area 101 is displaced from the contact area 100. Here, in the case of FIG. 2B to FIG. 2E, by performing overall correction on the detection area 101 (that is, the detection area 101 is moved so as to coincide with the contact area 100), The shift in the touch detection position can be eliminated.

しかしながら、図2(F)に示す場合には、検出領域101に対して全体補正を行なっただけでは、歪んでいる検出領域の一部101Aを、十分に調整することができない。即ち、全体補正を行なっただけでは、検出領域の一部101Aにおけるずれは解消されず、タッチ検出位置のずれは残ったままとなる。本実施の形態におけるタッチ検出位置のずれの補正方法は、検出領域の一部101Aのように、部分的に歪んだタッチ検出位置のずれを補正することができる。   However, in the case shown in FIG. 2F, a part of the detection area 101A that is distorted cannot be sufficiently adjusted only by performing overall correction on the detection area 101. That is, only by performing the overall correction, the shift in the part 101A of the detection area is not eliminated, and the shift in the touch detection position remains. The touch detection position shift correction method according to the present embodiment can correct a partially distorted touch detection position shift like the part 101A of the detection region.

図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 touch panel 1 on which correction points are set, which are managed by the computer 3), and the input coordinates are touched by the operator. The coordinates detected as the operation position when 1 is pressed.

まず、アプリケーションプログラム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 application program 15 acquires the theoretical coordinates of the two correction points A1 and A2 shown in FIG. 3A and the input coordinates detected by the operator's touch, and the theoretical coordinates of the acquired two correction points A1 and A2. The input coordinates are held in the data storage area 16A. The theoretical coordinates of the correction points A1 and A2 are held in advance by the application program 15, and the input coordinates of the correction points A1 and A2 are acquired from the touch panel 1 via the touch panel controller 2 by an operator's touch input. Here, it is assumed that the theoretical coordinates of the correction point A1 are (X1, Y1) and the input coordinates of the correction point A1 are (x1, y1). Further, it is assumed that the theoretical coordinates of the correction point A2 are (X2, Y2) and the input coordinates of the correction point A2 are (x2, y2).

タッチパネルドライバ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 touch panel driver 17 calculates the magnification (a, b) of the X coordinate and the Y coordinate for making the input coordinate system coincide with the theoretical coordinate system based on the theoretical coordinates and the input coordinates of the correction points A1 and A2. The X-coordinate magnification a and the Y-coordinate magnification b are calculated by the following equations (1) and (2), respectively.
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 contact area 100, the touch panel driver 17 sets the shift amount (c, d) of the input coordinates as follows: Calculated according to (3) and (4).
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 touch panel driver 17 creates the following correction calculation formulas (5) and (6) using the coefficients “a” to “d”, and the correction calculation formulas (5) and (6) together with the coefficients “a” to “d”. ) Is stored in the data storage area 16A. When the touch panel driver 17 performs correction calculation of input coordinates, the touch panel driver 17 reads the correction calculation formulas (5) and (6) from the data storage area 16A and corrects the input coordinates. Here, the input coordinates before correction are (X ′, Y ′), and the input coordinates after correction are (X, Y).
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 touch panel driver 17 divides the detection area 101 of the touch panel 1 into four, and the correction calculation coefficient “ By calculating “a” to “d” and creating a correction calculation formula, correction correction of input coordinates can be performed in each region. Further, by increasing the correction points for calculating the correction calculation coefficient, it is possible to create a highly accurate correction coefficient.

次に、タッチ検出位置のずれが補正された場合に、補正結果を表示する方法を説明する。図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 application program 15 outputs data requesting input of correction points B1 to B9 to the display 50 via the video IF 14B as shown in FIG. . The operator presses a position corresponding to the correction points B1 to B9 displayed on the touch panel 1. Data of each correction point input by touching (that is, input coordinates corresponding to the correction points B1 to B9) is notified to the application program 15 via the touch panel controller 2. The theoretical coordinates of the correction points B1 to B9 and the input coordinates corresponding to the correction points B1 to B9 are stored in the data storage area 16A. Note that the correction points B1 to B9 in FIG. 4A are correction points before execution of the overall correction described later.

タッチパネルドライバ17は、図3(B)に示すように、タッチパネル1の検出領域を4つに分けて、それぞれの領域で補正計算用の係数を算出し、補正計算式を作成し、補正計算式及び補正点B1〜B9に対応する入力座標を用いて、補正を行う。ここでは、補正点B1〜B9の理論座標に補正点B1〜B9に対応する入力座標を一致させる補正が行われる。この補正は、第1補正又は全体補正といわれる場合がある。   As shown in FIG. 3B, the touch panel driver 17 divides the detection area of the touch panel 1 into four areas, calculates correction calculation coefficients in each area, creates a correction calculation formula, and calculates the correction calculation formula. Correction is performed using input coordinates corresponding to the correction points B1 to B9. Here, the correction is performed so that the input coordinates corresponding to the correction points B1 to B9 coincide with the theoretical coordinates of the correction points B1 to B9. This correction may be referred to as a first correction or an overall correction.

タッチパネルドライバ17は、全体補正の完了後に、操作者が補正結果を確認できるように、図4(B)又は図4(C)に示すような補正結果確認用の線又は点をビデオIF14Bを介してディスプレイ50に出力する。補正結果確認用の線又は点は、補正点を用いた補正の効果が一番弱い部分、即ち、隣接する補正点の中間位置に表示される点又は線とする。これにより、補正結果確認用の線又は点の理論座標及び入力座標のずれの発生が検出しやすくなり、後述する部分補正が必要かどうかの判断が容易になる。   The touch panel driver 17 provides a correction result confirmation line or point as shown in FIG. 4B or FIG. 4C via the video IF 14B so that the operator can confirm the correction result after completion of the overall correction. Output to the display 50. The line or point for confirming the correction result is a point or line displayed at a portion where the effect of the correction using the correction point is the weakest, that is, an intermediate position between adjacent correction points. This makes it easier to detect the deviation of the theoretical coordinates and input coordinates of the correction result confirmation line or point, and makes it easy to determine whether partial correction described later is necessary.

図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 touch panel driver 17 calculates the X coordinate of the intermediate position between the correction point B4 and the correction point B5 by the following calculation formula (7), and a vertical straight line passing through the X coordinate is set as a correction result confirmation line L1. .
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 touch panel driver 17 calculates the X coordinate of the intermediate position between the correction point B6 and the correction point B5 by the following calculation formula (8), and a vertical straight line passing through the X coordinate is a correction result confirmation line L2. And
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 touch panel driver 17 calculates the Y coordinate of the intermediate position between the correction point B5 and the correction point B2 by the following calculation formula (9), and a horizontal straight line passing through the Y coordinate is a correction result confirmation line L3. And
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 touch panel driver 17 calculates the Y coordinate of the intermediate position between the correction point B8 and the correction point B5 by the following calculation formula (10), and a horizontal straight line passing through the Y coordinate is a correction result confirmation line L4. And
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 touch panel driver 17 calculates the coordinates of the point C1 by the following calculation formulas (11) and (12).
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 touch panel driver 17 calculates the coordinates of the point C2 by the following calculation formulas (13) and (14).
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 touch panel driver 17 calculates the coordinates of the point C3 by the following calculation formulas (15) and (16).
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 touch panel driver 17 calculates the coordinates of the point C4 by the following calculation formulas (17) and (18).
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 touch panel driver 17 calculates the coordinates of the point C5 by the following calculation formulas (19) and (20).
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 touch panel driver 17 calculates the coordinates of the point C6 by the following calculation formulas (21) and (22).
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 touch panel driver 17 calculates the coordinates of the point C7 by the following calculation formulas (23) and (24).
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 touch panel driver 17 calculates the coordinates of the point C8 by the following calculation formulas (25) and (26).
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 touch panel driver 17 calculates the coordinates of the point C9 by the following calculation formulas (27) and (28).
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 touch panel driver 17 calculates the coordinates of the point C10 by the following calculation formulas (29) and (30).
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 touch panel driver 17 calculates the coordinates of the point C11 by the following calculation formulas (31) and (32).
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 touch panel driver 17 calculates the coordinates of the point C12 by the following calculation formulas (33) and (34).
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 touch panel driver 17 displays additional correction points necessary for partial correction (corresponding to the second correction) on the display 50 will be described. FIG. 5A is a diagram illustrating a region set for determining whether or not an additional correction point is necessary. FIG. 5B is a diagram showing lines input to the touch panel driver 17 by tracing a correction result confirmation line. FIG. 5C is a diagram showing points input to the touch panel driver 17 by tracing the correction result confirmation points. FIG. 5D is a diagram illustrating an example of additional correction points displayed on the display 50. FIG. 5E is a diagram illustrating another example of additional correction points displayed on the display 50. The correction points B1 to B9 in FIGS. 5A, 5D, and 5E are correction points after the overall correction is performed, and the correction points in FIG. A point where each of B1 to B9 is moved by a certain amount in the same direction is shown.

まず、図5(A)に示すように、タッチパネルドライバ17は、追加補正点が必要か否かを判定するために、補正点B2及び補正点B8を結ぶ直線と、補正点B4及び補正点B6を結ぶ直線とによって、タッチパネル1の検出領域を4つに分割し、分割された領域を追加補正点の要否判別用の領域として設定する。   First, as shown in FIG. 5A, the touch panel driver 17 determines a straight line connecting the correction point B2 and the correction point B8, a correction point B4, and a correction point B6 in order to determine whether or not an additional correction point is necessary. The detection area of the touch panel 1 is divided into four by the straight line connecting the two, and the divided area is set as an area for determining the necessity of additional correction points.

次に、図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 touch panel driver 17 by the operator tracing the correction result confirmation line in FIG. 4B. In FIG. 5B, the thin dotted line indicates the correction result confirmation line in FIG. 4B, and the thick dotted line is input to the touch panel driver 17 by tracing the correction result confirmation line in FIG. 4B. A line indicating the locus of the input coordinates is shown. In FIG. 5B, a line indicating the locus of the input coordinates input to the touch panel driver 17 by tracing the correction result confirmation line is shown together with the correction result confirmation line. The indicated line may or may not be displayed on the display 50. When the line indicating the locus of the input coordinates is displayed on the display 50 by tracing the correction result confirmation line, the operator can confirm the deviation. Whether the line input to the touch panel driver 17 is displayed on the display 50 by tracing the correction result confirmation line can be set by the operator using the touch panel driver 17.

また、図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 touch panel driver 17 by tracing (touching) the correction result confirmation point in FIG. Good. In FIG. 5C, a small circle indicates a correction result confirmation point in FIG. 4C, and a large circle is input to the touch panel driver 17 by tracing the correction result confirmation point in FIG. 4C. Indicates the point corresponding to the input coordinate. In FIG. 5C, the points corresponding to the input coordinates input to the touch panel driver 17 by tracing the correction result confirmation points in FIG. 4C are shown together with the correction result confirmation points. The point corresponding to the input coordinates may be displayed on the display 50 or may not be displayed. When the points input to the touch panel driver 17 are displayed on the display 50 by tracing the correction result confirmation points, the operator can confirm the deviation. The operator can set whether or not to display on the display 50 the points input to the touch panel driver 17 by tracing the correction result confirmation points.

タッチパネルドライバ17は、補正結果確認用の線又は点をなぞることによって入力された座標を補正結果確認用の線又は点の座標と比較することによって、閾値以上のずれが発生しているか否かを判別する。尚、ずれを検出するための閾値は、タッチパネルドライバ17を編集することで任意の値に設定することができる。閾値以上のずれが発生していない場合には、部分補正は必要ないので、タッチパネルドライバ17は追加補正点をディスプレイ50に表示させることなく、処理を終了する。   The touch panel driver 17 compares the coordinates input by tracing the correction result confirmation line or point with the coordinates of the correction result confirmation line or point, thereby determining whether or not a deviation greater than the threshold has occurred. Determine. The threshold value for detecting the deviation can be set to an arbitrary value by editing the touch panel driver 17. If there is no deviation greater than the threshold value, partial correction is not necessary, and the touch panel driver 17 ends the process without causing the display 50 to display additional correction points.

閾値以上のずれが発生している場合には、部分補正が必要であるので、タッチパネルドライバ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 touch panel driver 17 specifies an area for determining whether or not an additional correction point having a deviation has occurred. For example, in FIGS. 5B and 5C, it can be seen that the touch panel driver 17 has a shift in the area 4, so that the touch panel driver 17 is in the area 4 as shown in FIG. The additional correction points D1 to D5 are set, and the additional correction points D1 to D5 are displayed on the display 50.

タッチパネルドライバ17は、追加補正点D1を補正点B5及びB6の中間に設定し、追加補正点D2を補正点B5及びB8の中間に設定し、追加補正点D3を補正点B5及びB9の中間に設定し、追加補正点D4を補正点B6及びB9の中間に設定し、追加補正点D5を補正点B8及びB9の中間に設定する。このように、追加補正点を隣接する補正点の中間に設定するので、タッチパネルドライバ17は、補正点の座標の平均値を算出することで追加補正点の座標を自動的に算出することができる。   The touch panel driver 17 sets the additional correction point D1 in the middle of the correction points B5 and B6, sets the additional correction point D2 in the middle of the correction points B5 and B8, and sets the additional correction point D3 in the middle of the correction points B5 and B9. The additional correction point D4 is set in the middle of the correction points B6 and B9, and the additional correction point D5 is set in the middle of the correction points B8 and B9. Thus, since the additional correction point is set in the middle of the adjacent correction points, the touch panel driver 17 can automatically calculate the coordinates of the additional correction points by calculating the average value of the coordinates of the correction points. .

また、タッチパネルドライバ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 touch panel driver 17 further divides the region 4 into four parts using the additional correction points D1 to D5 and the correction points B5, B6, B8, and B9, so that the touch described with reference to FIGS. A method of correcting the deviation of the detection position can be executed. That is, the touch panel driver 17 is arranged so that the correction points included in the region 4 and the additional correction points are in the same arrangement and the same number as the nine correction points used in the correction for the entire detection region of the touch panel 1. Since five additional correction points are set in the region 4, the partial correction for the region 4 can be executed by the same method (that is, the same method) as the overall correction. The same arrangement relationship means that when the area 4 is enlarged, four correction points and five additional correction points included in the area 4 overlap with nine correction points used for the overall correction of the touch panel 1. means.

図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 touch panel driver 17 sets the additional correction points D1 to D5 in the region 4 and displays the additional correction points D1 to D5 on the display 50. As shown in FIG. The touch panel driver 17 may set only the additional correction point D3 in the region 4 and display the additional correction point D3 on the display 50. As described above, if there are two points, the enlargement / reduction correction can be executed, so that the partial correction can be executed even with one additional correction point. In this case, the touch panel driver 17 divides the region 4 into four, the combination of the correction point B5 and the additional correction point D3, the combination of the correction point B6 and the additional correction point D3, the combination of the correction point B8 and the additional correction point D3, and the correction. Partial correction (enlargement / reduction correction) is executed for each combination of the point B9 and the additional correction point D3.

図6は、タッチパネル装置30で実行される処理を示すフローチャートである。   FIG. 6 is a flowchart illustrating processing executed by the touch panel device 30.

まず、アプリケーションプログラム15は、図4(A)に示すような、補正点B1〜B9の入力を要求するデータを、ビデオIF14Bを介してディスプレイ50に表示する(ステップS1)。これにより、操作者は、タッチパネル1に表示された補正点B1〜B9に対応する位置を押下する。補正点B1〜B9の理論座標は、データ保存領域16Aに保存されている。   First, the application program 15 displays data requesting input of correction points B1 to B9 as shown in FIG. 4A on the display 50 via the video IF 14B (step S1). Thereby, the operator presses the position corresponding to the correction points B1 to B9 displayed on the touch panel 1. The theoretical coordinates of the correction points B1 to B9 are stored in the data storage area 16A.

タッチパネルドライバ17は、タッチ入力されたデータ(即ち、補正点B1〜B9に対応する入力座標)を取得し(ステップS2)、補正点B1〜B9の理論座標に補正点B1〜B9に対応する入力座標を一致させる全体補正を行う(ステップS3)。ここでは、タッチパネル1の検出領域全体をディスプレイ50の画面に位置合わせする補正が行われている。   The touch panel driver 17 acquires touch input data (that is, input coordinates corresponding to the correction points B1 to B9) (step S2), and inputs corresponding to the correction points B1 to B9 to the theoretical coordinates of the correction points B1 to B9. An overall correction for matching the coordinates is performed (step S3). Here, correction for aligning the entire detection area of the touch panel 1 with the screen of the display 50 is performed.

ついで、タッチパネルドライバ17は、全体補正の完了後に、補正結果確認用の線又は点をビデオIF14Bを介してディスプレイ50に表示する(ステップS4)。タッチパネルドライバ17は、補正点B2及び補正点B8を結ぶ直線と、補正点B4及び補正点B6を結ぶ直線とによって、タッチパネル1の検出領域を4つに分割し、分割された領域を追加補正点の要否判別用の領域として設定する(ステップS5)。タッチパネルドライバ17は、操作者が補正結果確認用の線又は点をなぞることによって入力された線又は点の座標を取得する(ステップS6)。   Next, the touch panel driver 17 displays a correction result confirmation line or point on the display 50 via the video IF 14B after the entire correction is completed (step S4). The touch panel driver 17 divides the detection area of the touch panel 1 into four by a straight line connecting the correction point B2 and the correction point B8 and a straight line connecting the correction point B4 and the correction point B6, and the divided area is an additional correction point. Is set as an area for determining whether or not it is necessary (step S5). The touch panel driver 17 acquires the coordinates of the input line or point when the operator traces the correction result confirmation line or point (step S6).

タッチパネルドライバ17は、補正結果確認用の線又は点をなぞることによって入力された座標を補正結果確認用の線又は点の理論座標と比較することによって、両座標に閾値以上のずれが発生しているか否かを判別する(ステップS7)。入力座標と理論座標との間に閾値以上のずれが発生していない場合には(ステップS7でNO)、本処理を終了する。閾値以上のずれが発生している場合には(ステップS7でYES)、タッチパネルドライバ17は、閾値以上の座標のずれが発生している追加補正点の要否判別用の領域を特定する(ステップS8)。   The touch panel driver 17 compares the coordinates input by tracing the correction result confirmation line or point with the theoretical coordinates of the correction result confirmation line or point, thereby causing a deviation greater than a threshold value between the two coordinates. It is determined whether or not there is (step S7). If there is no deviation greater than the threshold between the input coordinates and the theoretical coordinates (NO in step S7), this process ends. If a deviation equal to or greater than the threshold has occurred (YES in step S7), the touch panel driver 17 specifies an area for determining the necessity of an additional correction point where a deviation in coordinates equal to or greater than the threshold has occurred (step S7). S8).

タッチパネルドライバ17は、特定された追加補正点の要否判別用の領域に追加補正点を設定し、ディスプレイ50に表示する(ステップS9)。その後、操作者が、追加補正点を押下する。これによって、追加補正点の入力座標が取得される。タッチパネルドライバ17は、特定された追加補正点の要否判別用の領域に含まれる補正点及び追加補正点の理論座標に、当該領域に含まれる補正点の入力座標(上記全体補正時に既に入力済み)及び追加補正点の入力座標を一致させる部分補正を行い(ステップS10)、本処理を終了する。   The touch panel driver 17 sets an additional correction point in the area for determining whether or not the specified additional correction point is necessary, and displays it on the display 50 (step S9). Thereafter, the operator presses the additional correction point. As a result, the input coordinates of the additional correction point are acquired. The touch panel driver 17 adds the input coordinates of the correction points included in the correction points and the theoretical coordinates of the additional correction points included in the area for determining whether or not the specified additional correction points are necessary (already input at the time of the overall correction). ) And partial correction to match the input coordinates of the additional correction points (step S10), and the process is terminated.

以上説明したように、本実施の形態によれば、タッチパネルドライバ17は、予め保持されたタッチパネル1上の複数の補正点の理論座標に、タッチパネル1から入力された複数の補正点に対応する入力座標を一致させる全体補正を実行し(ステップS3)、全体補正の結果確認用の線又は点を表示し(ステップS4)、全体補正の結果確認用の線又は点をなぞって入力された入力座標を取得する(ステップS6)。さらに、タッチパネルドライバ17は、全体補正の結果確認用の線又は点の理論座標及びステップS6で取得された入力座標に閾値以上のずれがある場合に(ステップS7でYES)、ずれを含む領域に追加補正点を設定し(ステップS9)、ずれを含む領域に含まれる補正点及び追加補正点の理論座標に、タッチパネル1から入力された、当該補正点及び追加補正点に対応する入力座標を一致させる部分補正を実行する(ステップS10)。   As described above, according to the present embodiment, the touch panel driver 17 inputs the theoretical coordinates of the plurality of correction points on the touch panel 1 held in advance corresponding to the plurality of correction points input from the touch panel 1. The whole correction for matching the coordinates is executed (step S3), the line or point for confirming the result of the whole correction is displayed (step S4), and the input coordinates inputted by tracing the line or point for checking the result of the whole correction Is acquired (step S6). Further, the touch panel driver 17 determines that the region including the deviation is present when the theoretical correction of the line or point for confirming the result of the overall correction and the input coordinate acquired in step S6 are more than a threshold (YES in step S7). An additional correction point is set (step S9), and the input coordinates corresponding to the correction point and the additional correction point input from the touch panel 1 are matched with the theoretical coordinates of the correction point and the additional correction point included in the region including the deviation. The partial correction to be performed is executed (step S10).

このように、タッチパネルドライバ17がずれの判定を行い、ずれを含む領域に追加補正点を設定して、部分補正を実行するので、従来のように、操作者自身がずれの判定や補正範囲の決定を行う必要がなくなる。従って、操作者の負担を軽減して、部分的に生じた検出位置のずれを調整することができる。   As described above, the touch panel driver 17 determines the shift, sets an additional correction point in the area including the shift, and executes the partial correction. Therefore, as in the conventional case, the operator himself can determine the shift and the correction range. No need to make a decision. Accordingly, it is possible to reduce the burden on the operator and to adjust the deviation of the detection position that occurs partially.

タッチパネル装置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 touch panel device 30 to the computer 3 and the CPU 11 reading and executing the program.

尚、本発明は、上述した実施の形態に限定されるものではなく、その要旨を逸脱しない範囲内で種々変形して実施することが可能である。   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 Touch Panel 2 Touch Panel Controller 3 Computer 11 CPU
12 RAM
13 Hard disk drive (HDD)
14A interface (IF)
14B video interface (IF)
15 Application program 16 Operating system (OS)
17 Touch Panel Driver 30 Touch Panel Device 50 Display

Claims (8)

タッチパネル上の複数の補正点の座標に、前記タッチパネルの操作により入力された前記複数の補正点に対応する入力座標を一致させる第1補正を実行し、
前記第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補正で使用される前記複数の補正点と同一の配置関係且つ同一の個数になるように、前記追加補正点を設定することを特徴とする請求項1に記載のタッチパネル装置における検出位置のずれの補正方法。   When the coordinates of the image and the input coordinates obtained by tracing the image have a deviation greater than or equal to a threshold value, the same arrangement relation and the same number as the plurality of correction points used in the first correction are used. The correction method of the detection position shift in the touch panel device according to claim 1, wherein the additional correction point is set. 前記画像は、隣接する補正点の中間に位置する線又は点であることを特徴とする請求項1又は2に記載のタッチパネル装置における検出位置のずれの補正方法。   3. The detection position shift correction method in the touch panel device according to claim 1, wherein the image is a line or a point located in the middle of adjacent correction points. 前記表示された画像と、前記画像をなぞった際の入力座標に対応する画像とが同一画面上に表示されることを特徴とする請求項1乃至3のいずれか1項に記載のタッチパネル装置における検出位置のずれの補正方法。   4. The touch panel device according to claim 1, wherein the displayed image and an image corresponding to input coordinates when the image is traced are displayed on the same screen. 5. Correction method for displacement of the detection position. 前記追加補正点は、隣接する補正点の中間に位置する点であることを特徴とする請求項1乃至4のいずれか1項に記載のタッチパネル装置における検出位置のずれの補正方法。   5. The detection position shift correction method in the touch panel device according to claim 1, wherein the additional correction point is a point located in the middle of adjacent correction points. 前記タッチパネルの押下を検出するための検出領域を複数に分割し、
前記画像の座標及び前記画像をなぞって取得された入力座標に閾値以上のずれがある場合、複数に分割された前記タッチパネルの押下を検出する検出領域から前記ずれを含む領域を特定し、
前記特定された領域に前記追加補正点を設定することを特徴とする請求項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補正を実行する第1手段と、
前記第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.
JP2014115239A 2014-06-03 2014-06-03 Method of correcting deviation in detection position in touch panel device, touch panel device, and program Pending JP2015230518A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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