TW201421298A - Method for correcting touch position - Google Patents

Method for correcting touch position Download PDF

Info

Publication number
TW201421298A
TW201421298A TW102129867A TW102129867A TW201421298A TW 201421298 A TW201421298 A TW 201421298A TW 102129867 A TW102129867 A TW 102129867A TW 102129867 A TW102129867 A TW 102129867A TW 201421298 A TW201421298 A TW 201421298A
Authority
TW
Taiwan
Prior art keywords
touch event
current touch
predicted
deviation
value
Prior art date
Application number
TW102129867A
Other languages
Chinese (zh)
Other versions
TWI485582B (en
Inventor
Kun-Yi Lin
Li-Pin Yeh
Original Assignee
Asustek Comp Inc
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 Asustek Comp Inc filed Critical Asustek Comp Inc
Priority to US14/078,480 priority Critical patent/US9239649B2/en
Publication of TW201421298A publication Critical patent/TW201421298A/en
Application granted granted Critical
Publication of TWI485582B publication Critical patent/TWI485582B/en

Links

Abstract

A method for correcting a touch position, for using an electronic apparatus, is provided. The method includes: receiving a current touch event; obtaining a prediction information based on a correction information of a previous touch event which is received at a previous time point before the current touch event; obtaining a correction information of the current touch event based according to the prediction information and a measurement position of the current touch event; and updating a position of the current touch event in a display unit by using the correction information of the current touch event.

Description

修正觸碰位置的方法 Correct the method of touching the position

本案是有關於一種觸碰技術,且特別是有關於一種修正觸碰位置的方法。 This case is about a touch technique, and in particular, a method for correcting the touch position.

近年來隨著觸碰技術的進步以及電子產品之各項應用的快速發展,觸碰式面板已變得十分普及。觸碰式面板可讓使用者直接在螢幕上點選,並依據點選的位置來動作。例如,游標會隨著使用者在觸碰式面板上的滑動、拖曳等觸碰操作而移動。然而,由於系統的測量誤差、人為滑動時的速度不均或是手細微的顫抖等,皆會造成畫面抖動(frame jitter)的問題。 In recent years, with the advancement of touch technology and the rapid development of various applications of electronic products, touch panels have become very popular. The touch panel allows the user to click directly on the screen and act according to the selected location. For example, the cursor moves as the user slides, drags, etc. on the touch panel. However, due to the measurement error of the system, the uneven speed of the human sliding, or the slight tremor of the hand, the problem of frame jitter is caused.

為了解決畫面抖動問題,一般是利用線性回歸(liner regression)演算法、內插法(interpolation)或外插法(extrapolation)來進行修正。線性回歸演算法需要收集大量觸碰事件的相關資訊,並且隨著相關資訊的資料量越大,顯示於螢幕上的修正後的觸碰操作則會越平順。然而,隨著資料量的增加,計算時間亦會變長,反應時間則越慢。另外,內插法或外插法則是無法針對慢速滑動來執行最佳化處理,因而在慢速滑動時仍存在有畫面抖動 問題。 In order to solve the problem of picture jitter, it is generally corrected by a linear regression algorithm, interpolation or extrapolation. The linear regression algorithm needs to collect information about a large number of touch events, and the more the amount of related information, the smoother the corrected touch operation displayed on the screen. However, as the amount of data increases, the calculation time will also become longer and the reaction time will be slower. In addition, interpolation or extrapolation cannot perform optimization for slow sliding, so there is still image jitter during slow sliding. problem.

本案提供一種修正觸碰位置的方法,可快速地修正觸碰位置,以解決畫面抖動問題。 This case provides a way to correct the touch position, which can quickly correct the touch position to solve the picture jitter problem.

本案的修正觸碰位置的方法,用於電子裝置。本方法包括:接收目前觸碰事件;基於在目前觸碰事件的前一個時間點所接收的前次觸碰事件的修正資訊,獲得目前觸碰事件的預測資訊;依據預測資訊與目前觸碰事件的測量位置,獲得目前觸碰事件的修正資訊;以及以目前觸碰事件的修正資訊,更新目前觸碰事件於顯示單元中的位置。 The method of correcting the touch position of the present case is for an electronic device. The method includes: receiving a current touch event; obtaining prediction information of the current touch event based on the correction information of the previous touch event received at a previous time point of the current touch event; and based on the predicted information and the current touch event The measurement position, the correction information of the current touch event is obtained; and the correction information of the current touch event is used to update the position of the current touch event in the display unit.

在本案的一實施例中,上述修正資訊包括修正位置與修正偏差,預測資訊包括預測位置與預測偏差。而其中基於在目前觸碰事件的前一個時間點所接收的前次觸碰事件的修正資訊,獲得目前觸碰事件時間點的該預測資訊的步驟包括:以前次觸碰事件的修正位置,作為目前觸碰事件時間點的預測位置;以及以前次觸碰事件的修正偏差加上預測偏差值的值,作為目前觸碰事件的預測偏差。 In an embodiment of the present invention, the correction information includes a correction position and a correction deviation, and the prediction information includes a predicted position and a predicted deviation. The step of obtaining the prediction information of the current touch event time point based on the correction information of the previous touch event received at the previous time point of the current touch event includes: the corrected position of the previous touch event, as The predicted position of the current touch event time point; and the corrected deviation of the previous touch event plus the value of the predicted deviation value as the predicted deviation of the current touch event.

在本案的一實施例中,上述依據預測資訊與目前觸碰事件的測量位置,獲得目前觸碰事件的修正資訊的步驟包括:基於目前觸碰事件的預測偏差與測量偏差值,計算目前觸碰事件的增益值;基於增益值與目前觸碰事件的預測位置,獲得目前觸碰事件的修正位置;以及基於增益值與目前觸碰事件的預測偏差,獲 得目前觸碰事件的修正偏差。 In an embodiment of the present invention, the step of obtaining the correction information of the current touch event according to the predicted information and the measurement position of the current touch event comprises: calculating the current touch based on the predicted deviation and the measured deviation value of the current touch event The gain value of the event; based on the gain value and the predicted position of the current touch event, obtaining the corrected position of the current touch event; and obtaining the predicted deviation based on the gain value and the current touch event Corrected the deviation of the current touch event.

在本案的一實施例中,以目前觸碰事件的預測偏差,除以目前觸碰事件的預測偏差加上測量偏差值之後的值,藉此獲得增益值。以目前觸碰事件的測量位置減去目前觸碰事件的預測位置之後乘上增益值所獲得的值,加上目前觸碰事件的預測位置,進而獲得目前觸碰事件的修正位置。以1減去增益值後的值乘上目前觸碰事件的預測偏差,藉此獲得目前觸碰事件的修正偏差。 In an embodiment of the present invention, the gain value is obtained by dividing the predicted deviation of the current touch event by the predicted deviation of the current touch event plus the value after the measurement deviation value. The corrected position of the current touch event is obtained by subtracting the predicted position of the current touch event from the measured position of the current touch event and multiplying the value obtained by the gain value, plus the predicted position of the current touch event. The value obtained by subtracting the gain value is multiplied by the predicted deviation of the current touch event, thereby obtaining the corrected deviation of the current touch event.

在本案的一實施例中,在獲得目前觸碰事件的修正資訊之後,還可計算目前觸碰事件的修正位置與前次觸碰事件的修正位置之間的位移量。並且,依據位移量,調整測量偏差值。例如,當位移量大於一門檻值時,將預測偏差值調大;當位移量小於門檻值時,將測量偏差值調小。或者,依據位移量所位於的預設範圍,依據預設範圍所對應的調整值來調整測量偏差值。另外,還可依據位移量,調整預測偏差值。 In an embodiment of the present invention, after obtaining the correction information of the current touch event, the amount of displacement between the corrected position of the current touch event and the corrected position of the previous touch event may also be calculated. And, the measurement deviation value is adjusted according to the displacement amount. For example, when the displacement amount is greater than a threshold value, the predicted deviation value is increased; when the displacement amount is less than the threshold value, the measurement deviation value is decreased. Or, according to the preset range in which the displacement amount is located, the measurement deviation value is adjusted according to the adjustment value corresponding to the preset range. In addition, the predicted deviation value can be adjusted according to the displacement amount.

在本案的一實施例中,當目前觸碰事件為初始所接收的觸碰事件,以目前觸碰事件的測量位置作為目前觸碰事件的預測位置。 In an embodiment of the present invention, when the current touch event is the initially received touch event, the measured position of the current touch event is used as the predicted position of the current touch event.

在本案的一實施例中,在獲得目前觸碰事件的修正資訊之後,記錄目前觸碰事件的修正資訊至儲存單元,並且刪除前次觸碰事件的修正資訊。 In an embodiment of the present invention, after obtaining the correction information of the current touch event, the correction information of the current touch event is recorded to the storage unit, and the correction information of the previous touch event is deleted.

為讓本案的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 In order to make the above features and advantages of the present invention more comprehensible, the following embodiments are described in detail with reference to the accompanying drawings.

100‧‧‧電子裝置 100‧‧‧Electronic devices

110‧‧‧處理單元 110‧‧‧Processing unit

120‧‧‧觸碰單元 120‧‧‧Touch unit

130‧‧‧顯示單元 130‧‧‧Display unit

140‧‧‧儲存單元 140‧‧‧ storage unit

S205~S220‧‧‧修正觸碰位置的方法的步驟 S205~S220‧‧‧Steps to correct the method of touching the position

S305~S310‧‧‧修正觸碰位置的方法的其他步驟 S305~S310‧‧‧Other steps to correct the touch position

圖1是依照本案一實施例的一種電子裝置的方塊圖。 1 is a block diagram of an electronic device in accordance with an embodiment of the present invention.

圖2是依照本案一實施例的一種修正觸碰位置的方法流程圖。 2 is a flow chart of a method of correcting a touch position in accordance with an embodiment of the present invention.

圖3是依照本案一實施例的修正觸碰位置的方法的變形例的流程圖。 3 is a flow chart of a variation of the method of correcting a touch position in accordance with an embodiment of the present invention.

圖4是依照本案一實施例的修改前後的位置位移量的示意圖。 4 is a schematic diagram of position displacement amounts before and after modification in accordance with an embodiment of the present invention.

圖1是依照本案一實施例的一種電子裝置的方塊圖。請參照圖1,電子裝置100包括處理單元110、觸碰單元120、顯示單元130以及儲存單元140。其中,處理單元110耦接至觸碰單元120、顯示單元130以及儲存單元140。電子裝置100例如為手機、智慧型手機、平板電腦、筆記型電腦、桌上型電腦、車用電腦、導航裝置等。 1 is a block diagram of an electronic device in accordance with an embodiment of the present invention. Referring to FIG. 1 , the electronic device 100 includes a processing unit 110 , a touch unit 120 , a display unit 130 , and a storage unit 140 . The processing unit 110 is coupled to the touch unit 120, the display unit 130, and the storage unit 140. The electronic device 100 is, for example, a mobile phone, a smart phone, a tablet computer, a notebook computer, a desktop computer, a car computer, a navigation device, or the like.

在此,處理單元110例如為中央處理單元(Central Processing Unit,CPU)。觸碰單元120例如為電容式觸碰面板或電組式觸控面板等。顯示單元130例如為液晶顯示器(Liquid Crystal Display,LCD)或電漿顯示器(Plasma Display Panel, PDP)。儲存單元140例如為隨機存取記憶體(RAM)。 Here, the processing unit 110 is, for example, a central processing unit (CPU). The touch unit 120 is, for example, a capacitive touch panel or a group touch panel. The display unit 130 is, for example, a liquid crystal display (LCD) or a plasma display panel (Plasma Display Panel, PDP). The storage unit 140 is, for example, a random access memory (RAM).

在本實施例中,是由圖形處理單元來處理影像處理工作。然,在其他實施例中,電子裝置100還可設置獨立顯卡或圖形處理單元或是處理單元110來專門處理影像處理工作。並且,在其他實施例中,觸碰單元120亦可與顯示單元130整合為觸碰顯示單元(如觸碰螢幕);電子裝置100亦可設置一橋接控制單元(如南橋晶片、北橋晶片等),使得處理單元110透過橋接控制單元耦接至觸碰單元120、顯示單元130、儲存單元140以及其他周邊設備。 In this embodiment, the image processing operation is processed by the graphics processing unit. However, in other embodiments, the electronic device 100 may also be provided with a separate graphics card or graphics processing unit or processing unit 110 to specifically handle image processing operations. In addition, in other embodiments, the touch unit 120 can also be integrated with the display unit 130 to touch the display unit (such as a touch screen); the electronic device 100 can also be provided with a bridge control unit (such as a south bridge chip, a north bridge chip, etc.) The processing unit 110 is coupled to the touch unit 120, the display unit 130, the storage unit 140, and other peripheral devices through the bridge control unit.

底下即搭配上述電子裝置100來說明修正觸碰位置的方法各步驟。圖2是依照本案一實施例的一種修正觸碰位置的方法流程圖。請同時參照圖1及圖2,在步驟S205中,處理單元110經由觸碰單元120接收目前觸碰事件。例如,使用者可在觸碰單元120中執行觸碰操作,而觸碰單元120例如會在不同的時間點去擷取觸碰操作對應的觸碰事件,並傳送至處理單元110。 The steps of the method for correcting the touch position are explained below with the electronic device 100 described above. 2 is a flow chart of a method of correcting a touch position in accordance with an embodiment of the present invention. Referring to FIG. 1 and FIG. 2 simultaneously, in step S205, the processing unit 110 receives the current touch event via the touch unit 120. For example, the user can perform a touch operation in the touch unit 120, and the touch unit 120 can capture the touch event corresponding to the touch operation at different time points, for example, and transmit the touch event to the processing unit 110.

接著,處理單元110利用前一個時間點的前次觸碰事件的進行位置修正後的修正資訊,來對當前時間點所接收的目前觸碰事件進行位置的預測。即,如步驟S210所示,處理單元110基於在目前觸碰事件的前一個時間點所接收的前次觸碰事件的修正資訊,獲得目前觸碰事件的預測資訊。也就是說,假設目前時間點為t,處理單元110是利用上一個時間點t-1的觸碰事件(在此稱為“前次觸碰事件”)的修正資訊,來計算時間點t的觸碰事件(在 此稱為“目前觸碰事件”)的預測資訊。 Next, the processing unit 110 uses the correction information after the position correction of the previous touch event at the previous time point to predict the position of the current touch event received at the current time point. That is, as shown in step S210, the processing unit 110 obtains prediction information of the current touch event based on the correction information of the previous touch event received at the previous time point of the current touch event. That is to say, assuming that the current time point is t, the processing unit 110 calculates the time point t by using the correction information of the touch event (herein referred to as "previous touch event") of the previous time point t-1. Touch event This is the prediction information called "current touch event".

然後,處理單元110再依據預測後的結果,進一步修正目前觸碰事件實際的測量位置。如步驟S215所示,處理單元110依據預測資訊與目前觸碰事件的測量位置,獲得目前觸碰事件的修正資訊。 Then, the processing unit 110 further corrects the actual measurement position of the current touch event according to the predicted result. As shown in step S215, the processing unit 110 obtains the correction information of the current touch event according to the predicted information and the measurement position of the current touch event.

底下以卡爾曼濾波器(Kalman filter)為例來說明。並且,上述修正資訊包括修正位置與修正偏差,預測資訊包括預測位置與預測偏差。在步驟S210中,以前次觸碰事件的修正位置(底下以x t-1|t-1代表),作為目前觸碰事件的預測位置(底下以x t|t-1代表)。並且,以前次觸碰事件的修正偏差(底下以p t-1|t-1代表)加上預測偏差值(底下以q代表)的值,作為目前觸碰事件的該預測偏差(底下以p t|t-1代表)。據此,可獲得底下式子(1)與式子(2)。 The Kalman filter is taken as an example below. Moreover, the correction information includes a correction position and a correction deviation, and the prediction information includes a predicted position and a predicted deviation. In step S210, the corrected position of the previous touch event (represented by x t -1| t -1 at the bottom) is used as the predicted position of the current touch event (hereinafter represented by x t | t -1 ). Moreover, the correction deviation of the previous touch event (represented by p t -1| t -1 at the bottom) plus the value of the predicted deviation value (represented by q underneath) is used as the predicted deviation of the current touch event (bottom p t | t -1 stands for). According to this, the following formula (1) and formula (2) can be obtained.

x t|t-1=x t-1|t-1 (1) x t | t -1 = x t -1| t -1 (1)

p t|t-1=p t-1|t-1+q (2) p t | t -1 = p t -1| t -1 + q (2)

而在步驟S215中,處理單元110會基於目前觸碰事件的預測偏差與測量偏差值(底下以r代表),計算目前觸碰事件的增益值(底下以K t 代表);並且,基於增益值與目前觸碰事件的預測位置(底下以z t 代表),獲得目前觸碰事件的修正位置(底下以x t|t 代表);另外,基於增益值與目前觸碰事件的預測偏差,獲得目前觸碰事件的修正偏差(底下以p t|t 代表)。 In step S215, the processing unit 110 calculates the gain value of the current touch event (represented by K t under the basis) based on the predicted deviation of the current touch event and the measured deviation value (represented by r); and, based on the gain value The predicted position of the current touch event (represented by z t below), the corrected position of the current touch event (represented by x t | t ); in addition, based on the predicted deviation of the gain value from the current touch event, the current Corrected deviation of the touch event (represented by p t | t ).

詳細地說,以目前觸碰事件的預測偏差p t|t-1,除以目前觸碰事件的預測偏差p t|t-1加上測量偏差值r之後的值,即 p t|t-1/(p t|t-1+r),藉此獲得增益值K t 。以目前觸碰事件的測量位置z t 減去目前觸碰事件的預測位置x t|t-1之後乘上增益值K t 所獲得的值,加上目前觸碰事件的預測位置x t|t-1,進而獲得目前觸碰事件的修正位置x t|t 。以1減去增益值K t 後的值乘上目前觸碰事件的預測偏差p t|t-1,藉此獲得目前觸碰事件的修正偏差p t|t 。即,(1-K t )代表目前觸碰事件的預測偏差p t|t-1所佔的權重。據此,可獲得底下式子(3)~式子(5)。 Specifically, the current touch event anticipations p t | t -1, divided by the current touch event anticipations p t | t -1 plus the measured value after the offset value r, namely p t | t - 1 /( p t | t -1 +r), whereby the gain value K t is obtained . The value obtained by multiplying the predicted position x t | t -1 of the current touch event by the gain value K t is added to the measurement position z t of the current touch event, plus the predicted position of the current touch event x t | t -1 to obtain the corrected position x t | t of the current touch event. The value after subtracting the gain value K t is multiplied by the predicted deviation p t | t -1 of the current touch event, thereby obtaining the corrected deviation p t | t of the current touch event. That is, (1- K t ) represents the weight of the prediction bias p t | t -1 of the current touch event. According to this, the following formula (3) to formula (5) can be obtained.

K t =p t|t-1(p t|t-1+r)-1 (3) K t = p t | t -1 ( p t | t -1 + r ) -1 (3)

x t|t =x t|t-1+K t (z t -x t|t-1) (4) x t | t = x t | t -1 + K t ( z t - x t | t -1 ) (4)

p t|t =(1-K t )p t|t-1 (5) p t | t =(1- K t ) p t | t -1 (5)

上述式子(1)與式子(2)用於進行位置的預測。於式子(1)中,當目前觸碰事件為初始所接收的觸碰事件,也就是說,在無前次觸碰事件的情況下,則以目前觸碰事件的測量位置作為目前觸碰事件的預測位置。而上述式子(3)~式子(5)用於進行位置的修正。每一次的計算都換更新增益值K t ,以求得最佳的修正結果。並且將最佳修正結果的修正偏差p t|t 提供給下一次遞迴的運算。 The above equations (1) and (2) are used to predict the position. In the formula (1), when the current touch event is the initial touch event, that is, in the case of no previous touch event, the current touch event is taken as the current touch. The predicted location of the event. The above equation (3) to equation (5) are used to correct the position. Each calculation is updated with the updated gain value K t to obtain the best correction result. And the correction deviation p t | t of the best correction result is supplied to the next recursive operation.

上述增益值K t 是用來衡量目前觸碰事件的預測位置x t|t-1與目前觸碰事件的測量位置z t 的可信度,增益值K t 越大,代表測量位置z t 的可信度越高,增益值K t 越小,代表目前觸碰事件的預測位置x t|t-1可信度越高。據此,利用增益值K t 來調整目前觸碰事件的修正幅度。 The gain value K t is used to measure the reliability of the predicted position x t | t -1 of the current touch event and the measurement position z t of the current touch event. The larger the gain value K t , represents the measurement position z t The higher the reliability, the smaller the gain value K t , and the higher the reliability of the predicted position x t | t -1 representing the current touch event. Accordingly, the gain value K t is used to adjust the correction range of the current touch event.

倘若觸控操作維持在等速操作的情況下,增益值K t 就會 趨近一個值。因為預測位置跟測量位置的偏差都沒有變,因此增益值K t 則會趨近一個值,直到最後會收斂至一個值而不會再變動。 If the touch operation is maintained at the constant speed operation, the gain value K t will approach a value. Since the deviation between the predicted position and the measured position does not change, the gain value K t approaches a value until it finally converges to a value and does not change.

在獲得目前觸碰事件的修正資訊之後,在步驟S220中,以目前觸碰事件的修正資訊,更新目前觸碰事件於顯示單元130中的位置。即,處理單元110在計算出目前觸碰事件的修正資訊之後,將修正資訊(如:修正位置)傳送給圖形處理驅動程式或圖形處理器,以進行繪圖,進而呈現於顯示單元130中。 After the correction information of the current touch event is obtained, in step S220, the position of the current touch event in the display unit 130 is updated with the correction information of the current touch event. That is, after calculating the correction information of the current touch event, the processing unit 110 transmits the correction information (eg, the corrected position) to the graphics processing driver or the graphics processor for drawing, and then presented in the display unit 130.

另外,圖3是依照本案一實施例的修正觸碰位置的方法的變形例的流程圖。在圖3中,與圖2相同的步驟以相同標號來表示,並且在此省略相關說明。 In addition, FIG. 3 is a flowchart of a modification of the method of correcting the touch position according to an embodiment of the present invention. In FIG. 3, the same steps as those of FIG. 2 are denoted by the same reference numerals, and the related description is omitted here.

在獲得目前觸碰事件的修正資訊之後,除了將目前觸碰事件的修正資訊傳送給給圖形處理驅動程式或圖形處理器,以進行繪圖之外,還可如步驟S305所示,處理單元110進一步計算目前觸碰事件的修正位置與前次觸碰事件的修正位置之間的位移量。接著,在步驟S310中,依據上述位移量,調整測量偏差值。之後,以調整後的測量偏差值覆蓋原先的測量偏差值,而由下一個時間點的觸碰事件來使用。 After obtaining the correction information of the current touch event, in addition to transmitting the correction information of the current touch event to the graphics processing driver or the graphics processor for drawing, the processing unit 110 may further perform the processing as shown in step S305. The amount of displacement between the corrected position of the current touch event and the corrected position of the previous touch event is calculated. Next, in step S310, the measured deviation value is adjusted in accordance with the displacement amount described above. After that, the original measurement deviation value is overwritten with the adjusted measurement deviation value, and is used by the touch event at the next time point.

具體而言,在執行快滑操作的時候,目前觸碰事件的測量位置的可信度較高,此時可將測量偏差值調小。也就是說,位移量越大代表移動速度越快,表示預測位置越不準確,因此測量位置所佔的權重便越高(即增益值K t 越大)。據此,將測量偏差值調小,以改善畫面跟不上的問題。 Specifically, when the fast-slip operation is performed, the reliability of the measurement position of the current touch event is high, and the measurement deviation value can be reduced at this time. That is to say, the larger the displacement amount, the faster the moving speed, indicating that the predicted position is less accurate, so the weight of the measurement position is higher (ie, the gain value K t is larger). Accordingly, the measurement deviation value is reduced to improve the problem that the picture cannot keep up.

另外,在執行慢滑操作的時候,目前觸碰事件的預測位置的可信度較高,此時可將測量偏差值調大。也就是說,位移量越小代表移動速度越慢,表示預測位置越準確,因此預測位置所佔的權重便越高(即增益值K t 越小)。據此,將測量偏差值調大,以改善畫面抖動的問題。 In addition, when the slow-slip operation is performed, the reliability of the predicted position of the current touch event is high, and the measurement deviation value can be increased at this time. That is to say, the smaller the displacement amount, the slower the moving speed, indicating that the predicted position is more accurate, so the weight of the predicted position is higher (ie, the smaller the gain value K t ). Accordingly, the measurement deviation value is increased to improve the problem of picture shake.

例如,可設定一門檻值來作為快滑操作與慢滑操作的判斷依據。因此,當位移量大於一門檻值時,將預測偏差值調大。當位移量小於上述門檻值時,將測量偏差值調小。然而,上述僅為簡單的實施方式,於實際應用時還會考慮到顯示單元130的解析度以及其他周邊設備的影響,因而設定多組預設範圍,藉此來作為滑動速度的判斷依據。據此,依據位移量所位於的預設範圍,依據此預設範圍所對應的調整值來調整測量偏差值。 For example, a threshold value can be set as a basis for judging the fast-slip operation and the slow-slip operation. Therefore, when the displacement amount is greater than a threshold value, the predicted deviation value is increased. When the displacement amount is less than the above threshold value, the measurement deviation value is adjusted to be small. However, the above is only a simple implementation manner. In practice, the resolution of the display unit 130 and the influence of other peripheral devices are also taken into consideration, and thus a plurality of sets of preset ranges are set, thereby serving as a basis for judging the sliding speed. Accordingly, according to the preset range in which the displacement amount is located, the measurement deviation value is adjusted according to the adjustment value corresponding to the preset range.

舉例來說,假設在顯示單元110的解析度為1920×1200的情況下,預先於電子裝置100中設定有三組預設範圍,即“1~16”、“16~32”以及“32以上”,其分別對應的調整值為0.1、0.5及1。假設位移量為10,即位於預設範圍“1~16”中,則將測量偏差值調整為0.1。或者,倘若位移量為35,則將測量偏差值調整為1。另外,還可依據一函數來決定測量偏差值要調整為0~0.1、0.1~0.5、0.5~1中的哪一值。 For example, if the resolution of the display unit 110 is 1920×1200, three sets of preset ranges, namely “1~16”, “16~32” and “32 or more”, are set in advance in the electronic device 100. The corresponding adjustment values are 0.1, 0.5, and 1. Assuming that the displacement amount is 10, that is, in the preset range "1~16", the measurement deviation value is adjusted to 0.1. Or, if the displacement amount is 35, the measurement deviation value is adjusted to 1. In addition, it is also possible to determine which value of the measurement deviation value is to be adjusted to 0 to 0.1, 0.1 to 0.5, and 0.5 to 1 according to a function.

另外,處理單元110亦可依據位移量,調整預測偏差值。或者,依據位移量,適當調整預測偏差值與測量偏差值。即,不管是調整測量偏差值或預測偏差值,都會使得增益值K t 跟著變 動,進而影響目前觸碰事件修正後的結果。因此,可視情況來決定只調整預測偏差值或測量偏差值,亦或是同時調整預測偏差值及測量偏差值。 In addition, the processing unit 110 can also adjust the predicted deviation value according to the displacement amount. Alternatively, the predicted deviation value and the measured deviation value are appropriately adjusted depending on the displacement amount. That is, whether the measurement deviation value or the prediction deviation value is adjusted, the gain value K t is changed accordingly, thereby affecting the result of the current touch event correction. Therefore, depending on the situation, it is decided to adjust only the predicted deviation value or the measurement deviation value, or to adjust the prediction deviation value and the measurement deviation value at the same time.

圖4是依照本案一實施例的修改前後的位置位移量的示意圖。請參照圖4及底下表1A與表1B。在本實施例中,僅以X座標的位移量來進行說明。底下表1A及表1B為求方便說明,僅列出圖4中的17個時間點。 4 is a schematic diagram of position displacement amounts before and after modification in accordance with an embodiment of the present invention. Please refer to FIG. 4 and the following Table 1A and Table 1B. In the present embodiment, the description will be made only with the displacement amount of the X coordinate. The bottom table 1A and the table 1B are for convenience of explanation, and only the 17 time points in FIG. 4 are listed.

以圖4的時間點A(85毫秒)、時間點B(102毫秒)及時間點C(136毫秒)的修正前位移量而言,在時間點A的位移量是22.68,但到時間點B降為10.57,時間點C的位移量又增加到24.54。也就是說,從時間點A到時間點B的位移量劇減,且從時間點B到時間點C位移量劇增的情況下,會導致畫面移動變慢(時間點A至時間點B)又馬上變快(時間點B至C),因而使得畫面產生畫面抖動(frame jitter)的現象。 With respect to the pre-corrected displacement amount at time point A (85 msec), time point B (102 msec), and time point C (136 msec) of Fig. 4, the displacement amount at time point A is 22.68, but to time point B. Dropped to 10.57, the displacement at time C increases to 24.54. That is to say, the displacement amount from the time point A to the time point B is drastically decreased, and in the case where the displacement amount from the time point B to the time point C is sharply increased, the screen movement is slowed down (time point A to time point B). It also becomes fast immediately (time point B to C), thus causing a phenomenon of frame jitter on the screen.

而在經由修正之後,時間點A~時間點C的每個時間點的位移量會比較接近,即,時間點A~時間點C之間的最大位移量差從13.97(24.54-10.57)變為5.42(17.90-12.48)。而每次的位移量越接近,畫面移動亦會越平順,因此改善了畫面抖動的情況。 After the correction, the displacement amount at each time point from time point A to time point C is relatively close, that is, the maximum displacement amount difference between time point A and time point C is changed from 13.97 (24.54-10.57). 5.42 (17.90-12.48). The closer the amount of displacement is, the smoother the picture will move, thus improving the picture jitter.

另外,再以圖4的時間點D(170毫秒)、時間點E(204毫秒)及時間點F(221毫秒)的修正前位移量而言,在時間點D的位移量是12.81,到時間點E的位移量變大為26.71,時間點F卻劇降到13.21。從時間點D到時間點E的位移量劇增,從時間點E到時間點F的位移量突然劇減,導致畫面移動變快後(時間點D至時間點E)又馬上變慢(時間點E至時間點F),因而使得畫面產生畫面抖動的現象。 In addition, with respect to the pre-correction displacement amount at the time point D (170 msec), the time point E (204 msec), and the time point F (221 msec) of FIG. 4, the displacement amount at the time point D is 12.81, to the time. The displacement of point E becomes 26.71, and the time point F drops to 13.21. The displacement from time point D to time point E increases sharply, and the displacement from time point E to time point F suddenly decreases sharply, causing the screen to move faster (time point D to time point E) to become slow again (time) Point E to time point F), thus causing a phenomenon in which the picture is shaken.

而在經由修正之後,時間點D~時間點F的每個時間點的位移量會比較接近,時間點D~時間點F之間的最大位移量差從13.9(26.71-12.81)變為5.38(19.62-14.24),因此改善了畫面抖動的情況。 After the correction, the displacement of each time point from time point D to time point F will be relatively close, and the maximum displacement difference between time point D and time point F will change from 13.9 (26.71-12.81) to 5.38 ( 19.62-14.24), thus improving the picture jitter.

另外,在獲得目前觸碰事件的修正資訊之後,處理單元110將目前觸碰事件的修正資訊至儲存單元140,並且將儲存單元140所記錄的前次觸碰事件的修正資訊刪除。在儲存單元140中可僅儲存預測偏差值q、測量偏差值r以及當前時間點t的增益值K t 、修正位置x t|t 以及修正偏差p t|t In addition, after obtaining the correction information of the current touch event, the processing unit 110 deletes the correction information of the current touch event to the storage unit 140, and deletes the correction information of the previous touch event recorded by the storage unit 140. Only the predicted deviation value q, the measured deviation value r, and the gain value K t of the current time point t , the corrected position x t | t, and the corrected deviation p t | t may be stored in the storage unit 140.

上述實施例雖是以X座標為例,然,Y座標的計算亦可如同於上述實施例的流程,並且,亦可同時計算X座標與Y座標, 在此並不限制。 Although the above embodiment uses the X coordinate as an example, the calculation of the Y coordinate can also be the same as the flow of the above embodiment, and the X coordinate and the Y coordinate can also be calculated at the same time. There is no limit here.

綜上所述,本案僅利用前一個時間點所接收的前次觸碰事件來修正當下時間點所接收的目前觸碰事件,利用位移計算提升非線性運動的反應時間,據此可在運算速度快速且節省儲存空間的情況下,改善畫面抖動的問題。 In summary, this case only uses the previous touch event received at the previous time point to correct the current touch event received at the current time point, and uses the displacement calculation to improve the reaction time of the nonlinear motion, which can be used at the operation speed. Improve the problem of picture jitter with fast and saving storage space.

雖然本案已以實施例揭露如上,然其並非用以限定本案,任何所屬技術領域中具有通常知識者,在不脫離本案的精神和範圍內,當可作些許的更動與潤飾,故本案的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present case. Any person having ordinary knowledge in the technical field can protect the case without making any changes or refinements without departing from the spirit and scope of the present case. The scope is subject to the definition of the scope of the patent application.

S205~S220‧‧‧修正觸碰位置的方法的步驟 S205~S220‧‧‧Steps to correct the method of touching the position

Claims (12)

一種修正觸碰位置的方法,用於一電子裝置,該方法包括:接收一目前觸碰事件;基於在該目前觸碰事件的前一個時間點所接收的前次觸碰事件的一修正資訊,獲得該目前觸碰事件的一預測資訊;依據該預測資訊與該目前觸碰事件的一測量位置,獲得該目前觸碰事件的該修正資訊;以及以該目前觸碰事件的該修正資訊,更新該目前觸碰事件於一顯示單元中的位置。 A method for correcting a touch position for an electronic device, the method comprising: receiving a current touch event; and based on a correction information of a previous touch event received at a previous time point of the current touch event, Obtaining a prediction information of the current touch event; obtaining the correction information of the current touch event according to the predicted information and a measurement position of the current touch event; and updating the correction information of the current touch event The current touch event is in a position in a display unit. 如申請專利範圍第1項所述的方法,其中該修正資訊包括一修正位置與一修正偏差,該預測資訊包括一預測位置與一預測偏差,而其中基於在該目前觸碰事件的前一個時間點所接收的該前次觸碰事件的該修正資訊,獲得該目前觸碰事件的該預測資訊的步驟包括:以該前次觸碰事件的該修正位置,作為該目前觸碰事件的該預測位置;以及以該前次觸碰事件的該修正偏差加上一預測偏差值的值,作為該目前觸碰事件的該預測偏差。 The method of claim 1, wherein the correction information includes a corrected position and a corrected deviation, the predicted information including a predicted position and a predicted deviation, wherein the predicted time is based on a previous time of the current touch event The step of obtaining the predicted information of the current touch event by the received correction information of the previous touch event includes: using the corrected position of the previous touch event as the prediction of the current touch event a position; and the corrected deviation of the previous touch event plus a value of the predicted deviation value as the predicted deviation of the current touch event. 如申請專利範圍第2項所述的方法,其中依據該預測資訊與該目前觸碰事件的該測量位置,獲得該目前觸碰事件的該修正資訊的步驟包括:基於該目前觸碰事件的該預測偏差與一測量偏差值,計算該 目前觸碰事件的一增益值;基於該增益值與該目前觸碰事件的該預測位置,獲得該目前觸碰事件的該修正位置;以及基於該增益值與該目前觸碰事件的該預測偏差,獲得該目前觸碰事件的該修正偏差。 The method of claim 2, wherein the step of obtaining the correction information of the current touch event according to the predicted information and the measurement position of the current touch event comprises: the current touch event based on the current touch event Predicting the deviation and a measured deviation value, calculating the a gain value of the current touch event; obtaining the corrected position of the current touch event based on the gain value and the predicted position of the current touch event; and the predicted deviation from the current touch event based on the gain value , obtaining the correction deviation of the current touch event. 如申請專利範圍第3項所述的方法,其中計算該目前觸碰事件的該增益值步驟包括:以該目前觸碰事件的該預測偏差,除以該目前觸碰事件的該預測偏差加上該測量偏差值之後的值,藉此獲得該增益值。 The method of claim 3, wherein the calculating the gain value of the current touch event comprises: dividing the predicted deviation of the current touch event by the predicted deviation of the current touch event plus The value after the deviation value is measured, thereby obtaining the gain value. 如申請專利範圍第3項所述的方法,其中獲得該目前觸碰事件的該修正位置的步驟包括:以該目前觸碰事件的該測量位置減去該目前觸碰事件的該預測位置之後乘上該增益值所獲得的值,加上該目前觸碰事件的該預測位置,進而獲得該目前觸碰事件的該修正位置。 The method of claim 3, wherein the obtaining the corrected position of the current touch event comprises: subtracting the predicted position of the current touch event from the measured position of the current touch event, and then multiplying the predicted position of the current touch event The value obtained by the gain value is added to the predicted position of the current touch event to obtain the corrected position of the current touch event. 如申請專利範圍第3項所述的方法,其中獲得該目前觸碰事件的該修正偏差的步驟包括:以1減去該增益值後的值乘上該目前觸碰事件的該預測偏差,藉此獲得該目前觸碰事件的該修正偏差。 The method of claim 3, wherein the step of obtaining the correction deviation of the current touch event comprises: multiplying the value obtained by subtracting the gain value by 1 from the predicted deviation of the current touch event, This obtains the correction deviation of the current touch event. 如申請專利範圍第3項所述的方法,其中在依據該預測資訊與該目前觸碰事件的該測量位置,獲得該目前觸碰事件的該修正資訊的步驟之後,更包括:計算該目前觸碰事件的該修正位置與該前次觸碰事件的該修 正位置之間的位移量;以及依據該位移量,調整該測量偏差值。 The method of claim 3, wherein after the step of obtaining the correction information of the current touch event according to the predicted information and the measurement position of the current touch event, the method further comprises: calculating the current touch The corrected position of the touch event and the repair of the previous touch event The amount of displacement between the positive positions; and adjusting the measured deviation value according to the amount of displacement. 如申請專利範圍第7項所述的方法,其中依據該位移量,調整該測量偏差值的步驟包括:當該位移量大於一門檻值時,將該預測偏差值調大;以及當該位移量小於該門檻值時,將該測量偏差值調小。 The method of claim 7, wherein the step of adjusting the measured deviation value according to the displacement amount comprises: when the displacement amount is greater than a threshold value, increasing the predicted deviation value; and when the displacement amount When the threshold value is less than this threshold value, the measurement deviation value is reduced. 如申請專利範圍第7項所述的方法,其中依據該位移量,調整該測量偏差值的步驟包括:依據該位移量所位於的一預設範圍,依據該預設範圍所對應的調整值來調整該測量偏差值。 The method of claim 7, wherein the step of adjusting the measured deviation value according to the displacement amount comprises: according to a preset range in which the displacement amount is located, according to the adjustment value corresponding to the preset range Adjust the measurement deviation value. 如申請專利範圍第3項所述的方法,其中在依據該預測資訊與該目前觸碰事件的該測量位置,獲得該目前觸碰事件的該修正資訊的步驟之後,更包括:計算該目前觸碰事件的該修正位置與該前次觸碰事件的該修正位置之間的位移量;以及依據該位移量,調整該預測偏差值。 The method of claim 3, wherein after the step of obtaining the correction information of the current touch event according to the predicted information and the measurement position of the current touch event, the method further comprises: calculating the current touch a displacement amount between the corrected position of the collision event and the corrected position of the previous touch event; and adjusting the predicted deviation value according to the displacement amount. 如申請專利範圍第2項所述的方法,其中當該目前觸碰事件為初始所接收的觸碰事件,以該目前觸碰事件的該測量位置作為該目前觸碰事件的該預測位置。 The method of claim 2, wherein when the current touch event is an initially received touch event, the measured position of the current touch event is the predicted position of the current touch event. 如申請專利範圍第1項所述的方法,其中在獲得該目前觸碰事件的該修正資訊的步驟之後,更包括:記錄該目前觸碰事件的該修正資訊至一儲存單元;以及刪除該前次觸碰事件的該修正資訊。 The method of claim 1, wherein after the step of obtaining the correction information of the current touch event, the method further comprises: recording the correction information of the current touch event to a storage unit; and deleting the front This correction information for the second touch event.
TW102129867A 2012-11-21 2013-08-20 Method for correcting touch position TWI485582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/078,480 US9239649B2 (en) 2012-11-21 2013-11-12 Method for correcting touch position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US201261728812P 2012-11-21 2012-11-21

