Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3522164B2 - Coordinate data acquisition error absorbing device, method and recording medium - Google Patents
[go: Go Back, main page]

JP3522164B2 - Coordinate data acquisition error absorbing device, method and recording medium - Google Patents

Coordinate data acquisition error absorbing device, method and recording medium

Info

Publication number
JP3522164B2
JP3522164B2 JP24278899A JP24278899A JP3522164B2 JP 3522164 B2 JP3522164 B2 JP 3522164B2 JP 24278899 A JP24278899 A JP 24278899A JP 24278899 A JP24278899 A JP 24278899A JP 3522164 B2 JP3522164 B2 JP 3522164B2
Authority
JP
Japan
Prior art keywords
coordinate
coordinate data
displacement
data
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP24278899A
Other languages
Japanese (ja)
Other versions
JP2001067185A (en
Inventor
剛 石原
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.)
NEC Platforms Ltd
Original Assignee
NEC AccessTechnica 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 NEC AccessTechnica Ltd filed Critical NEC AccessTechnica Ltd
Priority to JP24278899A priority Critical patent/JP3522164B2/en
Publication of JP2001067185A publication Critical patent/JP2001067185A/en
Application granted granted Critical
Publication of JP3522164B2 publication Critical patent/JP3522164B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Position Input By Displaying (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、座標データ取得誤
差吸収装置,方法および記録媒体に関し、特にハードウ
ェアの誤差であるか入力による変位であるかを判定して
入力座標を確定する座標データ取得誤差吸収装置,方法
および記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coordinate data acquisition error absorbing device, method and recording medium, and more particularly to coordinate data acquisition for determining input coordinates by determining whether there is a hardware error or a displacement due to input. The present invention relates to an error absorbing device, method and recording medium.

【0002】[0002]

【従来の技術】一定間隔でタッチパネルの座標位置を示
す電圧値を取得するタッチパネル入力装置について、ソ
フトウェアの改善による方式の一例が、特開平11−1
02259号公報に記載されている。
2. Description of the Related Art Regarding a touch panel input device for obtaining a voltage value indicating a coordinate position of a touch panel at regular intervals, an example of a system by improving software is disclosed in Japanese Patent Laid-Open No. 11-1.
No. 02259.

【0003】この技術は、タッチパネル入力速度(筆跡
速度)だけではなく、タッチパネル入力の速度の加減速
にも対応してノイズを除去して、正しい座標値を取得で
きるようにしたものであり、ハードウェア(以下、H/
Wと記す)の誤差による入力座標のばらつきには対応し
ていない。
This technique removes noise in accordance with not only the touch panel input speed (handwriting speed) but also the acceleration / deceleration of the touch panel input speed so that correct coordinate values can be acquired. Wear (hereinafter, H /
It does not correspond to the dispersion of the input coordinates due to the error (denoted as W).

【0004】ここで、H/Wの誤差について説明する。Here, the error of H / W will be described.

【0005】例えば、タッチパネルから入力する場合、
(10,10)という座標を入力したが、実際には、タ
ッチパネルにより検出される座標が(11,13)であ
ったり、(9,12)であったりする。この座標のずれ
を「H/Wの誤差」と呼んでいる。
For example, when inputting from a touch panel,
Although the coordinates (10, 10) are input, the coordinates detected by the touch panel are actually (11, 13) or (9, 12). This deviation of the coordinates is called "H / W error".

【0006】[0006]

【発明が解決しようとする課題】しかし、上述した従来
技術には、H/W誤差による入力座標のばらつきには対
応していないという問題点がある。このため、例えば、
ある一点をタッチ入力した場合に、H/Wの誤差のため
に表示されるポイントが小刻みに揺れてしまい、一点に
静止せずにゆらいでしまい、ちらついているように見え
てしまう。
However, the above-mentioned conventional technique has a problem in that it does not deal with variations in input coordinates due to H / W errors. So, for example,
When a certain point is touch-inputted, the displayed point is swayed in small steps due to the error of H / W, and the point does not stand still but fluctuates, and it appears as if it is flickering.

【0007】本発明の目的は、H/W誤差による入力座
標のばらつきに対応して正しい入力座標値を取得できる
手段を提供することにある。
An object of the present invention is to provide a means for acquiring a correct input coordinate value corresponding to a variation in input coordinate due to an H / W error.

【0008】[0008]

【課題を解決するための手段】本願第1の発明の座標デ
ータ取得誤差吸収装置は、表示画面部から座標データを
読みとる座標検出手段と、前記座標検出手段が今回読み
とった座標データおよび過去に遡った分の座標データと
から成る複数の座標データならびに判定手段により前回
入力座標と決定された前回決定座標データを格納するデ
ータ格納手段と、前記データ格納手段に格納されている
今回読みとった座標データおよび過去に遡った分の座標
データとから成る複数の座標データを比較して一定方向
に連続して変位した回数の最大値をプラス方向およびマ
イナス方向に対して求め、今回読みとった座標データと
前記前回決定座標データの差から座標データの変位量を
X座標およびY座標に対して求め、前記一定方向に連続
して変位した回数のプラス方向およびマイナス方向の最
大値および前記座標データのX座標およびY座標の変位
量をしきい値と比較し、前記一定方向に連続して変位し
た回数のプラス方向およびマイナス方向の最大値ならび
に前記座標データのX座標およびY座標の変位量が全て
しきい値内であれば前記座標検出手段が今回読みとった
座標データはハードウェアの誤差であると判定し、そう
でなければ前記座標検出手段が今回読みとった座標デー
タは入力による変位であると判定し、ハードウェアの誤
差である場合には前記データ格納手段に格納されている
前回に前記判定手段で決定された前回決定座標データを
入力座標と確定し、入力による変位である場合には今回
前記座標検出手段が読みとった座標データを入力座標と
確定する判定手段と、前記判定手段が確定した入力座標
を前記表示画面部に表示させる座標表示手段と、を備え
る。
A coordinate data acquisition error absorbing device of a first invention of the present application is a coordinate detecting means for reading coordinate data from a display screen section, and the coordinate detecting means reads this time.
With the coordinate data taken and the coordinate data traced back in the past
It is stored a data storage means for storing a previous decision coordinate data determined with the previous <br/> input coordinates, in the data storage means by a plurality of coordinate data and determining means comprising
The coordinate data read this time and the coordinates traced back in the past
A certain direction by comparing multiple coordinate data consisting of data
The maximum number of consecutive displacements in
With the coordinate data read this time, calculated for the inus direction
The displacement amount of the coordinate data is calculated from the difference of the previously determined coordinate data.
Obtained for the X and Y coordinates and continuously in the above-mentioned fixed direction
The maximum number of times of displacement in the positive and negative directions.
Large value and displacement of X coordinate and Y coordinate of the coordinate data
Compare the amount with the threshold value, and continuously displace in the certain direction.
The maximum number of positive and negative
The displacement amount of X coordinate and Y coordinate of the coordinate data is all
If it is within the threshold, the coordinate detecting means has read this time.
It is judged that the coordinate data is a hardware error, so
If not, the coordinate detection means reads the coordinate data read this time.
Data is determined to be displacement due to input, and hardware error
If there is a difference, it is stored in the data storage means.
Previously determined coordinate data previously determined by the determination means
If the input coordinates are confirmed and the displacement is due to input, this time
The input coordinate is the coordinate data read by the coordinate detecting means.
The determination means for confirming and the coordinate display means for displaying the input coordinates confirmed by the determining means on the display screen section are provided.

【0009】本願第2の発明の座標データ取得誤差吸収
装置は、第1の発明において前記判定手段が判定の基と
する前記データ格納手段に格納されている複数の座標デ
ータは、今回前記座標検出手段で読みとられた座標デー
タと過去に遡った分の座標データであり、前記過去に遡
った分の座標データの個数は外部から指定することを特
徴とする。
In the coordinate data acquisition error absorbing device according to the second invention of the present application, in the first invention, the judging means is based on the judgment.
A plurality of coordinate data stored in the data storage means.
The data is the coordinate data read by the coordinate detection means this time.
Data that is traced back to the past.
The feature is that the number of pieces of coordinate data for a certain amount is specified externally .

【0010】本願第3の発明の座標データ取得誤差吸収
方法は、表示画面部から読みとった座標データを格納
し、今回読みとった座標データと過去に遡った分の座標
データとから成る複数の座標データを比較して一定方向
に連続して変位した回数の最大値をプラス方向およびマ
イナス方向に対して求め、今回読みとった座標データと
前回決定座標データの差から座標データの変位量をX座
標およびY座標に対して求め、前記一定方向に連続して
変位した回数のプラス方向およびマイナス方向の最大値
および前記座標データのX座標およびY座標の変位量を
しきい値と比較し、前記一定方向に連続して変位した回
数のプラス方向およびマイナス方向の最大値および前記
座標データのX座標およびY座標の変位量が全てしきい
値内であれば今回読みとった座標データはハードウェア
の誤差であると判定して前回決定座標データを採用し、
前記一定方向に連続して変位した回数のプラス方向およ
びマイナス方向の最大値および前記座標データのX座標
およびY座標の変位量のいずれかがしきい値内でなけれ
ば今回読みとった座標データは入力による変位であると
判定して読みとった座標データを今回の座標データに採
用し前回決定座標データとして格納し、採用された座標
データを前記表示画面部に表示させることを特徴とす
Absorption of coordinate data acquisition error of the third invention of the present application
The method is to store the coordinate data read from the display screen.
However, the coordinate data read this time and the coordinates traced back in the past
A certain direction by comparing multiple coordinate data consisting of data
The maximum number of consecutive displacements in
With the coordinate data read this time, calculated for the inus direction
The displacement amount of the coordinate data is calculated from the difference of the previously determined coordinate data to the X coordinate.
Obtained for the mark and Y coordinate, and continuously in the above-mentioned fixed direction
Maximum number of displacements in positive and negative directions
And the amount of displacement of the X and Y coordinates of the coordinate data
Compared with the threshold value, the number of times
Maximum number of plus and minus numbers and the above
The displacements of the X and Y coordinates of the coordinate data are all threshold
If it is within the value, the coordinate data read this time is hardware
It is determined that it is an error of and adopts the previously determined coordinate data,
The number of times of continuous displacement in the fixed direction and the positive direction and
And the maximum value in the minus direction and the X coordinate of the coordinate data
And either of the Y coordinate displacement amount must be within the threshold value.
For example, the coordinate data read this time is the displacement due to input.
The coordinate data that is judged and read is adopted as the current coordinate data.
Stored as previously determined coordinate data and used
Data is displayed on the display screen section.
It

【0011】本願第4の発明の記録媒体は、表示画面部
から読みとった座標データを格納する格納処理と、今回
読みとった座標データと過去に遡った分の座標データと
から成る複数の座標データを比較して一定方向に連続し
て変位した回数の最大値をプラス方向およびマイナス方
向に対して求める変位回数最大値処理と、今回読みとっ
た座標データと前回決定座標データの差から座標データ
の変位量をX座標およびY座標に対して求める変位量処
理と、前記一定方向に連続して変位した回数のプラス方
向およびマイナス方向の最大値および前記座標データの
X座標およびY座標の変位量をしきい値と比較するしき
い値比較処理と、前記一定方向に連続して変位した回数
のプラス方向およびマイナス方向の最大値および前記座
標データのX座標およびY座標の変位量が全てしきい値
内であれば今回読みとった座標データはハードウェアの
誤差であると判定して前回決定座標データを採用するH
W判定処理と、前記一定方向に連続して変位した回数の
プラス方向およびマイナス方向の最大値および前記座標
データのX座標およびY座標の変位量のいずれかがしき
い値内でなければ今回読みとった座標データは入力によ
る変位であると判定して読みとった座標データを今回の
座標データに採用し前回決定座標データとして格納する
入力変位判定処理と、採用された座標データを前記表示
画面部に表示させる表示処理と、をコンピュータに実行
させるためのプログラムを記録したことを特徴とする
The recording medium of the fourth invention of the present application is a display screen section.
Storing process to store the coordinate data read from
Coordinate data read and coordinate data traced back in the past
Comparing multiple coordinate data consisting of
The maximum value of the number of times
The maximum number of displacements required for the direction and the reading this time
Coordinate data from the difference between the coordinate data
Displacement amount processing for obtaining the displacement amount of the X coordinate and the Y coordinate
And the plus of the number of consecutive displacements in the fixed direction
Direction and minus maximum value and the coordinate data
Threshold to compare displacement amount of X and Y coordinates with threshold value
Value comparison processing and the number of consecutive displacements in the certain direction
Positive and negative maximum values and the seat
The displacements of the X and Y coordinates of the standard data are all threshold values
If it is inside, the coordinate data read this time is hardware
H that adopts the previously determined coordinate data after determining that there is an error
W determination processing and the number of consecutive displacements in the certain direction
Maximum value in plus direction and minus direction and the coordinates
Either the X or Y displacement of the data
If it is not within a certain value, the coordinate data read this time can be input.
This time, the coordinate data read after determining that the displacement is
Used as coordinate data and stored as previously determined coordinate data
Input displacement judgment processing and display of adopted coordinate data
Display processing to be displayed on the screen, and execution on the computer
It is characterized in that the program for recording is recorded .

【0012】[0012]

【0013】[0013]

【0014】[0014]

【0015】[0015]

【0016】[0016]

【発明の実施の形態】本発明の座標データ取得誤差の吸
収方法(方向量によるフィルタリング)は、H/Wから
読みとった座標データが、H/Wの誤差であるか、入力
による変位であるかを判定し、H/Wから読みとったデ
ータのばらつきを抑えることを特徴としている。
BEST MODE FOR CARRYING OUT THE INVENTION According to the method of absorbing an error in coordinate data acquisition (filtering by direction amount) of the present invention, whether the coordinate data read from the H / W is an error of H / W or a displacement by input. Is determined to suppress variations in the data read from the H / W.

【0017】例えば、タッチパネルである点をタッチ入
力したとき、H/Wの誤差でタッチ位置を表示するポイ
ントがゆらいでしまう場合には、本発明によりゆらぎを
抑えることができる。
For example, when a point on the touch panel is touch-input, if the point for displaying the touch position fluctuates due to an error of H / W, the fluctuation can be suppressed by the present invention.

【0018】本発明の第1の実施の形態について、図面
を参照して説明する。
A first embodiment of the present invention will be described with reference to the drawings.

【0019】図1は、本発明の第1の実施の形態の構成
図である。
FIG. 1 is a block diagram of the first embodiment of the present invention.

【0020】図1を参照すると、本発明の座標データ取
得誤差吸収装置は、コンピュータ100と表示画面部1
10と座標検出手段120と座標表示手段130とから
構成されている。
Referring to FIG. 1, the coordinate data acquisition error absorbing apparatus of the present invention is a computer 100 and a display screen section 1.
10, a coordinate detection means 120 and a coordinate display means 130.

【0021】コンピュータ100は、プログラム制御に
より動作し、データ格納手段101と判定手段102と
を含む。
The computer 100 operates under program control and includes a data storage means 101 and a determination means 102.

【0022】データ格納手段101は、座標検出手段1
20が読みとった座標データを格納する。データ格納手
段101により、今回読み取られた分を含めて過去に遡
った複数の座標データが蓄積されている。どこまで遡っ
た座標データを蓄積しておくかは、固定値を設定しても
よいし、初期設定時に外部から指定させてもよい。ま
た、データ格納手段101には、判定手段102により
決定された前回の座標データも格納される。
The data storage means 101 is the coordinate detection means 1
The coordinate data read by 20 is stored. The data storage means 101 accumulates a plurality of coordinate data traced back in the past including the currently read data. A fixed value may be set as to how far back the coordinate data should be accumulated, or the coordinate data may be specified from the outside at the time of initial setting. The data storage means 101 also stores the previous coordinate data determined by the determination means 102.

【0023】判定手段102は、データ格納手段101
に格納されている複数の座標データを基に、座標検出手
段120が読みとった座標データが、H/Wの誤差であ
るか入力による変位であるかを判定する。判定手段10
2では、複数の座標データを比較して一定方向に変位し
ている回数と座標データの変位量を求め、しきい値と比
較し、H/Wの誤差であるか入力による変位であるかを
判定する。
The determination means 102 is the data storage means 101.
It is determined whether the coordinate data read by the coordinate detecting unit 120 is an H / W error or a displacement due to input, based on the plurality of coordinate data stored in. Determination means 10
In 2, the number of times of displacement in a certain direction and the amount of displacement of coordinate data are calculated by comparing a plurality of coordinate data, and compared with a threshold value to determine whether the error is H / W error or displacement due to input. judge.

【0024】判定手段102による判定結果が、H/W
の誤差である場合には、入力座標は動かず静止状態とな
り、データ格納手段101に格納されている前回決定座
標の座標データを採用する。
The determination result of the determination means 102 is H / W.
If the error is, the input coordinate does not move and remains stationary, and the coordinate data of the previously determined coordinate stored in the data storage unit 101 is adopted.

【0025】判定手段102による判定結果が、入力に
よる変位である場合には、今回座標検出手段120が読
みとった座標データを今回の座標データとして採用す
る。今回判定手段102により入力による変位の座標デ
ータと判定された入力座標は、次回の判定のために、判
定手段102により決定された前回の座標データ(以
降、前回決定座標データと称す)としてデータ格納手段
101に渡される。また、入力による変位の座標データ
と判定された入力座標の座標データを座標表示手段13
0に渡す。
When the determination result by the determination means 102 is the displacement due to the input, the coordinate data read by the current coordinate detection means 120 is adopted as the current coordinate data. The input coordinates determined to be the coordinate data of the displacement due to the input by the determination unit 102 this time are stored as the previous coordinate data determined by the determination unit 102 (hereinafter referred to as the previously determined coordinate data) for the next determination. It is passed to the means 101. Further, the coordinate display means 13 displays the coordinate data of the input coordinates determined as the coordinate data of the displacement due to the input.
Pass to 0.

【0026】表示画面部110は、座標表示手段130
からの座標を表示する。また、表示画面部110は表示
画面部110にタッチ等の操作をすることにより座標デ
ータの入力を行うことができ、入力された座標データは
A/Dコンバータ(図示せず)を介して座標検出手段1
20により検出される。
The display screen section 110 has a coordinate display means 130.
Display coordinates from. In addition, the display screen unit 110 can input coordinate data by operating the display screen unit 110 such as a touch, and the input coordinate data is coordinate detected through an A / D converter (not shown). Means 1
Detected by 20.

【0027】座標検出手段120は、表示画面部110
から入力された座標データをA/Dコンバータ(図示せ
ず)を介して読みとり、データ格納手段101に渡す。
The coordinate detecting means 120 includes a display screen section 110.
The coordinate data input from the device is read via an A / D converter (not shown) and passed to the data storage means 101.

【0028】座標表示手段130は、判定手段102か
ら渡された座標データを表示画面部110に表示させ
る。
The coordinate display means 130 causes the display screen 110 to display the coordinate data passed from the determination means 102.

【0029】次に、本発明の第1の実施の形態の動作に
ついて、図1,図2および図3を参照して、詳細に説明
する。
Next, the operation of the first embodiment of the present invention will be described in detail with reference to FIGS. 1, 2 and 3.

【0030】図2および図3は、判定手段102のフロ
ーチャートを示す図である。
FIGS. 2 and 3 are flowcharts of the judging means 102.

【0031】説明にあたり、座標検出手段120により
今回読み取った座標データすなわちデータ格納手段10
1により最も新しく格納された座標データを(xn,y
n)、データ格納手段101により最も過去に格納され
た座標データを(x1,y1)、判定手段102により
前回決定された前回決定座標データを(xp、yp)、
と表すものとする。
In the explanation, the coordinate data read this time by the coordinate detecting means 120, that is, the data storing means 10
The coordinate data stored most recently by 1 is (xn, y
n), the coordinate data stored in the oldest by the data storage unit 101 is (x1, y1), the previously determined coordinate data previously determined by the determination unit 102 is (xp, yp),
Shall be represented.

【0032】図2を参照すると、先ず初期化処理とし
て、プラス方向への変位カウンタ(ic),マイナス方
向への変位カウンタ(dc),プラス方向へ連続して変
位した回数の最大値(mic)およびマイナス方向へ連
続して変位した回数の最大値(mdc)をクリアする
(ic=0、dc=0、mic=0、mdc=0)(図
2のステップA1)。
Referring to FIG. 2, first, as initialization processing, a displacement counter (ic) in the plus direction, a displacement counter (dc) in the minus direction, and a maximum value (mic) of the number of consecutive displacements in the plus direction. And clear the maximum value (mdc) of the number of consecutive displacements in the negative direction (ic = 0, dc = 0, mic = 0, mdc = 0) (step A1 in FIG. 2).

【0033】データ格納手段101に格納されている複
数の連続するXY座標データ(xi,yi)(i=1,
…,n)と前回決定座標データ(xp,yp)とを入手
する。複数の連続するXY座標データ(xi,yi)(i
=1,…,n)とは、今回および過去に遡った座標デー
タであり、いくつまで過去に遡るかは予め決められてい
る(ステップA2)。
A plurality of continuous XY coordinate data (x i , y i ) ( i = 1, 1) stored in the data storage means 101.
, N) and the previously determined coordinate data (xp, yp) are obtained. A plurality of continuous XY coordinate data (x i , y i ) ( i
= 1, ..., N) is the coordinate data traced back to this time and the past, and the number of traces traced back to the past is predetermined (step A2).

【0034】続いて、以降のステップA4〜A21で、
X座標データについて、複数の座標データのうち隣り合
わせの座標データ(xi,xi+1)の全ての比較処理を行
う。
Then, in subsequent steps A4 to A21,
With respect to the X coordinate data, all of the adjacent coordinate data (x i , x i + 1 ) among the plurality of coordinate data are compared.

【0035】X座標について、隣り合わせの座標データ
(xi,xi+1)を比較する(xi+1−xi=?)。比較結
果が、プラス方向への変位である場合(>0)はステッ
プA5に、マイナス方向への変位である場合(<0)は
ステップA10に、変位していない場合(=0)はステ
ップA15に、それぞれ分岐する(ステップA4)。
Regarding the X coordinate, the adjacent coordinate data (x i , x i + 1 ) are compared (x i + 1 −x i =?). If the comparison result is a displacement in the positive direction (> 0), the process proceeds to step A5; if it is a displacement in the negative direction (<0), the process proceeds to step A10; otherwise, the process proceeds to step A15. To each (step A4).

【0036】プラス方向への変位である場合には、プラ
ス方向への変位カウンタ(ic)を1増やす(ic=i
c+1)(ステップA5)。
When the displacement is in the plus direction, the displacement counter (ic) in the plus direction is incremented by 1 (ic = i
c + 1) (step A5).

【0037】1座標前までマイナス方向へ変位していた
場合には(dc≠0)ステップA7に、そうでない場合
にはステップA21に分岐する(ステップA6)。
If it has been displaced by one coordinate in the minus direction (dc ≠ 0), the process branches to step A7, and if not, the process branches to step A21 (step A6).

【0038】ステップA6でマイナス方向へ変位してい
た場合、マイナス方向への変位回数が今までで最大かど
うか判定する(dc>mdc)。最大であった場合には
ステップA8に、そうでない場合にはステップA9に分
岐する(ステップA7)。
When it is displaced in the minus direction in step A6, it is judged whether or not the number of displacements in the minus direction is the maximum so far (dc> mdc). If it is the maximum, the process branches to step A8, and if not, the process branches to step A9 (step A7).

【0039】ステップA7でマイナス方向への変位回数
が今までで最大であった場合、マイナス方向への変位回
数の最大値(mdc)を更新する(mdc=dc)(ス
テップA8)。
If the number of displacements in the minus direction has been the maximum so far in step A7, the maximum value (mdc) of the number of displacements in the minus direction is updated (mdc = dc) (step A8).

【0040】マイナス方向への変位カウンタ(dc)を
クリアする(dc=0)(ステップA9)。
The displacement counter (dc) in the minus direction is cleared (dc = 0) (step A9).

【0041】ステップA4でマイナス方向への変位であ
る場合には、マイナス方向への変位カウンタ(dc)を
1増やす(dc=dc+1)(ステップA10)。
If the displacement is in the negative direction in step A4, the displacement counter (dc) in the negative direction is incremented by 1 (dc = dc + 1) (step A10).

【0042】1座標前までプラス方向へ変位していた場
合には(ic≠0)ステップA12に、そうでない場合
にはステップA21に分岐する(ステップA11)。
If it has been displaced by one coordinate in the plus direction (ic ≠ 0), the process branches to step A12, and if not, the process branches to step A21 (step A11).

【0043】ステップA11でプラス方向へ変位してい
た場合、プラス方向への変位回数が今までで最大かどう
か判定する(ic>mic)。最大であった場合にはス
テップA13に、そうでない場合にはステップA14に
分岐する(ステップA12)。
When the displacement is in the plus direction in step A11, it is determined whether or not the number of displacements in the plus direction is the maximum so far (ic> mic). If it is the maximum, the process branches to step A13, and if not, the process branches to step A14 (step A12).

【0044】ステップA12でプラス方向への変位回数
が今までで最大であった場合、プラス方向への変位回数
の最大値(mic)を更新する(mic=ic)(ステ
ップA13)。
If the number of displacements in the plus direction has been the maximum at step A12, the maximum value (mic) of the number of displacements in the plus direction is updated (mic = ic) (step A13).

【0045】プラス方向への変位カウンタ(ic)をク
リアする(ic=0)(ステップA14)。
The displacement counter (ic) in the plus direction is cleared (ic = 0) (step A14).

【0046】ステップA4で変位していなかった場合に
は、プラス方向への変位回数が今までで最大かどうか判
定し(ic>mic)、最大であった場合にはステップ
A16に、そうでない場合にはステップA17に分岐す
る(ステップA15)。
If it is not displaced in step A4, it is judged whether or not the number of displacements in the plus direction is the maximum so far (ic> mic). If it is maximum, the process proceeds to step A16, otherwise. To step A17 (step A15).

【0047】ステップA15でプラス方向への変位回数
が今までで最大であった場合、プラス方向への変位回数
の最大値(mic)を更新する(mic=ic)(ステ
ップA16)。
If the number of displacements in the plus direction has been the maximum at step A15, the maximum value (mic) of the number of displacements in the plus direction is updated (mic = ic) (step A16).

【0048】プラス方向への変位カウンタ(ic)をク
リアする(ic=0)(ステップA17)。
The displacement counter (ic) in the plus direction is cleared (ic = 0) (step A17).

【0049】マイナス方向への変位回数が今までで最大
かどうか判定し(dc>mdc)、最大であった場合に
はステップA19に、そうでない場合にはステップA2
0に分岐する(ステップA18)。
It is judged whether or not the number of displacements in the minus direction is the maximum so far (dc> mdc), and if it is the maximum, the process goes to step A19, and if not, step A2.
It branches to 0 (step A18).

【0050】ステップA18でマイナス方向への変位回
数が今までで最大であった場合、マイナス方向への変位
回数の最大値(mdc)を更新する(mdc=dc)
(ステップA19)。
When the number of displacements in the minus direction is the maximum so far in step A18, the maximum value (mdc) of the number of displacements in the minus direction is updated (mdc = dc).
(Step A19).

【0051】マイナス方向への変位カウンタ(dc)を
クリアする(dc=0)(ステップA20)。
The displacement counter (dc) in the minus direction is cleared (dc = 0) (step A20).

【0052】X座標データについて、隣り合わせの座標
データの全ての比較処理が終了した場合には図3のステ
ップA22に、そうでない場合にはステップA4に分岐
する(ステップA21)。
With respect to the X coordinate data, if all the comparison processing of the adjacent coordinate data is completed, the process branches to step A22 in FIG. 3, and if not, the process branches to step A4 (step A21).

【0053】プラス方向への変位回数が今までで最大か
どうか判定し(ic>mic)、最大であった場合には
ステップA23に、そうでない場合にはステップA24
に分岐する(図3のステップA22)。
It is judged whether or not the number of displacements in the plus direction is the maximum so far (ic> mic), and if it is the maximum, the process goes to step A23. If not, the process goes to step A24.
(Step A22 in FIG. 3).

【0054】ステップA22でプラス方向への変位回数
が今までで最大であった場合、プラス方向への変位回数
の最大値(mic)を更新する(mic=ic)(ステ
ップA23)。
If the number of displacements in the plus direction has been the maximum so far in step A22, the maximum value (mic) of the number of displacements in the plus direction is updated (mic = ic) (step A23).

【0055】マイナス方向への変位回数が今までで最大
かどうか判定し(dc>mdc)、最大であった場合に
はステップA25に、そうでない場合にはステップA2
6に分岐する(ステップA24)。
It is judged whether or not the number of times of displacement in the minus direction is the maximum so far (dc> mdc), and if it is the maximum, the process goes to step A25. If not, the process goes to step A2.
It branches to 6 (step A24).

【0056】ステップA24でマイナス方向への変位回
数が今までで最大であった場合、マイナス方向への変位
回数の最大値(mdc)を更新する(mdc=dc)
(ステップA25)。
When the number of displacements in the minus direction is the maximum so far in step A24, the maximum value (mdc) of the displacements in the minus direction is updated (mdc = dc).
(Step A25).

【0057】カウンタicとdcをクリアする(ic=
0、dc=0)(ステップA26)。
Clear counters ic and dc (ic =
0, dc = 0) (step A26).

【0058】続いて、Y座標について、X座標における
処理と同様の処理(ステップA4〜A25)を行う(ス
テップA27)。
Subsequently, with respect to the Y coordinate, the same processing as the processing at the X coordinate (steps A4 to A25) is performed (step A27).

【0059】X座標データの最も新しい座標データ(x
n)と前回決定座標データ(xp)の差の絶対値(d
x)を求める(dx=|xn−xp|)。また、Y座標
データの最も新しい座標データ(yn)と前回決定座標
データ(yp)の差の絶対値(dy)を求める(dy=
|yn−yp|)。この時点で、XY座標の両方におい
て、プラス方向へ連続して変位した回数の最大値(mi
c)と、マイナス方向へ連続して変位した回数の最大値
(mdc)と、X座標データの変位量(dx)と、Y座
標データの変位量(dy)が得られる(ステップA2
8)。
The newest coordinate data (x
n) and the previously determined coordinate data (xp) difference absolute value (d
x) is calculated (dx = | xn−xp |). Further, the absolute value (dy) of the difference between the most recent Y coordinate data (yn) and the previously determined coordinate data (yp) is calculated (dy =
| Yn-yp |). At this point, the maximum value of the number of consecutive displacements in the plus direction (mi
c), the maximum value of the number of consecutive displacements in the negative direction (mdc), the displacement amount of the X coordinate data (dx), and the displacement amount of the Y coordinate data (dy) (step A2).
8).

【0060】プラス方向への変位回数の最大値(mi
c)と、マイナス方向への変位回数の最大値(mdc)
と、X座標データの変位量(dx)と、Y座標データの
変位量(dy)が全てしきい値内であれば、H/Wの誤
差であると判断しステップA30に、そうでなければ入
力による変位と判断しステップA31に分岐する(ステ
ップA29)。
The maximum value of the number of displacements in the plus direction (mi
c) and the maximum number of negative displacements (mdc)
If the displacement amount (dx) of the X coordinate data and the displacement amount (dy) of the Y coordinate data are all within the threshold values, it is determined that there is an error in H / W, and if not, in step A30. It is determined that the displacement is due to input, and the process branches to step A31 (step A29).

【0061】ステップA29でH/Wの誤差であった場
合、入力座標は動かず静止状態となるため、前回決定座
標データ(xp,yp)を採用し処理を終了する(ステ
ップA30)。
If there is an error in H / W at step A29, the input coordinates do not move and remain stationary. Therefore, the previously determined coordinate data (xp, yp) is adopted and the process ends (step A30).

【0062】また、ステップA29で入力による変位で
あった場合、今回の座標データ(xn,yn)を採用し
処理を終了する(ステップA31)。
If the displacement is an input displacement in step A29, the current coordinate data (xn, yn) is adopted and the process is terminated (step A31).

【0063】更に、図4を用いて、より具体的に説明す
る。
Further, a more specific description will be given with reference to FIG.

【0064】図4は、本発明の第1の実施の形態の動作
を説明する図である。
FIG. 4 is a diagram for explaining the operation of the first embodiment of the present invention.

【0065】図4に示すように、座標検出手段120に
より表示画面部110から検出されデータ格納手段10
1に格納された座標データとして、5座標分のデータを
使用し、次の二通りの場合を考える。パターン1の場合
は、X座標(50,52,51,53,49)、Y座標
(70,69,71,67,68)であり、パターン2
の場合は、X座標(50,52,51,53,49)、
Y座標(70,69,71,74,78)である。デー
タ格納手段101に格納されているた前回決定座標デー
タ(xp,yp)は(51,72)とする。また、XY
座標の両方において、プラス方向へ連続して変位する回
数の最大値(mic)およびマイナス方向へ連続して変
位する回数の最大値(mdc)のしきい値を”2”、X
座標データの変位量(dx)およびY座標データの変位
量(dy)のしきい値を”5”、とする。
As shown in FIG. 4, the data storage means 10 detected from the display screen section 110 by the coordinate detection means 120.
Data for 5 coordinates is used as the coordinate data stored in 1, and the following two cases are considered. In the case of pattern 1, the X coordinate (50, 52, 51, 53, 49) and the Y coordinate (70, 69, 71, 67, 68) are used, and the pattern 2
In the case of, the X coordinate (50, 52, 51, 53, 49),
It is the Y coordinate (70, 69, 71, 74, 78). The previously determined coordinate data (xp, yp) stored in the data storage means 101 is (51, 72). Also, XY
In both of the coordinates, the threshold of the maximum number of consecutive displacements in the plus direction (mic) and the maximum number of consecutive displacements in the minus direction (mdc) is "2", X
The threshold value of the displacement amount (dx) of the coordinate data and the displacement amount (dy) of the Y coordinate data is “5”.

【0066】先ず、パターン1の場合を考える。図2の
ステップA4で、X座標について1番目と2番目の値を
比較する。この場合、50と52であるためプラス方向
への変位となり、ステップA5へ進み、プラス方向への
変位カウンタ(ic)を1増やす(ic=1)。ステッ
プA6では、マイナス方向へは変位していないため(1
回目の比較のため)ステップA21に進む。X座標デー
タの比較は終了していないため、ステップA4に進む。
First, consider the case of pattern 1. In step A4 of FIG. 2, the first and second values of the X coordinate are compared. In this case, since it is 50 and 52, the displacement is in the plus direction, and the process proceeds to step A5, and the displacement counter (ic) in the plus direction is incremented by 1 (ic = 1). At step A6, since it is not displaced in the minus direction (1
Proceed to step A21 (for the second comparison). Since the comparison of the X coordinate data has not been completed, the process proceeds to step A4.

【0067】X座標について2番目と3番目の値を比較
すると52と51であるため、マイナス方向への変位と
なりステップA10に進み、マイナス方向へのカウンタ
(dc)を1増やす(dc=1)。ステップA11では
1回前でプラス方向へ変位していたためステップA12
に進み、プラス方向への変位回数が最大であるので(i
c(=1)>mic(=0))ステップA13でプラス
方向への変位回数の最大値を更新し(mic=1)、ス
テップA14でプラス方向へのカウンタをクリアする
(ic=0)。X座標データの比較は終了していないた
め、ステップA4に進む。
When the second and third values of the X coordinate are compared with each other, they are 52 and 51. Therefore, the displacement is in the negative direction, and the process proceeds to step A10, and the counter (dc) in the negative direction is incremented by 1 (dc = 1). . In step A11, the displacement was made in the plus direction one time before, so step A12
And the maximum number of displacements in the positive direction is (i
c (= 1)> mic (= 0)) In step A13, the maximum value of the number of displacements in the plus direction is updated (mic = 1), and in step A14, the counter in the plus direction is cleared (ic = 0). Since the comparison of the X coordinate data has not been completed, the process proceeds to step A4.

【0068】X座標について3番目と4番目の値を比較
すると51と53であるため、プラス方向への変位とな
りステップA5に進み、プラス方向へのカウンタ(i
c)を1増やす(ic=1)。ステップA6では1回前
でマイナス方向へ変位していたためステップA7に進
み、マイナス方向への変位回数が最大であるので(dc
(=1)>mdc(=0))ステップA8でマイナス方
向への変位回数の最大値を更新し(mdc=1)、ステ
ップA9でマイナス方向へのカウンタをクリアする(d
c=0)。X座標データの比較は終了していないため、
ステップA4に進む。
When the third and fourth values of the X coordinate are compared with each other, they are 51 and 53. Therefore, the displacement is in the plus direction, and the process proceeds to step A5, and the counter (i
Increment c) by 1 (ic = 1). At step A6, since the displacement was made in the minus direction one time before, the process proceeds to step A7, and the number of displacement in the minus direction is the maximum (dc
(= 1)> mdc (= 0)) In step A8, the maximum value of the number of displacements in the negative direction is updated (mdc = 1), and in step A9, the counter in the negative direction is cleared (d).
c = 0). Since the comparison of X coordinate data is not completed,
Go to step A4.

【0069】X座標について4番目と5番目の値を比較
すると53と49であるため、マイナス方向への変位と
なりステップA10に進み、マイナス方向へのカウンタ
(dc)を1増やす(dc=1)。次にステップA11
では1回前でプラス方向へ変位していたためステップA
12に進み、プラス方向への変位回数が最大でないので
(ic(=1)=mic(=1))ステップA14に進
み、プラス方向へのカウンタをクリアする(ic=
0)。
When the fourth and fifth values of the X coordinate are compared with each other, they are 53 and 49, so that the displacement is in the negative direction and the process proceeds to step A10, where the counter (dc) in the negative direction is incremented by 1 (dc = 1). . Next, step A11
Since it was displaced in the plus direction one time before, step A
12, the number of displacements in the plus direction is not the maximum (ic (= 1) = mic (= 1)), so the process proceeds to step A14, and the counter in the plus direction is cleared (ic =
0).

【0070】ステップA21ではX座標の比較が終了し
ているため図3のステップA22に進む。プラス方向へ
の変位回数が最大でないので(ic(=0)<mic
(=1))ステップA24に進み、マイナス方向への変
位回数が最大でないので(dc(=1)=mdc(=
1))ステップA26に進み、カウンタ(ic、dc)
をクリアする(ic=0、dc=0)。
At step A21, since the comparison of the X coordinates is completed, the process proceeds to step A22 in FIG. Since the number of displacements in the plus direction is not the maximum (ic (= 0) <mic
(= 1)) The process proceeds to step A24, and the number of displacements in the negative direction is not the maximum ((dc (= 1) = mdc (=
1)) Go to step A26, counter (ic, dc)
Is cleared (ic = 0, dc = 0).

【0071】続いて、Y座標について同様の処理を行
う。Y座標について1番目と2番目の値を比較すると、
70と69であるためマイナス方向への変位となりカウ
ンタ(dc)を1増やし(dc=1)、ic=0のため
次の比較に進む。
Subsequently, similar processing is performed for the Y coordinate. Comparing the first and second values for the Y coordinate,
Since they are 70 and 69, the displacement is in the negative direction, the counter (dc) is incremented by 1 (dc = 1), and since ic = 0, the next comparison is performed.

【0072】Y座標について2番目と3番目の値を比較
すると69と71であるため、プラス方向への変位とな
り、カウンタ(ic)を1増やす(ic=1)。1回前
ではマイナス方向へ変位していたが、現在のマイナス方
向への変位回数は最大でないため(dc(=1)=md
c(=1))最大値(mdc)は更新せず、マイナス方
向へのカウンタ(dc)をクリアする(dc=0)。
Comparing the second and third values of the Y coordinate, they are 69 and 71, so that the displacement is in the plus direction and the counter (ic) is incremented by 1 (ic = 1). Although it was displaced in the minus direction one time before, since the number of times of displacement in the minus direction at present is not the maximum (dc (= 1) = md
c (= 1)) The maximum value (mdc) is not updated, and the counter (dc) in the minus direction is cleared (dc = 0).

【0073】Y座標について3番目と4番目の値を比較
すると、71と67であるためマイナス方向への変位と
なり、カウンタ(dc)を1増やす(dc=1)。1回
前ではプラス方向へ変位していたが、現在のプラス方向
への変位回数は最大でないため(ic(=1)=mic
(=1))最大値(mic)は更新せず、プラス方向へ
のカウンタ(ic)をクリアする(ic=0)。
Comparing the third and fourth values for the Y coordinate, since they are 71 and 67, the displacement is in the negative direction, and the counter (dc) is incremented by 1 (dc = 1). It was displaced in the plus direction one time ago, but the current number of displacements in the plus direction is not the maximum (ic (= 1) = mic
(= 1)) The maximum value (mic) is not updated, and the counter (ic) in the plus direction is cleared (ic = 0).

【0074】Y座標について4番目と5番目の値を比較
すると67と68であるため、プラス方向への変位とな
り、カウンタ(ic)を1増やす(ic=1)。1回前
ではマイナス方向へ変位していたが、現在のマイナス方
向への変位回数は最大でないため(dc(=1)=md
c(=1))最大値(mdc)は更新せず、マイナス方
向へのカウンタ(dc)をクリアする(dc=0)。
Comparing the 4th and 5th values for the Y coordinate, they are 67 and 68. Therefore, the displacement is in the plus direction, and the counter (ic) is incremented by 1 (ic = 1). Although it was displaced in the minus direction one time before, since the number of times of displacement in the minus direction at present is not the maximum (dc (= 1) = md
c (= 1)) The maximum value (mdc) is not updated, and the counter (dc) in the minus direction is cleared (dc = 0).

【0075】ステップA21ではY座標の比較が終了し
ているためステップA22に進む。プラス方向への変位
回数が最大でないので(ic(=1)=mic(=
1))ステップA24に進み、マイナス方向への変位回
数が最大でないので(dc(=0)<mdc(=1))
ステップA28に進む。
At step A21, since the comparison of the Y coordinates is completed, the process proceeds to step A22. Since the number of displacements in the plus direction is not the maximum (ic (= 1) = mic (=
1)) Proceed to step A24, and the number of times of displacement in the negative direction is not the maximum (dc (= 0) <mdc (= 1)).
Go to step A28.

【0076】ステップA28ではX座標、Y座標につい
て座標データの変位量(dx、dy)を求める(dx=
2、dy=4)。
At step A28, the displacement amount (dx, dy) of the coordinate data is calculated for the X coordinate and the Y coordinate (dx =
2, dy = 4).

【0077】そして、ステップA29ではプラス方向へ
の変位回数の最大値(mic=1)、マイナス方向への
変位回数の最大値(mdc=1)、X座標の変位量(d
x=2)、Y座標の変位量(dy=4)としきい値を比
較する。同一方向への変位回数のしきい値は”2”、変
位量のしきい値は”5”であるため、H/Wの誤差であ
ると判断し、入力座標は静止状態と見なし、前回判定手
段102により決定された前回の座標データ(xp,y
p)である(51,72)を採用し処理を終了する。
Then, in step A29, the maximum value of the number of displacements in the plus direction (mic = 1), the maximum value of the number of displacements in the minus direction (mdc = 1), the displacement amount of the X coordinate (d)
x = 2), the displacement amount of the Y coordinate (dy = 4) and the threshold value are compared. Since the threshold value for the number of displacements in the same direction is "2" and the threshold value for the displacement amount is "5", it is determined that there is an error in H / W, the input coordinates are regarded as stationary, and the previous determination is made. The previous coordinate data (xp, y determined by the means 102)
(51, 72) which is p) is adopted, and the processing is ended.

