TWI800249B - How to customize gestures - Google Patents

How to customize gestures Download PDF

Info

Publication number
TWI800249B
TWI800249B TW111104614A TW111104614A TWI800249B TW I800249 B TWI800249 B TW I800249B TW 111104614 A TW111104614 A TW 111104614A TW 111104614 A TW111104614 A TW 111104614A TW I800249 B TWI800249 B TW I800249B
Authority
TW
Taiwan
Prior art keywords
gesture
dimensional
new
trajectory
calculation unit
Prior art date
Application number
TW111104614A
Other languages
Chinese (zh)
Other versions
TW202333036A (en
Inventor
君弘 王
吳冠賢
吳杰
吳侑峰
李瑋琦
戴宗明
黃文吉
斌安 顏
台娜 劉
李方
郭景智
Original Assignee
開酷科技股份有限公司
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 開酷科技股份有限公司 filed Critical 開酷科技股份有限公司
Priority to TW111104614A priority Critical patent/TWI800249B/en
Application granted granted Critical
Publication of TWI800249B publication Critical patent/TWI800249B/en
Publication of TW202333036A publication Critical patent/TW202333036A/en

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

一自定義手勢的方法,其提供:一觸控屏幕、一計算單元,其與該觸控屏幕連接、及一手勢資料庫,其與該計算單元連接,該方法包含下列步驟:在該觸控屏幕上記錄一輸入手勢軌跡資料;將該輸入手勢軌跡資料轉成一輸入手勢的二維軌跡圖形並傳到該計算單元;該計算單元從該手勢資料庫依序逐一讀取一二維手勢參考圖形,若可成功讀取二維手勢參考圖形時,該計算單元產生相對於所讀取的該二維手勢參考圖形的一二維手勢參考圖形集,該計算單元對該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集中的每一個參考圖形進行相似性比對。A method for defining custom gestures, comprising: a touch screen, a calculation unit connected to the touch screen, and a gesture database connected to the calculation unit, the method comprising the following steps: recording an input gesture trajectory data on the touch screen; converting the input gesture trajectory data into a two-dimensional trajectory graph of the input gesture and transmitting it to the calculation unit; the calculation unit... The unit sequentially reads one-dimensional and two-dimensional gesture reference images from the gesture database. If a two-dimensional gesture reference image can be successfully read, the calculation unit generates a set of one-dimensional and two-dimensional gesture reference images relative to the read two-dimensional gesture reference image. The calculation unit performs a similarity comparison between the two-dimensional trajectory image of the input gesture and each reference image in the set of two-dimensional gesture reference images.

Description

自定義手勢的方法Methods of Customizing Gestures

一種增加新手勢的方法,尤指一種自定義手勢的方法。A method for adding new gestures, especially a method for customizing gestures.

對使用者的動作手勢之偵測與辨識,是觸控與聲控之外的另一種控制電子裝置的方法,近年來更因擴增實境(Augmented Reality, 簡稱AR)與虛擬實境(Virtual Reality, 簡稱VR)的流行,使其逐漸成為一種受歡迎的人機互動介面,且在多個領域如遊戲、導覽、醫療等皆有所應用。都普勒雷達在偵測與辨識使用者的動作手勢上係有反應快、偵測死角少、及可被隱藏等優點,故都普勒雷達在偵測與辨識使用者的動作手勢之應用領域係有不可取代的優勢。The detection and recognition of user gestures is another method of controlling electronic devices besides touch and voice control. In recent years, with the popularity of Augmented Reality (AR) and Virtual Reality (VR), it has gradually become a popular human-computer interaction interface, and is used in many fields such as games, tour guides, and healthcare. Doppler radar has advantages in detecting and recognizing user gestures, such as fast response, fewer blind spots, and the ability to be concealed. Therefore, Doppler radar has an irreplaceable advantage in the application of detecting and recognizing user gestures.

在實際的應用中,具有動作手勢偵測與辨識功能的一裝置,除了本身的動作手勢偵測與辨識技術外,還要考慮使用者自訂手勢的問題,因為在使用者自訂手勢時,需要使用者重複多次其所欲自訂的手勢,以記錄、標記該自訂的手勢,同時還需訓練該裝置,造成這個記錄、標記與訓練該自訂的手勢的過程,往往是冗長而不確定的,因而該裝置的使用者經常被所述記錄、標記與訓練的過程所難倒,失去耐心,造成具有動作手勢偵測與辨識功能的該裝置常因自訂手勢的問題而不能充分發揮其應有的功效。In practical applications, a device with gesture detection and recognition capabilities, in addition to its own gesture detection and recognition technology, must also consider the issue of user-defined gestures. This is because when users define gestures, they need to repeat the desired gestures multiple times to record and mark them. At the same time, the device also needs to be trained. This process of recording, marking, and training the user-defined gestures is often lengthy and uncertain. As a result, users of the device are often stumped by the recording, marking, and training process and lose patience. Consequently, the device with gesture detection and recognition capabilities often cannot fully exert its due effectiveness due to the problem of user-defined gestures.

因此如何使具有動作手勢偵測與辨識功能的裝置在使用者費力最少的情形下,即能新增自訂手勢,是有迫切的需求。Therefore, there is an urgent need to enable devices with gesture detection and recognition functions to add custom gestures with minimal effort from the user.

為了解決上述問題,本發明揭露了一種自定義手勢的方法,包含以下的技術內容: 提供:一觸控屏幕、與該觸控屏幕連接的一計算單元、及與該計算單元連接的一手勢資料庫,該方法包含下列步驟: 步驟S1:在該觸控屏幕上記錄一輸入手勢軌跡資料; 步驟S2:將該輸入手勢軌跡資料轉成一輸入手勢的二維軌跡圖形並傳到該計算單元; 步驟S3:該計算單元從該手勢資料庫依序逐一讀取一二維手勢參考圖形,若可成功讀取二維手勢參考圖形時,流程跳到步驟S4,若無法成功讀取二維手勢參考圖形時,流程跳到步驟S6。 步驟S4:該計算單元產生相對於所讀取的該二維手勢參考圖形的一二維手勢參考圖形集; 步驟S5:該計算單元對該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集中的每一個參考圖形進行相似性比對,以確認該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集是否相似;其中若有任何一個參考圖形與該輸入手勢的二維軌跡圖形比對成功,即可確認該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集係為相似,流程結束;若該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集不相似,流程跳回步驟S3; 步驟S6:將該輸入手勢的二維軌跡圖形寫入手勢資料庫中以新增一二維手勢參考圖形並賦予該二維手勢參考圖形一名稱,該輸入手勢係為一新增手勢。 To solve the above problems, this invention discloses a method for customizing gestures, comprising the following technical content: Providing: a touch screen, a calculation unit connected to the touch screen, and a gesture database connected to the calculation unit. The method comprises the following steps: Step S1: Recording input gesture trajectory data on the touch screen; Step S2: Converting the input gesture trajectory data into a two-dimensional trajectory graphic of the input gesture and transmitting it to the calculation unit; Step S3: The calculation unit sequentially reads one-dimensional and two-dimensional gesture reference images from the gesture database. If the two-dimensional gesture reference image can be successfully read, the process jumps to step S4; if it cannot be successfully read, the process jumps to step S6. Step S4: The calculation unit generates a set of one-dimensional and two-dimensional gesture reference images corresponding to the read two-dimensional gesture reference image. Step S5: This calculation unit performs a similarity comparison between the 2D trajectory of the input gesture and each reference shape in the 2D gesture reference shape set to confirm whether the 2D trajectory of the input gesture is similar to the 2D gesture reference shape set. If any reference shape successfully matches the 2D trajectory of the input gesture, it is confirmed that the 2D trajectory of the input gesture is similar to the 2D gesture reference shape set, and the process ends; if the 2D trajectory of the input gesture is not similar to the 2D gesture reference shape set, the process jumps back to step S3. Step S6: Write the 2D trajectory of the input gesture into the gesture database to add a new 2D gesture reference graphic and assign a name to it. This input gesture is a newly added gesture.

較佳的,該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集中的每一個參考圖形皆是由預設的一二維座標平面上的多個座標點所構成的時間序列。Preferably, the two-dimensional trajectory of the input gesture and each reference graphic in the two-dimensional gesture reference graphic set are time series composed of multiple coordinate points on a preset one-dimensional coordinate plane.

較佳的,步驟S5中的相似性比對指的是以動態時間扭曲(Dynamic Time Warping, 簡稱DTW)方法來進行兩個時間序列之間的相似性比對,且步驟S6中的該輸入手勢係為一新增手勢。Preferably, the similarity comparison in step S5 refers to the similarity comparison between two time series using the Dynamic Time Warping (DTW) method, and the input gesture in step S6 is a newly added gesture.

請參閱圖1所示,圖1是執行本發明自定義手勢的方法的終端裝置、伺服器及雲端。一終端裝置10包含一觸控屏幕11、一計算單元12與該觸控屏幕11連接、一記憶體13與該計算單元12連接、一通信模組14與該計算單元12連接、一都卜勒雷達15與該計算單元12連接。該終端裝置10透過該通信模組15與伺服器20及雲端21信號連網,如此,經適當的配置後,該終端裝置10即可與該伺服器20及雲端21分攤資訊儲存與計算的負擔。其中終端裝置10可為一移動裝置,如手機、平板電腦或其他具有上述功能的裝置;該觸控屏幕11可為一般的二維圖形觸控輸入裝置;該計算單元12可為一系統芯片,如中央處理器(CPU)、微控制器(micro-controller);該記憶體13可為固態記憶體或磁碟機;該通信模組14係具有有線或無線的通信功能,例如:區域網路(LAN)、WiFi、2G/3G/4G/5G/6G 等;且該都卜勒雷達15係具有偵測三維手勢軌跡的功能。Please refer to Figure 1, which illustrates the terminal device, server, and cloud for implementing the custom gesture method of this invention. A terminal device 10 includes a touchscreen 11, a computing unit 12 connected to the touchscreen 11, a memory 13 connected to the computing unit 12, a communication module 14 connected to the computing unit 12, and a Doppler radar 15 connected to the computing unit 12. The terminal device 10 connects to the server 20 and cloud 21 via the communication module 15. Thus, with appropriate configuration, the terminal device 10 can share the burden of information storage and computation with the server 20 and cloud 21. The terminal device 10 can be a mobile device, such as a mobile phone, tablet computer, or other device with the above-mentioned functions; the touch screen 11 can be a general two-dimensional graphic touch input device; the computing unit 12 can be a system chip, such as a central processing unit (CPU) or micro-controller; the memory 13 can be solid-state memory or disk drive; the communication module 14 has wired or wireless communication functions, such as local area network (LAN), WiFi, 2G/3G/4G/5G/6G, etc.; and the Doppler radar 15 has the function of detecting three-dimensional gesture trajectory.

請參閱圖2A,圖2A顯示使用者所輸入的一新手勢軌跡資料。使用者對該觸控屏幕11輸入一新手勢軌跡資料30,然後該觸控屏幕11將該新手勢軌跡資料30傳送給該計算單元12,該新手勢軌跡資料30係由多個手勢軌跡的位置點所構成的一時間序列。Please refer to Figure 2A, which shows a new gesture trajectory data input by the user. The user inputs a new gesture trajectory data 30 into the touch screen 11, and then the touch screen 11 transmits the new gesture trajectory data 30 to the calculation unit 12. The new gesture trajectory data 30 is a time sequence composed of the position points of multiple gesture trajectories.

請參閱圖2B,圖2B顯示一新手勢的二維軌跡圖形。該計算單元12接收該新手勢軌跡資料30後,將該新手勢軌跡資料30轉換為一新手勢的二維軌跡圖形40。Please refer to Figure 2B, which shows a two-dimensional trajectory of a new gesture. After receiving the new gesture trajectory data 30, the calculation unit 12 converts the new gesture trajectory data 30 into a two-dimensional trajectory of a new gesture 40.

請參閱圖2C,圖2C顯示圖2B中的該新手勢的二維軌跡圖形40的組成方式。該新手勢的二維軌跡圖形40係由例如位置點P0-P23組成(圖2C僅標號部分的位置點),表示使用者輸入的手勢係從位置點P0為起點依序移動至位置點P23,該些位置點P0-P23係由該新手勢軌跡資料30中的多個手勢軌跡的位置點一對一的轉換得來的,其中該些位置點P0-P23係分別一對一的對應於座標點(X0, Y0)~(X23, Y23)以及時間t0~t23,即位置點P0的座標點(X0,Y0)是在時間t0當下取樣得到,位置點P1的座標點(X1,Y1)是在時間t1當下取樣得到,依此類推,所以該些位置點P0-P23也構成一時間序列,其中該些座標點(X0, Y0)~(X23, Y23)係為一預設的二維X-Y座標平面上的座標點。當該些位置點P0-P23係被以固定時距取樣時,該些位置點P0-P23中相鄰兩點之間的距離係正比於使用者輸入該新手勢軌跡的移動速度。由上可知,該新手勢的二維軌跡圖形40係由預設的二維X-Y座標平面上的多個座標點所構成的一時間序列。Please refer to Figure 2C, which shows the composition of the two-dimensional trajectory graph 40 of the new gesture in Figure 2B. The two-dimensional trajectory graph 40 of the new gesture is composed of, for example, position points P0-P23 (only the labeled positions in Figure 2C), indicating that the user-input gesture moves sequentially from position point P0 to position point P23. These position points P0-P23 are obtained by a one-to-one conversion of the position points of multiple gesture trajectories in the new gesture trajectory data 30, where each position point P0-P23 corresponds one-to-one to the coordinate points (X0, Y0) ~ (X23, Y0). The coordinates (X0, Y0) of position point P0 are sampled at time t0, and the coordinates (X1, Y1) of position point P1 are sampled at time t1, and so on. Therefore, these position points P0-P23 also constitute a time series, where these coordinate points (X0, Y0)~(X23, Y23) are coordinate points on a preset two-dimensional X-Y coordinate plane. When these position points P0-P23 are sampled at fixed time intervals, the distance between any two adjacent points among these position points P0-P23 is proportional to the movement speed of the new gesture trajectory input by the user. As can be seen from the above, the two-dimensional trajectory diagram 40 of this new gesture is a time sequence composed of multiple coordinate points on a preset two-dimensional X-Y coordinate plane.

請參閱圖3,圖3顯示一二維手勢參考圖形集。該二維手勢參考圖形集50是由一二維手勢參考圖形500所產生的。該二維手勢參考圖形500係儲存於一手勢資料庫中,該二維手勢參考圖形500係為該手勢資料庫中所儲存的現有的二維手勢中的一個,該手勢資料庫中所儲存的現有的二維手勢係依照一順序排列;該二維手勢參考圖形500也是由預設的二維X-Y座標平面上的多個座標點所構成的一時間序列。該手勢資料庫係儲存在該記憶體13,在一實施例中,該手勢資料庫也可以儲存在該伺服器20或雲端21。該二維手勢參考圖形集50還具有9個二維手勢擴增參考圖形501-509,該些二維手勢擴增參考圖形501-509係由該二維手勢參考圖形500的各種變形所產生的,如對該二維手勢參考圖形500進行縮放、移位、旋轉、及隨機裁剪等自動變形方式來產生該些二維手勢擴增參考圖形501-509。因此該二維手勢參考圖形集50是由該二維手勢參考圖形500以及該些二維手勢擴增參考圖形501-509所共同組成的。該些二維手勢擴增參考圖形501-509中的每一個也是由預設的二維X-Y座標平面上的多個座標點所構成的一時間序列。Please refer to Figure 3, which shows a two-dimensional gesture reference graph set 50. This two-dimensional gesture reference graph set 50 is generated from the two-dimensional gesture reference graph 500. The two-dimensional gesture reference graph 500 is stored in a gesture database. The two-dimensional gesture reference graph 500 is one of the existing two-dimensional gestures stored in the gesture database, which is arranged in a certain order. The two-dimensional gesture reference graph 500 is also a time sequence composed of multiple coordinate points on a preset two-dimensional X-Y coordinate plane. The gesture database is stored in memory 13. In one embodiment, the gesture database may also be stored on server 20 or cloud 21. The two-dimensional gesture reference image set 50 also has nine two-dimensional gesture extended reference images 501-509. These two-dimensional gesture extended reference images 501-509 are generated by various transformations of the two-dimensional gesture reference image 500, such as automatic transformation methods like scaling, shifting, rotating, and random cropping of the two-dimensional gesture reference image 500. Therefore, the two-dimensional gesture reference graph set 50 is composed of the two-dimensional gesture reference graph 500 and the two-dimensional gesture extended reference graphs 501-509. Each of the two-dimensional gesture extended reference graphs 501-509 is also a time sequence composed of multiple coordinate points on a preset two-dimensional X-Y coordinate plane.

請參閱圖4,圖4顯示本發明自定義手勢的方法的流程。所述流程包含以下步驟: 步驟S1:在觸控屏幕11上記錄一輸入手勢軌跡資料。 步驟S2:將該輸入手勢軌跡資料轉成一輸入手勢的二維軌跡圖形並傳到該計算單元12。 步驟S3:該計算單元12從該手勢資料庫依序逐一讀取一二維手勢參考圖形,若可成功讀取二維手勢參考圖形時,流程跳到步驟S4,若無法讀取二維手勢參考圖形時,流程跳到步驟S6。 步驟S4:該計算單元12產生相對於所讀取的該二維手勢參考圖形的一二維手勢參考圖形集。 步驟S5:該計算單元12對該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集中的每一個參考圖形進行相似性比對,以確認該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集是否相似;其中若有任何一個參考圖形與該輸入手勢的二維軌跡圖形比對成功,即可確認該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集係為相似,流程跳到步驟S8;若該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集不相似,流程跳回步驟S3。 步驟S6:將該輸入手勢的二維軌跡圖形寫入手勢資料庫中以新增一二維手勢參考圖形並賦予該二維手勢參考圖形一名稱。 步驟S7:流程結束,該輸入手勢成為新增手勢。 步驟S8:流程結束,該輸入手勢已存在。 Please refer to Figure 4, which shows the flowchart of the custom gesture method of this invention. The flowchart includes the following steps: Step S1: Record an input gesture trajectory data on the touch screen 11. Step S2: Convert the input gesture trajectory data into a two-dimensional trajectory graphic of the input gesture and transmit it to the calculation unit 12. Step S3: The calculation unit 12 sequentially reads a two-dimensional gesture reference graphic from the gesture database. If the two-dimensional gesture reference graphic can be successfully read, the process jumps to step S4; if the two-dimensional gesture reference graphic cannot be read, the process jumps to step S6. Step S4: This calculation unit 12 generates a set of two-dimensional gesture reference graphics relative to the read two-dimensional gesture reference graphics. Step S5: The calculation unit 12 performs a similarity comparison between the 2D trajectory of the input gesture and each reference shape in the 2D gesture reference shape set to confirm whether the 2D trajectory of the input gesture is similar to the 2D gesture reference shape set. If any reference shape successfully matches the 2D trajectory of the input gesture, it is confirmed that the 2D trajectory of the input gesture is similar to the 2D gesture reference shape set, and the process jumps to step S8; if the 2D trajectory of the input gesture is not similar to the 2D gesture reference shape set, the process jumps back to step S3. Step S6: Write the 2D trajectory of the input gesture to the gesture database to add a new 2D gesture reference graphic and assign it a name. Step S7: The process ends, and the input gesture becomes a newly added gesture. Step S8: The process ends, and the input gesture now exists.

其中,由於該手勢資料庫中所儲存的現有的二維手勢係依照一順序排列,因此在步驟S3中,所述流程係依序由該手勢資料庫中一次讀取一個現有的二維手勢所對應的一二維手勢參考圖形,直到將該手勢資料庫所有二維手勢參考圖形讀取完畢,且該手勢資料庫再無二維手勢參考圖形可供讀取時,流程才跳到步驟S6。Since the existing 2D gestures stored in the gesture database are arranged in a sequential order, in step S3, the process reads the corresponding 2D gesture reference image from the gesture database one by one until all the 2D gesture reference images in the gesture database have been read and there are no more 2D gesture reference images available for reading. Only then does the process jump to step S6.

在步驟S5中,由於該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集中的每一個參考圖形都是由預設的二維X-Y座標平面上的多個座標點所構成的時間序列,因此可以時間序列分析中所使用的動態時間扭曲(Dynamic Time Warping, 簡稱DTW)方法來進行兩個時間序列之間的相似性比對。In step S5, since the two-dimensional trajectory graph of the input gesture and each reference graph in the two-dimensional gesture reference graph set are time series composed of multiple coordinate points on the preset two-dimensional X-Y coordinate plane, the similarity comparison between the two time series can be performed using the Dynamic Time Warping (DTW) method used in time series analysis.

在步驟S6中,由於在步驟S1中所記錄的一輸入手勢軌跡資料與該手勢資料庫中所儲存的現有的二維手勢皆不相似,因此該輸入手勢確實是一新增手勢,故必須給予該新增手勢一名稱,並將該新增手勢寫入該手勢資料庫中,以完成該新增手勢的建立。In step S6, since the input gesture trajectory data recorded in step S1 is not similar to any of the existing 2D gestures stored in the gesture database, the input gesture is indeed a new gesture. Therefore, the new gesture must be given a name and written into the gesture database to complete the creation of the new gesture.

在步驟S8中,由於手勢已存在,故在步驟S1中所記錄的輸入手勢軌跡資料顯然並不能被當作是新增手勢。In step S8, since the gesture already exists, the input gesture trajectory data recorded in step S1 obviously cannot be considered as a new gesture.

請參閱圖5,圖5顯示本發明所增加的新手勢其測試流程。所述流程包含以下步驟: 步驟S11:該計算單元12從該手勢資料庫讀取相對於該新增手勢的二維手勢參考圖形並據以產生該新增手勢的一二維手勢參考圖形集。 步驟S12:該都卜勒雷達15偵測並記錄相對於該新增手勢的一三維新增手勢測試軌跡資料,並將該三維新增手勢測試軌跡資料傳送給該計算單元12。 步驟S13:該計算單元12將該三維新增手勢測試軌跡資料轉成一新增手勢二維測試軌跡圖形。 步驟S14:該計算單元12比對該新增手勢二維測試軌跡圖形與該新增手勢的二維手勢參考圖形集是否相似,若該新增手勢二維測試軌跡圖形與該新增手勢的二維手勢參考圖形集不相似,流程跳回步驟S12。 步驟S15:流程結束,新增手勢測試完成。 Please refer to Figure 5, which shows the testing process for the new gesture added in this invention. The process includes the following steps: Step S11: The calculation unit 12 reads the two-dimensional gesture reference image relative to the new gesture from the gesture database and generates a set of one-dimensional gesture reference images for the new gesture. Step S12: The Doppler radar 15 detects and records the three-dimensional new gesture test trajectory data relative to the new gesture and transmits the three-dimensional new gesture test trajectory data to the calculation unit 12. Step S13: The calculation unit 12 converts the three-dimensional new gesture test trajectory data into a two-dimensional test trajectory image of the new gesture. Step S14: Calculation unit 12 compares the 2D test trajectory of the new gesture with the 2D reference shape set for the new gesture. If the 2D test trajectory of the new gesture is not similar to the 2D reference shape set, the process jumps back to step S12. Step S15: The process ends, and the new gesture test is complete.

其中,為了測試儲存在該手勢資料庫中的一新增手勢的二維手勢參考圖形,首先在步驟S11中,該計算單元12從該手勢資料庫讀取該新增手勢的二維手勢參考圖形,並據以產生該新手勢的二維手勢參考圖形集。然後該都卜勒雷達15偵測並記錄使用者所做出該新增手勢的一三維新增手勢測試軌跡資料,並將該三維新增手勢測試軌跡資料傳送給該計算單元12。然後該計算單元12將該三維新增手勢測試軌跡資料轉成一新增手勢二維測試軌跡圖形,亦即將該三維新增手勢測試軌跡資料中的多個新增手勢測試軌跡的三維位置點一對一的投影至一預設的二維X-Y座標平面上的座標點,以產生該新增手勢二維測試軌跡圖形,因此該新增手勢二維測試軌跡圖形係由預設的二維X-Y座標平面上的多個座標點所構成的一時間序列。然後該計算單元12比對該新增手勢二維測試軌跡圖形與該新增手勢的二維手勢參考圖形集二者是否相似,若該二者不相似,則需請使用者再次做出該新增手勢,以再次判斷該新增手勢二維測試軌跡圖形與該新增手勢的二維手勢參考圖形集二者是否相似,直到該二者相似為止,才算新增手勢測試成功,並結束所述測試流程。In order to test the two-dimensional reference image of a newly added gesture stored in the gesture database, in step S11, the calculation unit 12 first reads the two-dimensional reference image of the newly added gesture from the gesture database and generates a set of two-dimensional reference images of the new gesture. Then, the Doppler radar 15 detects and records the three-dimensional test trajectory data of the newly added gesture made by the user, and transmits the three-dimensional test trajectory data of the newly added gesture to the calculation unit 12. Then, the calculation unit 12 converts the three-dimensional new gesture test trajectory data into a new gesture two-dimensional test trajectory graph. That is, it projects the three-dimensional position points of multiple new gesture test trajectories in the three-dimensional new gesture test trajectory data one-to-one onto coordinate points on a preset two-dimensional X-Y coordinate plane to generate the new gesture two-dimensional test trajectory graph. Therefore, the new gesture two-dimensional test trajectory graph is a time series composed of multiple coordinate points on the preset two-dimensional X-Y coordinate plane. Then, the calculation unit 12 compares the two-dimensional test trajectory of the new gesture with the two-dimensional reference image set of the new gesture to see if they are similar. If they are not similar, the user needs to make the new gesture again to determine if the two-dimensional test trajectory of the new gesture is similar to the two-dimensional reference image set of the new gesture. The new gesture test is considered successful and the test process ends when the two are similar.

在一實施例中,使用者做出該新增手勢時,不需要明確的開始或結束,亦即,該都卜勒雷達15收集到的新增手勢測試軌跡資料可隨著時間累積擴增,且在該新增手勢測試軌跡資料累積的過程中,只要其中有任一段時間的該新增手勢測試軌跡與該新增手勢的二維手勢參考圖形集相似,就可確認使用者所做出的該新增手勢已測試成功。In one embodiment, when a user makes the new gesture, there is no need for a clear start or end. That is, the test trajectory data of the new gesture collected by the Doppler radar 15 can accumulate and expand over time. During the accumulation of the test trajectory data of the new gesture, as long as the test trajectory of the new gesture is similar to the two-dimensional gesture reference graph of the new gesture at any time, it can be confirmed that the new gesture made by the user has been successfully tested.

雖然本發明以上所揭露的流程與實施例中皆以該終端裝置10執行主要的資料處理與資料儲存為例,但是與該終端裝置10聯網的伺服器與雲端,也皆可經適當的配置後,負擔起計算與資料儲存的功能。因此本發明流程與實施例中的資料處理與資料儲存的執行裝置並不受限於該終端裝置10。Although the processes and embodiments disclosed above in this invention all take the terminal device 10 as an example to perform the main data processing and data storage, servers and cloud terminals connected to the terminal device 10 can also undertake computing and data storage functions after appropriate configuration. Therefore, the execution device for data processing and data storage in the processes and embodiments of this invention is not limited to the terminal device 10.

本發明所揭露的自定義手勢的方法係將觸控屏幕輸入的一輸入手勢軌跡資料轉換為一輸入手勢的二維軌跡圖形,然後依序與一手勢資料庫中的二維手勢參考圖形所對應的二維手勢參考圖形集逐一進行相似性的比對,以確認所述輸入手勢軌跡資料是否可成為一新增手勢,當所述輸入手勢軌跡資料可成為一新增手勢時,本發明進一步揭露測試該新增手勢的流程,如此即可在完成一新增手勢後,再進一步確認該新增手勢的正確性及有效性。因為本發明揭露使用二維手勢參考圖形集進行相似性比對,故在新增手勢時,使用者僅需做一次的輸入手勢即可;再者,因為本發明揭露揭露在測試新增手勢時,該新增手勢測試軌跡資料累積的過程中,只要其中有任一段時間的該新增手勢測試軌跡與該新增手勢的二維手勢參考圖形集相似即可,因此使用者做出該新增手勢時,不需要明確的開始或結束,故當測試新增手勢時,使用者也可輕鬆自然地做手勢;如此大大減少了使用者在新增手勢時所費的時間與耐心,可達成本發明的目的。The method for customizing gestures disclosed in this invention involves converting input gesture trajectory data input from a touchscreen into a two-dimensional trajectory graphic of the input gesture, and then sequentially comparing it with a set of two-dimensional gesture reference graphics corresponding to two-dimensional gesture reference graphics in a gesture database to confirm whether the input gesture trajectory data can become a new gesture. When the input gesture trajectory data can become a new gesture, this invention further discloses a process for testing the new gesture, so that the correctness and effectiveness of the new gesture can be further confirmed after it is completed. Because this invention discloses the use of a two-dimensional gesture reference image set for similarity comparison, when adding a gesture, the user only needs to input the gesture once. Furthermore, because this invention discloses that during the process of accumulating test trajectory data for a new gesture, as long as the test trajectory of the new gesture is similar to the two-dimensional gesture reference image set for any given period of time, the user does not need to explicitly start or end the gesture. Therefore, when testing a new gesture, the user can perform the gesture easily and naturally. This greatly reduces the time and patience required for the user when adding a gesture, thus achieving the purpose of this invention.

10:終端裝置10: Terminal Device

11:觸控屏幕11: Touchscreen

12:計算單元12: Calculation Unit

13:記憶體13: Memory

14:通信模組14: Communication Module

15:都卜勒雷達15: Dopleradar

20:伺服器20: Server

21:雲端21: Cloud

30:新手勢軌跡資料30: Beginner's Pose Track Data

40:新手勢的二維軌跡圖形40: Two-dimensional trajectory graph of beginner gestures

50:二維手勢參考圖形集50: 2D Gesture Reference Image Set

500:二維手勢參考圖形500: Two-dimensional gesture reference graphics

501-509:二維手勢擴增參考圖形501-509: Reference diagrams for expanding two-dimensional gestures

圖1係執行本發明自定義手勢的方法的終端裝置、伺服器及雲端的示意圖。 圖2A係本發明之新手勢軌跡資料的示意圖。 圖2B係本發明之新手勢的二維軌跡圖形的示意圖。 圖2C係顯示圖2B中的該新手勢的二維軌跡圖形的組成方式。 圖3係本發明之二維手勢參考圖形集的示意圖。 圖4係本發明自定義手勢的方法的流程圖。 圖5係本發明所增加的新手勢其測試方法的流程圖。 Figure 1 is a schematic diagram of the terminal device, server, and cloud for implementing the custom gesture method of this invention. Figure 2A is a schematic diagram of the trajectory data of the new gesture of this invention. Figure 2B is a schematic diagram of the two-dimensional trajectory diagram of the new gesture of this invention. Figure 2C shows the composition of the two-dimensional trajectory diagram of the new gesture in Figure 2B. Figure 3 is a schematic diagram of the two-dimensional gesture reference graphic set of this invention. Figure 4 is a flowchart of the custom gesture method of this invention. Figure 5 is a flowchart of the testing method for the new gesture added in this invention.

Claims (6)

一種自定義手勢的方法,其提供一觸控屏幕、與該觸控屏幕連接的一計算單元、及與該計算單元連接的一手勢資料庫,該方法包含下列步驟:步驟S1:在該觸控屏幕上記錄一輸入手勢軌跡資料;步驟S2:將該輸入手勢軌跡資料轉成一輸入手勢的二維軌跡圖形並傳到該計算單元;步驟S3:該計算單元從該手勢資料庫依序逐一讀取一二維手勢參考圖形,若可成功讀取二維手勢參考圖形時,流程跳到步驟S4,若無法成功讀取二維手勢參考圖形時,流程跳到步驟S6;步驟S4:該計算單元產生相對於所讀取的該二維手勢參考圖形的一二維手勢參考圖形集;步驟S5:該計算單元對該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集中的每一個參考圖形進行相似性比對,以確認該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集是否相似;其中若有任何一個參考圖形與該輸入手勢的二維軌跡圖形比對成功,即可確認該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集係為相似,流程結束;若該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集不相似,流程跳回步驟S3;步驟S6:將該輸入手勢的二維軌跡圖形寫入手勢資料庫中以新增一二維手勢參考圖形並賦予該二維手勢參考圖形一名稱,該輸入手勢係為一新增手勢;其中該二維手勢參考圖形集包含該二維手勢參考圖形以及經由對該二維手勢參考圖形進行縮放、移位、旋轉、或隨機裁剪的自動變形方式來產生的二維手勢擴增參考圖形。 A method for defining custom gestures, comprising a touch screen, a calculation unit connected to the touch screen, and a gesture database connected to the calculation unit, the method comprising the following steps: Step S1: recording an input gesture trajectory data on the touch screen; Step S2: converting the input gesture trajectory data into a two-dimensional trajectory graphic of the input gesture and transmitting it to the calculation unit; Step S3: the calculation unit sequentially extracting gestures from the gesture database. The first step is to read a two-dimensional gesture reference image. If the two-dimensional gesture reference image can be successfully read, the process jumps to step S4; if the two-dimensional gesture reference image cannot be successfully read, the process jumps to step S6. Step S4: The calculation unit generates a set of two-dimensional gesture reference images relative to the read two-dimensional gesture reference image. Step S5: The calculation unit compares the two-dimensional trajectory image of the input gesture with each parameter in the set of two-dimensional gesture reference images. A similarity comparison is performed on the reference graphics to confirm whether the 2D trajectory of the input gesture is similar to the set of 2D gesture reference graphics. If any reference graphic successfully matches the 2D trajectory of the input gesture, the 2D trajectory of the input gesture is considered similar to the set of 2D gesture reference graphics, and the process ends. If the 2D trajectory of the input gesture is not similar to the set of 2D gesture reference graphics, the process jumps back to step S. Step 3; Step S6: Write the 2D trajectory of the input gesture into the gesture database to add a new 2D gesture reference shape and assign a name to the 2D gesture reference shape. The input gesture is a newly added gesture. The 2D gesture reference shape set includes the original 2D gesture reference shape and 2D gesture augmentation reference shapes generated through automatic transformation methods such as scaling, shifting, rotating, or random cropping of the original 2D gesture reference shape. 如請求項1所述之該自定義手勢的方法,其中該輸入手勢的二維軌跡圖形與該二維手勢參考圖形集中的每一個參考圖形皆是由預設的一二維座標平面上的多個座標點所構成的時間序列。 The method for defining custom gestures as described in claim 1, wherein the two-dimensional trajectory graph of the input gesture and each reference graph in the two-dimensional gesture reference graph set are time series composed of multiple coordinate points on a preset one-dimensional coordinate plane. 如請求項1所述之該自定義手勢的方法,其中步驟S5中的相似性比對指的是以動態時間扭曲方法來進行兩個時間序列之間的相似性比對。 The method for the custom gesture as described in claim 1, wherein the similarity comparison in step S5 refers to performing a similarity comparison between two time series using a dynamic time warp method. 如請求項1所述之該自定義手勢的方法,還進一步包含對該新增手勢的一測試流程,包含下列步驟:步驟S11:該計算單元從該手勢資料庫讀取相對於該新增手勢的二維手勢參考圖形並據以產生該新增手勢的一二維手勢參考圖形集;步驟S12:一都卜勒雷達偵測並記錄相對於該新增手勢的一三維新增手勢測試軌跡資料,並將該三維新增手勢測試軌跡資料傳送給該計算單元;步驟S13:該計算單元將該三維新增手勢測試軌跡資料轉成一新增手勢二維測試軌跡圖形;步驟S14:該計算單元比對該新增手勢二維測試軌跡圖形與該新增手勢的二維手勢參考圖形集是否相似,若該新增手勢二維測試軌跡圖形與該新增手勢的二維手勢參考圖形集不相似,流程跳回步驟S12。 The method for defining a custom gesture as described in claim 1 further includes a testing process for the newly added gesture, comprising the following steps: Step S11: The calculation unit reads a two-dimensional gesture reference image relative to the newly added gesture from the gesture database and generates a two-dimensional gesture reference image set for the newly added gesture; Step S12: A Doppler radar detects and records a three-dimensional newly added gesture test trajectory data relative to the newly added gesture, and sets the three-dimensional new gesture... The hand gesture test trajectory data is transmitted to the calculation unit; Step S13: The calculation unit converts the three-dimensional new hand gesture test trajectory data into a new hand gesture two-dimensional test trajectory graphic; Step S14: The calculation unit compares the new hand gesture two-dimensional test trajectory graphic with the new hand gesture two-dimensional reference graphic set. If the new hand gesture two-dimensional test trajectory graphic is not similar to the new hand gesture two-dimensional reference graphic set, the process jumps back to step S12. 如請求項4所述之該自定義手勢的方法,在該步驟13中,該計算單元將該三維新增手勢測試軌跡資料轉成一新增手勢二維測試軌跡圖形指的是:該計算單元將該三維新增手勢測試軌跡資料中的多個新增手勢測試軌跡的三維位置點一對一的投影至一預設的二維座標平面上的座標點,以產生該新增手勢二維測試軌跡圖形。 As described in claim 4, in step 13 of the method for defining custom gestures, the conversion of the 3D new gesture test trajectory data into a 2D new gesture test trajectory graphic by the calculation unit means that the calculation unit projects the 3D position points of multiple new gesture test trajectories in the 3D new gesture test trajectory data one-to-one onto coordinate points on a preset 2D coordinate plane to generate the 2D new gesture test trajectory graphic. 如請求項4所述之該自定義手勢的方法,在該步驟11中,該新增手勢的該三維新增手勢測試軌跡資料係由使用者做出該新增手勢所產生的,當使用者做出該新增手勢時,該都卜勒雷達收集到的新增手勢測試軌跡資料可 隨著時間累積擴增,且在該新增手勢測試軌跡資料累積的過程中,只要其中有任一段時間的該新增手勢測試軌跡與該新增手勢的二維手勢參考圖形集相似,就可確認使用者所做出的該新增手勢已測試成功。As described in claim 4, in step 11 of the method for defining custom gestures, the three-dimensional new gesture test trajectory data is generated by the user making the new gesture. When the user makes the new gesture, the new gesture test trajectory data collected by the doppler radar can accumulate and expand over time. During the accumulation of the new gesture test trajectory data, as long as the new gesture test trajectory at any point in time is similar to the two-dimensional gesture reference graph set of the new gesture, it can be confirmed that the new gesture made by the user has been successfully tested.
TW111104614A 2022-02-08 2022-02-08 How to customize gestures TWI800249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111104614A TWI800249B (en) 2022-02-08 2022-02-08 How to customize gestures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111104614A TWI800249B (en) 2022-02-08 2022-02-08 How to customize gestures

Publications (2)

Publication Number Publication Date
TWI800249B true TWI800249B (en) 2023-04-21
TW202333036A TW202333036A (en) 2023-08-16

Family

ID=86948933

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111104614A TWI800249B (en) 2022-02-08 2022-02-08 How to customize gestures

Country Status (1)

Country Link
TW (1) TWI800249B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201030630A (en) * 2009-02-02 2010-08-16 Ind Tech Res Inst Hand gesture recognition system and method
CN102854982A (en) * 2012-08-01 2013-01-02 华平信息技术(南昌)有限公司 Method for recognizing customized gesture tracks
TW201346647A (en) * 2012-05-03 2013-11-16 Compal Electronics Inc Electronic apparatus and operating method thereof
US20170017307A1 (en) * 2014-05-05 2017-01-19 Aquifi, Inc. Systems and methods for remapping three-dimensional gestures onto a finite-size two-dimensional surface
CN107608510A (en) * 2017-09-13 2018-01-19 华中师范大学 Method for building up, device and the electronic equipment in gesture model storehouse
CN108596079A (en) * 2018-04-20 2018-09-28 歌尔科技有限公司 Gesture identification method, device and electronic equipment
US20200066047A1 (en) * 2018-08-24 2020-02-27 Microsoft Technology Licensing, Llc Gestures for Facilitating Interaction with Pages in a Mixed Reality Environment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201030630A (en) * 2009-02-02 2010-08-16 Ind Tech Res Inst Hand gesture recognition system and method
TW201346647A (en) * 2012-05-03 2013-11-16 Compal Electronics Inc Electronic apparatus and operating method thereof
CN102854982A (en) * 2012-08-01 2013-01-02 华平信息技术(南昌)有限公司 Method for recognizing customized gesture tracks
US20170017307A1 (en) * 2014-05-05 2017-01-19 Aquifi, Inc. Systems and methods for remapping three-dimensional gestures onto a finite-size two-dimensional surface
CN107608510A (en) * 2017-09-13 2018-01-19 华中师范大学 Method for building up, device and the electronic equipment in gesture model storehouse
CN108596079A (en) * 2018-04-20 2018-09-28 歌尔科技有限公司 Gesture identification method, device and electronic equipment
US20200066047A1 (en) * 2018-08-24 2020-02-27 Microsoft Technology Licensing, Llc Gestures for Facilitating Interaction with Pages in a Mixed Reality Environment

Also Published As

Publication number Publication date
TW202333036A (en) 2023-08-16

Similar Documents

Publication Publication Date Title
KR102225802B1 (en) Method and program for making reactive video
US11803248B2 (en) Gesture operation method, apparatus, device and medium
US20220351390A1 (en) Method for generating motion capture data, electronic device and storage medium
JP6048898B2 (en) Information display device, information display method, and information display program
CN104166509B (en) A kind of contactless screen exchange method and system
CN115239926A (en) Augmented modification based on user interaction with augmented reality scenes
JP2018506760A (en) Enhancement of stop motion content
CN111311756A (en) Augmented reality AR display method and related device
CN112672185B (en) Augmented reality-based display method, device, equipment and storage medium
US20210051374A1 (en) Video file playing method and apparatus, and storage medium
CN114820689B (en) Marking point recognition method, device, equipment and storage medium
CN113934297B (en) An interactive method, device, electronic device and medium based on augmented reality
KR102770069B1 (en) A mobile apparatus and a method for controlling the mobile apparatus
WO2019174398A1 (en) Method, apparatus, and terminal for simulating mouse operation by using gesture
CN103106388B (en) Method and system of image recognition
TWI521963B (en) Electronic device and video tagging method
WO2024016924A1 (en) Video processing method and apparatus, and electronic device and storage medium
US20150138077A1 (en) Display system and display controll device
CN113706606A (en) Method and device for determining position coordinates of spaced gestures
TWI800249B (en) How to customize gestures
CN106775634B (en) Display block display method and device
US20230359280A1 (en) Method of customizing hand gesture
CN113849106B (en) Page turning handwriting processing method, equipment, electronic equipment and storage medium
CN112818719A (en) Method and device for identifying two-dimensional code
CN116627242A (en) How to customize gestures