TWI410839B - Touch point coordinate detection method - Google Patents
Touch point coordinate detection method Download PDFInfo
- Publication number
- TWI410839B TWI410839B TW99120325A TW99120325A TWI410839B TW I410839 B TWI410839 B TW I410839B TW 99120325 A TW99120325 A TW 99120325A TW 99120325 A TW99120325 A TW 99120325A TW I410839 B TWI410839 B TW I410839B
- Authority
- TW
- Taiwan
- Prior art keywords
- touch
- group
- expanded
- points
- touch group
- Prior art date
Links
Abstract
Description
本發明係關於觸控偵測技術,特別是關於一種觸控點座標偵測方法。The invention relates to a touch detection technology, in particular to a touch point coordinate detection method.
觸控面板已被廣泛使用於各類消費性電子產品作為輸入裝置,使用者透過手指或觸控筆等裝置在顯示裝置上的點觸、滑動、書寫等動作,可對顯示裝置上所顯示之物件或選單直接下指令及操作,提供更方便且直覺式的人機操作介面。The touch panel has been widely used as an input device for various types of consumer electronic products. The user can touch, slide, write, etc. on the display device through a device such as a finger or a stylus pen, and can be displayed on the display device. Objects or menus directly command and operate, providing a more convenient and intuitive human-machine interface.
以不同感測技術來區分,觸控面板可分為電容式、電阻式、光學式等。無論使用何種感測技術,為了辨識使用者在觸控面板上所觸摸的位置,觸控裝置在感測到所觸摸到的範圍後,須計算出觸控區域的數目與其座標點。一般而言,以具有多點觸控辨識能力的電容式與光學式觸控技術為例,觸控面板在一圖框時間內掃描完面板上所有感應單元後,將偵測到的觸控點資料記錄下來,經由梯度(Gradient)影像處理方法求出複數個觸控區域。然而,此類運算方式速度較慢,且需儲存大量資料,因此耗費記憶體空間,使系統效能降低。Differently sensed by different sensing technologies, the touch panel can be classified into a capacitive type, a resistive type, an optical type, and the like. Regardless of the sensing technology used, in order to identify the position touched by the user on the touch panel, the touch device must calculate the number of touch regions and its coordinate points after sensing the touched range. In general, a capacitive and optical touch technology with multi-touch recognition capability is used as an example. After the touch panel scans all the sensing units on the panel in a frame time, the detected touch points will be detected. The data is recorded, and a plurality of touch regions are obtained through a Gradient image processing method. However, such calculations are slower and require a large amount of data to be stored, thus consuming memory space and degrading system performance.
此外,對於非理想觸控面板,如第1A圖、第1B圖及第1C圖所示,在第1A圖中原本使用者所輸入的觸控區域10經由觸控面板所感測後,得到第1B圖中的觸控區域12、14、16、18、20,最後透過運算求出如第1C圖所示的中心點座標22、24、26、28、30,但原本的單一觸控點可能被偵測為多個觸控點,而導致實際觸控區域數目與觸控位置計算錯誤。In addition, as shown in FIG. 1A, FIG. 1B, and FIG. 1C, in the first touch panel, the touch panel 10 input by the user is sensed by the touch panel, and the first BB is obtained. In the figure, the touch areas 12, 14, 16, 18, and 20 are finally calculated to obtain the center point coordinates 22, 24, 26, 28, and 30 as shown in FIG. 1C, but the original single touch point may be The detection is a plurality of touch points, and the actual number of touch areas and the touch position are calculated incorrectly.
本發明之一實施例提供一種觸控點座標偵測方法,包括提供一感應矩陣,其包含複數個感應單元;掃描一列感應單元而得到複數組觸控點;將該複數組觸控點分別向左右擴張以形成複數組已擴張之觸控點;若該複數組已擴張之觸控點之間具有重疊之觸控點,則將該具有重疊處控點之複數組已擴張之觸控點合併為一觸控群組,並紀錄該觸控群組之上、下、左、右座標點。An embodiment of the present invention provides a touch point coordinate detection method, including providing a sensing matrix including a plurality of sensing units; scanning a column of sensing units to obtain a complex array of touch points; Expanding left and right to form a complex array of expanded touch points; if the complex array has expanded touch points with overlapping touch points, the expanded array of touch points with overlapping control points are merged It is a touch group and records the top, bottom, left and right coordinate points of the touch group.
本發明之另一實施例提供一種觸控點座標偵測方法,包括提供一感應矩陣,其包含複數個感應單元;掃描一列感應單元以得到複數個相鄰且連續之觸控點;將該複數個觸控點組成為一觸控群組;將該觸控群組向左右擴張以形成一已擴張之觸控群組;及根據該已擴張之觸控群組之下一列感應單元被觸控的狀況產生一再度擴張之觸控群組,並紀錄該再度擴張之觸控群組之上、下、左、右座標點。Another embodiment of the present invention provides a touch point coordinate detecting method, including: providing a sensing matrix including a plurality of sensing units; scanning a column of sensing units to obtain a plurality of adjacent and continuous touch points; The touch points are formed into a touch group; the touch group is expanded to the left and right to form an expanded touch group; and a row of sensing units under the expanded touch group is touched The situation results in a re-expanded touch group and records the top, bottom, left and right coordinate points of the re-expanded touch group.
本發明之實施例藉由對複數組觸控點執行列方向與行方向之擴張及合併,可避免如先前技術原本的單一觸控點被錯誤地偵測為多個觸控點,而導致實際觸控區域數目與觸控位置計算錯誤。The embodiment of the present invention can prevent the single touch point of the prior art from being erroneously detected as multiple touch points by performing the expansion and combination of the column direction and the row direction on the complex array touch points, thereby causing the actual The number of touch areas and the touch position are incorrectly calculated.
有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之一較佳實施例的詳細說明中,將可清楚的呈現。以下實施例中所提到的方向用語,例如:上、下、左或右等,僅是參考附加圖式的方向。因此,使用的方向用語是用來說明並非用來限制本發明。The above and other technical contents, features and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments. The directional terms mentioned in the following embodiments, such as up, down, left or right, etc., are only directions referring to the additional drawings. Therefore, the directional terminology used is for the purpose of illustration and not limitation.
第2圖為本發明觸控面板示意圖。如第2圖所示,觸控面板上包含複數個感應單元101。以較佳實施例而言,感應單元101係為觸控面板上畫分之單位區域範圍。感應單元101係以矩陣方式排列以形成感應矩陣110。2 is a schematic view of a touch panel of the present invention. As shown in FIG. 2, the touch panel includes a plurality of sensing units 101. In the preferred embodiment, the sensing unit 101 is a unit area range on the touch panel. The sensing units 101 are arranged in a matrix to form the sensing matrix 110.
第3圖所示為本發明實施例之觸控點座標偵測方法之一流程圖。本實施例提出之觸控點座標偵測方法包括步驟S100~S730,下面將結合第3圖與第4A圖至第4H圖對步驟S100~S730進行說明。其中對於本發明實施例之感應矩陣排列方式,列方向係指水平方向,行方向係指垂直方向。FIG. 3 is a flow chart showing a method for detecting a touch point coordinate according to an embodiment of the present invention. The touch point coordinate detection method proposed in this embodiment includes steps S100 to S730. Steps S100 to S730 will be described below with reference to FIG. 3 and FIG. 4A to FIG. For the arrangement of the sensing matrix in the embodiment of the present invention, the column direction refers to the horizontal direction, and the row direction refers to the vertical direction.
步驟S100包含提供具有一感應矩陣110之觸控面板,其包含複數個感應單元。當感應單元受到觸碰時,感應單元所對應之感測元件會產生訊號變異,可得知感應單元所在位置與其他位置具有不同之訊號。在步驟S200中,當面板依序掃描每一列閘線時,便依據此訊號將該列閘線上之感應單元定義為觸控點或非觸控點,並將相鄰且連續之觸控點定義為一組觸控點,紀錄每一組觸控點之起始點與結束點座標值。如第4A圖所示,其中以陰影表示的感應單元為感測到的觸控點,白色的感應單元為非觸控點。當掃描第一條閘線時,找到兩組觸控點401及403,此時須儲存的資訊為第一組觸控點401之起始點座標T01、結束點座標E01,與第二組觸控點403之起始點座標T02、結束點座標E02。Step S100 includes providing a touch panel having a sensing matrix 110, which includes a plurality of sensing units. When the sensing unit is touched, the sensing component corresponding to the sensing unit generates a signal variation, and the sensing unit is located at a different signal from the other locations. In step S200, when the panel sequentially scans each column gate line, the sensing unit on the column gate line is defined as a touch point or a non-touch point according to the signal, and adjacent and consecutive touch points are defined. For a set of touch points, record the starting point and end point coordinate values of each set of touch points. As shown in FIG. 4A, the sensing unit indicated by the shadow is the sensed touch point, and the white sensing unit is the non-touch point. When the first gate line is scanned, two sets of touch points 401 and 403 are found. The information to be stored at this time is the starting point coordinate T01 and the ending point coordinate E01 of the first group of touch points 401, and the second group touches The starting point coordinate T02 and the ending point coordinate E02 of the control point 403.
為避免非理想觸控面板上可能有故障或訊號感測不良之感應單元,造成單一觸控區域被辨識為多個觸控區域之結果,接著實行一擴張步驟S300,以執行列方向群組合併(步驟S400)。將上述各組觸控點在列方向上往左右擴張一預設數目之單元;判斷擴張後各組觸控點間是否有重疊,將有重疊者合併為一觸控群組(步驟S400)。如第4B圖所示,在此實施例中設定擴張單元數為一,斜線部分係為將第一組觸控點401及第二組觸控點403各向左右擴張一單位後的結果。由於此兩組觸控點401、403擴張後發生重疊,因此將此兩組觸控點401及403合併為一觸控群組405。此時將已儲存資訊T01、E01、T02、E02更新為目前存在的觸控群組405之起始點座標T1、結束點座標E2、上端座標H、下端座標B,需儲存的資訊為T1、E2、H、B共四點座標。In order to avoid the result that the sensing unit may be faulty or the signal sensing is not good on the non-ideal touch panel, the single touch area is recognized as the result of the plurality of touch areas, and then an expansion step S300 is performed to perform the column direction group combination. (Step S400). The above-mentioned groups of touch points are expanded to the left and right in the column direction by a predetermined number of units; whether there is overlap between the groups of touch points after expansion, and the overlapped persons are merged into one touch group (step S400). As shown in FIG. 4B, in this embodiment, the number of expansion units is set to one, and the oblique line portion is a result of expanding the first group of touch points 401 and the second group of touch points 403 to the left and right by one unit. Since the two sets of touch points 401 and 403 overlap after being expanded, the two sets of touch points 401 and 403 are combined into one touch group 405. At this time, the stored information T01, E01, T02, and E02 are updated to the starting point coordinate T1, the ending point coordinate E2, the upper coordinate H, and the lower coordinate B of the currently existing touch group 405, and the information to be stored is T1. E2, H, B have a total of four coordinates.
在步驟S500中,判斷是否執行行方向上的群組合併。判斷掃描前一條閘線時所儲存的觸控群組與目前所掃描的閘線上的觸控群組在列方向上是否發生重疊;若發生重疊,則將此兩條閘線上的觸控群組合併為一觸控群組(步驟S610),並更新所儲存之觸控群組資訊,其中觸控群組資訊包括該觸控群組之起始點座標、結束點座標、上端座標、下端座標。如第4C圖所示,當掃描第二條閘線,找到一觸控群組,將其實行左右擴張後,得到擴張後的觸控群組407,記錄觸控群組407之起始點座標T3、結束點座標E3。將T3、E3與掃描第一條閘線時所儲存的觸控群組資訊T1、E2做比對,判斷出觸控群組405與觸控群組407為重疊,故將此兩組觸控群組405及407合併為一觸控群組409。此時將已儲存資訊T1、E2、T3、E3、H、B更新為目前存在的觸控群組409之起始點座標T1與結束點座標E3、上端座標H、下端座標(B+1)。In step S500, it is determined whether or not group merging in the row direction is performed. Determining whether the touch group stored in the previous gate line overlaps with the touch group on the currently scanned gate line in the column direction; if there is overlap, the touch group on the two gate lines Merging into a touch group (step S610), and updating the stored touch group information, wherein the touch group information includes a start point coordinate, an end point coordinate, an upper coordinate, and a lower coordinate of the touch group . As shown in FIG. 4C, when the second gate line is scanned, a touch group is found, and the left and right expansions are performed, and the expanded touch group 407 is obtained, and the starting point coordinates of the touch group 407 are recorded. T3, end point coordinate E3. Comparing T3 and E3 with the touch group information T1 and E2 stored when scanning the first gate line, it is determined that the touch group 405 and the touch group 407 overlap, so the two groups of touches are Groups 405 and 407 are combined into one touch group 409. At this time, the stored information T1, E2, T3, E3, H, B is updated to the starting point coordinate T1 and the ending point coordinate E3, the upper coordinate H, and the lower coordinate (B+1) of the currently existing touch group 409. .
接下來掃描下一條閘線。如第4D圖所示,在掃描第三條閘線時,並無找到觸控點,因此執行步驟S630。此時觸控群組409往下掃描無觸控點之列數為一,沒有大於所設定之擴張單元數1,故將觸控群組409往下作擴張得到觸控群組411(步驟S710)。起始點座標T1與結束點座標E3、上端座標H皆保留而僅更新下端座標為(B+2)。Next scan the next gate line. As shown in FIG. 4D, when the third gate line is scanned, no touch point is found, so step S630 is performed. At this time, the number of the touch-free groups of the touch group 409 is one, and the number of the touch-free points is one, and the touch group 409 is expanded downward to obtain the touch group 411 (step S710). ). The starting point coordinate T1 and the ending point coordinate E3 and the upper coordinate H are all retained and only the lower coordinate is updated (B+2).
接下來如第4E圖所示,在掃描第四條閘線時,找到觸控點並將其擴張為觸控群組413,判斷觸控群組413與觸控群組411在列方向上發生重疊,故將觸控群組413與觸控群組411合併為觸控群組415。同樣地,起始點座標T1與結束點座標E3、上端座標H皆保留而僅更新下端座標為(B+3)。Next, as shown in FIG. 4E, when the fourth gate line is scanned, the touch point is found and expanded into the touch group 413, and the touch group 413 and the touch group 411 are determined to occur in the column direction. The touch group 413 and the touch group 411 are merged into the touch group 415. Similarly, the starting point coordinate T1 and the ending point coordinate E3 and the upper coordinate H are retained and only the lower coordinate is updated (B+3).
接下來如第4F圖所示,在掃描第五條閘線時,並無找到觸控點,此時觸控群組415往下掃描無觸控點之列數為一,並無大於所設定之擴張單元數1,因此將掃描前一條閘線時所留下之觸控群組415往下作擴張得到觸控群組417,觸控群組資訊包含:起始點座標T1、結束點座標E3、上端座標H與下端座標(B+4)。Next, as shown in FIG. 4F, when the fifth gate line is scanned, no touch point is found. At this time, the number of touchless points of the touch group 415 is one, which is not greater than the set. The number of expansion units is 1, so that the touch group 415 left when the previous one is scanned is expanded downward to obtain the touch group 417. The touch group information includes: the starting point coordinate T1 and the ending point coordinate E3, upper coordinate H and lower coordinate (B+4).
在第4G圖中,在掃描第六條閘線時,又無找到觸控點。在步驟S630中,判斷出此時往下掃描無觸控點之列數為二,大於所設定之擴張單元數一,因此執行步驟S730:取消在掃描第五條閘線時所執行的往下擴張,得到觸控群組419並更新其群組資料:起始點座標T1、結束點座標E3、上端座標H與下端座標為(B+3),並據以計算出觸控群組419的中心點座標M,如第4H圖所示。In the 4G picture, when the sixth gate line is scanned, no touch point is found. In step S630, it is determined that the number of rows of non-touch points scanned downward is two, which is greater than the number of expansion units set by one, so step S730 is performed: canceling the downward execution performed when scanning the fifth gate line Expanding, the touch group 419 is obtained and its group data is updated: the starting point coordinate T1, the ending point coordinate E3, the upper coordinate H and the lower coordinate (B+3), and the touch group 419 is calculated accordingly. The center point coordinates M, as shown in Figure 4H.
在本實施例中,當掃描完第六條閘線時,可隨即計算出觸控中心點座標,無須在掃描完面板上所有閘線後作複雜且龐大的計算,進而提升系統效能。在第4A~4H圖的例子中,掃描每一條閘線的過程最多須儲存的資訊為6筆(如第4C圖的T1、E2、T3、E3、H、B+1所示),減少記憶體所需耗費的空間;此外,可依據觸控面板之性能及/或其他需求來設定左右擴張的單元數。當然,本發明實施例提出之單點觸控點座標偵測方法同樣可支援多點觸控偵測。除此之外,藉由適當地擴張觸控群組,再將應屬於同一觸控群組之複數個觸控群組進行合併,可避免如先前技術原本的單一觸控點被錯誤地偵測為多個觸控點,而導致實際觸控區域數目與觸控位置計算錯誤。In this embodiment, when the sixth gate line is scanned, the touch center point coordinates can be calculated immediately, and it is not necessary to perform complicated and large calculations after scanning all the gate lines on the panel, thereby improving system performance. In the example of the 4A~4H diagram, the maximum amount of information to be stored in the process of scanning each gate line is 6 (as shown by T1, E2, T3, E3, H, B+1 in Figure 4C), reducing memory. The space required for the body; in addition, the number of units to be expanded left and right can be set according to the performance of the touch panel and/or other requirements. Of course, the single-touch point coordinate detection method proposed by the embodiment of the present invention can also support multi-touch detection. In addition, by appropriately expanding the touch group and then combining the plurality of touch groups that belong to the same touch group, the original single touch point can be prevented from being erroneously detected. It is a plurality of touch points, and the actual number of touch areas and the touch position are calculated incorrectly.
以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.
10~20...觸控區域10~20. . . Touch area
22~30、M...中心點座標22~30, M. . . Center point coordinates
101...觸控面板上之感應單元101. . . Sensing unit on the touch panel
110...觸控面板上之感應矩陣110. . . Induction matrix on touch panel
S100、S200、S300、S400、S500、S610、S630、S710、S730...步驟S100, S200, S300, S400, S500, S610, S630, S710, S730. . . step
401、403...觸控點401, 403. . . Touch point
405、407、409、411、413、415、417、419...觸控群組405, 407, 409, 411, 413, 415, 417, 419. . . Touch group
T01、T02、T1、T3...起始點座標T01, T02, T1, T3. . . Starting point coordinates
E01、E02、E2、E3...結束點座標E01, E02, E2, E3. . . End point coordinates
H...上端座標H. . . Upper coordinates
B、B+1、B+2、B+3、B+4...下端座標B, B+1, B+2, B+3, B+4. . . Lower coordinate
第1A~1C圖為一傳統觸控面板所偵測到之觸控輸入的示意圖;1A~1C are schematic diagrams of touch inputs detected by a conventional touch panel;
第2圖為本發明觸控面板結構的示意圖;2 is a schematic view showing the structure of a touch panel of the present invention;
第3圖為相關於本發明實施例之一種觸控點座標偵測方法之一流程圖;FIG. 3 is a flow chart of a touch point coordinate detecting method according to an embodiment of the present invention;
第4A~4H圖為第2圖觸控面板上遭觸控後形成觸控群組之實施例示意圖。4A to 4H are schematic views of an embodiment of forming a touch group after being touched on the touch panel of FIG. 2 .
419...觸控群組419. . . Touch group
T1...起始點座標T1. . . Starting point coordinates
E3...結束點座標E3. . . End point coordinates
H...上端座標H. . . Upper coordinates
B+3...下端座標B+3. . . Lower coordinate
Claims (16)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99120325A TWI410839B (en) | 2010-06-22 | 2010-06-22 | Touch point coordinate detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99120325A TWI410839B (en) | 2010-06-22 | 2010-06-22 | Touch point coordinate detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201201065A TW201201065A (en) | 2012-01-01 |
TWI410839B true TWI410839B (en) | 2013-10-01 |
Family
ID=46755657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW99120325A TWI410839B (en) | 2010-06-22 | 2010-06-22 | Touch point coordinate detection method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI410839B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130222336A1 (en) * | 2012-02-24 | 2013-08-29 | Texas Instruments Incorporated | Compensated Linear Interpolation of Capacitive Sensors of Capacitive Touch Screens |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009113754A1 (en) * | 2008-03-12 | 2009-09-17 | Atlab Inc. | Touch sensor device and pointing coordinate determination method thereof |
TW201009666A (en) * | 2008-08-19 | 2010-03-01 | Au Optronics Corp | Multipoint tracking method and related device |
TW201013490A (en) * | 2008-09-30 | 2010-04-01 | Au Optronics Corp | Detecting method for a touch panel |
-
2010
- 2010-06-22 TW TW99120325A patent/TWI410839B/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009113754A1 (en) * | 2008-03-12 | 2009-09-17 | Atlab Inc. | Touch sensor device and pointing coordinate determination method thereof |
TW201009666A (en) * | 2008-08-19 | 2010-03-01 | Au Optronics Corp | Multipoint tracking method and related device |
TW201013490A (en) * | 2008-09-30 | 2010-04-01 | Au Optronics Corp | Detecting method for a touch panel |
Also Published As
Publication number | Publication date |
---|---|
TW201201065A (en) | 2012-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8493355B2 (en) | Systems and methods for assessing locations of multiple touch inputs | |
JP5643719B2 (en) | Coordinate detection device | |
CN107231814B (en) | Method and apparatus for detecting false boundary touch input | |
US20090128516A1 (en) | Multi-point detection on a single-point detection digitizer | |
US20100149109A1 (en) | Multi-Touch Shape Drawing | |
US20130155016A1 (en) | Capacitive touch sensor and capacitive pen | |
TWI526916B (en) | Multi-touch screen device and multi-touch screen adjacent junction detection method | |
JP2017527938A (en) | Touch panel, touch position specifying method, and display device | |
CN103823550A (en) | Virtual touch method | |
US20100090976A1 (en) | Method for Detecting Multiple Touch Positions on a Touch Panel | |
US20120249599A1 (en) | Method of identifying a multi-touch scaling gesture and device using the same | |
US8954638B2 (en) | Selective reporting of touch data | |
US20180373381A1 (en) | Palm touch detection in a touch screen device having a floating ground or a thin touch panel | |
KR101438231B1 (en) | Apparatus and its controlling Method for operating hybrid touch screen | |
JPH11327727A (en) | System and method for screen operation | |
TWI410839B (en) | Touch point coordinate detection method | |
KR101986660B1 (en) | Device for curved display with touch sensor | |
JP2010211264A (en) | Coordinate input device | |
US20100245266A1 (en) | Handwriting processing apparatus, computer program product, and method | |
JP2006085218A (en) | Touch panel operating device | |
TWI485610B (en) | Method and device for detecting touch or proximity | |
US20110119579A1 (en) | Method of turning over three-dimensional graphic object by use of touch sensitive input device | |
TWI602098B (en) | Touch Sensor Device And Sensing Method For Touch Point | |
CN104679312A (en) | Electronic device as well as touch system and touch method of electronic device | |
US20080158187A1 (en) | Touch control input system for use in electronic apparatuses and signal generation method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |