[go: up one dir, main page]

TWI708167B - Electronic device and prediction method for selecting target object - Google Patents

Electronic device and prediction method for selecting target object Download PDF

Info

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
Application number
TW108107178A
Other languages
Chinese (zh)
Other versions
TW202034133A (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 TW108107178A priority Critical patent/TWI708167B/en
Publication of TW202034133A publication Critical patent/TW202034133A/en
Application granted granted Critical
Publication of TWI708167B publication Critical patent/TWI708167B/en

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

A prediction method for selecting a target object for use in an electronic device is provided. The method includes the steps of: (A) displaying a plurality of objects and a cursor on a display of the electronic device; (B) obtaining a moving speed, a moving vector, and a cursor position of the cursor and a plurality of object positions of the objects; (C) when the cursor position and the object positions satisfy a predetermined condition, determining whether a previously selected object exists; (D) in response to the previously selected object existing and the moving speed of the cursor higher than a speed threshold, selecting one of the objects having the shortest distance to the cursor as the target object with reference to the previous selected object moved

Description

電子裝置及選取目標物件之預測方法Electronic device and prediction method for selecting target object

本發明係有關於電子裝置,特別是有關於一種電子裝置及其選取目標物件之預測方法。 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 electronic device 100 can be, for example, a personal computer, a server, or a portable device. The electronic device 100 includes an arithmetic unit 110, a storage unit 130, an input device 140, and a display 150. The computing unit 110, the storage unit 130, the input device 140, and the display 150 communicate with each other through the bus 115.

運算單元110可透過多種方式實施,例如以專用硬體電路或者通用硬體(例如:單一處理器、具平行處理能力之多處理器、圖形處理器或者其它具有運算能力之處理器),且於執行與本發明流程有關之程式碼或者軟體時,提供之後所描述的功能。 The arithmetic unit 110 can be implemented in a variety of ways, such as a dedicated hardware circuit or general-purpose hardware (for example, a single processor, a multi-processor with parallel processing capabilities, a graphics processor, or other processors with arithmetic capabilities), and When executing the program code or software related to the process of the present invention, the functions described later are provided.

儲存單元130包括一揮發性記憶體131及一非揮發性記憶體132。非揮發性記憶體132係用以儲存一作業系統133及一應用程式134。非揮發性記憶體132例如可為一硬碟機(hard disk drive)、一固態硬碟機(solid-state disk)、一快閃記憶體(flash memory)、或一唯讀記憶體(read-only memory),但本發明並不限於此。揮發性記憶體131可為一隨機存取記憶體,例如是一靜態隨機存取記憶體(SRAM)或一動態隨機存取記憶體(DRAM),但本發明並不限於此。 The storage unit 130 includes a volatile memory 131 and a non-volatile memory 132. The non-volatile memory 132 is used to store an operating system 133 and an application program 134. The non-volatile memory 132 may be, for example, a hard disk drive, a solid-state disk, a flash memory, or a read-only memory (read-only). only memory), but the present invention is not limited to this. The volatile memory 131 may be a random access memory, such as a static random access memory (SRAM) or a dynamic random access memory (DRAM), but the invention is not limited thereto.

在一實施例中,運算單元110係將作業系統133及應用程式134由非揮發性記憶體132讀取至揮發性記憶體131並執 行,其中應用程式134係可在顯示器150上顯示一圖形使用者介面(graphical user interface、GUI),且圖形使用者介面可包括複數個物件及一游標(cursor)。 In one embodiment, the computing unit 110 reads the operating system 133 and the application program 134 from the non-volatile memory 132 to the volatile memory 131 and executes The application program 134 can display a graphical user interface (GUI) on the display 150, and the graphical user interface can include a plurality of objects and a cursor.

輸入裝置140係用以供使用者在圖形使用者介面上執行對應之操作,輸入裝置140例如可為滑鼠、軌跡球、或鍵盤等等,但本發明並不限於此。 The input device 140 is used for the user to perform corresponding operations on the graphical user interface. The input device 140 can be, for example, a mouse, a trackball, or a keyboard, etc., but the invention is not limited thereto.

顯示器150可為顯示面板(例如,薄膜液晶顯示面板、有機發光二極體面板或者其它具顯示能力的面板),用以顯示輸入的字元、數字、符號、拖曳游標的移動軌跡或者應用程式所提供的使用者介面,以提供給使用者觀看。在一些實施例中,顯示器150例如可與一觸控裝置整合而形成觸控面板(touch screen),且使用者可利用其手指或觸控筆在觸控面板上進行觸控動作以在圖形使用者介面上進行操作。 The display 150 can be a display panel (for example, a thin-film liquid crystal display panel, an organic light-emitting diode panel, or other panels with display capabilities) for displaying input characters, numbers, symbols, the movement track of the drag cursor, or application programs. Provide a user interface for users to watch. In some embodiments, the display 150 can be integrated with a touch device to form a touch screen, and the user can use his finger or stylus to perform touch actions on the touch panel to use the graphics Operate on the user interface.

第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 application program 134 executed by the computing unit 110 is, for example, a modular computer system management program, which can display the graphical user interface 200 on the display 150, wherein The graphical user interface 200 includes a cursor 210 and a plurality of objects 220, 230, and 240A-240D. Each object 220 corresponds to a first type module, and each object 230 corresponds to a second type module. The first type module has two slots, for example, two smaller-sized modules. Target object, and the second type module has a slot, such as visual It is a larger target object. Objects 240A~240D, for example, correspond to the option of "Expansion Module", which means that the user can add the selected module (for example, the first type module, the second type module, or other types of modules) respectively To the far right of the module row 201~204.

舉例來說,如第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 objects 220, 230, and 240A~240D in the graphical user interface 200 can be divided into four module rows 201~204, of which the module row 201 is composed of five objects 220 and The module row 202 is composed of an object 220, an object 230, and an object 240B; the module row 203 is composed of an object 220, seven objects 230, and an object 240C; the module row 204 is composed of an object 220, an object 230, and an object 240B. It is composed of an object 220 and an object 240D.

在一實施例中,顯示器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 display 150 are, for example, the X axis is positive to the right, and the Y axis is positive to the bottom. The arithmetic unit 110, for example, continuously obtains the coordinates of the cursor 210 on the screen displayed on the display 150, for example, based on the cursor position P0 of the vertex of the cursor 210, and the coordinates are, for example, (x0, y0). If the user selects an expansion module (for example, object 220 or 230) on the graphical user interface 200, and the expansion module can be added to one of the objects 240A~240D, for example, to be listed in the corresponding module row An expansion module (for example, object 220 or 230) is added to the rightmost of 201~204.

運算單元110係計算游標210之游標位置P0分別至物件240A~240D的物件位置之間的歐氏距離(Euclidean distance),並選擇具有最短距離的物件以做為目標物件。在此實施例中,游標210之游標位置P0至物件240C的物件位置之間具有最短距離,所以物件240C會被選擇為目標物件,例如可用顏色強調、高 亮、閃爍、反白等等不同的影像效果以表示物件240C為所選擇的目標物件,但本發明並不限於此。 The computing unit 110 calculates the Euclidean distance between the cursor position P0 of the cursor 210 and the object positions of the objects 240A to 240D, and selects the object with the shortest distance as the target object. In this embodiment, there is the shortest distance between the cursor position P0 of the cursor 210 and the object position of the object 240C, so the object 240C will be selected as the target object. Different image effects such as bright, flashing, reverse white, etc., indicate that the object 240C is the selected target object, but the present invention is not limited thereto.

若使用者在圖形使用者介面200上選擇了一電腦模組,例如可對應至物件220之其中一個插槽,則在圖形使用者介面200中之各個物件220中之空插槽則會視為不同的物件,且運算單元110會計算游標210之游標位置P0至各物件之間的距離,並選擇具有最短距離的物件做為目標物件。 If the user selects a computer module on the graphical user interface 200, for example, it can correspond to one of the slots of the object 220, then the empty slots in each object 220 in the graphical user interface 200 will be regarded as For different objects, the computing unit 110 calculates the distance between the cursor position P0 of the cursor 210 and each object, and selects the object with the shortest distance as the target object.

需注意的是,第2A圖係用於說明如何計算與游標210具有最短距離之物件,且此計算方式會應用於本發明中之選取目標物件之預測方法的其中一個情況,其細節將詳述於後。 It should be noted that Figure 2A is used to illustrate how to calculate the object with the shortest distance from the cursor 210, and this calculation method will be applied to one of the prediction methods for selecting the target object in the present invention. The details will be detailed After.

第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 object 220 or 230) on the graphical user interface 200, and the expansion module can be added to one of the objects 240A~240D, for example, An expansion module (for example, an object 220 or 230) can be added to the rightmost side of the corresponding module row 201~204. However, the position where the user wants to add the expansion module is at object 240B, and the position of the cursor 210 moves at the cursor positions P1~P3 on the right side of the user interface 200. If the shortest distance calculation method is used in Figure 2A, The objects with the shortest distance from the cursor 210 calculated by the arithmetic unit 110 are all the object 240C, and the object 240B cannot be selected. Therefore, in this situation, the computing unit 110 uses the coordinate axis weighting calculation method.

舉例來說,當使用者利用輸入裝置140以移動游標210時,運算單元110係持續計算游標210在顯示器150所顯示的畫面上的游標位置、游標速度、及移動向量。接著,運算單元110可計算游標210之一加權移動向量,並因應於游標210依據加權移動向量之移動以選擇在一特定方向與移動後之游標210具有最短距離之物件以做為目標物件。 For example, when the user uses the input device 140 to move the cursor 210, the computing unit 110 continuously calculates the cursor position, cursor speed, and movement vector of the cursor 210 on the screen displayed on the display 150. Then, the arithmetic unit 110 may calculate a weighted movement vector of the cursor 210, and according to the movement of the cursor 210 according to the weighted movement vector, select an object having the shortest distance from the moved cursor 210 in a specific direction as the target object.

詳細而言,如第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 module rows 201~204 in the graphical user interface 200, the computing unit 110 can set the first weight of the movement vector of the cursor 210 in the horizontal direction to 0. And set the second weight in the vertical direction to 1. In addition, the computing unit 110 may also determine that the specific direction is the horizontal direction according to the arrangement of the module rows 201 to 204. It should be noted that at this time, because of the arrangement of the module rows 201 to 204, the movement of the cursor 210 in the horizontal direction does not affect the selection of the object, so the computing unit 110 may not consider the movement of the cursor 210 in the horizontal direction.

舉例來說,當游標210在移動後位於游標位置P1,例如坐標為(x1,y1),游標210與物件240C之間的垂直距離為0,且物件240C亦是游標210在特定方向(即水平方向)具有最短距離的物件。因此,運算單元110會選擇物件240C以做為目標物件。 For example, when the cursor 210 is located at the cursor position P1 after moving, for example, the coordinates are (x1, y1), the vertical distance between the cursor 210 and the object 240C is 0, and the object 240C is also the cursor 210 in a specific direction (ie horizontal Direction) The object with the shortest distance. Therefore, the computing unit 110 selects the object 240C as the target object.

類似地,當游標210在移動後位於游標位置P2且其坐標為(x2,y2),游標210與物件240B之間的垂直距離為0,且物件240B亦是游標210在特定方向(即水平方向)具有最短距離的物件,意即,運算單元110會選擇物件240B以做為目標物件。當游標210位於游標位置P2,雖然物件240C與游標210之間具有最短距 離,但是運算單元110仍會依據坐標軸加權的計算方式以選擇物件240B做為目標物件。 Similarly, when the cursor 210 is located at the cursor position P2 after moving and its coordinates are (x2, y2), the vertical distance between the cursor 210 and the object 240B is 0, and the object 240B is also the cursor 210 in a specific direction (ie, the horizontal direction). ) The object with the shortest distance, that is, the computing unit 110 will select the object 240B as the target object. When the cursor 210 is located at the cursor position P2, although there is the shortest distance between the object 240C and the cursor 210 However, the computing unit 110 will still select the object 240B as the target object according to the calculation method of the coordinate axis weighting.

需注意的是,第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 cursor 210 in a specific direction, and this calculation method will be applied to the prediction method of selecting the target object in the present invention. In one case, the details will be detailed later.

第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 objects 2201 to 2204 are similar to the object 220 in Figure 2A, and the distance D between the cursor 210 and each slot of the objects 2201 to 2204 (which can be regarded as objects) is greater than a predetermined distance Dt. Each object 2201-2204 has two slots respectively. Among the objects 2201-2204, for example, only the object 2202 has an empty slot 223, the object 2203 has an empty slot 222, and the object 2204 has an empty slot 221. In addition, the right side of the dotted line 250 marked in the graphical user interface 200 means that the distance D between the cursor 210 and each slot of the objects 2201-2204 (all can be regarded as objects) is greater than a predetermined distance Dt, and the left side of the dotted line 250 That is to say, the distance D between the cursor 210 and each slot of the objects 2201-2204 (which can be regarded as objects) is less than or equal to a predetermined distance Dt.

若插槽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 object 2204, and the user had selected the slot 221 corresponding to the object of a computer module on the graphical user interface 200 in the previous operation, and set the computer module The object is inserted into the slot 221. That is, the slot 221 can be called the last selected object. Corresponding to the large moving speed V of the cursor 210 At a speed threshold Vt, the computing unit 110 can use the previously selected object (ie the slot 221) as a reference and refer to the movement vector of the cursor 210 to select the object with the shortest distance as the target object.

舉例來說,當游標210由游標位置P4移動至游標位置P5,且游標210之速度V大於速度閾值Vt時,運算單元110例如會以前次選取物件(即插槽221)做為基準,並參考移動向量P4P5以選擇物件2203中的插槽222做為目標物件。 For example, when the cursor 210 moves from the cursor position P4 to the cursor position P5, and the speed V of the cursor 210 is greater than the speed threshold Vt, the computing unit 110 will, for example, use the previously selected object (ie the slot 221) as a reference and refer to it The movement vector P 4 P 5 selects the slot 222 in the object 2203 as the target object.

接著,游標210由游標位置P5移動至游標位置P6,且游標210之速度V大於速度閾值Vt時,運算單元110例如會以前次選取物件(即插槽221)做為基準,並接著參考移動向量P4P5+P5P6以選擇物件2202中的插槽223做為目標物件。 Next, when the cursor 210 moves from the cursor position P5 to the cursor position P6, and the speed V of the cursor 210 is greater than the speed threshold Vt, the computing unit 110 will, for example, use the previously selected object (ie slot 221) as a reference, and then refer to the movement vector P 4 P 5+ P 5 P 6 takes the slot 223 in the selected object 2202 as the target object.

第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 cursor 210 moves to the left of the dotted line 250, the computing unit 110 selects the target object according to the shortest distance between the cursor 210 and the cursor 210. For example, similar to the method in FIG. 2A, when the cursor 210 moves to the position P7, the object 224 will have the shortest distance from the cursor 210. Therefore, the computing unit 110 selects the object 224 as the target object. When the cursor 210 moves to the position P8, although the distance between the object 222 and the object 223 and the cursor 210 is quite close, the computing unit 110 still calculates the shortest distance between the object 223 and the cursor 210. Therefore, the computing unit 110 selects the object 223 as the target object.

需注意的是,在第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 computing unit 110 can be based on the arrangement of the objects in the graphical user interface. Determine the weight of the movement vector of the cursor in the horizontal direction and the vertical direction, and a specific direction.

在一實施例中,當圖形使用者介面中之各物件是以直行的方式由左而右排列,則運算單元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 computing unit 110 can set the weight of the movement vector of the cursor in the vertical direction to 0, and move the cursor The weight of the vector in the horizontal direction is set to 1, which means that the movement of the cursor in the vertical direction is not considered.

第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 display 150 of the electronic device 100.

在步驟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 object 220 and 230 shown in FIG. 2A has a corresponding slot, and each slot can also be regarded as an object, and the object position of each object can be, for example, the coordinates in the image displayed by the display 150 (x,y) means.

在步驟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 line 250 in the figure indicates that the cursor position and the positions of the objects are greater than the predetermined distance.

在步驟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 cursor 210 moves from the cursor position P4 to the cursor position P5, and the speed V of the cursor 210 is greater than the speed threshold Vt, the computing unit 110 will, for example, use the previously selected object (ie slot 221) as a reference and refer to the movement vector P 4 P5 takes the slot 222 in the selected object 2203 as the target object. Next, when the cursor 210 moves from the cursor position P5 to the cursor position P6, and the speed V of the cursor 210 is greater than the speed threshold Vt, the computing unit 110 will, for example, use the previously selected object (ie slot 221) as a reference, and then refer to the movement vector P 4 P 5+ P 5 P 6 takes the slot 223 in the selected object 2202 as the target object.

第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 computing unit 110 cannot use the previously selected object as a reference to predict the target object. At this time, the computing unit 110 determines the target object based on the coordinate axis weighting method. For example, it can determine the first weight of the weighted movement vector in the horizontal direction and the vertical direction according to the arrangement of the objects in the graphical user interface 200 The second weight can determine the specific direction corresponding to the arrangement of the objects. In the embodiment of FIG. 2B, the specific direction is, for example, the horizontal direction, and when the cursor 210 is located at the cursor position P2 after moving, the vertical distance between the cursor 210 and the object 240B is 0, and the object 240B is the cursor 210 in the specific direction The object with the shortest distance (ie in the horizontal direction) means that the computing unit 110 will select the object 240B as the target object. When the cursor 210 is located at the cursor position P2, although there is the shortest distance between the object 240C and the cursor 210, the computing unit 110 still selects the object 240B as the target object according to the calculation method of the coordinate axis weighting.

第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 input device 140, or control the cursor on the graphical user interface by touch operation through the display 150 (such as a touch screen) Mobile.

在步驟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 arithmetic unit 110 can obtain or calculate the movement speed and movement of the cursor. Motion vector and cursor position. In addition, the graphical user interface also includes a plurality of objects, and the computing unit 110 can obtain the object position corresponding to each object.

在步驟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 line 250 in Figure 2C means that the cursor position and the object positions are both greater than a predetermined distance, and the left half of the dotted line 250 means that the cursor position and the object positions are not both greater than the predetermined distance. distance.

在步驟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 computing unit 110 can use the previously selected object as a reference, and refer to the movement vector of the cursor to quickly calculate the target object to be selected. If the previously selected object does not exist, the target object to be selected needs to be calculated by weighting the coordinate axes according to different object arrangements.

在步驟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 line 250 in Figure 2C represents the position of the cursor and the position of the objects Not all are greater than the predetermined distance. Because the cursor position of the cursor and the distance between each object are quite close, the computing unit 110 still needs to calculate the object with the shortest distance to the cursor as the target object.

在步驟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 computing unit 110 has selected the object with the shortest distance from the cursor, the user may not have moved the cursor near the object to be selected. Therefore, the input device 140 still needs to be used to continue to control the cursor movement.

在步驟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 computing unit 110 can be based on the arrangement of the objects in the graphical user interface. Determine the weight of the movement vector of the cursor in the horizontal direction and the vertical direction, and a specific direction. In another embodiment, when the objects in the graphical user interface are arranged in a straight line from left to right, the computing unit 110 can set the weight of the movement vector of the cursor in the vertical direction to 0, and set the weight of the cursor in the vertical direction. The weight of the movement vector in the horizontal direction is set to 1, which means that the movement of the cursor in the vertical direction is not considered.

在步驟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 cursor 210 is located at the cursor position P2 after moving, the vertical distance between the cursor 210 and the object 240B is 0, and the object 240B is the cursor The object 210 has the shortest distance in a specific direction (ie, the horizontal direction), which means that the computing unit 110 will select the object 240B as the target object. When the cursor 210 is located at the cursor position P2, although there is the shortest distance between the object 240C and the cursor 210, the computing unit 110 still selects the object 240B as the target object according to the calculation method of the coordinate axis weighting.

在步驟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 computing unit 110 may have determined the object to be selected in different steps (such as step S422 or S424), the selected object may not be the object that the user wants to select. At this time, step S428 needs to be executed to save the currently selected object. For example, in the embodiment of FIG. 2C, when the cursor 210 moves from the cursor position P4 to the cursor position P5, but the target object selected by the computing unit 110 at this time is the slot 222, but it is not what the user wants to select object. Therefore, the computing unit 110 retains the selected slot 222, and the process returns to step S402, and allows the user to continue operating the cursor movement to select the desired target object.

詳細而言,本發明中之選取目標物件之預測方法可讓使用者不需將游標在畫面上移動相當長的距離才能選擇到想要的 目標物件,且可依據游標與物件之距離、以及游標之移動速度及移動向量以便於在不同的預測模式(例如最短距離、坐標軸加權、以前次選取物件為基準等等)下進行切換,藉以快速地預測出使用者所要的目標物件。 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 arithmetic unit 110 calculates the movement vector of the cursor, it is also calculated based on the movement vector in the three-dimensional space, and the weighted movement vector can be determined according to the arrangement of the objects in the three-dimensional space. The first weight, the second weight, and the third weight, and the specific direction corresponding to the arrangement of the objects. In addition, the arithmetic unit 110 can calculate the weighted movement vector according to the similar method in the embodiment of the two-dimensional graphical user interface, and determine the object with the shortest three-dimensional distance in a specific direction as the target object.

綜上所述,本發明係提供一種電子裝置及選取目標物件之預測方法,其可藉由使用者操作游標以取得不同因素,如游 標與物件之距離、以及游標之移動速度及移動向量等,以便於在不同的預測模式(例如最短距離、坐標軸加權、以前次選取物件為基準等等)下進行切換,藉以快速地預測出使用者所要的目標物件,進而讓使用者可快速地對目標物件進行相應的操作,以增進使用者體驗。 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)

一種選取目標物件之預測方法,用於一電子裝置,該方法包括: (A)顯示複數個物件及一游標於該電子裝置之一顯示器上; (B)取得該游標之一移動速度及移動向量、一游標位置、以及該等物件之複數個物件位置; (C)當該游標位置與該等物件位置滿足一預定條件時,判斷是否存在一前次選取物件;以及 (D)當該前次選取物件存在且該游標之該移動速度大於一速度閾值時,以該前次選取物件為基準並參考該移動向量後,選擇具有最短距離之該物件做為一目標物件。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 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 previous time When the 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. 如申請專利範圍第1項所述的選取目標物件之預測方法,其中在步驟(C),該預定條件為該游標位置與該等物件位置均大於一預定距離。As described in the first item of the scope of patent application, the prediction method for selecting a target object, wherein in step (C), the predetermined condition is that the cursor position and the object positions are both greater than a predetermined distance. 如申請專利範圍第1項所述的選取目標物件之預測方法,其中在步驟(C)後更包括: 當該前次選取物件不存在,計算該游標之一加權移動向量;以及 因應於該游標依據該加權移動向量移動,選擇在一特定方向與移動後之該游標具有最短距離之該物件做為該目標物件。For example, the prediction method for selecting a target object as described in item 1 of the scope of patent application, which further includes after step (C): when the previously selected object does not exist, calculating a weighted movement vector of the cursor; and in response to the cursor Move according to the weighted movement vector, and select the object with the shortest distance in a specific direction from the cursor after the movement as the target object. 如申請專利範圍第3項所述的選取目標物件之預測方法,其中計算該游標之一加權移動向量之步驟包括: 依據該等物件之排列方式以分別決定該加權移動向量在水平方向之一第一權重及在垂直方向之一第二權重、及該特定方向;以及 依據該第一權重及該第二權重以計算出該游標之該加權移動向量。For example, in the prediction method for selecting a target object described in item 3 of the scope of patent application, the step of calculating a weighted movement vector of the cursor includes: determining the weighted movement vector in the horizontal direction according to the arrangement of the objects. A weight and a second weight in the vertical direction, and the specific direction; and calculate the weighted movement vector of the cursor according to the first weight and the second weight. 如申請專利範圍第1項所述的選取目標物件之預測方法,其中在步驟(C)後更包括: 當該前次選取物件存在且該游標之該移動速度未大於該速度閾值時,以該前次選取物件做為該目標物件。As described in item 1 of the scope of patent application, the method for predicting the selected target object further includes after step (C): when the previously selected object exists and the moving speed of the cursor is not greater than the speed threshold, using the Select the object as the target object last time. 一種電子裝置,包括: 一顯示器; 一儲存裝置,用以儲存一應用程式;以及 一處理器,用以執行該應用程式以執行下列步驟: (A)在該顯示器上顯示複數個物件及一游標; (B) 取得該游標之一移動速度及移動向量、一游標位置、以及該等物件之複數個物件位置; (C) 當該游標位置與該等物件位置滿足一預定條件時,判斷是否存在一前次選取物件;以及 (D)當該前次選取物件存在且該游標之該移動速度大於一速度閾值時,以該前次選取物件為基準並參考該移動向量後,選擇具有最短距離之該物件做為一目標物件。An electronic device comprising: 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 objects and a cursor on the display (B) Obtain a movement speed and movement vector of the cursor, a cursor position, and multiple object positions of the objects; (C) When the cursor position and the object positions meet a predetermined condition, judge 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, after taking the previously selected object as a reference and referring to the moving vector, select the shortest distance The object is used as a target object. 如申請專利範圍第6項所述之電子裝置,其中在步驟(C),該預定條件為該游標位置與該等物件位置均大於一預定距離。For the electronic device described in item 6 of the scope of patent application, in step (C), the predetermined condition is that the cursor position and the object positions are both greater than a predetermined distance. 如申請專利範圍第6項所述之電子裝置,其中在步驟(C)後,當該前次選取物件不存在,該處理器係計算該游標之一加權移動向量,並因應於該游標依據該加權移動向量移動,選擇在一特定方向與移動後之該游標具有最短距離之該物件做為該目標物件。For the electronic device described in item 6 of the scope of patent application, after step (C), when the previously selected object does not exist, the processor calculates a weighted movement vector of the cursor, and responds to the cursor according to the Weighted movement vector movement, selecting the object with the shortest distance in a specific direction from the cursor after the movement as the target object. 如申請專利範圍第8項所述之電子裝置,其中在計算該游標與各物件之間之一加權移動向量時,該處理器係依據該等物件之排列方式以分別決定該加權移動向量在水平方向之一第一權重及在垂直方向之一第二權重、及該特定方向,並該第一權重及該第二權重以計算出該游標之該加權移動向量。For example, in the electronic device described in item 8 of the scope of patent application, when calculating a weighted movement vector between the cursor and each object, the processor determines the weighted movement vector in the horizontal according to the arrangement of the objects. A first weight in a direction and a second weight in a vertical direction, and the specific direction, and the first weight and the second weight are used to calculate the weighted movement vector of the cursor. 如申請專利範圍第6項所述之電子裝置,其中在步驟(C)後,當該前次選取物件存在且該游標之該移動速度未大於該速度閾值時,該處理器係以該前次選取物件做為該目標物件。For the electronic device described in item 6 of the scope of patent application, after step (C), when the previously selected object exists and the moving speed of the cursor is not greater than the speed threshold, the processor uses the previous Select an object as the target object. 一種選取目標物件之預測方法,用於一電子裝置,該方法包括: (A)顯示複數個物件及一游標於該電子裝置之一顯示器上; (B)取得該游標之一移動速度及移動向量、一游標位置、以及該等物件之複數個物件位置; (C)當該游標位置與該等物件位置滿足一預定條件時,判斷是否存在一前次選取物件;以及 (D)當該前次選取物件不存在,計算該游標之一加權移動向量,並因應於該游標依據該加權移動向量移動,選擇在一特定方向與移動後之該游標具有最短距離之該物件做為該目標物件。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 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 previous time If the 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 object with the shortest distance in a specific direction from the cursor after movement as the target object. 如申請專利範圍第11項所述的選取目標物件之預測方法,其中在步驟(C),該預定條件為該游標位置與該等物件位置均大於一預定距離。According to the prediction method for selecting a target object as described in item 11 of the scope of patent application, in step (C), the predetermined condition is that the cursor position and the object positions are both greater than a predetermined distance. 如申請專利範圍第11項所述的選取目標物件之預測方法,其中計算該游標之一加權移動向量之步驟包括: 依據該等物件之排列方式以分別決定該加權移動向量在水平方向之一第一權重及在垂直方向之一第二權重、及該特定方向;以及 依據該第一權重及該第二權重以計算出該游標之該加權移動向量。For example, in the prediction method for selecting a target object as described in item 11 of the scope of patent application, the step of calculating a weighted movement vector of the cursor includes: determining the weighted movement vector in the horizontal direction according to the arrangement of the objects A weight and a second weight in the vertical direction, and the specific direction; and calculate the weighted movement vector of the cursor according to the first weight and the second weight.
TW108107178A 2019-03-05 2019-03-05 Electronic device and prediction method for selecting target object TWI708167B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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