【0078】次に、パターン2の場合を考える。X座標
についてはパターン1の場合と同様であり、ステップA
26の時点で、プラス方向の最大値が1、マイナス方向
の最大値が1となる。一方、Y座標については1番目と
2番目の比較、2番目と3番目の比較はパターン1と同
様であるが、3番目と4番目の比較では71と74、4
番目と5番目の比較では74と78で共にプラス方向へ
の変位となり、結果として3回連続してプラス方向への
変位となる(ic=3)。ステップA22では、プラス
方向への変位回数が今までで最大となるため(ic(=
3)>mic(=1))、最大値(mic)は更新され
る(mic=3)。マイナス方向については変位回数
(dc)が最大値でないため(dc(=0)<mdc
(=1))、更新されない。
Next, consider the case of pattern 2. The X coordinate is the same as in the case of pattern 1, and step A
At the time of 26, the maximum value in the plus direction becomes 1 and the maximum value in the minus direction becomes 1. On the other hand, regarding the Y coordinate, the first and second comparisons, the second and third comparisons are the same as those in the pattern 1, but the third and fourth comparisons are 71 and 74, 4 and 4, respectively.
In the second and fifth comparisons, both 74 and 78 result in displacement in the positive direction, and as a result, displacement in the positive direction occurs three times in a row (ic = 3). At step A22, the number of displacements in the plus direction is the maximum so far (ic (=
3)> mic (= 1)), the maximum value (mic) is updated (mic = 3). In the negative direction, the number of displacements (dc) is not the maximum value (dc (= 0) <mdc
(= 1)), not updated.

【0079】ステップA28ではX座標、Y座標につい
て座標データの変位量(dx、dy)を求める(dx=
2、dy=6)。
At step A28, the displacement amount (dx, dy) of the coordinate data is calculated for the X coordinate and the Y coordinate (dx =
2, dy = 6).

【0080】そして、ステップA29ではプラス方向へ
の変位回数の最大値(mic=3)、マイナス方向への
変位回数の最大値(mdc=1)、X座標の変位量(d
x=2)、Y座標の変位量(dy=6)としきい値を比
較する。同一方向への変位回数のしきい値は”2”、変
位量のしきい値は”5”であるため、変位回数の最大値
がしきい値よりも大きくなり(mic(=3)>しきい
値”2”)、座標データの変位量(dy)がしきい値よ
りも大きくなる(dy(=6)>しきい値”5”)。そ
の結果、入力による変位であると判断し、今回の新しい
座標データ(xn,yn)である(49,78)を採用
し処理を終了する。
Then, in step A29, the maximum value of the number of displacements in the plus direction (mic = 3), the maximum value of the number of displacements in the minus direction (mdc = 1), the displacement amount of the X coordinate (d)
x = 2), the displacement amount of the Y coordinate (dy = 6) and the threshold value are compared. Since the threshold of the number of displacements in the same direction is "2" and the threshold of the amount of displacement is "5", the maximum value of the number of displacements becomes larger than the threshold (mic (= 3)> The threshold value “2”), the displacement amount (dy) of the coordinate data becomes larger than the threshold value (dy (= 6)> threshold value “5”). As a result, it is determined that the displacement is due to input, the new coordinate data (xn, yn) (49, 78) of this time is adopted, and the process ends.

【0081】このようにして、H/Wから読みとったデ
ータのばらつきを抑えることを可能にする。
In this way, it is possible to suppress variations in the data read from the H / W.

【0082】次に、本発明の第2の実施の形態につい
て、図面を参照して説明する。
Next, a second embodiment of the present invention will be described with reference to the drawings.

【0083】図5は、本発明の第2の実施の形態の構成
図である。
FIG. 5 is a block diagram of the second embodiment of the present invention.

【0084】図5を参照すると、本発明の座標データ取
得誤差吸収装置は、コンピュータ100と表示画面部1
10と座標検出手段120と座標表示手段130とから
構成されている。コンピュータ100は、プログラム制
御により動作し、データ格納手段101と判定手段20
2とを含む。
Referring to FIG. 5, the coordinate data acquisition error absorbing apparatus according to the present invention includes a computer 100 and a display screen section 1.
10, a coordinate detection means 120 and a coordinate display means 130. The computer 100 operates under program control, and has a data storage unit 101 and a determination unit 20.
Including 2 and.

【0085】第2の実施の形態の構成は、第1の実施の
形態の構成の判定手段102を判定手段202に置換し
たものになっている。従って、ここでは、第1の実施の
形態と異なる判定手段202について説明する。
In the configuration of the second embodiment, the determining means 102 of the configuration of the first embodiment is replaced with the determining means 202. Therefore, here, the determination means 202 different from the first embodiment will be described.

【0086】判定手段202は、データ格納手段101
に格納されている複数の座標データを基に、座標検出手
段120が読みとった座標データが、H/Wの誤差であ
るか入力による変位であるかを判定する。判定手段20
2では、複数の座標データを比較して一定方向に変位し
ている回数と座標データの変位量を求め、しきい値と比
較し、H/Wの誤差であるか入力による変位であるかを
判定する。この場合、今回座標検出手段120が読みと
った座標データに対して移動平均法による計算を行い、
しきい値と比較して判定する。
The determination means 202 is the data storage means 101.
It is determined whether the coordinate data read by the coordinate detecting unit 120 is an H / W error or a displacement due to input, based on the plurality of coordinate data stored in. Determination means 20
In 2, the number of times of displacement in a certain direction and the amount of displacement of coordinate data are calculated by comparing a plurality of coordinate data, and compared with a threshold value to determine whether the error is H / W error or displacement due to input. judge. In this case, the moving average method is used to calculate the coordinate data read by the coordinate detecting means 120 this time,
Judge by comparing with a threshold value.

【0087】判定手段202による判定結果が、H/W
の誤差である場合には、入力座標は動かず静止状態とな
り、データ格納手段101に格納されている前回決定座
標の座標データを採用する。。
The determination result by the determination means 202 is H / W.
If the error is, the input coordinate does not move and remains stationary, and the coordinate data of the previously determined coordinate stored in the data storage unit 101 is adopted. .

【0088】判定手段202による判定結果が、入力に
よる変位である場合には、今回座標検出手段120が読
みとった座標データに対して移動平均法による計算を行
った値(以降、移動平均入力座標データと称す)を今回
の座標データとして採用する。移動平均入力座標データ
は、次回の判定のために、判定手段202により決定さ
れた前回の座標データ(前回決定座標データ)としてデ
ータ格納手段101に渡される。また、移動平均入力座
標データを座標表示手段130に渡す。
When the determination result of the determination means 202 is the displacement due to the input, the value obtained by performing the moving average method on the coordinate data read by the coordinate detection means 120 this time (hereinafter, the moving average input coordinate data). Is used as the coordinate data of this time. The moving average input coordinate data is passed to the data storage unit 101 as the previous coordinate data determined by the determination unit 202 (previously determined coordinate data) for the next determination. Further, the moving average input coordinate data is passed to the coordinate display means 130.

【0089】次に、本発明の第2の実施の形態の動作に
ついて、図2,図3,図5,図6および図7を参照し
て、詳細に説明する。
Next, the operation of the second embodiment of the present invention will be described in detail with reference to FIG. 2, FIG. 3, FIG. 5, FIG. 6 and FIG.

【0090】図6および図7は、判定手段202のフロ
ーチャートを示す図である。
FIGS. 6 and 7 are flowcharts of the judging means 202.

【0091】説明にあたり、座標検出手段120により
今回読み取った座標データすなわちデータ格納手段10
1により最も新しく格納された座標データを(xn,y
n)、データ格納手段101により最も過去に格納され
た座標データを(x1,y1)、判定手段202により
前回決定された前回決定座標データを(xp、yp)、
と表す。なお、前回決定座標データ(xp、yp)は移
動平均法で計算された値である。
In the explanation, the coordinate data read this time by the coordinate detecting means 120, that is, the data storing means 10
The coordinate data stored most recently by 1 is (xn, y
n), the coordinate data stored in the earliest by the data storage unit 101 is (x1, y1), the previously determined coordinate data previously determined by the determination unit 202 is (xp, yp),
Express. The previously determined coordinate data (xp, yp) is a value calculated by the moving average method.

【0092】図6および図7を参照すると、ステップB
1からステップB27までは、第1の実施の形態におけ
る図2および図3のステップA1からステップA27ま
でと同様である。
Referring to FIGS. 6 and 7, step B
Steps 1 to B27 are the same as steps A1 to A27 in FIGS. 2 and 3 in the first embodiment.

【0093】図7のステップB28では、座標検出手段
120により今回読み取った座標データ(xn,yn)
を移動平均法により計算する。なお、移動平均法により
計算した値を(xr,yr)と表す。
In step B28 of FIG. 7, the coordinate data (xn, yn) read this time by the coordinate detecting means 120.
Is calculated by the moving average method. The value calculated by the moving average method is represented as (xr, yr).

【0094】ステップB29では、X座標データの移動
平均法により計算した値(xr)と前回決定座標データ
(xp)の差の絶対値(dx)を求める(dx=|xr
−xp|)。また、Y座標データの移動平均法により計
算した値(yr)と前回決定座標データ(yp)の差の
絶対値(dy)を求める(dy=|yr−yp|)。こ
の時点で、XY座標の両方において、プラス方向へ連続
して変位した回数の最大値(mic)と、マイナス方向
へ連続して変位した回数の最大値(mdc)と、X座標
データの変位量(dx)と、Y座標データの変位量(d
y)が得られる。
In step B29, the absolute value (dx) of the difference between the value (xr) calculated by the moving average method of the X coordinate data and the previously determined coordinate data (xp) is obtained (dx = | xr).
-Xp |). Also, the absolute value (dy) of the difference between the value (yr) calculated by the moving average method of the Y coordinate data and the previously determined coordinate data (yp) is obtained (dy = | yr−yp |). At this point, the maximum number of consecutive displacements in the plus direction (mic), the maximum number of consecutive displacements in the minus direction (mdc), and the displacement amount of the X coordinate data in both the XY coordinates. (Dx) and the displacement amount of the Y coordinate data (d
y) is obtained.

【0095】ステップB30では、プラス方向への変位
回数の最大値(mic)と、マイナス方向への変位回数
の最大値(mdc)と、X座標データの変位量(dx)
と、Y座標データの変位量(dy)とが全てしきい値内
であれば、H/Wの誤差であると判断しステップB31
に、そうでなければ入力による変位と判断しステップB
32に分岐する。
At step B30, the maximum value of the number of displacements in the plus direction (mic), the maximum value of the number of displacements in the minus direction (mdc), and the displacement amount of the X coordinate data (dx).
And the displacement amount (dy) of the Y coordinate data are all within the threshold value, it is determined that there is an error of H / W and step B31.
If not, it is judged as displacement due to input and step B
Branch to 32.

【0096】ステップB31では、ステップB30でH
/Wの誤差であった場合、入力座標は動かず静止状態と
なるため、前回決定座標データ(xp,yp)を採用し
処理を終了する。
At step B31, H at step B30
In the case of an error of / W, the input coordinate does not move and is in a stationary state, so the previously determined coordinate data (xp, yp) is adopted and the process ends.

【0097】ステップB32では、ステップB30で入
力による変位であった場合、今回の座標データとして
(xr,yr)を採用し処理を終了する。
In step B32, if the displacement is the input in step B30, (xr, yr) is adopted as the current coordinate data, and the process ends.

【0098】このようにして、H/Wから読みとったデ
ータのばらつきを抑えることを可能にする。
In this way, it is possible to suppress variations in the data read from the H / W.

【0099】本発明による上述した実施の形態におい
て、座標データ取得誤差吸収装置の処理動作を実行する
ためのプログラム等を、データとして磁気ディスクや光
ディスク等の記憶装置(図示せず)に記憶するように
し、記憶されたデータを読み出して座標データ取得誤差
吸収装置を動作させるために用いる。このように、本発
明による座標データ取得誤差吸収装置を動作させるデー
タを記録媒体に記録させ、この記録媒体をインストール
することにより座標データ取得誤差吸収装置の機能が実
現できるようになる。
In the above-described embodiment of the present invention, a program for executing the processing operation of the coordinate data acquisition error absorbing device is stored as data in a storage device (not shown) such as a magnetic disk or an optical disk. Then, the stored data is read out and used to operate the coordinate data acquisition error absorbing device. As described above, by recording the data for operating the coordinate data acquisition error absorbing device according to the present invention in the recording medium and installing this recording medium, the function of the coordinate data acquisition error absorbing device can be realized.

【0100】[0100]

【発明の効果】本発明の効果は、H/Wの誤差による入
力位置を表示するポイントのゆらぎを抑えられることに
ある。
The effect of the present invention is to suppress the fluctuation of the point displaying the input position due to the error of H / W.

【0101】その理由は、H/Wの誤差であるか入力に
よる変位であるかを判定し、H/Wの誤差である場合は
1座標前と同じ座標データ表示させ、入力による変位で
ある場合は読みとった現在の座標データを表示させる手
段を設けたからである。
The reason is that it is judged whether there is an error in H / W or a displacement due to input. If there is an error in H / W, the same coordinate data as one coordinate before is displayed, and if the displacement is due to input. Is provided with a means for displaying the read current coordinate data.

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

【図1】本発明の第1の実施の形態の構成図FIG. 1 is a configuration diagram of a first embodiment of the present invention.

【図2】判定手段102のフローチャート(その1)を
示す図
FIG. 2 is a diagram showing a flowchart (part 1) of a determination means 102.

【図3】判定手段102のフローチャート(その2)を
示す図
FIG. 3 is a diagram showing a flowchart (No. 2) of the determination means 102.

【図4】本発明の第1の実施の形態の動作を説明する図FIG. 4 is a diagram explaining an operation of the first embodiment of the present invention.

【図5】本発明の第2の実施の形態の構成図FIG. 5 is a configuration diagram of a second embodiment of the present invention.

【図6】判定手段202のフローチャート(その1)を
示す図
FIG. 6 is a diagram showing a flowchart (part 1) of a determination means 202.

【図7】判定手段202のフローチャート(その2)を
示す図
FIG. 7 is a diagram showing a flowchart (part 2) of the determination means 202.

【符号の説明】[Explanation of symbols]

100 コンピュータ 101 データ格納手段 102 判定手段 110 表示画面部 120 座標検出手段 130 座標表示手段 202 判定手段 100 computers 101 data storage means 102 determination means 110 Display screen section 120 coordinate detection means 130 coordinate display means 202 determination means

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 表示画面部から座標データを読みとる座
標検出手段と、 前記座標検出手段が今回読みとった座標データおよび過
去に遡った分の座標データとから成る複数の座標データ
ならびに判定手段により前回入力座標と決定された前回
決定座標データを格納するデータ格納手段と、 前記データ格納手段に格納されている今回読みとった座
標データおよび過去に遡った分の座標データとから成る
複数の座標データを比較して一定方向に連続して変位し
た回数の最大値をプラス方向およびマイナス方向に対し
て求め、今回読みとった座標データと前記前回決定座標
データの差から座標データの変位量をX座標およびY座
標に対して求め、前記一定方向に連続して変位した回数
のプラス方向およびマイナス方向の最大値および前記座
標データのX座標およびY座標の変位量をしきい値と比
較し、前記一定方向に連続して変位した回数のプラス方
向およびマイナス方向の最大値ならびに前記座標データ
のX座標およびY座標の変位量が全てしきい値内であれ
ば前記座標検出手段が今回読みとった座標データはハー
ドウェアの誤差であると判定し、そうでなければ前記座
標検出手段が今回読みとった座標データは入力による変
位であると判定し、ハードウェアの誤差である場合には
前記データ格納手段に格納されている前回に前記判定手
段で決定された前回決定座標データを入力座標と確定
し、入力による変位である場合には今回前記座標検出手
段が読みとった座標データを入力座標と確定する判定手
段と、 前記判定手段が確定した入力座標を前記表示画面部に表
示させる座標表示手段と、 を備える座標データ取得誤差吸収装置。
1. A coordinate detecting means for reading coordinate data from a display screen portion, and coordinate data and an error information read by the coordinate detecting means this time.
A plurality of coordinate data consisting of the coordinate data traced back to the last time and the previous time when it was determined as the last input coordinate by the judging means.
Data storage means for storing the determined coordinate data , and the currently read position stored in the data storage means.
Comprised of standard data and coordinate data traced back in the past
Compare multiple coordinate data and move continuously in a certain direction.
The maximum number of times
Coordinate data read this time and the previously determined coordinates
The displacement amount of the coordinate data is calculated from the difference of the data as X coordinate and Y coordinate.
Number of continuous displacements in the above-mentioned fixed direction obtained from the target
Positive and negative maximum values and the seat
The displacement amount of the X coordinate and Y coordinate of the standard data is compared with the threshold value.
In comparison, the plus of the number of continuous displacement in the above-mentioned fixed direction
Direction and minus maximum value and the coordinate data
If the displacements of the X and Y coordinates of
For example, the coordinate data read this time by the coordinate detection means is
Hardware error, if not,
The coordinate data read this time by the mark detection means is changed by input.
If there is a hardware error,
The determination hand previously stored in the data storage means is stored.
Confirm the previously determined coordinate data determined in the column as the input coordinate
However, if the displacement is due to input, this time the coordinate detection
A coordinate data acquisition error absorbing device, comprising: a determination unit that determines the coordinate data read by the step as an input coordinate; and a coordinate display unit that displays the input coordinate determined by the determination unit on the display screen unit.
【請求項2】 前記判定手段が判定の基とする前記デー
タ格納手段に格納されている複数の座標データは、今回
前記座標検出手段で読みとられた座標データと過去に遡
った分の座標データであり、前記過去に遡った分の座標
データの個数は外部から指定することを特徴とする請求
項1記載の座標データ取得誤差吸収装置。
2. The plurality of coordinate data stored in the data storage means on which the determination means makes a determination are the coordinate data read this time by the coordinate detection means and the coordinate data traced back in the past. , and the said number of minute coordinate data retroactively the coordinate data acquisition error absorbing device according to claim 1, characterized in that the externally specified.
【請求項3】 表示画面部から読みとった座標データを
格納し、 今回読みとった座標データと過去に遡った分の座標デー
タとから成る複数の座標データを比較して一定方向に連
続して変位した回数の最大値をプラス方向およびマイナ
ス方向に対して求め、 今回読みとった座標データと前回決定座標データの差か
ら座標データの変位量をX座標およびY座標に対して
め、 前記一定方向に連続して変位した回数のプラス方向およ
びマイナス方向の最大値および前記座標データのX座標
およびY座標の変位量をしきい値と比較し、 前記一定方向に連続して変位した回数のプラス方向およ
びマイナス方向の最大値および前記座標データのX座標
およびY座標の変位量が全てしきい値内であれば今回
みとった座標データはハードウェアの誤差であると判定
して前回決定座標データを採用し、 前記一定方向に連続して変位した回数のプラス方向およ
びマイナス方向の最大値および前記座標データのX座標
およびY座標の変位量のいずれかがしきい値内でなけれ
今回読みとった座標データは入力による変位であると
判定して読みとった座標データを今回の座標データに採
用し前回決定座標データとして格納し、 採用された座標データを前記表示画面部に表示させるこ
とを特徴とする座標データ取得誤差吸収方法。
3. The coordinate data read from the display screen is stored, and a plurality of coordinate data consisting of the coordinate data read this time and the coordinate data traced back in the past are compared and continuously displaced in a certain direction. Maximum number of times plus direction and minor
Calculated for Direction, determined <br/> Me a displacement of the coordinate data from the difference between the coordinate data and the previous determination coordinate data read this time with respect to the X and Y coordinates, displaced continuously in the predetermined direction Positive direction of the number of times and
And the maximum value in the minus direction and the X coordinate of the coordinate data
And the amount of displacement of the Y coordinate is compared with a threshold value, and the number of consecutive displacements in the fixed direction and the positive direction and
And the maximum value in the minus direction and the X coordinate of the coordinate data
And the coordinate data amount of displacement of all analyzed from the points currently read <br/> Within threshold Y coordinate adopts previous decision coordinate data is determined to be the error in hardware, in succession to said predetermined direction the positive direction of the number of displaced Te Hoyo
And the maximum value in the minus direction and the X coordinate of the coordinate data
If either of the displacement amounts of the Y coordinate and the Y coordinate is not within the threshold value, the coordinate data read this time is determined to be the displacement due to input, and the read coordinate data is adopted as the coordinate data of this time and stored as the previously determined coordinate data. Then, the adopted coordinate data is displayed on the display screen section.
【請求項4】 表示画面部から読みとった座標データを
格納する格納処理と、 今回読みとった座標データと過去に遡った分の座標デー
タとから成る複数の座標データを比較して一定方向に連
続して変位した回数の最大値をプラス方向およびマイナ
ス方向に対して求める変位回数最大値処理と、 今回読みとった座標データと前回決定座標データの差か
ら座標データの変位量をX座標およびY座標に対して
める変位量処理と、 前記一定方向に連続して変位した回数のプラス方向およ
びマイナス方向の最大値および前記座標データのX座標
およびY座標の変位量をしきい値と比較するしきい値比
較処理と、 前記一定方向に連続して変位した回数のプラス方向およ
びマイナス方向の最大値および前記座標データのX座標
およびY座標の変位量が全てしきい値内であれば今回
みとった座標データはハードウェアの誤差であると判定
して前回決定座標データを採用するHW判定処理と、 前記一定方向に連続して変位した回数のプラス方向およ
びマイナス方向の最大値および前記座標データのX座標
およびY座標の変位量のいずれかがしきい値内でなけれ
今回読みとった座標データは入力による変位であると
判定して読みとった座標データを今回の座標データに採
用し前回決定座標データとして格納する入力変位判定処
理と、 採用された座標データを前記表示画面部に表示させる表
示処理と、 をコンピュータに実行させるためのプログラムを記録し
たことを特徴とする記録媒体。
4. A storage process for storing coordinate data read from the display screen section, and a plurality of coordinate data composed of the coordinate data read this time and the coordinate data traced back in the past are compared and continuously processed in a fixed direction. plus direction and minus the maximum value of the number of displaced Te
And displacement times the maximum value processing for determining relative scan direction, determined <br/> Mel displacement process from the difference between the coordinate data and the previous determination coordinate data read this time the displacement of the coordinate data to the X-coordinate and Y-coordinate And the number of times of continuous displacement in the fixed direction and the positive direction and
And the maximum value in the minus direction and the X coordinate of the coordinate data
And a threshold value comparison process for comparing the displacement amount of the Y coordinate with a threshold value, and a plus direction of the number of consecutive displacements in the certain direction.
And the maximum value in the minus direction and the X coordinate of the coordinate data
And HW determination process employing a previous decision coordinate data determined and the coordinate data amount of displacement that are analyzed from the points currently read <br/> if all the threshold Y coordinate is the error of the hardware, the constant The number of consecutive displacements in the positive direction and
And the maximum value in the minus direction and the X coordinate of the coordinate data
If either of the displacement amount of Y coordinate and Y coordinate is not within the threshold value, the coordinate data read this time is determined to be the displacement due to the input and the read coordinate data is adopted as the coordinate data of this time and stored as the previously determined coordinate data. A recording medium for recording a program for causing a computer to execute the input displacement determination process for performing the display process, and the display process for displaying the adopted coordinate data on the display screen unit.
JP24278899A 1999-08-30 1999-08-30 Coordinate data acquisition error absorbing device, method and recording medium Expired - Fee Related JP3522164B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24278899A JP3522164B2 (en) 1999-08-30 1999-08-30 Coordinate data acquisition error absorbing device, method and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24278899A JP3522164B2 (en) 1999-08-30 1999-08-30 Coordinate data acquisition error absorbing device, method and recording medium

Publications (2)

Publication Number Publication Date
JP2001067185A JP2001067185A (en) 2001-03-16
JP3522164B2 true JP3522164B2 (en) 2004-04-26

Family

ID=17094311

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24278899A Expired - Fee Related JP3522164B2 (en) 1999-08-30 1999-08-30 Coordinate data acquisition error absorbing device, method and recording medium

Country Status (1)

Country Link
JP (1) JP3522164B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5787824B2 (en) * 2012-04-25 2015-09-30 京セラ株式会社 Electronics
JP6301809B2 (en) * 2014-10-23 2018-03-28 アルパイン株式会社 Touch panel input device and computer program
JP6219260B2 (en) * 2014-11-26 2017-10-25 アルプス電気株式会社 INPUT DEVICE, ITS CONTROL METHOD, AND PROGRAM

Also Published As

Publication number Publication date
JP2001067185A (en) 2001-03-16

Similar Documents

Publication Publication Date Title
JP5230733B2 (en) Pointer control unit
US6774886B2 (en) Display system, cursor position indication method, and recording medium
EP1457864A1 (en) INPUT APPARATUS&amp;comma; COMPUTER APPARATUS&amp;comma; METHOD FOR IDENTIFYING INPUT OBJECT&amp;comma; METHOD FOR IDENTIFYING INPUT OBJECT IN KEYBOARD&amp;comma; AND COMPUTER PROGRAM
US20090222761A1 (en) Computer-readable recording medium having display screen setting program recorded thereon, information processing apparatus, and display screen setting method
JP2011522332A (en) Multiple pointer ambiguity and occlusion resolution
CN101408814A (en) Gesture determination apparatus and method
US10042544B2 (en) Method for controlling the magnification level on a display
CN103376945B (en) Information processor and control method thereof
JPH07306752A (en) Touch panel input device
CN110764652A (en) Infrared touch screen and touch point prediction method thereof
JP3522164B2 (en) Coordinate data acquisition error absorbing device, method and recording medium
WO2015049934A1 (en) Information processing device, information processing method, and program
US20080163101A1 (en) Managing display windows on small screens
JP5219134B2 (en) INFORMATION DISPLAY DEVICE, INFORMATION DISPLAY METHOD, INFORMATION DISPLAY PROGRAM, AND STORAGE MEDIUM CONTAINING INFORMATION DISPLAY PROGRAM
US11947793B2 (en) Portable terminal, display method, and storage medium
US20120299837A1 (en) Identifying contacts and contact attributes in touch sensor data using spatial and temporal features
CN114489461A (en) Touch response method, device, equipment and storage medium
US20070094614A1 (en) Data processing device
CN112269498A (en) Touch screen detection method and device, touch display equipment and readable storage medium
US10852919B2 (en) Touch input judgment device, touch panel input device, touch input judgment method, and a computer readable medium
US10739961B2 (en) Display apparatus for gradual expansion and contraction of selected text, and display method
JP4236962B2 (en) Handwritten character drawing apparatus, handwritten character drawing method, and program for causing a computer to execute the handwritten character drawing method
JP5833898B2 (en) Information processing program, information processing apparatus, information processing system, and information processing method
JP2715431B2 (en) Command judgment method
JP3154844B2 (en) Graphic input method and graphic input device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040203

LAPS Cancellation because of no payment of annual fees