TWI708167B - Electronic device and prediction method for selecting target object - Google Patents
Electronic device and prediction method for selecting target object Download PDFInfo
- Publication number
- TWI708167B TWI708167B TW108107178A TW108107178A TWI708167B TW I708167 B TWI708167 B TW I708167B TW 108107178 A TW108107178 A TW 108107178A TW 108107178 A TW108107178 A TW 108107178A TW I708167 B TWI708167 B TW I708167B
- Authority
- TW
- Taiwan
- Prior art keywords
- cursor
- target object
- movement vector
- objects
- electronic device
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 239000013598 vector Substances 0.000 claims abstract description 62
- 230000004044 response Effects 0.000 claims abstract description 4
- 230000033001 locomotion Effects 0.000 claims description 79
- 238000010586 diagram Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
Description
本發明係有關於電子裝置,特別是有關於一種電子裝置及其選取目標物件之預測方法。 The present invention relates to an electronic device, in particular to an electronic device and a method for predicting selected target objects.
由於電腦系統的普及,在各種應用程式中利用電腦系統之輸入裝置(例如滑鼠、軌跡球、鍵盤等等)以控制在顯示器所顯示之畫面的游標是相當普遍的動作。然而,在傳統的電腦系統上,使用者往往需要將游標在畫面上移動相當長的距離才能選擇想要的目標物件,或是將游標移動至想要選擇的目標物件上時才能選擇到目標物件,上述選擇目標物件之操作的效率不佳,往往會損害使用者體驗。 Due to the popularity of computer systems, it is quite common to use computer system input devices (such as a mouse, trackball, keyboard, etc.) in various applications to control a cursor on a screen displayed on a monitor. However, on traditional computer systems, users often need to move the cursor a long distance on the screen to select the desired target object, or move the cursor to the desired target object to select the target object. , The efficiency of the above-mentioned operation of selecting the target object is not good, which often harms the user experience.
因此,需要一種電子裝置及其選取目標物件之預測方法以解決上述問題。 Therefore, there is a need for an electronic device and a prediction method for selecting a target object to solve the above problems.
本發明係提供一種選取目標物件之預測方法,用於一電子裝置,該方法包括:(A)顯示複數個物件及一游標於該電子裝置之一顯示器上;(B)取得該游標之一移動速度及移動向量、一游標位置、以及該等物件之複數個物件位置;(C)當該游標位置與該等物件位置滿足一預定條件時,判斷是否存在一前次選取物件;以及(D)當該前次選取物件存在且該游標之該移動速度大於一速度閾值時,以該前次選取物件為基準並參考該移動向量後,選擇具有最短距離之該物件做為一目標物件。 The present invention provides a prediction method for selecting a target object for an electronic device. The method includes: (A) displaying a plurality of objects and a cursor on a display of the electronic device; (B) obtaining a movement of one of the cursors Speed and movement vector, a cursor position, and a plurality of object positions of the objects; (C) when the cursor position and the object positions meet a predetermined condition, determine whether there is a previously selected object; and (D) When the previously selected object exists and the moving speed of the cursor is greater than a speed threshold, the object with the shortest distance is selected as a target object after taking the previously selected object as a reference and referring to the moving vector.
本發明更提供一種電子裝置,包括:一顯示器;一儲存裝置,用以儲存一應用程式;以及一處理器,用以執行該應用程式以執行下列步驟:(A)在該顯示器上顯示複數個物件及一游標;(B)取得該游標之一移動速度及移動向量、一游標位置、以及該等物件之複數個物件位置;(C)當該游標位置與該等物件位置滿足一預定條件時,判斷是否存在一前次選取物件;以及(D)當該前次選取物件存在且該游標之該移動速度大於一速度閾值時,以該前次選取物件為基準並參考該移動向量後,選擇具有最短距離之該物件做為一目標物件。 The present invention further provides an electronic device, including: a display; a storage device for storing an application program; and a processor for executing the application program to perform the following steps: (A) displaying a plurality of on the display Object and a cursor; (B) Obtain a movement speed and movement vector of the cursor, a cursor position, and a plurality of object positions of the objects; (C) When the cursor position and the object positions meet a predetermined condition , Determine whether there is a previously selected object; and (D) when the previously selected object exists and the movement speed of the cursor is greater than a speed threshold, use the previously selected object as a reference and refer to the movement vector, then select The object with the shortest distance is used as a target object.
本發明更提供一種選取目標物件之預測方法,用於一電子裝置,該方法包括:(A)顯示複數個物件及一游標於該電子裝置之一顯示器上;(B)取得該游標之一移動速度及移動向量、一游標位置、以及該等物件之複數個物件位置;(C)當該游標位置與該等物件位置滿足一預定條件時,判斷是否存在一前次選取物件; 以及(D)當該前次選取物件不存在,計算該游標之一加權移動向量,並因應於該游標依據該加權移動向量移動,選擇在一特定方向與移動後之該游標具有最短距離之該物件做為該目標物件。 The present invention further provides a prediction method for selecting a target object for an electronic device. The method includes: (A) displaying a plurality of objects and a cursor on a display of the electronic device; (B) obtaining a movement of the cursor Speed and movement vector, a cursor position, and multiple object positions of the objects; (C) When the cursor position and the object positions meet a predetermined condition, determine whether there is a previously selected object; And (D) When the previously selected object does not exist, calculate a weighted movement vector of the cursor, and in response to the cursor moving according to the weighted movement vector, select the one that has the shortest distance from the moved cursor in a specific direction The object is the target object.
100:電子裝置 100: electronic device
110:運算單元 110: arithmetic unit
115:匯流排 115: bus
130:儲存單元 130: storage unit
131:揮發性記憶體 131: Volatile memory
132:非揮發性記憶體 132: Non-volatile memory
133:作業系統 133: Operating System
134:應用程式 134: Application
140:輸入裝置 140: input device
150:顯示器 150: display
200:圖形使用者介面 200: Graphical user interface
201-204:模組列 201-204: Module row
210:游標 210: cursor
220、230、240A-240D:物件 220, 230, 240A-240D: Object
221-224:插槽 221-224: Slot
2201-2204:物件 2201-2204: Object
P1-P8:游標位置 P1-P8: cursor position
S310-S350:步驟 S310-S350: steps
S402-S428:步驟 S402-S428: Step
第1圖係顯示依據本發明一實施例之電腦系統的方塊圖。 FIG. 1 shows a block diagram of a computer system according to an embodiment of the invention.
第2A圖為依據本發明一實施例中依據最短距離以選擇目標物件的示意圖。 FIG. 2A is a schematic diagram of selecting a target object based on the shortest distance according to an embodiment of the present invention.
第2B圖為依據本發明一實施例中依據坐標軸加權以選擇目標物件的示意圖。 FIG. 2B is a schematic diagram of selecting a target object by weighting according to coordinate axes according to an embodiment of the present invention.
第2C圖為依據本發明一實施例中依據基準位置及移動向量以選擇目標物件的示意圖。 FIG. 2C is a schematic diagram of selecting a target object according to a reference position and a movement vector according to an embodiment of the present invention.
第2D圖為依據本發明第2C圖之實施例中依據最短距離以選擇目標物件的示意圖。 FIG. 2D is a schematic diagram of selecting a target object based on the shortest distance in the embodiment of FIG. 2C of the present invention.
第3A圖為依據本發明一實施例中之選取目標物件之預測方法的流程圖。 FIG. 3A is a flowchart of a method for selecting a target object according to an embodiment of the present invention.
第3B圖為依據本發明一實施例中之選取目標物件之預測方法的流程圖。 FIG. 3B is a flowchart of a method for selecting a target object according to an embodiment of the present invention.
第4A-4B圖為依據本發明一實施例中之選取目標物件之預測方法的詳細流程圖。 Figures 4A-4B are detailed flowcharts of a prediction method for selecting a target object according to an embodiment of the present invention.
為使本發明之上述目的、特徵和優點能更明顯易懂,下文特舉一較佳實施例,並配合所附圖式,作詳細說明如下。 In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, a preferred embodiment is specifically cited below in conjunction with the accompanying drawings and described in detail as follows.
第1圖係顯示依據本發明一實施例之電腦裝置的方塊圖。 FIG. 1 is a block diagram of a computer device according to an embodiment of the invention.
電子裝置100例如可為一個人電腦、一伺服器、或一可攜式裝置。電子裝置100包括一運算單元110、一儲存單元130、一輸入裝置140、及一顯示器150。運算單元110、儲存單元130、輸入裝置140、及顯示器150係透過匯流排115以互相進行通訊。
The
運算單元110可透過多種方式實施,例如以專用硬體電路或者通用硬體(例如:單一處理器、具平行處理能力之多處理器、圖形處理器或者其它具有運算能力之處理器),且於執行與本發明流程有關之程式碼或者軟體時,提供之後所描述的功能。
The
儲存單元130包括一揮發性記憶體131及一非揮發性記憶體132。非揮發性記憶體132係用以儲存一作業系統133及一應用程式134。非揮發性記憶體132例如可為一硬碟機(hard disk drive)、一固態硬碟機(solid-state disk)、一快閃記憶體(flash memory)、或一唯讀記憶體(read-only memory),但本發明並不限於此。揮發性記憶體131可為一隨機存取記憶體,例如是一靜態隨機存取記憶體(SRAM)或一動態隨機存取記憶體(DRAM),但本發明並不限於此。
The
在一實施例中,運算單元110係將作業系統133及應用程式134由非揮發性記憶體132讀取至揮發性記憶體131並執
行,其中應用程式134係可在顯示器150上顯示一圖形使用者介面(graphical user interface、GUI),且圖形使用者介面可包括複數個物件及一游標(cursor)。
In one embodiment, the
輸入裝置140係用以供使用者在圖形使用者介面上執行對應之操作,輸入裝置140例如可為滑鼠、軌跡球、或鍵盤等等,但本發明並不限於此。
The
顯示器150可為顯示面板(例如,薄膜液晶顯示面板、有機發光二極體面板或者其它具顯示能力的面板),用以顯示輸入的字元、數字、符號、拖曳游標的移動軌跡或者應用程式所提供的使用者介面,以提供給使用者觀看。在一些實施例中,顯示器150例如可與一觸控裝置整合而形成觸控面板(touch screen),且使用者可利用其手指或觸控筆在觸控面板上進行觸控動作以在圖形使用者介面上進行操作。
The
第2A圖為依據本發明一實施例中依據最短距離以選擇目標物件的示意圖。 FIG. 2A is a schematic diagram of selecting a target object based on the shortest distance according to an embodiment of the present invention.
請同時參考第1圖及第2A圖,在一實施例中,運算單元110所執行的應用程式134例如為一模組電腦系統管理程式,其可在顯示器150上顯示圖形使用者介面200,其中圖形使用者介面200包括一游標210以及複數個物件220、230及240A~240D。各個物件220係分別對應至一第一類型模組,且各個物件230係分別對應至一第二類型模組,其中第一類型模組具有兩個插槽,例如可視為兩個尺寸較小的目標物件,且第二類型模組具有一個插槽,例如可視
為一個尺寸較大的目標物件。物件240A~240D例如對應於「擴充模組」之選項,意即使用者可將所選擇的模組(例如為第一類型模組、第二類型模組、或其他類型的模組)分別附加至模組列201~204之最右側。
Please refer to FIG. 1 and FIG. 2A at the same time. In one embodiment, the
舉例來說,如第2A圖所示,圖形使用者介面200中之物件220、230及240A~240D可分為四個模組列201~204,其中模組列201係由5個物件220以及物件240A所組成;模組列202係由一個物件220、一個物件230以及物件240B所組成;模組列203係由一個物件220、7個物件230、以及物件240C所組成;模組列204則由一個物件220及物件240D所組成。
For example, as shown in Figure 2A, the
在一實施例中,顯示器150所顯示的畫面上的坐標例如X軸往右為正,且Y軸往下為正。運算單元110例如會持續取得游標210在顯示器150所顯示的畫面上的坐標,例如以游標210之頂點的游標位置P0為準,其坐標例如為(x0,y0)。若使用者在圖形使用者介面200上選擇了一擴充模組(例如可為物件220或230),且擴充模組例如可增加至物件240A~240D之其中一者,以在相應的模組列201~204的最右側增加一擴充模組(例如可為物件220或230)。
In one embodiment, the coordinates on the screen displayed by the
運算單元110係計算游標210之游標位置P0分別至物件240A~240D的物件位置之間的歐氏距離(Euclidean distance),並選擇具有最短距離的物件以做為目標物件。在此實施例中,游標210之游標位置P0至物件240C的物件位置之間具有最短距離,所以物件240C會被選擇為目標物件,例如可用顏色強調、高
亮、閃爍、反白等等不同的影像效果以表示物件240C為所選擇的目標物件,但本發明並不限於此。
The
若使用者在圖形使用者介面200上選擇了一電腦模組,例如可對應至物件220之其中一個插槽,則在圖形使用者介面200中之各個物件220中之空插槽則會視為不同的物件,且運算單元110會計算游標210之游標位置P0至各物件之間的距離,並選擇具有最短距離的物件做為目標物件。
If the user selects a computer module on the
需注意的是,第2A圖係用於說明如何計算與游標210具有最短距離之物件,且此計算方式會應用於本發明中之選取目標物件之預測方法的其中一個情況,其細節將詳述於後。
It should be noted that Figure 2A is used to illustrate how to calculate the object with the shortest distance from the
第2B圖為依據本發明一實施例中依據坐標軸加權以選擇目標物件的示意圖。 FIG. 2B is a schematic diagram of selecting a target object by weighting according to coordinate axes according to an embodiment of the present invention.
在一實施例中,若使用者同樣在圖形使用者介面200上選擇了一擴充模組(例如可為物件220或230),且擴充模組例如可增加至物件240A~240D之其中一者,以在相應的模組列201~204的最右側增加一擴充模組(例如可為物件220或230)。然而,使用者所要增加擴充模組的位置是在物件240B,且游標210之位置在使用者介面200之右側之游標位置P1~P3移動,若依據在第2A圖中之最短距離的計算方式,運算單元110所計算出與游標210之間具有最短距離之物件均為物件240C,而無法選擇到物件240B。因此,在此種情境下,運算單元110係使用坐標軸加權之計算方式。
In one embodiment, if the user also selects an expansion module (for example, an
舉例來說,當使用者利用輸入裝置140以移動游標210時,運算單元110係持續計算游標210在顯示器150所顯示的畫面上的游標位置、游標速度、及移動向量。接著,運算單元110可計算游標210之一加權移動向量,並因應於游標210依據加權移動向量之移動以選擇在一特定方向與移動後之游標210具有最短距離之物件以做為目標物件。
For example, when the user uses the
詳細而言,如第2B圖所示,依據圖形使用者介面200中之模組列201~204的排列方式,運算單元110可將游標210之移動向量在水平方向的第一權重設定為0,並將垂直方向的第二權重設定為1。此外,運算單元110亦可依據模組列201~204的排列方式決定出特定方向為水平方向。需注意的是,此時,因為模組列201~204的排列方式,游標210在水平方向的移動並不影響物件的選取,故運算單元110可不考慮游標210在水平方向的移動。
In detail, as shown in Figure 2B, according to the arrangement of the
舉例來說,當游標210在移動後位於游標位置P1,例如坐標為(x1,y1),游標210與物件240C之間的垂直距離為0,且物件240C亦是游標210在特定方向(即水平方向)具有最短距離的物件。因此,運算單元110會選擇物件240C以做為目標物件。
For example, when the
類似地,當游標210在移動後位於游標位置P2且其坐標為(x2,y2),游標210與物件240B之間的垂直距離為0,且物件240B亦是游標210在特定方向(即水平方向)具有最短距離的物件,意即,運算單元110會選擇物件240B以做為目標物件。當游標210位於游標位置P2,雖然物件240C與游標210之間具有最短距
離,但是運算單元110仍會依據坐標軸加權的計算方式以選擇物件240B做為目標物件。
Similarly, when the
需注意的是,第2B圖係用於說明如何使用坐標軸加權的方式計算與游標210在特定方向具有最短距離之物件,且此計算方式會應用於本發明中之選取目標物件之預測方法的其中一個情況,其細節將詳述於後。
It should be noted that Figure 2B is used to illustrate how to use the coordinate axis weighting method to calculate the object with the shortest distance from the
第2C圖為依據本發明一實施例中依據基準位置及移動向量以選擇目標物件的示意圖。 FIG. 2C is a schematic diagram of selecting a target object according to a reference position and a movement vector according to an embodiment of the present invention.
在一實施例中,物件2201~2204係類似於第2A圖中的物件220,且游標210與物件2201~2204中之各個插槽(均可視為物件)之距離D係大於一預定距離Dt。各個物件2201~2204均分別具有兩個插槽,其中在物件2201~2204中,例如只有物件2202具有空插槽223、物件2203具有空插槽222、且物件2204具有空插槽221。此外,在圖形使用者介面200中所標示的虛線250之右側即表示游標210與物件2201~2204中之各個插槽(均可視為物件)之距離D係大於一預定距離Dt,虛線250之左側即表示游標210與物件2201~2204中之各個插槽(均可視為物件)之距離D係小於或等於一預定距離Dt。
In one embodiment, the
若插槽221原本為物件2204中之其中一個空插槽,且使用者在先前操作已在圖形使用者介面200上選擇了一電腦模組之物件所相應之插槽221,並將電腦模組之物件置入插槽221。意即,插槽221可稱為前次選取物件。因應於游標210之移動速度V大
於一速度閾值Vt時,運算單元110可採用前次選取物件(即插槽221)為基準並參考游標210的移動向量,選擇具有最短距離的物件以做為目標物件。
If the slot 221 was originally one of the empty slots in the
舉例來說,當游標210由游標位置P4移動至游標位置P5,且游標210之速度V大於速度閾值Vt時,運算單元110例如會以前次選取物件(即插槽221)做為基準,並參考移動向量P4P5以選擇物件2203中的插槽222做為目標物件。
For example, when the
接著,游標210由游標位置P5移動至游標位置P6,且游標210之速度V大於速度閾值Vt時,運算單元110例如會以前次選取物件(即插槽221)做為基準,並接著參考移動向量P4P5+P5P6以選擇物件2202中的插槽223做為目標物件。
Next, when the
第2D圖為依據本發明第2C圖之實施例中依據最短距離以選擇目標物件的示意圖。 FIG. 2D is a schematic diagram of selecting a target object based on the shortest distance in the embodiment of FIG. 2C of the present invention.
如第2D圖所示,當游標210移動至虛線250左側時,運算單元110會依據與游標210之間具有最短距離的方式選擇目標物件。舉例來說,類似於第2A圖之方式,當游標210移動至位置P7時,物件224會跟游標210之間具有最短距離。因此,運算單元110會選擇物件224做為目標物件。當游標210移動至位置P8時,雖然物件222跟物件223與游標210之距離相當近,但是運算單元110仍會計算出物件223會跟游標210之間具有最短距離。因此,運算單元110會選擇物件223做為目標物件。
As shown in FIG. 2D, when the
需注意的是,在第2A~2D圖之實施例中是採用模組電腦系統管理程式為例進行說明,本發明並不限定於此。舉例來說,在圖形使用者介面中之各物件的排列方式可與第2A~2D圖中之橫列排列方式不同,且運算單元110可依據在圖形使用者介面中之各物件的排列方式以決定出游標之移動向量分別在水平方向及垂直方向的權重、以及一特定方向。
It should be noted that, in the embodiments in Figures 2A to 2D, a modular computer system management program is used as an example for description, and the present invention is not limited to this. For example, the arrangement of the objects in the graphical user interface may be different from the row arrangement in Figures 2A~2D, and the
在一實施例中,當圖形使用者介面中之各物件是以直行的方式由左而右排列,則運算單元110可將游標之移動向量在垂直方向的權重設定為0,並將游標之移動向量在水平方向的權重設定為1,意即可不考慮游標在垂直方向的移動。
In one embodiment, when the objects in the graphical user interface are arranged in a straight line from left to right, the
第3A圖為依據本發明一實施例中之選取目標物件之預測方法的流程圖。 FIG. 3A is a flowchart of a method for selecting a target object according to an embodiment of the present invention.
請同時參考第1~3圖,在步驟S310,顯示複數個物件及一游標於電子裝置100之顯示器150上。
Please refer to FIGS. 1 to 3 at the same time. In step S310, a plurality of objects and a cursor are displayed on the
在步驟S320,取得游標之一移動速度及移動向量、一游標位置、以及該等物件之複數個物件位置。舉例來說,在第2A圖所示的各個物件220及230均具有對應的插槽,且各個插槽亦可視為一物件,且各個物件之物件位置例如可用顯示器150所顯示之影像中的坐標(x,y)表示。
In step S320, a movement speed and movement vector of a cursor, a cursor position, and a plurality of object positions of the objects are obtained. For example, each
在步驟S330,當游標位置與該等物件位置滿足一預定條件時,判斷是否存在一前次選取物件。舉例來說,上述預定條件例如為游標位置與該等物件位置均大於一預定距離,例如在第2C
圖中之虛線250之右半部即表示游標位置與該等物件位置均大於預定距離。
In step S330, when the cursor position and the object positions meet a predetermined condition, it is determined whether there is a previously selected object. For example, the aforementioned predetermined condition is, for example, that the position of the cursor and the positions of the objects are greater than a predetermined distance, for example, in the 2C
The right half of the dotted
在步驟S340,當前次選取物件存在且游標之移動速度大於一速度閾值時,以前次選取物件為基準並參考移動向量後,選擇具有最短距離之該物件做為一目標物件。舉例來說,請參考第2C圖之實施例中,其中插槽221例如為前次選取物件。當游標210由游標位置P4移動至游標位置P5,且游標210之速度V大於速度閾值Vt時,運算單元110例如會以前次選取物件(即插槽221)做為基準,並參考移動向量P4P5以選擇物件2203中的插槽222做為目標物件。接著,游標210由游標位置P5移動至游標位置P6,且游標210之速度V大於速度閾值Vt時,運算單元110例如會以前次選取物件(即插槽221)做為基準,並接著參考移動向量P4P5+P5P6以選擇物件2202中的插槽223做為目標物件。
In step S340, when the currently selected object exists and the moving speed of the cursor is greater than a speed threshold, the previously selected object is used as a reference and the movement vector is referred to, and then the object with the shortest distance is selected as a target object. For example, please refer to the embodiment in FIG. 2C, where the slot 221 is, for example, the object selected last time. When the
第3B圖為依據本發明另一實施例中之選取目標物件之預測方法的流程圖。 FIG. 3B is a flowchart of a prediction method for selecting a target object according to another embodiment of the present invention.
在第3B圖之流程的步驟S310-S330係與第3A圖之步驟S310-S330類似。第3A圖及第3B圖之流程的差異在於在第3B圖中之步驟S330之後是執行步驟S350。 Steps S310-S330 in the flow in Figure 3B are similar to steps S310-S330 in Figure 3A. The difference between the flow in Figure 3A and Figure 3B is that step S350 is executed after step S330 in Figure 3B.
請同時參考第2B圖及第3B圖,在步驟S350,當前次選取物件不存在,計算游標之一加權移動向量,並因應於游標依據加權移動向量移動,選擇在一特定方向與移動後之游標具有最短距離之物件做為目標物件。 Please refer to Figure 2B and Figure 3B at the same time. In step S350, the currently selected object does not exist, calculate one of the weighted movement vectors of the cursor, and select a cursor in a specific direction and after the movement according to the weighted movement vector of the cursor The object with the shortest distance is used as the target object.
舉例來說,當前次選取物件不存在時,運算單元110則無法使用前次選取物件做為基準而預測出目標物件。此時,運算單元110係依據坐標軸加權的方式以決定出目標物件,例如可依據在圖形使用者介面200中之物件的排列方式以決定加權移動向量在水平方向之第一權重及在垂直方向之第二權重,並且可決定相應於物件之排列方式的特定方向。在第2B圖之實施例中,特定方向例如為水平方向,且當游標210在移動後位於游標位置P2,游標210與物件240B之間的垂直距離為0,且物件240B為游標210在特定方向(即水平方向)具有最短距離的物件,意即,運算單元110會選擇物件240B以做為目標物件。當游標210位於游標位置P2,雖然物件240C與游標210之間具有最短距離,但是運算單元110仍會依據坐標軸加權的計算方式以選擇物件240B做為目標物件。
For example, when the currently selected object does not exist, the
第4A-4B圖為依據本發明一實施例中之選取目標物件之預測方法的詳細流程圖。 Figures 4A-4B are detailed flowcharts of a prediction method for selecting a target object according to an embodiment of the present invention.
請同時參考第1、2、4圖,在步驟S402,使用者操作游標。舉例來說,使用者可透過輸入裝置140以控制在圖形使用者介面上之游標的移動,或是透過顯示器150(例如為觸控螢幕)以觸控操作以控制在圖形使用者介面上之游標的移動。
Please refer to Figures 1, 2 and 4 at the same time. In step S402, the user operates the cursor. For example, the user can control the movement of the cursor on the graphical user interface through the
在步驟S404,取得游標之移動速度、移動向量及游標位置、以及該等物件之複數個物件位置。舉例來說,當使用者控操作游標時,運算單元110即可取得或計算出游標之移動速度、移
動向量及游標位置。此外,圖形使用者介面亦包括複數個物件,且運算單元110可取得各物件相應的物件位置。
In step S404, the moving speed, the moving vector and the position of the cursor, and the multiple object positions of the objects are obtained. For example, when the user controls and operates the cursor, the
在步驟S406,判斷游標與各物件之距離D是否均大於預定距離Dt。若游標與各物件之距離D均大於預定距離Dt,執行步驟S408。若游標與各物件之距離D並非均大於預定距離Dt,執行步驟S412。舉例來說,在第2C圖中之虛線250之右半部即表示游標位置與該等物件位置均大於預定距離,在虛線250之左半部即表示游標位置與該等物件位置並非均大於預定距離。
In step S406, it is determined whether the distance D between the cursor and each object is greater than a predetermined distance Dt. If the distance D between the cursor and each object is greater than the predetermined distance Dt, step S408 is executed. If the distance D between the cursor and each object is not all greater than the predetermined distance Dt, step S412 is executed. For example, the right half of the dotted
在步驟S408,判斷前次選取物件是否存在。若前次選取物件存在,則執行步驟S410。若前次選取物件不存在,則執行步驟S420。舉例來說,若前次選取物件存在,則運算單元110可用前次選取物件做為基準,並參考游標之移動向量以快速計算出所要選擇的目標物件。若前次選取物件不存在,則需要依據不同的物件排列方式以坐標軸加權的方式計算出所要選擇的目標物件。
In step S408, it is determined whether the previously selected object exists. If the previously selected object exists, step S410 is executed. If the previously selected object does not exist, step S420 is executed. For example, if the previously selected object exists, the
在步驟S410,判斷游標之移動速度V是否大於速度閾值Vt。若游標之移動速度V大於速度閾值Vt,執行步驟S424。若游標之移動速度V小於或等於速度閾值Vt,執行步驟S426。舉例來說,若游標之移動速度V大於速度閾值Vt,表示使用者欲快速選取想要的目標物件,所以可用前次選取物件做為基準,並參考游標之移動向量以快速計算出所要選擇的目標物件。 In step S410, it is determined whether the moving speed V of the cursor is greater than the speed threshold Vt. If the moving speed V of the cursor is greater than the speed threshold Vt, step S424 is executed. If the moving speed V of the cursor is less than or equal to the speed threshold Vt, step S426 is executed. For example, if the moving speed V of the cursor is greater than the speed threshold Vt, it means that the user wants to quickly select the desired target object. Therefore, the previous selected object can be used as a reference, and the moving vector of the cursor can be referred to to quickly calculate the selected object. The target object.
在步驟S412,選擇具有最短距離之物件。舉例來說,在第2C圖中之虛線250之左半部即表示游標位置與該等物件位置
並非均大於預定距離。因為游標之游標位置與各物件之間的距離均相當接近,故運算單元110仍需計算出與游標之間具有最短距離的物件以做為目標物件。
In step S412, the object with the shortest distance is selected. For example, the left half of the dotted
在步驟S414,判斷選擇的物件是否命中。若選擇的物件命中,則此流程結束。若選擇的物件未命中,則執行步驟S416。舉例來說,儘管運算單元110已選擇與游標具有最短距離之物件,但使用者可能尚未將游標移動至所要選取的物件附近。因此,仍需利用輸入裝置140繼續控制游標移動。
In step S414, it is determined whether the selected object hits. If the selected object hits, the process ends. If the selected object does not hit, step S416 is executed. For example, although the
在步驟S416,判斷前次選取物件是否存在。若前次選取物件存在,則執行步驟S418。若前次選取物件不存在,則回到步驟S402。舉例來說,若前次選取物件存在,但使用者卻未選擇到想要的目標物件,則此時會執行步驟S418以清除前次選取物件。 In step S416, it is determined whether the previously selected object exists. If the previously selected object exists, step S418 is executed. If the previously selected object does not exist, return to step S402. For example, if the previously selected object exists, but the user does not select the desired target object, step S418 is executed at this time to clear the previously selected object.
在步驟S420,依據該等物件之排列方式以決定不同方向之權重,並計算出游標之加權移動向量。舉例來說,在圖形使用者介面中之各物件的排列方式可與第2A~2D圖中之橫列排列方式不同,且運算單元110可依據在圖形使用者介面中之各物件的排列方式以決定出游標之移動向量分別在水平方向及垂直方向的權重、以及一特定方向。在另一實施例中,當圖形使用者介面中之各物件是以直行的方式由左而右排列,則運算單元110可將游標之移動向量在垂直方向的權重設定為0,並將游標之移動向量在水平方向的權重設定為1,意即可不考慮游標在垂直方向的移動。
In step S420, the weights of different directions are determined according to the arrangement of the objects, and the weighted movement vector of the cursor is calculated. For example, the arrangement of the objects in the graphical user interface may be different from the row arrangement in Figures 2A~2D, and the
在步驟S422,選擇在特定方向具有最短距離之物件。舉例來說,在第2B圖之實施例中,特定方向例如為水平方向,且當游標210在移動後位於游標位置P2,游標210與物件240B之間的垂直距離為0,且物件240B為游標210在特定方向(即水平方向)具有最短距離的物件,意即,運算單元110會選擇物件240B以做為目標物件。當游標210位於游標位置P2,雖然物件240C與游標210之間具有最短距離,但是運算單元110仍會依據坐標軸加權的計算方式以選擇物件240B做為目標物件。
In step S422, the object with the shortest distance in a specific direction is selected. For example, in the embodiment of Figure 2B, the specific direction is, for example, the horizontal direction, and when the
在步驟S424,以前次選取物件為基準並參考移動向量後,選擇具有最短距離之物件。在步驟S426,判斷選擇的物件是否命中。若選擇的物件命中,則此流程結束。若選擇的物件未命中,則執行步驟S428。 In step S424, after the previously selected object is used as a reference and the movement vector is referred to, the object with the shortest distance is selected. In step S426, it is determined whether the selected object hits. If the selected object hits, the process ends. If the selected object does not hit, step S428 is executed.
舉例來說,儘管運算單元110可能已在不同的步驟下(例如步驟S422或S424)決定所要選取的物件,但所選擇的物件仍可能不是使用者所要選取的物件。此時,需執行步驟S428以保存目前所選擇的物件。舉例來說,在第2C圖之實施例中,當游標210由游標位置P4移動至游標位置P5,但運算單元110此時所選擇的目標物件為插槽222,但其並非使用者所要選擇的物件。因此,運算單元110會保留所選取的插槽222,且此流程會回到步驟S402,並讓使用者繼續操作游標移動以選擇想要的目標物件。
For example, although the
詳細而言,本發明中之選取目標物件之預測方法可讓使用者不需將游標在畫面上移動相當長的距離才能選擇到想要的 目標物件,且可依據游標與物件之距離、以及游標之移動速度及移動向量以便於在不同的預測模式(例如最短距離、坐標軸加權、以前次選取物件為基準等等)下進行切換,藉以快速地預測出使用者所要的目標物件。 In detail, the prediction method for selecting the target object in the present invention allows the user to select the desired object without moving the cursor a long distance on the screen The target object can be switched according to the distance between the cursor and the object, as well as the movement speed and movement vector of the cursor, so as to switch between different prediction modes (such as the shortest distance, the weight of the coordinate axis, the previous selected object as the reference, etc.). Quickly predict the target object the user wants.
需注意的是,在第2~4圖之實施例中係以圖形使用者介面進行說明,但本發明中之選取目標物件之預測方法並不限於二維平面的圖形使用者介面。舉例來說,本發明中之選取目標物件之預測方法亦可應用於擴增實境(augmented reality)、虛擬實境(virtual reality)、人機互動、及穿戴式技術,且游標例如可視為使用者之手部或一特定物件。使用者例如可控制游標在三維空間中移動,且在三維空間中之物件的物件位置例如可用(x,y,z)之三維坐標表示。此外,在二維圖形使用者介面中所設定的預定距離,在三維空間中例如可用一平面或是一球面表示預定距離的範圍。 It should be noted that the graphical user interface is used for the description in the embodiments in Figures 2 to 4, but the prediction method for selecting the target object in the present invention is not limited to the two-dimensional graphical user interface. For example, the prediction method for selecting the target object in the present invention can also be applied to augmented reality, virtual reality, human-computer interaction, and wearable technology, and the cursor can be regarded as a use The hand or a specific object of the person. For example, the user can control the cursor to move in a three-dimensional space, and the position of an object in the three-dimensional space can be represented by (x, y, z) three-dimensional coordinates, for example. In addition, the predetermined distance set in the two-dimensional graphical user interface can be represented by a plane or a spherical surface in the three-dimensional space, for example.
當運算單元110計算游標之移動向量時,亦是依據三維空間的移動向量進行計算,且可依據物件在三維空間中之排列方式以決定加權移動向量則分別在X軸、Y軸、Z軸之第一權重、第二權重、及第三權重、以及相應於物件排列方式的特定方向。此外,運算單元110可依據二維圖形使用者介面之實施例中之類似方式以計算出加權移動向量,並決定出在特定方向具有最短三維距離的物件以做為目標物件。
When the
綜上所述,本發明係提供一種電子裝置及選取目標物件之預測方法,其可藉由使用者操作游標以取得不同因素,如游 標與物件之距離、以及游標之移動速度及移動向量等,以便於在不同的預測模式(例如最短距離、坐標軸加權、以前次選取物件為基準等等)下進行切換,藉以快速地預測出使用者所要的目標物件,進而讓使用者可快速地對目標物件進行相應的操作,以增進使用者體驗。 In summary, the present invention provides an electronic device and a prediction method for selecting target objects, which can obtain different factors by the user operating the cursor, such as The distance between the target and the object, as well as the moving speed and moving vector of the cursor, etc., in order to switch between different prediction modes (such as the shortest distance, coordinate axis weighting, the previous selected object as the reference, etc.) to quickly predict The target object required by the user allows the user to quickly perform corresponding operations on the target object to enhance the user experience.
本發明之方法,或特定型態或其部份,可以以程式碼的型態包含於實體媒體,如軟碟、光碟片、硬碟、或是任何其他機器可讀取(如電腦可讀取)儲存媒體,其中,當程式碼被機器,如電腦載入且執行時,此機器變成用以參與本發明之裝置或系統。本發明之方法、系統與裝置也可以以程式碼型態透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸型態進行傳送,其中,當程式碼被機器,如電腦接收、載入且執行時,此機器變成用以參與本發明之裝置或系統。當在一般用途處理器實作時,程式碼結合處理器提供一操作類似於應用特定邏輯電路之獨特裝置。 The method of the present invention, or a specific type or part thereof, can be included in a physical medium in the form of a code, such as a floppy disk, an optical disk, a hard disk, or any other machine readable (such as a computer readable ) A storage medium, wherein when the program code is loaded and executed by a machine, such as a computer, the machine becomes the device or system used to participate in the present invention. The method, system, and device of the present invention can also be transmitted through some transmission media, such as wire or cable, optical fiber, or any transmission type in the form of code, where the code is received and loaded by a machine, such as a computer And when executed, the machine becomes the device or system used to participate in the present invention. When implemented in a general-purpose processor, the program code combined with the processor provides a unique device that operates similar to the application of specific logic circuits.
本發明雖以較佳實施例揭露如上,然其並非用以限定本發明的範圍,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可做些許的更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention is disclosed as above in a preferred embodiment, it is not intended to limit the scope of the present invention. Anyone with ordinary knowledge in the relevant technical field can make slight changes and modifications without departing from the spirit and scope of the present invention. Retouching, therefore, the scope of protection of the present invention shall be subject to the scope of the attached patent application.
S310-S340~步驟。S310-S340~ steps.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW108107178A TWI708167B (en) | 2019-03-05 | 2019-03-05 | Electronic device and prediction method for selecting target object |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW108107178A TWI708167B (en) | 2019-03-05 | 2019-03-05 | Electronic device and prediction method for selecting target object |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202034133A TW202034133A (en) | 2020-09-16 |
| TWI708167B true TWI708167B (en) | 2020-10-21 |
Family
ID=73643814
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW108107178A TWI708167B (en) | 2019-03-05 | 2019-03-05 | Electronic device and prediction method for selecting target object |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI708167B (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060232551A1 (en) * | 2005-04-18 | 2006-10-19 | Farid Matta | Electronic device and method for simplifying text entry using a soft keyboard |
| TW200928905A (en) * | 2007-12-26 | 2009-07-01 | E Lead Electronic Co Ltd | A method for controlling touch pad cursor |
| CN103403665A (en) * | 2012-08-29 | 2013-11-20 | 华为终端有限公司 | A method for terminal equipment to obtain instructions and terminal equipment |
| TW201405413A (en) * | 2012-06-14 | 2014-02-01 | Microsoft Corp | Touch modes |
| TW201421298A (en) * | 2012-11-21 | 2014-06-01 | Asustek Comp Inc | Method for correcting touch position |
| CN104620203A (en) * | 2012-09-06 | 2015-05-13 | 英特飞斯公司 | Absolute and relative positioning sensor fusion in an interactive display system |
| CN105378608A (en) * | 2013-06-17 | 2016-03-02 | 微软技术许可有限责任公司 | Interaction device corrective parameters |
-
2019
- 2019-03-05 TW TW108107178A patent/TWI708167B/en active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060232551A1 (en) * | 2005-04-18 | 2006-10-19 | Farid Matta | Electronic device and method for simplifying text entry using a soft keyboard |
| TW200928905A (en) * | 2007-12-26 | 2009-07-01 | E Lead Electronic Co Ltd | A method for controlling touch pad cursor |
| TW201405413A (en) * | 2012-06-14 | 2014-02-01 | Microsoft Corp | Touch modes |
| CN103403665A (en) * | 2012-08-29 | 2013-11-20 | 华为终端有限公司 | A method for terminal equipment to obtain instructions and terminal equipment |
| CN104620203A (en) * | 2012-09-06 | 2015-05-13 | 英特飞斯公司 | Absolute and relative positioning sensor fusion in an interactive display system |
| TW201421298A (en) * | 2012-11-21 | 2014-06-01 | Asustek Comp Inc | Method for correcting touch position |
| CN105378608A (en) * | 2013-06-17 | 2016-03-02 | 微软技术许可有限责任公司 | Interaction device corrective parameters |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202034133A (en) | 2020-09-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2681649B1 (en) | System and method for navigating a 3-d environment using a multi-input interface | |
| JP5275978B2 (en) | Controlling data processing | |
| JP5847939B2 (en) | Touch intelligent targeting | |
| US8902185B2 (en) | Scrolling screen apparatus, method for scrolling screen, and game apparatus | |
| EP2612220B1 (en) | Method and apparatus for interfacing | |
| US20120102437A1 (en) | Notification Group Touch Gesture Dismissal Techniques | |
| US20120102400A1 (en) | Touch Gesture Notification Dismissal Techniques | |
| JP7252252B2 (en) | Initiate modal control based on hand position | |
| JP2022518465A (en) | Movement control method of virtual target and its device, terminal and computer program | |
| JP2014531693A (en) | Motion-controlled list scrolling | |
| CN108290071B (en) | Media, apparatus, system, and method for determining resource allocation for performing rendering with prediction of player's intention | |
| TW200929062A (en) | Scalar float register overlay on vector register file for efficient register allocation and scalar float and vector register sharing | |
| Yan et al. | Multitouching the fourth dimension | |
| CN116430990A (en) | Interaction method, device, equipment and storage medium in virtual environment | |
| JP6706438B2 (en) | Game program | |
| Park | AR-Room: a rapid prototyping framework for augmented reality applications | |
| US9047244B1 (en) | Multi-screen computing device applications | |
| TWI708167B (en) | Electronic device and prediction method for selecting target object | |
| CN111666019B (en) | Electronic device and prediction method for selecting target object | |
| Bryson | Direct manipulation in virtual reality | |
| US11099685B2 (en) | Selective touch sensor activation for power savings | |
| CN115617221A (en) | Presentation method, device, equipment and storage medium | |
| US12223580B2 (en) | Interfacing method and apparatus for 3D sketch | |
| US20130278603A1 (en) | Method, Electronic Device, And Computer Readable Medium For Distorting An Image On A Touch Screen | |
| CN115220576A (en) | Method, device, device and storage medium for viewing angle control |