TWI419011B - Method and system for tracking touch point - Google Patents
Method and system for tracking touch point Download PDFInfo
- Publication number
- TWI419011B TWI419011B TW99113530A TW99113530A TWI419011B TW I419011 B TWI419011 B TW I419011B TW 99113530 A TW99113530 A TW 99113530A TW 99113530 A TW99113530 A TW 99113530A TW I419011 B TWI419011 B TW I419011B
- Authority
- TW
- Taiwan
- Prior art keywords
- reference touch
- touch point
- point
- distance
- touch points
- Prior art date
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Description
本發明是有關於一種觸控點之追蹤方法及追蹤系統,且特別是有關於一種多點觸控點之追蹤方法及追蹤系統。The invention relates to a tracking method and a tracking system for a touch point, and particularly relates to a tracking method and a tracking system for a multi-touch point.
隨著顯示器技術的發展,顯示器的顯示效果已有長足的進步。以平面顯示器為例,其係具有重量輕、體積小等優點,可以有效縮減顯器在電子裝置中所佔用的空間,使其逐漸成為市場上主流的平面顯示器,並且廣泛地應用在各樣桌上型與手持式電子裝置中。With the development of display technology, the display effect of the display has been greatly improved. Taking a flat panel display as an example, it has the advantages of light weight, small size, etc., which can effectively reduce the space occupied by the display device in the electronic device, and gradually become the mainstream flat panel display on the market, and is widely used in various tables. In the top and handheld electronic devices.
近年來,為了提供更直覺的操作方式,以提升使用上的便利性,業界係開發出整合觸控功能的顯示器,將觸控面板以及顯示面板整合至單一模組中,讓使用者可藉由直接點選畫面來進行各項操作。常見的觸控方式包含電阻式觸控、電容式觸控、電磁式觸控、紅外光觸控等方式,而觸控操作也由單點式操作逐漸邁向多點式觸控操作,讓使用者可以在觸控面板上進行多樣化的手勢操作。In recent years, in order to provide a more intuitive operation mode and to improve the convenience of use, the industry has developed a display with integrated touch function, integrating the touch panel and the display panel into a single module, so that the user can Click on the screen directly to perform various operations. Common touch methods include resistive touch, capacitive touch, electromagnetic touch, infrared touch, etc., and the touch operation is gradually moving from a single-point operation to a multi-touch operation. A variety of gesture operations can be performed on the touch panel.
一般而言,觸控面板是沿著一掃瞄方向依序感測面板上的一或多個觸控點。然而此種感測方式容易導致使用者在觸控面板上多點畫線時,發生畫線錯誤的問題。當使用者在觸控面板上以多個觸控點,同時沿掃瞄方向的正向及反向畫線時,因為觸控點在掃瞄方向上的先後次序發生改變,會導致線條連接錯誤的問題。如此便無法在觸控面板上正確畫出多條平行於掃瞄方向的直線。Generally, the touch panel sequentially senses one or more touch points on the panel along a scanning direction. However, such a sensing method is likely to cause a problem of drawing a line error when the user draws a line at a multi-point on the touch panel. When the user draws multiple touch points on the touch panel and draws the line in the forward and reverse directions along the scanning direction, the order of the touch points in the scanning direction changes, which may result in incorrect line connection. The problem. Therefore, it is impossible to correctly draw a plurality of straight lines parallel to the scanning direction on the touch panel.
因此,本發明之目的是在提供一種觸控點之追蹤方法及追蹤系統,用以解決多點式觸控交錯畫線時,發生畫線錯誤的問題。Therefore, the object of the present invention is to provide a tracking method and a tracking system for a touch point, which are used to solve the problem of drawing line errors when multi-point touch interlaced lines are drawn.
本發明之一方面係提出一種觸控點的追蹤方法,包含下述步驟:於一第一掃瞄時間中取得N個基準觸控點,N為大於或等於2之整數;於一第二掃瞄時間中取得M個參考觸控點,M為大於或等於2之整數;計算M個參考觸控點各自與第n個基準觸控點的距離,n為1~N之整數;輸出M個參考觸控點中與第n個基準觸控點距離最短者;以及,根據輸出之參考觸控點及對應之第n個基準觸控點形成至少一第一線條。One aspect of the present invention provides a method for tracking a touch point, comprising the steps of: obtaining N reference touch points in a first scan time, N being an integer greater than or equal to 2; Obtain M reference touch points in the aiming time, M is an integer greater than or equal to 2; calculate the distance between each of the M reference touch points and the nth reference touch point, n is an integer from 1 to N; output M The distance between the touch point and the nth reference touch point is the shortest; and the at least one first line is formed according to the output reference touch point and the corresponding nth reference touch point.
依據本發明一實施例,追蹤方法更包含判斷M是否大於或等於N之步驟。當判斷出M大於或等於N時,執行計算步驟。According to an embodiment of the invention, the tracking method further comprises the step of determining whether M is greater than or equal to N. When it is judged that M is greater than or equal to N, the calculation step is performed.
依據本發明一實施例,計算M個參考觸控點各自與第n個基準觸控點距離之步驟、輸出M個參考觸控點中與第n個基準觸控點距離最短者之步驟及形成第一線條之步驟係重複執行N次,以形成N條至少一第一線條。According to an embodiment of the invention, the steps of calculating the distance between each of the M reference touch points and the nth reference touch point, and outputting the shortest distance between the M reference touch points and the nth reference touch point are formed. The steps of the first line are repeated N times to form N at least one first line.
依據本發明一實施例,追蹤方法更包含判斷M是否大於或等於N之步驟。當判斷出M小於N時,計算N個基準觸控點各自與第m個參考觸控點的距離,m為1~M之整數。追蹤方法接著更包含以下步驟:輸出N個基準觸控點中與第m個參考觸控點距離最短者;以及,根據輸出之基 準觸控點及對應之第m個參考觸控點形成至少一第二線條。According to an embodiment of the invention, the tracking method further comprises the step of determining whether M is greater than or equal to N. When it is determined that M is less than N, the distance between each of the N reference touch points and the mth reference touch point is calculated, where m is an integer from 1 to M. The tracking method further includes the following steps: outputting the shortest distance between the N reference touch points and the mth reference touch point; and, according to the basis of the output The quasi-touch point and the corresponding mth reference touch point form at least one second line.
依據本發明一實施例,計算N個基準觸控點各自與第m個參考觸控點距離之步驟、輸出N個基準觸控點中與第m個參考觸控點距離最短者之步驟及形成第二線條之步驟係重複執行M次,以形成M條至少一第二線條。According to an embodiment of the invention, the steps of calculating the distance between each of the N reference touch points and the mth reference touch point, and the step of outputting the shortest distance between the N reference touch points and the mth reference touch point are formed. The second line step is repeated M times to form M strips of at least one second line.
本發明之另一方面係提出一種觸控點的追蹤系統,包含一擷取單元、一運算單元、一輸出單元以及一繪製單元。擷取單元用以於不同之掃瞄時間中分別取得N個基準觸控點及M個參考觸控點,N及M分別為大於或等於2之整數。運算單元用以計算M個參考觸控點各自與第n個基準觸控點的距離,n為1~N之整數。輸出單元用以由M個參考觸控點中輸出與第n個基準觸控點距離最短者。繪製單元用以根據輸出之參考觸控點及對應之第n個基準觸控點形成至少一第一線條。Another aspect of the present invention provides a tracking system for a touch point, comprising a capture unit, an operation unit, an output unit, and a drawing unit. The capture unit is configured to obtain N reference touch points and M reference touch points respectively in different scan times, where N and M are integers greater than or equal to 2, respectively. The operation unit is configured to calculate a distance between each of the M reference touch points and the nth reference touch point, where n is an integer from 1 to N. The output unit is configured to output the shortest distance between the M reference touch points and the nth reference touch point. The drawing unit is configured to form at least one first line according to the output reference touch point and the corresponding nth reference touch point.
依據本發明一實施例,追蹤系統更包含一判斷單元,用以判斷M是否大於或等於N。運算單元用以於判斷單元判斷出M大於或等於N時計算M個參考觸控點各自與第n個基準觸控點的距離。According to an embodiment of the invention, the tracking system further includes a determining unit for determining whether M is greater than or equal to N. The operation unit is configured to calculate a distance between each of the M reference touch points and the nth reference touch point when the determining unit determines that M is greater than or equal to N.
依據本發明一實施例,運算單元更用以於判斷單元判斷出M小於N時計算N個基準觸控點各自與第m個參考觸控點的距離,m為1~M之整數。According to an embodiment of the invention, the computing unit is further configured to calculate a distance between each of the N reference touch points and the mth reference touch point when the determining unit determines that M is less than N, where m is an integer from 1 to M.
依據本發明一實施例,輸出單元更用以由N個基準觸控點中輸出與第m個參考觸控點距離最短者。繪製單元更用以根據輸出之基準觸控點及對應之第m個參考觸控點形 成至少一第二線條。According to an embodiment of the invention, the output unit is further configured to output the shortest distance between the N reference touch points and the mth reference touch point. The drawing unit is further configured to use the reference touch point and the corresponding mth reference touch point shape according to the output At least one second line.
上述本發明實施例之觸控點之追蹤方法及追蹤系統,利用求出最短距離之觸控點來畫線,可以提升多指交錯畫線時的準確性,提升觸控的品質。The tracking method and the tracking system of the touch point according to the embodiment of the present invention use the touch point of the shortest distance to draw a line, which can improve the accuracy of the multi-finger interlaced line and improve the quality of the touch.
請參照第1圖,其繪示依照本發明一實施例之一種觸控點之追蹤方法的流程圖。本實施例之追蹤方法首先執行步驟S1,於一第一掃瞄時間中取得N個基準觸控點。Please refer to FIG. 1 , which is a flowchart of a method for tracking a touch point according to an embodiment of the invention. The tracking method of this embodiment first performs step S1 to obtain N reference touch points in a first scan time.
實際應用上,本實施例之觸控點的追蹤方法係應用於追蹤多點式之觸控點,因此N為大於或等於2之整數,表示在第一掃瞄時間中係取得兩個以上的基準觸控點。進一步來說,取得N個基準觸控點之步驟至少包含下述子步驟:感測一觸控位置;根據一感測訊號值計算取得所述觸控位置之一座標值,以取得一個基準觸控點;以及,在第一掃瞄時間中重複執行感測步驟及計算步驟,以取得N個基準觸控點。In practical applications, the tracking method of the touch point in this embodiment is applied to track the multi-point touch point, so N is an integer greater than or equal to 2, indicating that more than two are acquired in the first scan time. Base touch point. Further, the step of obtaining the N reference touch points includes at least the following substeps: sensing a touch position; calculating a coordinate value of the touch position according to a sensed signal value to obtain a reference touch a control point; and repeating the sensing step and the calculating step in the first scanning time to obtain N reference touch points.
為了簡化說明,並且凸顯出本發明之特徵,首先係以取得兩個基準觸控點為例進行說明,亦即N為2。請同時參照第2圖,其繪示在第一掃瞄時間中取得兩個基準觸控點的示意圖。追蹤方法係於觸控面板之一掃瞄畫面200中取得第一基準觸控點211及第二基準觸控點212。此掃瞄畫面200係對應於第一掃瞄時間。首先於掃瞄畫面200中,沿一觸控掃瞄方向D感測觸控位置。例如由掃瞄畫面200之左側沿觸控掃瞄方向D朝向掃瞄畫面200之右側感測觸 控位置,藉以感測到第一個觸控位置(對應於第一基準觸控點211的觸控位置)。接著,根據觸控面板的觸控感測器所產生之對應於第一個觸控位置的感測訊號值,計算取得所述第一個觸控位置在掃瞄畫面200上的座標值,藉以取得第一基準觸控點211。在計算過程中更可進一步利用補插值法提高取得座標值的精確度。在第一掃瞄時間中係重複執行感測、計算之步驟,以感測到第二個觸控位置(對應於第二基準觸控點212的觸控位置)並計算其座標值,進而取得第二基準觸控點212。In order to simplify the description and highlight the features of the present invention, firstly, two reference touch points are taken as an example, that is, N is 2. Please refer to FIG. 2 at the same time, which illustrates a schematic diagram of obtaining two reference touch points in the first scan time. The tracking method acquires the first reference touch point 211 and the second reference touch point 212 in one of the touch screens 200 of the touch panel. This scan screen 200 corresponds to the first scan time. First, in the scan screen 200, the touch position is sensed along a touch scan direction D. For example, from the left side of the scan screen 200 along the touch scan direction D toward the right side of the scan screen 200 The position is controlled to sense the first touch position (corresponding to the touch position of the first reference touch point 211). Then, according to the sensing signal value corresponding to the first touch position generated by the touch sensor of the touch panel, the coordinate value of the first touch position on the scan screen 200 is calculated, thereby obtaining the coordinate value of the first touch position on the scan screen 200. The first reference touch point 211 is obtained. In the calculation process, the interpolation value method can be further utilized to improve the accuracy of obtaining the coordinate value. In the first scanning time, the steps of sensing and calculating are repeatedly performed to sense the second touch position (corresponding to the touch position of the second reference touch point 212) and calculate the coordinate value thereof, thereby obtaining The second reference touch point 212.
如步驟S2所述,本實施例之追蹤方法接著於一第二掃瞄時間中取得M個參考觸控點。同樣地,由於本實施例之觸控點的追蹤方法係應用於追蹤多點式之觸控點,因此M為大於或等於2之整數,表示在第二掃瞄時間中係取得兩個以上的參考觸控點。進一步來說,取得M個參考觸控點之步驟至少包含下述子步驟:感測觸控位置;根據感測訊號值計算取得所述觸控位置之座標值,以取得一個參考觸控點;以及,在第二掃瞄時間中重複執行感測步驟及計算步驟,以取得M個參考觸控點。As described in step S2, the tracking method of this embodiment then obtains M reference touch points in a second scan time. Similarly, since the tracking method of the touch point in this embodiment is applied to track the multi-point touch point, M is an integer greater than or equal to 2, indicating that more than two are acquired in the second scan time. Refer to the touch point. Further, the step of obtaining the M reference touch points includes at least the following substeps: sensing a touch position; calculating a coordinate value of the touch position according to the sensed signal value to obtain a reference touch point; And performing the sensing step and the calculating step repeatedly in the second scanning time to obtain M reference touch points.
此處係以取得兩個參考觸控點為例進行說明,亦即M為2。請同時參照第3圖,其繪示在第二掃瞄時間中取得兩個參考觸控點的示意圖。追蹤方法係於對應第二掃瞄時間的掃瞄畫面200’中取得第一參考觸控點221及第二參考觸控點222。首先於掃瞄畫面200’中,沿一觸控掃瞄方向D感測觸控位置。例如由掃瞄畫面200’之左側沿觸控掃瞄方向D朝向掃瞄畫面200’之右側感測觸控位置,藉以感測到 第一個觸控位置(對應於第二參考觸控點222的觸控位置)。接著,根據觸控面板的觸控感測器所產生之對應於第一個觸控位置的感測訊號值,計算取得所述第一個觸控位置在掃瞄畫面200’上的座標值,藉以取得第二參考觸控點222。在第二掃瞄時間中係重複執行感測、計算之步驟,以感測到第二個觸控位置(對應於第一參考觸控點221的觸控位置)並計算其座標值,進而取得第一參考觸控點221。Here, the two reference touch points are taken as an example, that is, M is 2. Please also refer to FIG. 3, which illustrates a schematic diagram of obtaining two reference touch points in the second scan time. The tracking method acquires the first reference touch point 221 and the second reference touch point 222 in the scan screen 200' corresponding to the second scan time. First, in the scan screen 200', the touch position is sensed along a touch scan direction D. For example, the touch position is sensed from the left side of the scan screen 200' along the touch scan direction D toward the right side of the scan screen 200', thereby sensing The first touch position (corresponding to the touch position of the second reference touch point 222). And calculating a coordinate value of the first touch position on the scan screen 200 ′ according to the sensing signal value corresponding to the first touch position generated by the touch sensor of the touch panel. Thereby obtaining the second reference touch point 222. In the second scanning time, the steps of sensing and calculating are repeatedly performed to sense the second touch position (corresponding to the touch position of the first reference touch point 221) and calculate the coordinate value thereof, thereby obtaining The first reference touch point 221 is.
如步驟S3所示,本實施例之追蹤方法接著進行判斷M是否大於或等於N的步驟。在取得第一基準觸控點211與第二基準觸控點212,以及取得第一參考觸控點221與第二參考觸控點222的條件下,N及M均為2。也就是由第一掃瞄時間至第二掃瞄時間時,觸控點的數量並沒有發生變化。當判斷出M大於或等於N時,追蹤方法接著執行步驟S4。As shown in step S3, the tracking method of this embodiment next performs the step of determining whether M is greater than or equal to N. Under the condition that the first reference touch point 211 and the second reference touch point 212 are obtained, and the first reference touch point 221 and the second reference touch point 222 are obtained, N and M are both 2. That is, the number of touch points does not change from the first scan time to the second scan time. When it is judged that M is greater than or equal to N, the tracking method then performs step S4.
如步驟S4所示,計算M個參考觸控點各自與第n個基準觸控點的距離,其中n為1~N之整數。當n為1時,計算第一參考觸控點221與第一基準觸控點211的距離W1,以及計算第二參考觸控點222與第一基準觸控點211的距離W2。As shown in step S4, the distance between each of the M reference touch points and the nth reference touch point is calculated, where n is an integer from 1 to N. When n is 1, the distance W1 between the first reference touch point 221 and the first reference touch point 211 is calculated, and the distance W2 between the second reference touch point 222 and the first reference touch point 211 is calculated.
如步驟S5所示,輸出M個參考觸控點中與第n個基準觸控點距離最短者。由前述計算取得之距離W1及W2可以得知第一參考觸控點221及第二參考觸控點222何者與第一基準觸控點211距離最短。舉例來說,距離W1小於距離W2,亦即第一參考觸控點221與第一基準觸控點211距離最短。因此輸出第一參考觸控點221,將其作為與 第一基準觸控點211關聯之觸控點。As shown in step S5, the shortest distance from the nth reference touch point among the M reference touch points is output. The distances W1 and W2 obtained by the foregoing calculations can be used to determine which of the first reference touch point 221 and the second reference touch point 222 is the shortest distance from the first reference touch point 211. For example, the distance W1 is smaller than the distance W2, that is, the distance between the first reference touch point 221 and the first reference touch point 211 is the shortest. Therefore, the first reference touch point 221 is outputted as a The touch point associated with the first reference touch point 211.
如步驟S6所示,根據輸出之參考觸控點及對應之第n個基準觸控點形成至少一第一線條。請同時參照第4圖,其繪示在第3圖之掃瞄畫面中形成第一線條的示意圖。在步驟S6中係根據前述輸出之第一參考觸控點221及對應之第一基準觸控點211,形成一條第一線條410。As shown in step S6, at least one first line is formed according to the output reference touch point and the corresponding nth reference touch point. Please refer to FIG. 4 at the same time, which shows a schematic diagram of forming a first line in the scan screen of FIG. In step S6, a first line 410 is formed according to the first reference touch point 221 and the corresponding first reference touch point 211.
接下來,本實施例之追蹤方法係重複執行步驟S4至步驟S6數次,並改變n的值。當n為2時,計算第一參考觸控點221與第二基準觸控點212的距離W3,以及計算第二參考觸控點222與第二基準觸控點212的距離W4,如第3圖所示。舉例來說,距離W4小於距離W3,亦即第二參考觸控點222與第二基準觸控點212距離最短。因此輸出第二參考觸控點222,將其作為與第二基準觸控點212關聯之觸控點。接著根據前述輸出之第二參考觸控點222及對應之第二基準觸控點212,形成另一條第一線條410,如第4圖所示。Next, the tracking method of the present embodiment repeats steps S4 to S6 several times and changes the value of n. When n is 2, the distance W3 between the first reference touch point 221 and the second reference touch point 212 is calculated, and the distance W4 between the second reference touch point 222 and the second reference touch point 212 is calculated, as in the third The figure shows. For example, the distance W4 is smaller than the distance W3, that is, the distance between the second reference touch point 222 and the second reference touch point 212 is the shortest. Therefore, the second reference touch point 222 is outputted as a touch point associated with the second reference touch point 212. Then, according to the output second reference touch point 222 and the corresponding second reference touch point 212, another first line 410 is formed, as shown in FIG.
實際應用上,步驟S4、步驟S5及步驟S6係重複執行N次,直到計算取得所有參考觸控點與所有基準觸控點各自之距離,並進一步對應形成N條至少一第一線條410。In practical applications, step S4, step S5, and step S6 are repeatedly performed N times until the distance between all the reference touch points and all the reference touch points is calculated, and further N at least one first line 410 is formed correspondingly.
前述第二掃瞄時間之掃瞄畫面200’中,係以取得第一參考觸控點221及第二參考觸控點222為例,然而本發明之技術並不限制於第一、第二掃瞄時間中具有相同數量的觸控點。請參照第5圖,其繪示在第二掃瞄時間中取得三個參考觸控點的示意圖。在第二掃瞄時間的掃瞄畫面500’中,係以取得第一參考觸控點221、第二參考觸控點222 及第三參考觸控點223為例,也就是說N為2,M為3。當在步驟S3中判斷出M大於或等於N時,追蹤方法接著執行步驟S4。In the scan screen 200 ′ of the second scan time, the first reference touch point 221 and the second reference touch point 222 are taken as an example, but the technology of the present invention is not limited to the first and second scans. There are the same number of touch points in the aiming time. Please refer to FIG. 5 , which illustrates a schematic diagram of obtaining three reference touch points in the second scan time. In the scan screen 500' of the second scan time, the first reference touch point 221 and the second reference touch point 222 are obtained. And the third reference touch point 223 is taken as an example, that is, N is 2 and M is 3. When it is judged in step S3 that M is greater than or equal to N, the tracking method next performs step S4.
在步驟S4中,計算三個參考觸控點(第一參考觸控點221、第二參考觸控點222及第三參考觸控點223)各自與第n個基準觸控點的距離。當n為1時,計算第一參考觸控點221與第一基準觸控點211的距離W1,計算第二參考觸控點222與第一基準觸控點211的距離W2,並且計算第三參考觸控點223與第一基準觸控點211的距離W5。In step S4, the distance between each of the three reference touch points (the first reference touch point 221, the second reference touch point 222, and the third reference touch point 223) and the nth reference touch point is calculated. When n is 1, the distance W1 between the first reference touch point 221 and the first reference touch point 211 is calculated, the distance W2 between the second reference touch point 222 and the first reference touch point 211 is calculated, and the third is calculated. The distance W5 between the touch point 223 and the first reference touch point 211 is referenced.
如步驟S5所示,輸出三個參考觸控點中與第一基準211觸控點距離最短者。舉例來說,距離W1為三個距離W1、W2及W5中最小者,亦即第一參考觸控點221與第一基準觸控點211距離最短。因此輸出第一參考觸控點221,將其作為與第一基準觸控點211關聯之觸控點。As shown in step S5, the shortest distance between the three reference touch points and the first reference 211 touch point is output. For example, the distance W1 is the smallest of the three distances W1, W2, and W5, that is, the distance between the first reference touch point 221 and the first reference touch point 211 is the shortest. Therefore, the first reference touch point 221 is output as a touch point associated with the first reference touch point 211.
如步驟S6所示,根據輸出之第一參考觸控點221及對應之第一基準觸控點211,形成一條第一線條410,如第6圖所示。第6圖繪示在第5圖之掃瞄畫面中形成第一線條的示意圖。As shown in step S6, a first line 410 is formed according to the output first reference touch point 221 and the corresponding first reference touch point 211, as shown in FIG. FIG. 6 is a schematic view showing the formation of the first line in the scan screen of FIG. 5.
另外在步驟S4中,當n為2時,計算第一參考觸控點221與第二基準觸控點212的距離W3,計算第二參考觸控點222與第二基準觸控點212的距離W4,並且計算第三參考觸控點223與第二基準觸控點212的距離W6,如第5圖所示。舉例來說,距離W4為三個距離W3、W4及W6中最小者,亦即第二參考觸控點222與第二基準觸控點212距離最短。因此輸出第二參考觸控點222,將其作為與第 二基準觸控點212關聯之觸控點。接著根據輸出之第二參考觸控點222及對應之第二基準觸控點212,形成另一條第一線條410,如第6圖所示。In addition, in step S4, when n is 2, the distance W3 between the first reference touch point 221 and the second reference touch point 212 is calculated, and the distance between the second reference touch point 222 and the second reference touch point 212 is calculated. W4, and calculating the distance W6 between the third reference touch point 223 and the second reference touch point 212, as shown in FIG. For example, the distance W4 is the smallest of the three distances W3, W4, and W6, that is, the distance between the second reference touch point 222 and the second reference touch point 212 is the shortest. Therefore, the second reference touch point 222 is outputted as the first The touch point associated with the second reference touch point 212. Then, according to the output second reference touch point 222 and the corresponding second reference touch point 212, another first line 410 is formed, as shown in FIG.
前述步驟S3中,係以取得之參考觸控點數大於或等於基準觸控點數的條件下進行說明(如第3圖及第4圖所示)。然而當參考觸控點數小於基準觸控點數時,在步驟S3中係判斷出M小於N,追蹤方法接著執行步驟S7。In the foregoing step S3, the description is made under the condition that the number of reference touch points obtained is greater than or equal to the number of reference touch points (as shown in FIGS. 3 and 4). However, when the number of reference touch points is less than the number of reference touch points, it is determined in step S3 that M is less than N, and the tracking method then performs step S7.
請參照第7圖及第8圖,第7圖繪示在第一掃瞄時間中取得三個基準觸控點的示意圖,第8圖繪示在第二掃瞄時間中取得兩個參考觸控點的示意圖。當在第一掃瞄時間之掃瞄畫面700中取得第一基準觸控點211、第二基準觸控點212及第三基準觸控點213(亦即N為3),以及在第二掃瞄時間之掃瞄畫面700’中取得第一參考觸控點221及第二參考觸控點222(亦即M為2)時,追蹤方法係執行步驟S7。Please refer to FIG. 7 and FIG. 8 . FIG. 7 is a schematic diagram of obtaining three reference touch points in the first scan time, and FIG. 8 is a view showing two reference touches in the second scan time. A schematic diagram of the point. The first reference touch point 211, the second reference touch point 212, and the third reference touch point 213 (ie, N is 3) are obtained in the scan screen 700 of the first scan time, and the second scan is performed. When the first reference touch point 221 and the second reference touch point 222 are obtained in the scan screen 700' of the time (that is, M is 2), the tracking method performs step S7.
如步驟S7所示,計算N個參考觸控點各自與第m個基準觸控點的距離,其中m為1~M之整數。當m為1時,計算第一基準觸控點211與第一參考觸控點221的距離W1,計算第二基準觸控點212與第一參考觸控點221的距離W2,並且計算第三基準觸控點213與第一參考觸控點221的距離W3。As shown in step S7, the distance between each of the N reference touch points and the mth reference touch point is calculated, where m is an integer from 1 to M. When m is 1, the distance W1 between the first reference touch point 211 and the first reference touch point 221 is calculated, the distance W2 between the second reference touch point 212 and the first reference touch point 221 is calculated, and the third is calculated. The distance W3 between the reference touch point 213 and the first reference touch point 221 .
如步驟S8所示,輸出N個基準觸控點中與第m個參考觸控點距離最短者。舉例來說,距離W2為三個距離W1、W2及W3中最小者,亦即第二基準觸控點212與第一參考觸控點221距離最短。因此輸出第二基準觸控點212,將 其作為與第一參考觸控點221關聯之觸控點。As shown in step S8, the shortest distance from the mth reference touch point among the N reference touch points is output. For example, the distance W2 is the smallest of the three distances W1, W2, and W3, that is, the distance between the second reference touch point 212 and the first reference touch point 221 is the shortest. Therefore outputting the second reference touch point 212, It serves as a touch point associated with the first reference touch point 221.
如步驟S9所示,根據輸出之基準觸控點及對應之第m個參考觸控點形成至少一第二線條。請同時參照第9圖,其繪示在第8圖之掃瞄畫面中形成第二線條的示意圖。在步驟S9中係根據前述輸出之第二基準觸控點212及對應之第一參考觸控點221,形成一條第二線條420。As shown in step S9, at least one second line is formed according to the output reference touch point and the corresponding mth reference touch point. Please refer to FIG. 9 at the same time, which shows a schematic diagram of forming a second line in the scan screen of FIG. 8. In step S9, a second line 420 is formed according to the output second reference touch point 212 and the corresponding first reference touch point 221 .
接下來,本實施例之追蹤方法係重複執行步驟S7至步驟S9數次,並改變m的值。當m為2時,計算第一基準觸控點211與第二參考觸控點222的距離W4,以及計算第二基準觸控點212與第二參考觸控點222的距離W5,並且計算第三基準觸控點213與第二參考觸控點222的距離W6如第3圖所示。舉例來說,距離W6為三個距離W4、W5及W6中最小者,亦即第三基準觸控點213與第二參考觸控點222距離最短。因此輸出第三基準觸控點213,將其作為與第二參考觸控點222關聯之觸控點。接著根據前述輸出之第三基準觸控點213及對應之第二參考觸控點222,形成另一條第二線條420,如第9圖所示。Next, the tracking method of the present embodiment repeats steps S7 to S9 several times and changes the value of m. When m is 2, the distance W4 between the first reference touch point 211 and the second reference touch point 222 is calculated, and the distance W5 between the second reference touch point 212 and the second reference touch point 222 is calculated, and the calculation is performed. The distance W6 between the three reference touch points 213 and the second reference touch point 222 is as shown in FIG. For example, the distance W6 is the smallest of the three distances W4, W5, and W6, that is, the distance between the third reference touch point 213 and the second reference touch point 222 is the shortest. Therefore, the third reference touch point 213 is output as the touch point associated with the second reference touch point 222. Then, according to the output third reference touch point 213 and the corresponding second reference touch point 222, another second line 420 is formed, as shown in FIG.
實際應用上,步驟S7、步驟S8及步驟S9係重複執行M次,直到計算取得所有基準觸控點與所有參考觸控點各自之距離,並進一步對應形成M條至少一第二線條420。In practical applications, step S7, step S8, and step S9 are repeatedly performed M times until the distance between all the reference touch points and all the reference touch points is calculated, and further, at least one second line 420 is formed correspondingly.
另外一方面,本發明實施例之觸控點的追蹤方法係以應用於一追蹤系統為例,請參照第10圖。第10圖繪示依照本發明一實施例之一種觸控點之追蹤系統的功能方塊圖。追蹤系統100至少包含一擷取單元110、一運算單元120、一輸出單元130以及一繪製單元140。擷取單元110 用以於不同的掃瞄時間中分別取得N個基準觸控點及M個參考觸控點,N及M分別為大於或等於2之整數。運算單元120用以計算M個參考觸控點各自與第n個基準觸控點的距離,n為1~N之整數。輸出單元130用以由M個參考觸控點中輸出與第n個基準觸控點距離最短者。繪製單元140用以根據輸出之參考觸控點及對應之第n個基準觸控點形成第一線條。On the other hand, the tracking method of the touch point in the embodiment of the present invention is applied to a tracking system as an example. Please refer to FIG. FIG. 10 is a functional block diagram of a touch point tracking system according to an embodiment of the invention. The tracking system 100 includes at least one capture unit 110, an arithmetic unit 120, an output unit 130, and a rendering unit 140. Capture unit 110 The N reference touch points and the M reference touch points are respectively obtained in different scan times, and N and M are respectively integers greater than or equal to 2. The computing unit 120 is configured to calculate a distance between each of the M reference touch points and the nth reference touch point, where n is an integer from 1 to N. The output unit 130 is configured to output, by the M reference touch points, the shortest distance from the nth reference touch point. The drawing unit 140 is configured to form a first line according to the output reference touch point and the corresponding nth reference touch point.
更進一步來說,追蹤系統100更包含一判斷單元150,用以判斷M是否大於或等於N。運算單元120係於判斷單元150判斷出M大於或等於N時,計算M個參考觸控點各自與第n個基準觸控點的距離,以取得M個參考觸控點中與第n個基準觸控點距離最短者。另外,運算單元120更用以於判斷單元150判斷出M小於N時,計算N個基準觸控點各自與第m個參考觸控點的距離,m為1~M之整數。經由運算單元120之計算,追蹤系統100可以取得N個基準觸控點中與第m個參考觸控點距離最短者。Further, the tracking system 100 further includes a determining unit 150 for determining whether M is greater than or equal to N. The computing unit 120 calculates the distance between each of the M reference touch points and the nth reference touch point when the determining unit 150 determines that M is greater than or equal to N, to obtain the nth reference point among the M reference touch points. The touch distance is the shortest. In addition, the computing unit 120 is further configured to calculate the distance between each of the N reference touch points and the mth reference touch point when the determining unit 150 determines that M is less than N, where m is an integer from 1 to M. Through the calculation of the computing unit 120, the tracking system 100 can obtain the shortest distance from the mth reference touch point among the N reference touch points.
另外,輸出單元130更用以由N個基準觸控點中,輸出與第m個參考觸控點距離最短者。繪製單元140更用以根據輸出之基準觸控點及對應之第m個參考觸控點形成第二線條。In addition, the output unit 130 is further configured to output, by the N reference touch points, the shortest distance from the mth reference touch point. The drawing unit 140 is further configured to form a second line according to the output reference touch point and the corresponding mth reference touch point.
上述依照本發明實施例之觸控點之追蹤方法及追蹤系統,當參考觸控點之數目等於或大於基準觸控點之數目時,係由多個參考觸控點中輸出與第n個基準觸控點距離最短者,並根據輸出之參考觸控點及對應之第n個基準觸控點形成線條。當參考觸控點之數目小於基準觸控點之數 目時,係由多個基準觸控點中輸出與第m個參考觸控點距離最短者,並根據輸出之基準觸控點及對應之第m個參考觸控點形成線條。以此方式利用最短距離之觸控點作為畫線時的下一點,可以避免多觸控點交錯畫線時發生線條連接錯誤的問題,提升觸控操作的正確性。The tracking method and the tracking system of the touch point according to the embodiment of the present invention, when the number of reference touch points is equal to or greater than the number of reference touch points, is outputted from the plurality of reference touch points and the nth reference The touch point is the shortest distance, and the line is formed according to the output reference touch point and the corresponding nth reference touch point. When the number of reference touch points is less than the number of reference touch points In the meantime, the distance between the output of the plurality of reference touch points and the mth reference touch point is the shortest, and the line is formed according to the output reference touch point and the corresponding mth reference touch point. In this way, the shortest distance touch point is used as the next point when drawing the line, which can avoid the problem of line connection error when the multi-touch point is interlaced, and improve the correctness of the touch operation.
雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and the present invention can be modified and modified without departing from the spirit and scope of the present invention. The scope is subject to the definition of the scope of the patent application attached.
100‧‧‧追蹤系統100‧‧‧Tracking system
110‧‧‧擷取單元110‧‧‧Capture unit
120‧‧‧運算單元120‧‧‧ arithmetic unit
130‧‧‧輸出單元130‧‧‧Output unit
140‧‧‧繪製單元140‧‧‧Drawing unit
150‧‧‧判斷單元150‧‧‧judging unit
200‧‧‧掃瞄畫面200‧‧‧ scan screen
200’‧‧‧掃瞄畫面200’‧‧‧ scan screen
211‧‧‧第一基準觸控點211‧‧‧First benchmark touch point
212‧‧‧第二基準觸控點212‧‧‧ second reference touch point
213‧‧‧第三基準觸控點213‧‧‧ Third reference touch point
221‧‧‧第一參考觸控點221‧‧‧ first reference touch point
222‧‧‧第二參考觸控點222‧‧‧Second reference touch point
223‧‧‧第三參考觸控點223‧‧‧ Third reference touch point
410‧‧‧第一線條410‧‧‧First line
700’‧‧‧掃瞄畫面700’‧‧‧ scan screen
D‧‧‧方向D‧‧‧ Direction
S1‧‧‧步驟S1‧‧‧ steps
S2‧‧‧步驟S2‧‧‧ steps
S3‧‧‧步驟S3‧‧‧ steps
S4‧‧‧步驟S4‧‧‧ steps
S5‧‧‧步驟S5‧‧ steps
S6‧‧‧步驟S6‧‧ steps
S7‧‧‧步驟S7‧‧ steps
S8‧‧‧步驟S8‧‧‧ steps
S9‧‧‧步驟S9‧‧ steps
W1‧‧‧距離W1‧‧‧ distance
W2‧‧‧距離W2‧‧‧ distance
W3‧‧‧距離W3‧‧‧ distance
W4‧‧‧距離W4‧‧‧ distance
420‧‧‧第二線條420‧‧‧second line
500’‧‧‧掃瞄畫面500’‧‧‧ scan screen
700‧‧‧掃瞄畫面700‧‧‧ scan screen
W5‧‧‧距離W5‧‧‧ distance
W6‧‧‧距離W6‧‧‧ distance
為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:第1圖繪示依照本發明一實施例之一種觸控點之追蹤方法的流程圖。The above and other objects, features, advantages and embodiments of the present invention will become more apparent and understood. The description of the drawings is as follows: FIG. 1 illustrates a tracking method of a touch point according to an embodiment of the invention. flow chart.
第2圖繪示在第一掃瞄時間中取得兩個基準觸控點的示意圖。FIG. 2 is a schematic diagram showing two reference touch points obtained in the first scan time.
第3圖繪示在第二掃瞄時間中取得兩個參考觸控點的示意圖。FIG. 3 is a schematic diagram showing two reference touch points obtained in the second scan time.
第4圖繪示在第3圖之掃瞄畫面中形成第一線條的示意圖。FIG. 4 is a schematic view showing the formation of the first line in the scan screen of FIG. 3.
第5圖繪示在第二掃瞄時間中取得三個參考觸控點的示意圖。FIG. 5 is a schematic diagram showing three reference touch points obtained in the second scan time.
第6圖繪示在第5圖之掃瞄畫面中形成第一線條的示意圖。FIG. 6 is a schematic view showing the formation of the first line in the scan screen of FIG. 5.
第7圖繪示在第一掃瞄時間中取得三個基準觸控點的示意圖。FIG. 7 is a schematic diagram showing three reference touch points obtained in the first scan time.
第8圖繪示在第二掃瞄時間中取得兩個參考觸控點的示意圖。FIG. 8 is a schematic diagram showing two reference touch points obtained in the second scan time.
第9圖繪示在第8圖之掃瞄畫面中形成第二線條的示意圖。Figure 9 is a schematic view showing the formation of a second line in the scan screen of Figure 8.
第10圖繪示依照本發明一實施例之一種觸控點之追蹤系統的功能方塊圖。FIG. 10 is a functional block diagram of a touch point tracking system according to an embodiment of the invention.
S1...步驟S1. . . step
S2...步驟S2. . . step
S3...步驟S3. . . step
S4...步驟S4. . . step
S5...步驟S5. . . step
S6...步驟S6. . . step
S7...步驟S7. . . step
S8...步驟S8. . . step
S9...步驟S9. . . step
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99113530A TWI419011B (en) | 2010-04-28 | 2010-04-28 | Method and system for tracking touch point |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99113530A TWI419011B (en) | 2010-04-28 | 2010-04-28 | Method and system for tracking touch point |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201137675A TW201137675A (en) | 2011-11-01 |
TWI419011B true TWI419011B (en) | 2013-12-11 |
Family
ID=46759617
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW99113530A TWI419011B (en) | 2010-04-28 | 2010-04-28 | Method and system for tracking touch point |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI419011B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI472985B (en) * | 2013-01-02 | 2015-02-11 | Elan Microelectronics Corp | A gesture recognition method of a touchpad |
CN103268169B (en) * | 2013-06-14 | 2015-10-28 | 深圳市爱点多媒体科技有限公司 | Touch control device touch point tracking and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101458586A (en) * | 2007-12-11 | 2009-06-17 | 义隆电子股份有限公司 | Method for operating objects on touch control screen by multi-fingers |
CN101493736A (en) * | 2009-03-06 | 2009-07-29 | 苏州瀚瑞微电子有限公司 | Method for implementing scaling of display content on display screen on touch pad |
US20100039405A1 (en) * | 2008-08-13 | 2010-02-18 | Au Optronics Corp. | Projective Capacitive Touch Apparatus, and Method for Identifying Distinctive Positions |
-
2010
- 2010-04-28 TW TW99113530A patent/TWI419011B/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101458586A (en) * | 2007-12-11 | 2009-06-17 | 义隆电子股份有限公司 | Method for operating objects on touch control screen by multi-fingers |
US20100039405A1 (en) * | 2008-08-13 | 2010-02-18 | Au Optronics Corp. | Projective Capacitive Touch Apparatus, and Method for Identifying Distinctive Positions |
CN101493736A (en) * | 2009-03-06 | 2009-07-29 | 苏州瀚瑞微电子有限公司 | Method for implementing scaling of display content on display screen on touch pad |
Also Published As
Publication number | Publication date |
---|---|
TW201137675A (en) | 2011-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8674958B1 (en) | Method and apparatus for accurate coordinate calculation of objects in touch applications | |
US8743065B2 (en) | Method of identifying a multi-touch rotation gesture and device using the same | |
TWI463390B (en) | Positioning method for touch display panel | |
TWI584164B (en) | Emulating pressure sensitivity on multi-touch devices | |
JP5802247B2 (en) | Information processing device | |
US20130197862A1 (en) | Latency measurement | |
TWI433003B (en) | Touch-control system and touch-sensing method thereof | |
US20120249599A1 (en) | Method of identifying a multi-touch scaling gesture and device using the same | |
US20150185924A1 (en) | Multi-touch touch screen and its junction area touch sensing method | |
US20120249471A1 (en) | Method of identifying a multi-touch rotation gesture and device using the same | |
US20120249487A1 (en) | Method of identifying a multi-touch shifting gesture and device using the same | |
JP2014153936A (en) | Touch position detection device and touch position detection method | |
US9235293B2 (en) | Optical touch device and touch sensing method | |
US9110588B2 (en) | Optical touch device and method for detecting touch point | |
TWI424343B (en) | Optical screen touch system and method thereof | |
TWI419011B (en) | Method and system for tracking touch point | |
CN101825970B (en) | Tracking method and tracking system of touch-control points | |
CN103176671B (en) | Touch electronic device and touch track correction method | |
CN106547394B (en) | A kind of calibration method of touch display screen, apparatus and system | |
JP5575027B2 (en) | Display-integrated coordinate input device and virtual keyboard function activation method | |
TWI444880B (en) | Touch-point detection method | |
TWI553531B (en) | Optical touch device and method for calculating coordinate of touch point | |
TWI421755B (en) | Touch panel and touching point detection method thereof | |
TWI419040B (en) | Index control device, system and method thereof | |
WO2020150984A1 (en) | Contact area calculating method and apparatus, touch chip, and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |