TW200928897A - Hand gesture identification method applied to a touch panel - Google Patents

Hand gesture identification method applied to a touch panel Download PDF

Info

Publication number
TW200928897A
TW200928897A TW96148880A TW96148880A TW200928897A TW 200928897 A TW200928897 A TW 200928897A TW 96148880 A TW96148880 A TW 96148880A TW 96148880 A TW96148880 A TW 96148880A TW 200928897 A TW200928897 A TW 200928897A
Authority
TW
Taiwan
Prior art keywords
coordinate
angle
touch panel
touch
gesture
Prior art date
Application number
TW96148880A
Other languages
Chinese (zh)
Inventor
Chia-Yi Lee
Chia-Hui Yeh
Sheng-Feng Weng
Original Assignee
Elan Microelectronics Corp
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 Elan Microelectronics Corp filed Critical Elan Microelectronics Corp
Priority to TW96148880A priority Critical patent/TW200928897A/en
Publication of TW200928897A publication Critical patent/TW200928897A/en

Links

Landscapes

  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a kind of hand gesture identification method applied to a touch panel, especially provides a creative concept of operation in palm-type touch panel device. It can improve the efficiency and convenience of operation, so that the invention can make a finger engaged in movements including sliding, horizontal moving, dragging forward and backward, and rotation.

Description

200928897 九、發明說明: 【發明所屬之技術領域】 本發明係關於一種應用於觸控板的手勢判斷方法。 【先前技術】 近年來,由於各種智慧型攜帶式設備的蓬勃發展,也 帶動了例如iPod、iPhone等的各種操控方式之創新發展, 本案係針對這些掌上型裝置的觸碰板的操作方式提出創新 的槪念。能夠改善操作上的效率及便利性。 【發明內容】 本發明之目的在於提供一種手勢判斷方法,能夠使 iPod、iPhone等的行動裝置之操作更加便利。200928897 IX. Description of the Invention: [Technical Field] The present invention relates to a gesture judging method applied to a touch panel. [Prior Art] In recent years, due to the vigorous development of various smart portable devices, and also the innovative development of various control methods such as iPod, iPhone, etc., this case proposes innovations for the operation mode of the touch panels of these handheld devices. The mourning. It can improve the efficiency and convenience of operation. SUMMARY OF THE INVENTION An object of the present invention is to provide a gesture determination method capable of facilitating the operation of a mobile device such as an iPod or an iPhone.

爲了達成以上目的,在本發明提出了一種觸控板的手 勢判斷方法,該觸控板至少包括複數個區域,該方法包括: 讀取觸控板被感應物所觸碰的座標,並判斷該座標所對應 的區域;以及當該感應物離開觸控板時,執行該對應區域 所對應的功能。 另外,提出了另一種觸控板的手勢判斷方法,該觸控 板包括多個區域,該方法包括:讀取觸控板被感應物所觸 碰的座標,並判斷該座標所對應的區域;當感應物離開觸 控板時,判斷感應物離開座標是否等於該對應之區域;以 及若判定爲相同,則執行該對應區域所對應的功能。 此外,還提出了另一種觸控板的手勢判斷方法,包括: 先記錄感應物所觸碰的初始座標;當感應物移動時,計算 與感應物移動後座標及初始觸碰座標對應的角度;若水平 200928897 移動的座標先超過一判斷標準,則判定此次動作爲水平移 動,接下來只做水平移動的動作並忽略垂直移動,直至手 指離開爲止;反之若垂直移動的座標先超過該判斷標準, 則判斷此次動作爲垂直移動。 此外,還提出了另一種觸控板的手勢判斷方法,包括: 先記錄至少兩個感應物所觸碰的初始座標(Χ^Υ!);當該兩個感 應物移動時,記錄該兩者移動後座標 達既定次數;當Χη-Χη-θΟ時,則給予一正識別値,若 β Xn-Xn^CO時,則給予一負識別値,若是前述兩者以外,則 給予一個無效識別値;以及將既定次數的識別値相加,若 得出之識別値大於或小於基準範圍,則判定該兩個感應物 的水平距離拉遠或拉近,否則認定此次操作無效。 此外,還提出了另一種觸控板的手勢判斷方法,包括: 先在觸碰板上找出一個座標値(χ^γ。),來作爲圓心;以該 座標値(Χ〇,Υ。)來將該觸碰板劃分成四個象限,並以X軸來 作爲角度計算的起始處;當觸碰物位於右下象限時,算出 0 其座標値與X軸的角度爲0,並加上90。來作爲其角度値; 當觸碰物位於左下象限時,算出其座標値與χ軸的角度爲 0 ’並由270°減去0來作爲其角度値;當觸碰物位於左上 象限時,算出其座標値與X軸的角度爲0 ,並加上270。 來作爲其角度値;當觸碰物位於右上象限時,算出其座標 値與X軸的角度爲0 ’並由90。減去0來作爲其角度値。 【實施方式】 以下’配合圖式來說明本發明的各個實施例。 200928897 [第1實施例] 首先,根據第1圖來說明本發明之第1實施例。須注 意的是,一般觸碰板的座標原點(〇, 〇)是在最左上方,而非 正中央。 假設這是用在iPhone上的觸控式按鍵,如第1圖所 示,先將觸控板劃分成6個區塊R 1〜R 6,以座標値爲例, 我們以(〇,〇)〜(49,49)爲一個區塊範圍,依序將1^1〜尺6定義 爲(0,0)〜(49,49)、 (50,0)〜(99,49)、 (100,0)〜(149,49)、 (0,50) 〜(49,99)、 (50,50)〜(99,99)、 (100,50)〜(149,99)。圖式中, 爲了繪圖方便起見,每個區塊之間留有間隙,但是否須留 間隙,則取決於功能設計。以下則是以無間隙的方式來進 行說明。 每個區塊對應一個觸控式按鍵,在本例中,每個按鍵 代表一個數字鍵,當使用者按下觸控板時,觸控板會先讀 取按下的座標,例如(23,40)時,則判定爲使用者按下按鍵 R1而將R1的對應顯示資訊「1」予以記錄,若是(11〇,75) 時則落在R6的範圍內而判定爲按下R6而將R6的對應顯示 資訊「6」予以記錄。 當使用者按下座標(23,40)的按鍵R1時,若使用者在觸 控板上移動而經過例如按鍵R5且在按鍵R6的範圍中將手 指提起’則認定爲執行從手指按下到提起爲止所經過的按 鍵功能’而一次在顯示部上顯示「156」。 接著’參照第2圖來說明第1實施例的流程圖,首先 根據使用者的手指按下位置來讀取其座標(X,Y)(步驟S1)。 200928897 接著,先判斷座標(χ,γ)是否落在有效的按鍵範圍內, 若座標爲(23,40)則判定爲落在R1內,所以是有效按鍵而進 行至下一步驟。但若(Χ,Υ)不在有效範圍內,例如(-2,13), 則判定爲不在定義的按鍵範圍內,且不進行任何動作而重 新偵測(步驟S 2)。 接著,當使用者移動手指而進行例如拖曳的動作時, 持續讀取使用者手指的座標並判斷是否仍在同一個按鍵範 圍內,若同樣在範圍R1內(NowButton = PreButton),則不進 行任何判斷動作。但若已移動至R1以外的範圍時,例如 (60,70),則記錄先前所按下的按鍵Ri,並判斷出目前手指 所在處的按鍵R5(NowButton! = PreButton),若使用者持續拖 曳手指至其他按鍵,則持續記錄所按過的按鍵並讀取新的 位置(步驟S 3 )。 然後,等待使用者提起手指’當使用者移動至(丨23,78) 而提起手指時,則辨識出在R6提起手指(步驟S4),並讀取 先前按過的按鍵範圍R1、R5,而判定爲一共按下過R1、 R5、R6而在顯示部上顯示對應的數字「156」(步驟S5)。 [第2實施例] 同樣根據第1圖之按鍵範圍來說明第2實施例。 與第1實施例不同的是’在第2實施例中,只有當手 指必須在最初按下之按鍵範圍內進行提起的動作,此期間 所經過的按鍵才會被認定爲有效,以下將進行詳細說明。 參照第3圖來說明第2實施例的流程圖,首先根據使 用者的手指按下位置來讀取其座標(X,γ)(步驟S 1)。 200928897 接著,先判斷座標(Χ,Υ)是否落在有效的按鍵範圍內, 若座標爲(2 3,4 0)則判定爲落在R 1內,所以是有效按鍵而進 行至下一步驟。但若(Χ,Υ)不在有效範圍內,例如(-2, 13), 則判定爲不在定義的按鍵範圍內,且不進行任何動作(步驟 S2)。 接著,當使用者移動手指而進行例如拖曳的動作時, 持續讀取使用者手指的座標並判斷是否仍在同一個按鍵範 圍內,若同樣在範圍R1內(NowButton = PreButton),則不進 行任何判斷動作。但若已移動至R1以外的範圍時,例如 (60,70) ’則記錄先前所按下的按鍵R1,並判斷出目前手指 所在處的按鍵R5(NowBuuon! = PreButton),若使用者持續拖 曳手指至其他按鍵’則持續記錄所按過的按鍵並讀取新的 位置(步驟S3)。 然後,判斷手指是否離開(步驟S 4),等待使用者提起 手指’當使用者移動至R1範圍以外處,例如(丨23,78)而提 起手指時’則辨識出在R6提起手指,而非原先按下的ri, 故取消所有sS錄動作’包含放棄先前所儲存的按鍵。若使 用者在(3,10)提起手指’且被辨識爲在ri範圍內(步驟 S5),則讀取先前按過的按鍵範圍Rl、R5,而判定爲一共 按下過R1、R5、R6而在顯示部上顯示對應的數字「156」(步 驟 S6)。 [第3實施例] 在一般的視窗系統中’當欲顯示之內容過於龐大而超 出畫面顯不圍時,視窗系統將會自動產生捲軸(s c 1,0 1 1 200928897 bar),讓使用者便於操作並瀏覽內容。 在第3實施例中,則是偵測手指的水平移勸或垂直移 動。 當使用者觸碰於第1圖所示之觸碰板時,先記錄使用 者手觸碰的初始位置,當使用者手滑動時,計算與使用者 手指移動後位置及初始位置對應的角度,判斷手指是水平 移動或垂直移動。以10個點爲參考點,若水平移動的點先 超過1 0個點,則程式判定此次的動作爲水平移動,接下來 ® 只做水平移動的動作,直至手指離開爲止;若垂直移動的 點先超過1 0個點,則判斷此次動作爲垂直移動的動作。 以下舉例說明之步驟如下:記錄使用者手放下時的座 標位置,例如(25,25);以10個座標點爲參考點,當移動幅 度不大時,例如垂直移動或水平移動皆尙未超過10個座標 點時’則程式尙未判定此次手指動作是水平滑動的動作或 是垂直滑動的動作。 使用者的手指可能是右下斜向移動,但若水平移動角 〇 度較小,使得移動後之座標先達到例如(35,2 9),在X座標 上先達到1 0個座標點時,則判定且執行水平移動,而忽視 垂直座標的變化;若座標先達到例如(30,35),在Y座標上 先達到1 0個座標點時,則判定執行垂直移動,而忽視水平 座標的變化。 本例中使用1 0個座標點來作說明,當然可根據設計來 作變更爲例如20個座標點甚至50個座標點。 [第4實施例] -10- 200928897 在第4實施例中,利用觸碰版來進行垂直拉動捲軸的 移動功能。其功能類似於上述第3實施例,但卻採用了不 同的運作機制。 不同於上述第3實施例以座標點作爲判定標準,第4 實施例是以角度來做爲判定標準》 在本實施例之手勢判斷方法中,首先記錄使用者手指 放下的位置,例如(25,25),當使用者手指向右下滑動時, 得出使用者手指移動後的位置,例如(55,40),並將初始位 置(25,25)與移動後位置(55,40)作計算,而算出一個角度, 在垂直方向上,此角度>30度,故認定爲非標準的滑動動 作’則不做任何動作。相對於此,若移動後位置爲(30,70), 顯然是一個S.30度的角度,故認定爲已進行滑動動作,則 計算手指移動的垂直距離,使畫面之捲軸對應該移動距離 而進行捲動或變化。 在本實施例中是以3 0度來作爲判定標準,但此參考角 度可根據設計而進行變更,例如20度則可進行更嚴格的判 定。 另外,可將垂直的判定變更成水平的判定,如此一來 就可以應用在拉動水平捲軸,例如播放影片時水平時間軸 的調整。 [第5實施例] 類似第4實施例,但在第5實施例中,是針對兩隻手 指觸碰的情形。 在本實施例之手勢判斷方法中,首先記錄使用者兩隻 -11- 200928897 手指放下的位置,例如(25,25)及(31,23),先算出兩者的平 均値(2 8,24),當使用者手向右下滑動時,得出使用者手指 移動後的位置座標,例如(50,45)及(60,3 5),則平均値爲 (5 5,4 0),並將初始位置(2 8,24)與移動後位置(5 5,40)作計 算,而算出一個角度,在垂直方向上,此角度>30度,故 認定爲非標準的滑動動作,則不做任何動作。相對於此, 若移動後位置平均値爲(30,7 0),顯然是一個$30度的角 度,故認定爲已進行滑動動作,則計算手指移動的垂直距 〇 離,使畫面之捲軸對應該移動距離而進行捲動或變化。 [第6實施例] 在本實施例中,將說明以兩隻手指來進行畫面Zoom-In 或Zoom-Out的動作。 如第4圖所示,當使用者將二隻手指放在觸碰板上, 若移動二隻手指使手指間的距離拉短,則視爲Zoom-Out的 動作;反之若二指間的距離拉長,則視爲Zoom-In的動作。 因此我們只要計算二指座標間的距離即可。 φ 以既定次數(例如5次)及既定間隔時間(例如0.1秒)讀 取使用者手指移動的座標,每1秒得出5組座標例如以下: 左手 右手 X座標差値 識別數値 初 始 値 (22,12) (25,12) 3 X 第 1 組 (21,12) (25,12) 4 + 1 第 2 組 (19,12) (28,12) 9 + 1 第 3 組 (14,12) (30,12) 16 + 1 第 4 組 (15,12) (29,12) 14 -1 第 5 組 (12,12) (34,12) 22 + 1 -12- 200928897 由第1〜3、5組中的X座標可判斷出兩隻手指距離拉 大,而分別給予一個識別數値「+1」,而第4組可能因爲外 在原因而發生晃動,而判定爲兩隻手指距離拉近,故給予 —個識別數値「-1 j,而得出一組識別碼(+ 1,+ 1,+ 1,-1,+ 1)接 著,將上述數値加總 SUM = (+l) + (+l) + (+l) + (-i) + (+i) = 3,若 此SUM = 3,且大於一個基準値REF,例如2 ,則判定爲現 在兩隻手指正在進行距離拉長的動作(pinch open),並回傳 •—個回傳値RET=1,代表正在進行Zoom-In的動作。 © 反之,若是在兩隻手指拉近的動作中,則REF = -2,若 加總値SUM小於-2,則判定爲現在兩隻手指正在進行距離 拉長的動作(pinch closed),並回傳一個回傳値reT = -1,代 表正在進行Zoom-Out的動作。 . 但若在兩隻手指拉近的動作中發生以下情形: 左手 右手 X座標差値 識別數値 初 始 値 (12,12) (35,12) 23 X 第 1 組 (12,12) (34,12) 22 -1 第 2 組 (15,12) (29,12) 14 -1 第 3 組 (14,12) (30,12) 16 + 1 第 4 組 (19,12) (28,12) 9 -1 第 5 組 (18,12) (28,12) 10 + 1 SUM = (- l) + (- l) + (+ l) + (- l) + (+ i)=i,並非大於 2 也非小 於-2 ’換言之2>SUM>-2,則判定此爲無效動作,並回傳一 個回傳値RET = 0,不進行任何動作。 以一個基準値REF來進行加總判定,有助於避免因手 200928897 指移動當中,因爲晃動或任何外在原因造成拉 動作中止,換言之,並非以每單組測定座標的 判斷,而是以多數組座標總和來進行判斷,故 誤判的影響。 [第7實施例] 在本實施例中,將說明以手指來畫圓的動 作媒體播放程式的虛擬音量旋鈕等。 首先,在觸碰板上定義出圓的中心點,然 區域的半徑,當使用者將手指放至觸碰板上時 到中心點的距離,判斷是否在有效半徑內,若 開,若爲有效則利用中心點當原點,使用arc t 者手指位置的角度,並回傳數値。 如第5A〜D圖所示,假設觸碰板的解析度;| 觸碰板的座標原點原來在最左上方(〇,〇),但爲 動作的判別,故將觸碰板的(250,25 0)定爲座標 劃分成四個象限。 由於觸碰板的原點在左上方,因此當手指 限時,如第5A圖所示,則判斷其角度爲90。+ 0 於第2象限時,如第5 B圖所示,則判斷其角ί 當手指位於第3象限時,如第5 C圖所示,則判 27 0°+ 0 ;當手指位於第4象限時,如第5D圖 斷其角度爲90。- 0。 在本案中,雖以6個按鍵爲例,但並非侷 鍵1當然可套用於一般手機的12鍵,甚至是筆 遠或拉近的 結果來進行 不受少數次 作。例如操 後定義有效 ,計算手指 爲無效則離 an計算使用 I 500 X 500 ' 了進行畫圓 中心點,並 位於第1象 ;當手指位 变爲270°- Θ 斷其角度爲 所示,則判 限於6個按 記型電腦等 -14- 200928897 的多數按鍵。另外,本案中雖以手指爲例,但亦非侷限於 此,當然可以是觸碰筆等其他可有效進行接觸動作的物件。 當然,綜上所述,本發明也可以衍生至3隻手指以上 的操作方式,而可進行更靈活的運用。 另外,雖針對各種手指移動方式而配置特定的功能, 但各種移動方式之間的對應功能可以彼此交換或變更,例 如改以手指之垂直移動或水平移動來進行畫面縮放的功 能’甚至可以彼此互相組合來進行更多樣化的操作。 本發明已針對較佳實施例予以描述,但該等實施例係 僅描述而非限定於此,熟習於本項技藝之該等人士將理解 的是’可在不背離本發明下文申請專利範圍中所界定之本 發明的範疇及精神下,進行各種修正及變化。 【圖式簡單說明】 第1圖係表示本發明之觸碰板的區域劃分圖。 第2圖係表示本發明之第1實施例的流程圖。 第3圖係表示本發明之第2實施例的流程圖。 第4圖係表示本發明之第6實施例中,以兩隻手指來 進行拉近或拉遠動作的示意圖。 第5圖係表示本發明之第7實施例中,以手指在觸碰 板上畫圓時的象限及角度的對應關係圖。 【主要元件符號說明】 R 1〜R6 區塊In order to achieve the above object, the present invention provides a method for judging a gesture of a touch panel, the touch panel includes at least a plurality of regions, and the method includes: reading a coordinate touched by the touch panel by the sensing object, and determining the The area corresponding to the coordinate; and when the sensor exits the touchpad, performs the function corresponding to the corresponding area. In addition, another method for determining a gesture of a touch panel is provided. The touch panel includes a plurality of regions. The method includes: reading a coordinate touched by the touch panel by the sensing object, and determining an area corresponding to the coordinate; When the sensor exits the touchpad, it is determined whether the sensor exits the coordinate is equal to the corresponding region; and if it is determined to be the same, the function corresponding to the corresponding region is performed. In addition, another method for judging the gesture of the touchpad is proposed, which comprises: first recording an initial coordinate touched by the sensing object; and calculating an angle corresponding to the coordinate after the moving object and the initial touch coordinate when the sensing object moves; If the coordinate of the horizontal movement of 200928897 exceeds a judgment criterion first, it is determined that the movement is a horizontal movement, and then only the movement of the horizontal movement is performed and the vertical movement is ignored until the finger leaves; otherwise, if the coordinate of the vertical movement exceeds the judgment standard first , then it is judged that the action is vertical movement. In addition, another method for judging the gesture of the touchpad is proposed, including: first recording the initial coordinates touched by at least two inductive objects (Χ^Υ!); when the two inductive objects move, recording the two After moving, the coordinates are given a predetermined number; when Χη-Χη-θΟ, a positive identification 値 is given, and if β Xn-Xn^CO, a negative identification 値 is given, and if it is the above two, an invalid identification is given 値And adding the identification 値 of the predetermined number of times, if the identification 値 is greater or smaller than the reference range, it is determined that the horizontal distance of the two sensing objects is far or close, otherwise the operation is invalid. In addition, another method for judging the gesture of the touchpad is proposed, including: first finding a coordinate 値 (χ^γ.) on the touch panel as the center of the circle; and using the coordinate 値 (Χ〇, Υ.) To divide the touchpad into four quadrants, and use the X axis as the starting point of the angle calculation; when the touch object is in the lower right quadrant, calculate the angle of the coordinate 値 and the X axis to 0, and add On 90. As the angle 値; when the touch object is located in the lower left quadrant, the angle between the coordinate 値 and the χ axis is 0′ and the angle 减 is subtracted from 270° as the angle 値; when the touch object is in the upper left quadrant, the figure is calculated. Its coordinate 値 has an angle of 0 with the X axis and adds 270. As the angle 値; when the touch object is in the upper right quadrant, the angle θ of the coordinate 値 and the X axis is calculated to be 0 ′ and is 90. Subtract 0 as its angle 値. [Embodiment] Hereinafter, various embodiments of the present invention will be described with reference to the drawings. 200928897 [First Embodiment] First, a first embodiment of the present invention will be described based on Fig. 1 . It should be noted that the coordinate origin (〇, 〇) of the general touch panel is at the top left, not the center. Suppose this is the touch button used on the iPhone. As shown in Figure 1, first divide the touchpad into 6 blocks R 1~R 6. Take the coordinates as an example. Let's take (〇, 〇) ~(49,49) is a block range, and 1^1~6 is defined as (0,0)~(49,49), (50,0)~(99,49), (100, 0) ~ (149, 49), (0, 50) ~ (49, 99), (50, 50) ~ (99, 99), (100, 50) ~ (149, 99). In the drawing, for the convenience of drawing, there is a gap between each block, but whether or not a gap is required depends on the functional design. The following is a description without gaps. Each block corresponds to a touch button. In this example, each button represents a number button. When the user presses the trackpad, the trackpad reads the pressed coordinates first, for example (23, 40), it is determined that the user presses the button R1 to record the corresponding display information "1" of R1, and if it is (11〇, 75), it falls within the range of R6, and it is determined that R6 is pressed and R6 is pressed. The corresponding display information "6" is recorded. When the user presses the button R1 of the coordinates (23, 40), if the user moves on the touchpad and passes the button R5, for example, and lifts the finger in the range of the button R6, it is determined to perform from the finger press to "Flip the button function that has passed until it is raised" and "156" is displayed on the display unit at a time. Next, the flowchart of the first embodiment will be described with reference to Fig. 2, and first, the coordinates (X, Y) are read based on the position where the user presses the finger (step S1). 200928897 Next, first determine whether the coordinates (χ, γ) fall within the valid button range. If the coordinates are (23, 40), it is determined to fall within R1, so it is a valid button and proceeds to the next step. However, if (Χ, Υ) is not within the valid range, for example, (-2, 13), it is determined that it is not within the defined button range, and the detection is not performed without any action (step S2). Then, when the user moves the finger to perform an action such as dragging, the coordinates of the user's finger are continuously read and it is determined whether it is still within the same button range. If the range is also within the range R1 (NowButton = PreButton), no Judge the action. However, if it has moved to a range other than R1, for example (60, 70), the previously pressed button Ri is recorded, and the button R5 (NowButton! = PreButton) where the finger is currently located is determined, if the user continues to drag When the finger is pressed to another button, the pressed button is continuously recorded and the new position is read (step S3). Then, waiting for the user to lift the finger 'When the user moves to (丨23,78) and lifts the finger, it recognizes that the finger is lifted at R6 (step S4), and reads the previously pressed button range R1, R5, and It is determined that the corresponding number "156" is displayed on the display unit by pressing R1, R5, and R6 in total (step S5). [Second Embodiment] The second embodiment will be described also based on the range of the keys in Fig. 1. The difference from the first embodiment is that in the second embodiment, only when the finger has to be lifted within the range of the button that was initially pressed, the button that has passed during this period is considered valid, and will be described in detail below. Description. The flowchart of the second embodiment will be described with reference to Fig. 3. First, the coordinates (X, γ) are read based on the position of the user's finger pressing (step S1). 200928897 Next, first determine whether the coordinates (Χ, Υ) fall within the valid button range. If the coordinates are (2 3, 4 0), it is determined to fall within R 1. Therefore, it is a valid button and proceeds to the next step. However, if (Χ, Υ) is not within the valid range, for example, (-2, 13), it is determined that it is not within the defined button range, and no action is taken (step S2). Then, when the user moves the finger to perform an action such as dragging, the coordinates of the user's finger are continuously read and it is determined whether it is still within the same button range. If the range is also within the range R1 (NowButton = PreButton), no Judge the action. However, if you have moved to a range other than R1, for example (60,70)', record the previously pressed button R1 and judge the button R5 (NowBuuon! = PreButton) where the finger is currently located. If the user continues to drag The finger to the other button 'continues to record the pressed button and read the new position (step S3). Then, it is judged whether the finger is away (step S4), waiting for the user to lift the finger 'when the user moves outside the range of R1, for example (丨23, 78) and lifts the finger', then recognizes that the finger is lifted at R6 instead of The previously pressed ri, so cancel all sS recording action 'includes abandoning the previously stored button. If the user lifts the finger ' at (3, 10) and is recognized as being in the ri range (step S5), the previously pressed button ranges R1, R5 are read, and it is determined that a total of R1, R5, and R6 have been pressed. On the display unit, the corresponding number "156" is displayed (step S6). [Third Embodiment] In the general window system, when the content to be displayed is too large and the screen is not displayed, the window system will automatically generate a reel (sc 1,0 1 1 200928897 bar), which is convenient for the user. Operate and browse the content. In the third embodiment, it is detected that the finger is horizontally moved or vertically moved. When the user touches the touch panel shown in FIG. 1 , the initial position of the user's hand is first recorded, and when the user's hand slides, the angle corresponding to the position and the initial position of the user's finger movement is calculated. Determine if the finger is moving horizontally or vertically. With 10 points as the reference point, if the horizontal moving point first exceeds 10 points, the program determines that the action is horizontal, then the ® only moves horizontally until the finger leaves; if it moves vertically When the point is more than 10 points, it is judged that the action is a vertical movement. The following examples illustrate the steps of recording the coordinate position when the user puts the hand down, for example (25, 25); using 10 coordinate points as the reference point, when the movement is not large, for example, the vertical movement or the horizontal movement is not exceeded. When there are 10 coordinate points, the program does not determine whether the finger movement is a horizontal sliding motion or a vertical sliding motion. The user's finger may move obliquely to the lower right, but if the horizontal movement angle is small, the coordinates after the movement first reach, for example, (35, 2 9), and when the coordinate coordinates first reach 10 coordinate points, Then determine and perform the horizontal movement, and ignore the change of the vertical coordinate; if the coordinate first reaches, for example, (30, 35), and reaches 10 coordinate points first on the Y coordinate, it is determined that the vertical movement is performed, and the change of the horizontal coordinate is ignored. . In this example, 10 coordinate points are used for explanation, and of course, it can be changed to, for example, 20 coordinate points or even 50 coordinate points according to the design. [Fourth embodiment] - -10-200928897 In the fourth embodiment, the movement function of the reel is vertically pulled by the touch plate. Its function is similar to that of the third embodiment described above, but uses a different operational mechanism. Different from the above-described third embodiment, the coordinate point is used as the determination standard, and the fourth embodiment is based on the angle as the determination criterion. In the gesture determination method of the present embodiment, the position where the user's finger is lowered is first recorded, for example, (25, 25) When the user's finger slides to the lower right, the position after the user's finger is moved, for example, (55, 40), and the initial position (25, 25) and the moved position (55, 40) are calculated. And calculate an angle, in the vertical direction, this angle > 30 degrees, it is considered as a non-standard sliding action 'do not do anything. On the other hand, if the position after the movement is (30, 70), it is obviously an angle of S. 30 degrees. Therefore, if it is determined that the sliding motion has been performed, the vertical distance of the finger movement is calculated, so that the scroll of the screen corresponds to the moving distance. Scroll or change. In the present embodiment, 30 degrees is used as the determination standard, but the reference angle can be changed according to the design. For example, 20 degrees can be determined more strictly. In addition, the vertical determination can be changed to a horizontal decision, so that it can be applied to the horizontal scroll, such as the horizontal time axis adjustment when the movie is played. [Fifth Embodiment] The fourth embodiment is similar to the fourth embodiment, but in the fifth embodiment, the two fingers are touched. In the gesture judging method of the embodiment, first, the position where the user puts two fingers -11-200928897, such as (25, 25) and (31, 23), first calculates the average 値 (2 8, 24). ), when the user's hand slides to the lower right, the position coordinates of the user's finger movement are obtained, for example, (50, 45) and (60, 3 5), the average 値 is (5 5, 4 0), and Calculate the initial position (2 8, 24) and the moved position (5 5, 40), and calculate an angle. In the vertical direction, the angle is > 30 degrees, so it is considered as a non-standard sliding motion. Do any action. On the other hand, if the average position of the position after the movement is (30, 70), it is obviously an angle of $30 degrees. Therefore, it is determined that the sliding motion has been performed, and the vertical distance of the finger movement is calculated to make the scroll of the screen correspond. Scroll or change by moving the distance. [Sixth embodiment] In the present embodiment, the operation of the screen Zoom-In or Zoom-Out with two fingers will be described. As shown in Figure 4, when the user puts two fingers on the touch panel, if the two fingers are moved to shorten the distance between the fingers, it is regarded as the action of Zoom-Out; When stretched, it is regarded as the action of Zoom-In. So we only need to calculate the distance between the coordinates of the two fingers. φ Read the coordinates of the user's finger movement for a predetermined number of times (for example, 5 times) and a predetermined interval time (for example, 0.1 seconds), and obtain 5 sets of coordinates, for example, the following every 1 second: Left hand, right hand, X coordinate, 値 recognition number, initial 値 ( 22,12) (25,12) 3 X Group 1 (21,12) (25,12) 4 + 1 Group 2 (19,12) (28,12) 9 + 1 Group 3 (14,12 ) (30,12) 16 + 1 Group 4 (15,12) (29,12) 14 -1 Group 5 (12,12) (34,12) 22 + 1 -12- 200928897 by 1~3 The X coordinates in the 5 groups can be judged that the distance between the two fingers is increased, and an identification number 値 "+1" is respectively given, and the fourth group may be shaken due to external reasons, and it is determined that the two fingers are pulled apart. Nearly, so give the identification number 値 "-1 j, and get a set of identification codes (+ 1, + 1, + 1, -1, + 1). Then add the above number 总 to the total SUM = (+l ) + (+l) + (+l) + (-i) + (+i) = 3, if this SUM = 3, and greater than a reference 値REF, for example 2, then it is determined that the two fingers are now in the distance The pinch open (pinch open), and backhaul • a return 値 RET = 1, which means that the Zoom-In action is in progress. If it is in the action of zooming in with two fingers, REF = -2, if the total 値SUM is less than -2, it is determined that the two fingers are now in the direction of the lengthening (pinch closed), and return A return 値reT = -1 represents the action of Zoom-Out. However, if the two fingers are close to each other, the following situation occurs: Left hand and right hand X coordinate deviation 値 recognition number 値 initial 値 (12, 12) (35,12) 23 X Group 1 (12,12) (34,12) 22 -1 Group 2 (15,12) (29,12) 14 -1 Group 3 (14,12) (30, 12) 16 + 1 Group 4 (19,12) (28,12) 9 -1 Group 5 (18,12) (28,12) 10 + 1 SUM = (- l) + (- l) + ( + l) + (- l) + (+ i)=i, not greater than 2 nor less than -2 'In other words 2> SUM>-2, then this is determined to be invalid, and a return is returned 値RET = 0 No action is taken. A total decision is made with a reference 値REF, which helps to avoid the movement of the hand because of the hand movement of 200928897, because the shaking or any external reason causes the pulling action to be aborted. In other words, the coordinates are not measured in each group. Judging, but using the sum of multiple array coordinates Broken, so the impact of misjudgment. [Seventh embodiment] In the present embodiment, a virtual volume knob or the like of an action media player that draws a circle with a finger will be described. First, define the center point of the circle on the touch panel, and the radius of the area, when the user puts the finger on the touch panel, the distance to the center point, to determine whether it is within the effective radius, if it is open, if it is valid Then use the center point as the origin, use the angle of the finger position of the arc t, and return the number 値. As shown in Figures 5A to D, assume the resolution of the touch panel; | The coordinate origin of the touchpad is originally at the top left (〇, 〇), but it is the motion discrimination, so it will touch the panel (250 , 25 0) is divided into coordinates into four quadrants. Since the origin of the touch panel is at the upper left, when the finger is limited, as shown in Fig. 5A, the angle is judged to be 90. + 0 In the second quadrant, as shown in Fig. 5B, judge the angle ί when the finger is in the third quadrant, as shown in Fig. 5C, judge 27 0° + 0; when the finger is in the 4th quadrant At the time, as shown in Fig. 5D, the angle is 90. - 0. In this case, although the six buttons are taken as an example, the local key 1 can of course be applied to the 12-key of a general mobile phone, and even the result of the pen far or near is not performed for a few times. For example, the definition is valid after the operation, if the calculation finger is invalid, the calculation is performed using I 500 X 500 ', and the center point of the circle is drawn, and it is located at the first image; when the finger position is changed to 270° - the angle is as shown, It is limited to 6 buttons of 6-200928897, such as a typewriter computer. Further, although the finger is taken as an example in the present case, it is not limited thereto, and it may of course be a touch pen or the like which can effectively perform a contact action. Of course, in summary, the present invention can also be derived to operate with more than three fingers, and can be used more flexibly. In addition, although specific functions are arranged for various finger movement modes, the corresponding functions between the various movement modes can be exchanged or changed with each other, for example, the function of zooming by the vertical movement or horizontal movement of the finger can even be mutually Combine for more diverse operations. The present invention has been described with respect to the preferred embodiments, but these embodiments are only described and not limited thereto, and those skilled in the art will understand that the invention can be used without departing from the scope of the following claims. Various modifications and changes are made in the scope and spirit of the invention as defined. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a view showing a region division of a touch panel of the present invention. Fig. 2 is a flow chart showing a first embodiment of the present invention. Fig. 3 is a flow chart showing a second embodiment of the present invention. Fig. 4 is a view showing the drawing operation of the sixth embodiment of the present invention with two fingers for zooming in or out. Fig. 5 is a view showing a correspondence relationship between a quadrant and an angle when a finger draws a circle on a touch panel in the seventh embodiment of the present invention. [Main component symbol description] R 1~R6 block

Claims (1)

200928897 十、申請專利範圍: 1 . 一種觸控板的手勢判斷方法,該觸控板至少包括複數個 區域,該方法包括: 讀取觸控板被感應物所觸碰的座標,並判斷該座標 所對應的區域;以及 當該感應物離開觸控板時,執行該對應區域所對應 的功能。 2. —種觸控板的手勢判斷方法,該觸控板包括多個區域, 該方法包括: 讀取觸控板被感應物所觸碰的座標,並判斷該座標 所對應的區域; 當該感應物離開觸控板時,判斷感應物離開座標是 否等於該對應的區域;以及 若判定爲相同,則執行該對應區域所對應的功能。 3 ·—種觸控板的手勢判斷方法,包括: 先記錄感應物所觸碰的初始座標; 當感應物移動時,計算與感應物移動後座標及初始 觸碰座標對應的角度; 若水平移動的座標先超過一判斷標準,則判定此次 動作爲水平移動,接下來只做水平移動的動作並忽略垂 直移動直至手指離開爲止;反之若垂直移動的座標先 超過該判斷標準,則判斷此次動作爲垂直移動。 4 如申請專利範圍第3項之手勢判斷方法,其中,該感應 物可以是手指或觸碰筆。 200928897 5. 如申請專利範圍第3項之手勢判斷方法’其中,該判斷 標準可以是座標値、距離或是角度。 6. —種觸控板的手勢判斷方法’包括: 先記錄至少兩個感應物所觸碰的初始座標(Χ!,Υι); 當該兩個感應物移動時,記錄該兩者移動後座標 (XhYOJXhYzUXnJn)達既定次數; 當Χη-Χη_】>0時,則給予一正識別値,若Xn-Xn-^O 時,則給予一負識別値,若是前述兩者以外,則給予一 個無效識別値;以及 將既定次數的識別値相加,若得出之識別値大於或 小於基準範圍,則判定該兩個感應物的水平距離拉遠或 拉近,否則認定此次操作無效。 7 .如申請專利範圍第6項之手勢判斷方法,其中,該感應 物可以是手指或觸碰筆。 8 _如申請專利範圍第6項之手勢判斷方法,其中,,座標的 判斷可以是針對Y座標,進而判斷判定該兩個感應物的 垂直距離拉遠或拉近。 9 . 一種觸控板的手勢判斷方法,包括·· 先在觸碰板上找出一個座標値(Χ^Υ。),來作爲圓心; 以該座標値(XQ,Y。)來將該觸碰板劃分成四個象限, 並以X軸來作爲角度計算的起始處; 當觸碰物位於右下象限時,算出其座標値與X軸的 角度爲0,並加上90。來作爲其角度値;當觸碰物位於左 下象限時,算出其座標値與X軸的角度爲0 ,並由2 7 0。 -17- 200928897200928897 X. Patent application scope: 1. A method for judging a gesture of a touch panel, the touch panel comprising at least a plurality of regions, the method comprising: reading a coordinate touched by the touch panel by the sensing object, and determining the coordinate The corresponding area; and when the sensor exits the touchpad, performs the function corresponding to the corresponding area. 2. A touch panel gesture determination method, the touch panel includes a plurality of regions, the method comprising: reading a coordinate touched by the touch panel by the sensor object, and determining an area corresponding to the coordinate object; When the sensor exits the touchpad, it is determined whether the sensor exits the coordinate is equal to the corresponding region; and if it is determined to be the same, the function corresponding to the corresponding region is executed. 3 · A touchpad gesture determination method includes: first recording an initial coordinate touched by the sensor; and, when the sensor moves, calculating an angle corresponding to the coordinate after the sensor moves and the initial touch coordinate; The coordinate of the coordinate exceeds a judgment criterion, then it is determined that the motion is horizontal movement, and then only the horizontal movement is performed and the vertical movement is ignored until the finger leaves; otherwise, if the coordinate of the vertical movement first exceeds the judgment criterion, then the judgment is made. Move as a vertical movement. 4 The gesture judging method of claim 3, wherein the sensor can be a finger or a touch pen. 200928897 5. The method for judging the gesture of claim 3, wherein the criterion can be a coordinate, a distance or an angle. 6. The method for judging the gesture of the touchpad includes: recording the initial coordinates touched by at least two inductive objects (Χ!, Υι); when the two inductive objects move, recording the coordinates of the moving of the two (XhYOJXhYzUXnJn) reaches the given number of times; when Χη-Χη_]>0, a positive identification 値 is given, and if Xn-Xn-^O, a negative identification 値 is given, and if it is the above two, an invalid is given. Identifying 値; and adding the identification 値 of a predetermined number of times, if the identification 値 is greater or smaller than the reference range, it is determined that the horizontal distance of the two sensing objects is far or close, otherwise the operation is determined to be invalid. 7. The gesture judging method of claim 6, wherein the sensor can be a finger or a touch pen. 8 _ The method for judging the gesture according to item 6 of the patent application scope, wherein the judgment of the coordinates may be for the Y coordinate, and further determining whether the vertical distance of the two sensing objects is extended or zoomed. 9. A method for judging a gesture of a touchpad, comprising: first finding a coordinate 値 (Χ^Υ.) on the touch panel as a center of the circle; and using the coordinate 値 (XQ, Y.) to touch the touch The touch panel is divided into four quadrants, and the X-axis is used as the starting point for the angle calculation; when the touch object is located in the lower right quadrant, the angle between the coordinate 値 and the X-axis is calculated to be 0, and 90 is added. As the angle 値; when the touch object is in the lower left quadrant, the angle between the coordinate 値 and the X axis is calculated to be 0 and is determined by 2 7 0. -17- 200928897 ❹ 減去θ來作爲其角度値;當觸碰物位於左上象限時,算 出其座標値與X軸的角度爲0 ,並加上270°來作爲其角 度値;當觸碰物位於右上象限時,算出其座標値與X軸 的角度爲0 ,並由90°減去0來作爲其角度値。减 Subtract θ as its angle 値; when the touch object is in the upper left quadrant, calculate the angle between its coordinate 値 and the X axis to be 0, and add 270° as its angle 値; when the touch object is in the upper right quadrant Calculate the angle between the coordinate 値 and the X axis to 0, and subtract 0 from 90° as its angle 値.
TW96148880A 2007-12-20 2007-12-20 Hand gesture identification method applied to a touch panel TW200928897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96148880A TW200928897A (en) 2007-12-20 2007-12-20 Hand gesture identification method applied to a touch panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96148880A TW200928897A (en) 2007-12-20 2007-12-20 Hand gesture identification method applied to a touch panel

Publications (1)

Publication Number Publication Date
TW200928897A true TW200928897A (en) 2009-07-01

Family

ID=44864278

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96148880A TW200928897A (en) 2007-12-20 2007-12-20 Hand gesture identification method applied to a touch panel

Country Status (1)

Country Link
TW (1) TW200928897A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566807A (en) * 2010-12-23 2012-07-11 联咏科技股份有限公司 Single-finger rotating gesture detection method and gesture detection circuit
US9213484B2 (en) 2010-12-09 2015-12-15 Novatek Microelectronics Corp. Method for detecting single-finger rotate gesture and the gesture detecting circuit thereof
US10067576B2 (en) 2013-02-19 2018-09-04 Pixart Imaging Inc. Handheld pointer device and tilt angle adjustment method thereof
US10379627B2 (en) 2013-02-19 2019-08-13 Pixart Imaging Inc. Handheld device and positioning method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9213484B2 (en) 2010-12-09 2015-12-15 Novatek Microelectronics Corp. Method for detecting single-finger rotate gesture and the gesture detecting circuit thereof
CN102566807A (en) * 2010-12-23 2012-07-11 联咏科技股份有限公司 Single-finger rotating gesture detection method and gesture detection circuit
US10067576B2 (en) 2013-02-19 2018-09-04 Pixart Imaging Inc. Handheld pointer device and tilt angle adjustment method thereof
US10379627B2 (en) 2013-02-19 2019-08-13 Pixart Imaging Inc. Handheld device and positioning method thereof

Similar Documents

Publication Publication Date Title
US10360655B2 (en) Apparatus and method for controlling motion-based user interface
US9348458B2 (en) Gestures for touch sensitive input devices
RU2553458C2 (en) Method of providing user interface and mobile terminal using same
EP1774429B1 (en) Gestures for touch sensitive input devices
US9310995B2 (en) Touch input transitions
EP3557395B1 (en) Information processing apparatus, information processing method, and computer program
US20100182264A1 (en) Mobile Device Equipped With Touch Screen
CN106155419A (en) Optionally refuse the touch contact in the marginal area of touch-surface
TW201017487A (en) Method for operating displayed page and electronic device
TW200941303A (en) Multi-object direction touch selection method and device, electronic device, computer accessible recording media and computer program product
CN103959221A (en) Method and apparatus for performing a zooming action
TW200928897A (en) Hand gesture identification method applied to a touch panel
EP2899623A2 (en) Information processing apparatus, information processing method, and program
TW201333769A (en) Method for processing touch signal and electronic device using the same
KR101436588B1 (en) Method for providing user interface using one point touch, and apparatus therefor
KR101436587B1 (en) Method for providing user interface using two point touch, and apparatus therefor
JP6484859B2 (en) Information processing apparatus, information processing method, and program
AU2017210607B2 (en) Apparatus and method for controlling motion-based user interface
TWI438652B (en) Method and apparatus for enabling scaling display on the touch pad