Publications (2)

Publication Number Publication Date
TW201421298A true TW201421298A (en) 2014-06-01
TWI485582B TWI485582B (en) 2015-05-21

Family

ID=51393437

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102129867A TWI485582B (en) 2012-11-21 2013-08-20 Method for correcting touch position

Country Status (1)

Country Link
TW (1) TWI485582B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI708167B (en) * 2019-03-05 2020-10-21 台達電子工業股份有限公司 Electronic device and prediction method for selecting target object
CN113467644A (en) * 2021-07-21 2021-10-01 无锡变格新材料科技有限公司 Calibration method and device of touch equipment, terminal equipment and storage medium
CN113552966A (en) * 2021-06-20 2021-10-26 海南雷影信息技术有限公司 Radar touch point active prediction method and system
US11397512B2 (en) 2019-03-05 2022-07-26 Delta Electronics, Inc. Electronic device and prediction method for selecting target object in graphical user interface

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116931757A (en) * 2022-03-30 2023-10-24 川奇光电科技(扬州)有限公司 Electronic paper display and driving method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050030293A1 (en) * 2003-08-05 2005-02-10 Lai Chih Chang Method for predicting and estimating coordinates of a touch panel
US7508384B2 (en) * 2005-06-08 2009-03-24 Daka Research Inc. Writing system
TWI413921B (en) * 2010-04-16 2013-11-01 Au Optronics Corp Method of adjusting touch point
US20120127120A1 (en) * 2010-11-22 2012-05-24 Himax Technologies Limited Touch device and touch position locating method thereof
TWI461975B (en) * 2011-01-12 2014-11-21 Wistron Corp Electronic device and method for correcting touch position

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI708167B (en) * 2019-03-05 2020-10-21 台達電子工業股份有限公司 Electronic device and prediction method for selecting target object
US11397512B2 (en) 2019-03-05 2022-07-26 Delta Electronics, Inc. Electronic device and prediction method for selecting target object in graphical user interface
CN113552966A (en) * 2021-06-20 2021-10-26 海南雷影信息技术有限公司 Radar touch point active prediction method and system
CN113467644A (en) * 2021-07-21 2021-10-01 无锡变格新材料科技有限公司 Calibration method and device of touch equipment, terminal equipment and storage medium
CN113467644B (en) * 2021-07-21 2023-05-26 无锡变格新材料科技有限公司 Calibration method and device of touch equipment, terminal equipment and storage medium

Also Published As

Publication number Publication date
TWI485582B (en) 2015-05-21

Similar Documents

Publication Publication Date Title
TWI485582B (en) Method for correcting touch position
CN104866080B (en) Screen content display method and system
US9372577B2 (en) Method and device to reduce swipe latency
US20120139952A1 (en) Image transmission method, device, and computer-readable storage medium storing image transmission program
US10318152B2 (en) Modifying key size on a touch screen based on fingertip location
US9665216B2 (en) Display control device, display control method and program
TWI497390B (en) Touch display device and method for sensing capacitance thereof
WO2017163297A1 (en) Coordinate correction device, coordinate correction method, and coordinate correction program
KR20170016981A (en) Algorithms and implementation of touch pressure sensors
CN107636590B (en) Media, server, device and method for game executed on electronic device
US20220413637A1 (en) Method and Device for Predicting Drawn Point of Stylus
US20140111550A1 (en) User and device movement based display compensation
US20150185833A1 (en) Display device, display method, and program
US10963100B2 (en) Interactive object control method and apparatus, terminal, and computer-readable storage medium
KR102537133B1 (en) An input-latency reduction method based on a prediction of a position
US9557781B2 (en) Adjusting coordinates of touch input
US9239649B2 (en) Method for correcting touch position
US11656761B2 (en) Touch hotspot adjustment method, apparatus, and device, and touchscreen terminal device
US20150074597A1 (en) Separate smoothing filter for pinch-zooming touchscreen gesture response
US9811165B2 (en) Electronic system with gesture processing mechanism and method of operation thereof
US9658715B2 (en) Display mapping modes for multi-pointer indirect input devices
WO2016161851A1 (en) Mobile terminal control method and mobile terminal
JP5696563B2 (en) Information processing apparatus, screen update method, screen update program, and information processing system
US20190018503A1 (en) Cursor control method and cursor control system
CN113676586A (en) Display method of touch screen and terminal