TWI879573B - Method and electronic device for dynamically adjusting cursor display - Google Patents
Method and electronic device for dynamically adjusting cursor display Download PDFInfo
- Publication number
- TWI879573B TWI879573B TW113118649A TW113118649A TWI879573B TW I879573 B TWI879573 B TW I879573B TW 113118649 A TW113118649 A TW 113118649A TW 113118649 A TW113118649 A TW 113118649A TW I879573 B TWI879573 B TW I879573B
- Authority
- TW
- Taiwan
- Prior art keywords
- cursor
- window
- display
- trajectory
- desktop
- Prior art date
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
Description
本揭露是有關於依據顯示資訊以及游標軌跡自動調整游標顯示的方法與電子裝置,且特別是有關於一種動態調整游標顯示的方法與電子裝置。The present disclosure relates to a method and an electronic device for automatically adjusting a cursor display based on display information and a cursor track, and more particularly to a method and an electronic device for dynamically adjusting a cursor display.
使用者在使用電腦時,經常會一時找不到游標位置,尤其是使用較小尺寸的螢幕且搭配高顯示器解析度的時候。而現有的游標設定必須使用者手動調整而無法即時令使用者得知游標位置,以及根據瀏覽內容進行調整。並且,當桌面顏色與游標的顏色相近時,亦會造成使用者找不到游標位置。因此,如何自動地偵測使用者是否在找尋游標以及自動地根據桌面資訊及視窗資訊調整游標的顯示設定已成為本領域人員亟欲發展的方向。When using a computer, users often have trouble finding the cursor position, especially when using a smaller screen with a high display resolution. The existing cursor settings must be adjusted manually by the user and cannot immediately let the user know the cursor position and adjust it according to the browsing content. In addition, when the color of the desktop is similar to the color of the cursor, the user will also be unable to find the cursor position. Therefore, how to automatically detect whether the user is looking for the cursor and automatically adjust the cursor display settings according to the desktop information and window information has become a direction that people in this field are eager to develop.
有鑑於此,本揭露提出一種動態調整游標顯示的方法與電子裝置,其可解決上述技術問題。In view of this, the present disclosure proposes a method and an electronic device for dynamically adjusting cursor display, which can solve the above technical problems.
本揭露實施例提供一種動態調整游標顯示的方法,適用於耦接顯示器以及輸入裝置的電子裝置,所述方法包括下列步驟。收集顯示於顯示器上的游標的移動軌跡。從移動軌跡中篩選出位移量大於閾值的移動軌跡,並且將移動軌跡作為游標軌跡數據。判斷游標軌跡數據是否包括尋找游標軌跡數據。響應於游標軌跡數據包括尋找游標軌跡數據,依據電子裝置的顯示資訊對應地調整游標的顯示設定。The disclosed embodiment provides a method for dynamically adjusting cursor display, which is applicable to an electronic device coupled to a display and an input device, and the method includes the following steps. Collect the movement trajectory of the cursor displayed on the display. Filter the movement trajectory with a displacement greater than a threshold from the movement trajectory, and use the movement trajectory as cursor trajectory data. Determine whether the cursor trajectory data includes searching for cursor trajectory data. In response to the cursor trajectory data including searching for cursor trajectory data, adjust the display setting of the cursor accordingly according to the display information of the electronic device.
本揭露實施例提供一種電子裝置,其包括儲存器以及處理器。處理器耦接顯示器以及輸入裝置,並執行儲存器所儲存的多個模組。游標訊號收集模組收集顯示於該顯示器上的游標的移動軌跡。軌跡監控模組從移動軌跡中篩選出位移量大於閾值的移動軌跡,並且將移動軌跡作為游標軌跡數據。軌跡判斷模組判斷游標軌跡數據是否包括尋找游標軌跡數據。響應於游標軌跡數據包括尋找游標軌跡數據,游標顯示調整模組依據電子裝置的顯示資訊對應地調整游標的顯示設定,其中顯示資訊相關於桌面顏色、視窗顏色、視窗資訊、視窗大小、桌面大小以及視窗控制項資訊。The disclosed embodiment provides an electronic device, which includes a memory and a processor. The processor is coupled to a display and an input device, and executes multiple modules stored in the memory. The cursor signal collection module collects the movement trajectory of the cursor displayed on the display. The trajectory monitoring module filters out the movement trajectory with a displacement greater than a threshold from the movement trajectory, and uses the movement trajectory as the cursor trajectory data. The trajectory judgment module judges whether the cursor trajectory data includes the search cursor trajectory data. Responding to the cursor track data includes searching for the cursor track data, and the cursor display adjustment module adjusts the display setting of the cursor according to the display information of the electronic device, wherein the display information is related to the desktop color, the window color, the window information, the window size, the desktop size and the window control information.
基於上述,本揭露實施例的動態調整游標顯示的方法與電子裝置透過可藉由分析游標的移動軌跡,進而判斷使用者是否在找尋顯示器上的游標位置。並且,基於桌面資訊與視窗資訊,將游標設定調整成適合的大小以及/或適合的顏色。如此一來,動態調整游標顯示的方法與電子裝置可自動判斷出游標當前的移動軌跡為找尋游標位置,進而透過調整游標顯示設定以令使用者可快速找到游標位置以提高使用上的便利性。Based on the above, the method and electronic device for dynamically adjusting the cursor display of the disclosed embodiment can determine whether the user is looking for the cursor position on the display by analyzing the movement track of the cursor. And, based on the desktop information and the window information, the cursor setting is adjusted to a suitable size and/or a suitable color. In this way, the method and electronic device for dynamically adjusting the cursor display can automatically determine that the current movement track of the cursor is to find the cursor position, and then adjust the cursor display setting so that the user can quickly find the cursor position to improve the convenience of use.
為讓本揭露的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above features and advantages of the present disclosure more clearly understood, embodiments are specifically cited below and described in detail with reference to the accompanying drawings.
本揭露的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本揭露的一部份,並未揭示所有本揭露的可實施方式。更確切的說,這些實施例只是本揭露的專利申請範圍中的方法與裝置的範例。Some embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. When the same element symbols appear in different drawings, they will be regarded as the same or similar elements. These embodiments are only part of the present disclosure and do not disclose all possible implementations of the present disclosure. More precisely, these embodiments are only examples of methods and devices within the scope of the patent application of the present disclosure.
圖1是依照本揭露一實施例的電子裝置的方塊圖。電子裝置100可包括輸入裝置、以及電子裝置,其中電子裝置可包括顯示器130、處理器110以及儲存器120。在一實施例中,電子裝置100為具有基本輸入輸出系統(BIOS)的一電腦裝置,例如是筆記型電腦或桌上型電腦等等。在一實施例中,電子裝置的處理器110耦接顯示器130以及儲存器120,並且電子裝置耦接輸入裝置。在另一實施例中,電子裝置包括處理器110以及儲存器120,電子裝置耦接輸入裝置以及顯示器130。FIG. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 100 may include an input device and an electronic device, wherein the electronic device may include a display 130, a processor 110, and a memory 120. In one embodiment, the electronic device 100 is a computer device having a basic input and output system (BIOS), such as a laptop or a desktop computer. In one embodiment, the processor 110 of the electronic device is coupled to the display 130 and the memory 120, and the electronic device is coupled to the input device. In another embodiment, the electronic device includes the processor 110 and the memory 120, and the electronic device is coupled to the input device and the display 130.
電子裝置100的儲存器120可以是系統記憶體,此系統記憶體例如是任意型式的揮發性隨機存取記憶體(random access memory,RAM)。輸入裝置用以接收使用者輸入的使用者命令/指令。輸入裝置130可以是鍵盤、滑鼠、或觸控裝置等等,本揭露對此不限制。在一實施例中,電子裝置100是包括處理器110、儲存器120以及顯示器130的電腦系統。The memory 120 of the electronic device 100 may be a system memory, such as any type of volatile random access memory (RAM). The input device is used to receive user commands/instructions input by the user. The input device 130 may be a keyboard, a mouse, or a touch device, etc., and the present disclosure is not limited thereto. In one embodiment, the electronic device 100 is a computer system including a processor 110, a memory 120, and a display 130.
處理器110例如是中央處理單元(central processing unit,CPU)、應用處理器(application processor,AP),或是其他可程式化之一般用途或特殊用途的微處理器(microprocessor)、數位訊號處理器(digital signal processor,DSP)或其他類似裝置、積體電路及其組合。處理器110可存取並執行記錄在基本輸入輸出系統裝置110與系統記憶體中的程式碼、代碼或指令,以實現本揭露實施例中的動態調整游標顯示的方法。The processor 110 is, for example, a central processing unit (CPU), an application processor (AP), or other programmable general-purpose or special-purpose microprocessor, digital signal processor (DSP) or other similar devices, integrated circuits and combinations thereof. The processor 110 can access and execute program codes, codes or instructions recorded in the basic input and output system device 110 and the system memory to implement the method of dynamically adjusting the cursor display in the embodiment of the present disclosure.
顯示器130用以顯示資訊、設定介面與操作介面。於不同實施例中,上述顯示器130可以是液晶顯示器(Liquid Crystal Display,LCD)、發光二極體(Light Emitting Diode,LED)顯示器、有機發光二極體(Organic Light Emitting Diode,OLED)等各類型的顯示器,本揭露對此不限制。The display 130 is used to display information, setting interface and operation interface. In different embodiments, the display 130 can be a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, etc., and the present disclosure is not limited thereto.
圖2是依照本揭露一實施例的動態調整游標顯示的方法的流程圖,而圖2的方法流程可以由圖1的電子裝置100實現。請參照圖1至圖2,以下即搭配圖1中電子裝置100的各項元件,說明本實施例的動態調整游標顯示的方法的步驟。在本實施例中,儲存器120存儲有多個模組,處理器110進而執行多個模組以執行各類運算。如圖1所示,多個模組包括游標訊號收集模組121、軌跡監控模組122、軌跡判斷模組123、游標顯示調整模組124、桌面偵測模組125以及視窗資訊收集模組126。FIG. 2 is a flow chart of a method for dynamically adjusting the cursor display according to an embodiment of the present disclosure, and the method flow of FIG. 2 can be implemented by the electronic device 100 of FIG. 1 . Please refer to FIG. 1 to FIG. 2 , and the steps of the method for dynamically adjusting the cursor display of the present embodiment are described below in conjunction with the various components of the electronic device 100 in FIG. 1 . In the present embodiment, the memory 120 stores a plurality of modules, and the processor 110 further executes the plurality of modules to perform various operations. As shown in FIG. 1 , the plurality of modules include a cursor signal collection module 121, a track monitoring module 122, a track judgment module 123, a cursor display adjustment module 124, a desktop detection module 125, and a window information collection module 126.
於步驟S210,處理器110執行游標訊號收集模組121以收集顯示於顯示器130上的游標的移動軌跡。舉例來說,使用者在操控電子裝置100所通訊連接或電性連接的輸入裝置(例如滑鼠),以令顯示於顯示器130上的游標移動。如此,游標訊號收集模組121收集顯示於顯示器130畫面中的游標的移動軌跡。在一實施例中,游標訊號收集模組121收集游標的至少一游標事件。游標事件是移動事件、按鍵事件、滾輪滾動事件、以及移出視窗事件的至少其中之一,並且游標訊號收集模組121記錄游標事件的位置座標以產生移動軌跡。In step S210, the processor 110 executes the cursor signal collection module 121 to collect the movement track of the cursor displayed on the display 130. For example, the user controls the input device (such as a mouse) that is communicatively connected or electrically connected to the electronic device 100 to move the cursor displayed on the display 130. In this way, the cursor signal collection module 121 collects the movement track of the cursor displayed on the screen of the display 130. In one embodiment, the cursor signal collection module 121 collects at least one cursor event of the cursor. The cursor event is at least one of a movement event, a key event, a scroll wheel event, and an out-of-window event, and the cursor signal collection module 121 records the position coordinates of the cursor event to generate a movement track.
於步驟S220,處理器110執行軌跡監控模組122,進而從移動軌跡中篩選出位移量大於一閾值的移動軌跡。對應於位移量的閾值介於1英吋至10英吋,在另一實施例中對應位移量的閾值是介於5像素(pixel)至1000個像素。舉例來說,對應位移量的閾值為2英寸或是為200個像素,本案不應以此為限。如此設置,軌跡監控模組122可篩選出每時間單位(例如2秒、5秒等)的位移量大於閾值的移動軌跡。In step S220, the processor 110 executes the trajectory monitoring module 122, and further selects the moving trajectory whose displacement is greater than a threshold from the moving trajectory. The threshold corresponding to the displacement is between 1 inch and 10 inches. In another embodiment, the threshold corresponding to the displacement is between 5 pixels and 1000 pixels. For example, the threshold corresponding to the displacement is 2 inches or 200 pixels, but the present case should not be limited to this. In this way, the trajectory monitoring module 122 can select the moving trajectory whose displacement per time unit (e.g., 2 seconds, 5 seconds, etc.) is greater than the threshold.
在一實施例中,可透過以下公式(1)計算游標移動軌跡的位移量: V n= ((X n- X n-1)^2 + (Y n- Y n-1)^2)^0.5 ……(1) In one embodiment, the displacement of the cursor movement trajectory can be calculated by the following formula (1): V n = ((X n - X n-1 )^2 + (Y n - Y n-1 )^2)^0.5 ……(1)
V n:游標的位移量,X n:取樣點n的滑鼠X軸位置,Y n:取樣點n的滑鼠Y軸位置,X n-1:取樣點n的前一時間點n-1的滑鼠X軸位置,Y n-1:取樣點n的前一時間點n-1的滑鼠Y軸位置。 Vn : cursor displacement, Xn : mouse X-axis position at sampling point n, Yn : mouse Y-axis position at sampling point n, Xn -1 : mouse X-axis position at time point n-1 before sampling point n, Yn -1 : mouse Y-axis position at time point n-1 before sampling point n.
於步驟S230,軌跡監控模組122將位移量大於閾值的移動軌跡作為游標軌跡數據,以令後續處理器110進一步的運算與判斷。於步驟S240,處理器110執行軌跡判斷模組123以判斷游標軌跡數據是否包括尋找游標軌跡數據。在一實施例中,軌跡判斷模組123根據儲存在儲存器120中多個尋找游標軌跡的樣本數據,以比對在步驟S230中獲得的游標軌跡數據,進而判斷這游標軌跡數據是否包括尋找游標軌跡數據。換言之,軌跡判斷模組123透過比對預先儲存的尋找游標軌跡的樣本以及游標的當前移動軌跡,進而判斷當前移動軌跡是否為尋找游標軌跡的數據。In step S230, the track monitoring module 122 uses the moving track with a displacement greater than the threshold as the cursor track data, so that the subsequent processor 110 can further calculate and judge. In step S240, the processor 110 executes the track judgment module 123 to judge whether the cursor track data includes the search cursor track data. In one embodiment, the track judgment module 123 compares the cursor track data obtained in step S230 with the sample data of the search cursor track stored in the memory 120, and further judges whether the cursor track data includes the search cursor track data. In other words, the track determination module 123 determines whether the current moving track is the data of the cursor track by comparing the pre-stored sample of the cursor track and the current moving track of the cursor.
於步驟S250,處理器110執行游標顯示調整模組124以響應於游標軌跡數據包括尋找游標軌跡數據,依據電子裝置100的顯示資訊對應地調整游標的顯示設定。值得注意的是,顯示資訊相關於桌面顏色、視窗顏色、視窗資訊、視窗大小、桌面大小以及視窗控制項資訊的至少其中之一。在一實施例中,游標顯示調整模組124根據螢幕解析度預設值、顯示器寬度、預設的游標尺寸上限值、顯示器高度以及控制項權重以計算出游標適合大小。控制項權重相關於對應游標當前位置的視窗控制項資訊的預設權重值。並且,游標適合大小不大於游標尺寸上限值。如此設置,游標顯示調整模組124根據游標適合大小調整游標的大小以及/或顏色。在一實施例中,游標顯示調整模組124可透過以下公式(2)至公式(4)計算出游標適合大小: R = (W a* (W st* H st) / A s+ W d) / (W a+ W d) if the mouse is on a clickable control ……(2) R = (W st* H st) / A sif the mouse is not on a clickable control ……(3) S p= Min (S pth, R * S) ……(4) In step S250, the processor 110 executes the cursor display adjustment module 124 to respond to the cursor track data, including searching for the cursor track data, and correspondingly adjusting the display settings of the cursor according to the display information of the electronic device 100. It is worth noting that the display information is related to at least one of the desktop color, window color, window information, window size, desktop size, and window control information. In one embodiment, the cursor display adjustment module 124 calculates the cursor suitable size according to the screen resolution default value, display width, preset cursor size upper limit value, display height, and control weight. The control weight is related to the preset weight value of the window control information corresponding to the current position of the cursor. In addition, the cursor suitable size is not greater than the cursor size upper limit value. In this way, the cursor display adjustment module 124 adjusts the size and/or color of the cursor according to the cursor suitable size. In one embodiment, the cursor display adjustment module 124 can calculate the cursor suitable size through the following formulas (2) to (4): R = (W a * (W st * H st ) / As + W d ) / (W a + W d ) if the mouse is on a clickable control ……(2) R = (W st * H st ) / As if the mouse is not on a clickable control ……(3) Sp = Min (S pth , R * S) ……(4)
S p:游標適合大小, W a:螢幕解析度權重,W d:可點擊控制項權重,R:調整比例值, W st:取樣點t時桌面寬度(即顯示器130顯示面板的寬度),H st:取樣點t時桌面高度(即顯示器130顯示面板的高度),A s:一般螢幕解析度大小預設值(例如為1920x1080),S pth:滑鼠指標大小最大值(即上限值),S:預設滑鼠指標大小。在本案中所提及的權重為預先設置的數字,例如為介於0到5之間的正數。舉例來說,W a為0.3、W d為0.5,本案不應以此為限。可點擊控制項為當擷取畫面時游標所在的控制項屬於可點擊的控制項,例如按鍵、確定鍵、或是儲存鍵等。 Sp : cursor fit size, Wa : screen resolution weight, Wd : clickable control weight, R: adjustment ratio value, Wst : desktop width at sampling point t (i.e., width of display panel of display 130), Hst : desktop height at sampling point t (i.e., height of display panel of display 130), As : general screen resolution size default value (e.g., 1920x1080), Spth : maximum value of mouse pointer size (i.e., upper limit value), S: default mouse pointer size. The weights mentioned in this case are preset numbers, such as positive numbers between 0 and 5. For example, Wa is 0.3 and Wd is 0.5, but this case should not be limited to this. The clickable control item is a clickable control item where the cursor is located when capturing the image, such as a button, an OK key, or a Save key.
如此設置,動態調整游標顯示的方法以及電子裝置100可藉由分析移動軌跡,進而判斷使用者是否在找尋顯示器130上的游標。當電子裝置100判斷出使用者在尋找游標時,處理器110執行游標顯示調整模組124以調整游標的尺寸以及/或是顏色以令使用者可快速找到游標位置。在另一實施例中,顯示設定包括顯示特效。如此一來,當判斷出使用者在找尋游標時,游標顯示調整模組124啟動預設游標特效(例如指引線、聲音效果或是放大鏡效果等)。With such a configuration, the method for dynamically adjusting the cursor display and the electronic device 100 can determine whether the user is looking for the cursor on the display 130 by analyzing the movement trajectory. When the electronic device 100 determines that the user is looking for the cursor, the processor 110 executes the cursor display adjustment module 124 to adjust the size and/or color of the cursor so that the user can quickly find the cursor position. In another embodiment, the display setting includes display effects. In this way, when it is determined that the user is looking for the cursor, the cursor display adjustment module 124 activates a preset cursor effect (such as a guide line, a sound effect, or a magnifying glass effect, etc.).
圖3是依照本揭露一實施例的擷取顯示畫面以計算出游標顏色的流程圖。圖4是依照本揭露一實施例的多個模組的流程示意圖。如圖3所示,處理器110更用以執行步驟S310至步驟S350。於步驟S310,處理器110執行桌面偵測模組125以偵測顯示器130是否有顯示切換事件。顯示切換事件為切換視窗事件、開啟新視窗事件以及桌面大範圍變化事件的其中之一。切換視窗事件為當前使用視窗切換至另一個視窗。開啟新視窗事件為使用者透過輸入裝置在顯示器130上開啟新的視窗。桌面大範圍變化事件為桌面有超過一比例值(例如佔整個桌面的10%、20%或30%)的變化,例如使用者拖曳視窗。FIG3 is a flow chart of capturing a display screen to calculate a cursor color according to an embodiment of the present disclosure. FIG4 is a flow chart of multiple modules according to an embodiment of the present disclosure. As shown in FIG3, the processor 110 is further used to execute steps S310 to S350. In step S310, the processor 110 executes the desktop detection module 125 to detect whether the display 130 has a display switching event. The display switching event is one of a window switching event, a new window opening event, and a large-scale desktop change event. The window switching event is the current window being switched to another window. The new window opening event is the user opening a new window on the display 130 through an input device. A large-scale desktop change event refers to a desktop change that exceeds a certain proportion (such as 10%, 20%, or 30% of the entire desktop), such as a user dragging a window.
在一實施例中,比例值相關於事件視窗的視窗寬度、視窗高度以及視窗顯示高度、視窗顯示寬度以及桌面高度、桌面寬度以及視窗的位置座標。在一實施例中,可以透過以下公式(5)至公式(7)以計算出視窗佔桌面面積的比例值: W kmt= Min(W kt, W st- X kt) if X kt>= 0 W kmt= Min(W kt, W st+ X kt) if X kt< 0……(5) H kmt= Min(H kt, H st- Y kt) if Y kt>= 0 H kmt= Min(H kt, H st+ Y kt) if Y kt< 0……(6) A kt= W kmt* H kmt……(7) In one embodiment, the ratio value is related to the window width, window height and window display height of the event window, the window display width and the desktop height, the desktop width and the position coordinates of the window. In one embodiment, the ratio of the window to the desktop area can be calculated by the following formulas (5) to (7): W kmt = Min(W kt , W st - X kt ) if X kt >= 0 W kmt = Min(W kt , W st + X kt ) if X kt < 0……(5) H kmt = Min(H kt , H st - Y kt ) if Y kt >= 0 H kmt = Min(H kt , H st + Y kt ) if Y kt < 0……(6) A kt = W kmt * H kmt ……(7)
A kt:第k個視窗在t個取樣點時佔桌面面積的比例值,k、t為正整數,W kmt:取樣點t時視窗k的視窗可視寬度,H kmt:取樣點t時視窗k的視窗可視高度,W kt:取樣點t時視窗k的視窗寬度,H kt:取樣點t時視窗k的視窗高度,W st:取樣點t時桌面寬度,H st:取樣點t時桌面高度,X kt:取樣點t時視窗k的X軸座標,Y kt:取樣點t時視窗k的Y軸座標。 A kt : The ratio of the kth window to the desktop area at the tth sampling point, k and t are positive integers, W kmt : The visible window width of window k at sampling point t, H kmt : The visible window height of window k at sampling point t, W kt : The window width of window k at sampling point t, H kt : The window height of window k at sampling point t, W st : The desktop width at sampling point t, H st : The desktop height at sampling point t, X kt : The X-axis coordinate of window k at sampling point t, Y kt : The Y-axis coordinate of window k at sampling point t.
於步驟S320,桌面偵測模組125響應於偵測到顯示切換事件且比例值大於閾值,桌面偵測模組125擷取當前顯示畫面。換言之,桌面偵測模組125響應於偵測到顯示切換事件,即桌面偵測模組125偵測到顯示器130有顯示切換事件並且桌面面積變化超過一比例值,則擷取顯示器130則擷取當前顯示畫面(即當前桌面畫面)。In step S320, in response to detecting a display switching event and the ratio value being greater than a threshold, the desktop detection module 125 captures the current display image. In other words, in response to detecting a display switching event, i.e., the desktop detection module 125 detects that the display 130 has a display switching event and the desktop area changes by more than a ratio value, the display 130 captures the current display image (i.e., the current desktop image).
於步驟S330,桌面偵測模組125根據當前顯示畫面計算出當前顯示畫面中每個像素的平均顏色值以作為桌面參考顏色。舉例來說,桌面偵測模組125透過讀取儲存器120中緩存資料以獲得顯示器130當前顯示畫面的每一像素或每一面積單位(例如9個像素、每一平方英寸等)的顏色加總後的平均值。In step S330, the desktop detection module 125 calculates the average color value of each pixel in the current display screen as the desktop reference color. For example, the desktop detection module 125 reads the buffer data in the memory 120 to obtain the average value of the color of each pixel or each area unit (e.g., 9 pixels, each square inch, etc.) of the current display screen of the display 130.
於步驟S340,處理器110執行視窗資訊收集模組126以依據平均顏色值以及對應當前游標位置的視窗畫面計算出視窗平均顏色值,接著視窗資訊收集模組126將視窗平均顏色值作為視窗參考顏色。In step S340, the processor 110 executes the window information collection module 126 to calculate the window average color value according to the average color value and the window image corresponding to the current cursor position, and then the window information collection module 126 uses the window average color value as the window reference color.
於步驟S350,游標顯示調整模組124對桌面參考顏色以及視窗參考顏色執行補色運算以獲得游標顏色,進而根據游標顏色調整游標的該顯示設定。 C p= Complement((W d* C d+ W w* C w+ W c* C xyw) / (W d+ W w+ W c)) ……(8) In step S350, the cursor display adjustment module 124 performs a color complement operation on the desktop reference color and the window reference color to obtain the cursor color, and then adjusts the display setting of the cursor according to the cursor color. Cp = Complement(( Wd * Cd + Ww * Cw + Wc * Cxyw ) / ( Wd + Ww + Wc )) ... (8)
C p:游標顏色,W d:桌面參考顏色值的權重,W w:視窗參考顏色值的權重,W c:游標當前位置的顏色值的權重,Complement():取補數函式,C xyd:像素點(x, y)的顏色,C w:視窗參考顏色,C d:桌面參考顏色。 C p : cursor color, W d : weight of desktop reference color value, W w : weight of window reference color value, W c : weight of the color value at the current cursor position, Complement() : complement function, C xyd : color of pixel (x, y), C w : window reference color, C d : desktop reference color.
如圖4所示,每當桌面偵測模組125偵測到有顯示切換事件時,並且顯示切換事件的桌面切換比例值大於閾值(例如20平方英寸、16平方英寸或示64平方英寸),則視窗資訊收集模組126將桌面參考顏色以及視窗參考顏色值輸入至游標顯示調整模組124。如此設置,軌跡判斷模組123在判斷出游標有尋找游標軌跡之時,游標顯示調整模組124可直接根據桌面參考顏色以及視窗參考顏色計算出游標顏色,進而即時地調整游標的顯示設定(例如顏色)。換言之,透過桌面偵測模組125偵測顯示切換事件的設定,可以避免處理器110在使用者找尋游標時,才一併計算游標適合顏色(即游標顏色)以及游標適合大小而導致短時間內的運算負載過大以及運算效率低的問題。換言之,透過桌面偵測模組125以及軌跡監控模組122分別地偵測/監控是否有顯示切換事件以及尋找游標軌跡,進而達到分散運算負載的效果而提高處理器110的效率以及整體電子裝置100的操作順暢度。As shown in FIG4 , whenever the desktop detection module 125 detects a display switching event, and the desktop switching ratio value of the display switching event is greater than a threshold value (e.g., 20 square inches, 16 square inches, or 64 square inches), the window information collection module 126 inputs the desktop reference color and the window reference color value to the cursor display adjustment module 124. In this way, when the track determination module 123 determines that the cursor has found a cursor track, the cursor display adjustment module 124 can directly calculate the cursor color according to the desktop reference color and the window reference color, and then adjust the display settings (e.g., color) of the cursor in real time. In other words, by setting the display switching event detection through the desktop detection module 125, it is possible to avoid the problem that the processor 110 calculates the cursor suitable color (i.e., cursor color) and the cursor suitable size when the user searches for the cursor, thereby causing excessive computing load and low computing efficiency in a short period of time. In other words, by respectively detecting/monitoring whether there is a display switching event and searching for the cursor track through the desktop detection module 125 and the track monitoring module 122, the computing load is dispersed to improve the efficiency of the processor 110 and the smooth operation of the overall electronic device 100.
圖5是依照本揭露一實施例的根據視窗資訊獲得加權視窗顏色值的流程圖。請參照圖5,處理器110更用以執行步驟S410至步驟S430。於步驟S410,根據每個像素的平均顏色值以及桌面加權係數獲得加權顏色值。在一實施例中,處理器110取得桌面每個像素的顏色值(Rxy, Gxy, Bxy),並且透過以下公式(9)以及公式(10)計算出桌面的加權顏色值: ……(9) ……(10) FIG5 is a flow chart of obtaining a weighted window color value according to window information according to an embodiment of the present disclosure. Referring to FIG5, the processor 110 is further used to execute steps S410 to S430. In step S410, a weighted color value is obtained according to the average color value of each pixel and the desktop weighting coefficient. In one embodiment, the processor 110 obtains the color value (Rxy, Gxy, Bxy) of each pixel of the desktop, and calculates the weighted color value of the desktop through the following formula (9) and formula (10): ……(9) ……(10)
C d:桌面加權平均顏色值,C xy:桌面(x, y)像素點的原始顏色值,x、y為顯示器130上每點的座標位置,R xy、G xy或B xy,W st:取樣點t時桌面寬度,H st:取樣點t時桌面高度,Z:桌面加權調整係數。當Z值愈大,歸類為邊緣部分的面積越大,通常取Z =< 1,Sigmoid():S函數(sigmoid function)。C xyd:像素點(x, y)的桌面加權顏色值。加權顏色值相關於平均顏色值透過加權係數提高桌面中央區域的比重的顏色值。如此設置,可根據使用者大機率的游標操作會集中在桌面中央,而非桌面邊緣部分。因此將邊緣部分像素的影響權重降低,進而提高游標的可視性。 C d : desktop weighted average color value, C xy : original color value of the desktop pixel (x, y), x, y are the coordinates of each point on the display 130, R xy , G xy or B xy , W st : desktop width at sampling point t, H st : desktop height at sampling point t, Z: desktop weighted adjustment coefficient. The larger the Z value, the larger the area classified as the edge part, usually Z = < 1, Sigmoid(): S function (sigmoid function). C xyd : desktop weighted color value of pixel (x, y). The weighted color value is related to the average color value through the weighting coefficient to increase the color value of the central area of the desktop. In this way, it can be set according to the user's high probability that the cursor operation will be concentrated in the center of the desktop rather than the edge of the desktop. Therefore, the influence weight of some edge pixels is reduced, thereby improving the visibility of the cursor.
於步驟S420,處理器110執行視窗資訊收集模組126根據視窗平均顏色值以及視窗畫面的視窗標題、視窗程序以及視窗控制項資訊獲得加權視窗顏色值。視窗資訊包括視窗標題以及視窗程序。加權視窗顏色值相關於根據視窗控制項資訊以及對應的控制項加權係數所獲得的顏色值。處理器110可透過以下公式(11)至公式(13)計算出加權視窗顏色值,公式(11)用於計算待測座標(x,y)上的視窗無視窗子控制項的加權視窗顏色值,公式(12)用於計算待測座標(x,y)上的為視窗的非支援可點擊功能的子控制項的加權視窗顏色值,公式(13)用於計算待測座標(x,y)上的為視窗的支援可點擊功能的子控制項的加權視窗顏色值,公式(11)至公式(13)如下所示: C xyw= W n* C xyif there is no sub-control item on (x, y) ……(11) C xyw= W u* C xyif there is the un-clickable sub-control item on (x, y) ……(12) C xyw= W c* C xyif there is the clickable sub-control item on (x, y) ……(13) In step S420, the processor 110 executes the window information collection module 126 to obtain a weighted window color value according to the window average color value and the window title, window program and window control information of the window screen. The window information includes the window title and the window program. The weighted window color value is related to the color value obtained according to the window control information and the corresponding control weighting coefficient. The processor 110 can calculate the weighted window color value through the following formulas (11) to (13), where formula (11) is used to calculate the weighted window color value of the window without a window sub-control item at the measured coordinate (x, y), formula (12) is used to calculate the weighted window color value of the sub-control item of the window that does not support clickable function at the measured coordinate (x, y), and formula (13) is used to calculate the weighted window color value of the sub-control item of the window that supports clickable function at the measured coordinate (x, y). Formulas (11) to (13) are as follows: C xyw = W n * C xy if there is no sub-control item on (x, y) ………(11) C xyw = W u * C xy if there is the un-clickable sub-control item on (x, y) ………(12) C xyw = W c * C xy if there is the clickable sub-control item on (x, y) ……(13)
C
xyw:w視窗像素點(x, y)的加權視窗顏色值,C
xy:桌面(x, y)像素點的原始顏色值,例如R
xy、G
xy或B
xy,W
n:無子控制項顏色權重,W
u:非支援可點擊功能子控制項顏色權重,W
c:支援可點擊功能子控制項顏色權重。補充說明的是,視窗資訊收集模組126透過Windows應用程式介面(API)取得目前活動視窗的標題(Title)以及程序(Process)名稱。如下表1所示,視窗資訊收集模組126可透過對應的應用程式介面取得視窗資訊:
在一實施例中,視窗資訊收集模組126基於多種控制項圖片的歷史數據對當前游標位置所在的控制項進行比對,以判斷當前游標位置所對應的視窗控制項資訊。於步驟S430,視窗資訊收集模組126將加權視窗顏色值作為視窗參考顏色。In one embodiment, the window information collection module 126 compares the control at the current cursor position based on the historical data of multiple control item images to determine the window control item information corresponding to the current cursor position. In step S430, the window information collection module 126 uses the weighted window color value as the window reference color.
在另一實施例中,視窗資訊收集模組126將公式(11)至公式(13)所獲得每一點座標(x, y)的加權視窗顏色值透過以下公式(14)進行加總。In another embodiment, the window information collection module 126 sums up the weighted window color value of each point coordinate (x, y) obtained by formula (11) to formula (13) through the following formula (14).
如下所示,使用公式(14)計算視窗加權平均顏色值C w,並將C w傳至滑鼠指標樣式調整模組運算。 ……(14) As shown below, the weighted average color value C w of the window is calculated using formula (14), and C w is passed to the mouse pointer style adjustment module for calculation. ……(14)
C w:視窗加權平均顏色值。在本實施例中,視窗資訊收集模組126將視窗加權平均顏色值作為視窗參考顏色。 C w : Window weighted average color value. In this embodiment, the window information collection module 126 uses the window weighted average color value as the window reference color.
圖6是依照本揭露一實施例的監控游標移動軌跡的流程示意圖。請參照圖6,軌跡監控模組122更用以執行步驟S510至步驟S595以產生滑鼠指標軌跡資訊(即軌跡紀錄組)。於步驟S510,軌跡監控模組122取得游標位置資訊。具體來說,軌跡監控模組122可透過讀取儲存器120中的緩存數據或是讀取其他模組的數據,進而獲得每一取樣點的游標位置座標。於步驟S520,軌跡監控模組122根據步驟S510中所獲得的游標位置資訊計算游標位移量,可透上述公式(1)計算出游標的位移量。FIG6 is a schematic diagram of a process of monitoring the movement trajectory of a cursor according to an embodiment of the present disclosure. Referring to FIG6 , the trajectory monitoring module 122 is further used to execute steps S510 to S595 to generate mouse pointer trajectory information (i.e., trajectory record group). In step S510, the trajectory monitoring module 122 obtains the cursor position information. Specifically, the trajectory monitoring module 122 can obtain the cursor position coordinates of each sampling point by reading the cache data in the memory 120 or reading the data of other modules. In step S520, the track monitoring module 122 calculates the cursor displacement according to the cursor position information obtained in step S510. The cursor displacement can be calculated by the above formula (1).
於步驟S530,軌跡監控模組122計算出位移斜率。在一實施例中,軌跡監控模組122可透過以下公式(15)分別計算出多個移動軌跡中每一時間點的位移斜率: S n= (X n- X n-1) / (Y n- Y n-1) ……(15) In step S530, the trajectory monitoring module 122 calculates the displacement slope. In one embodiment, the trajectory monitoring module 122 can calculate the displacement slope of each time point in the plurality of moving trajectories by the following formula (15): Sn = ( Xn - Xn-1 ) / ( Yn - Yn-1 ) ... (15)
S n:時間點n的位移斜率,X n:時間點n的X軸座標,X n-1:時間點n-1的X軸座標,Y n:時間點n的Y軸座標,Y n-1:時間點n-1的Y軸座標。 S n : displacement slope at time point n, X n : X-axis coordinate at time point n, X n-1 : X-axis coordinate at time point n-1, Y n : Y-axis coordinate at time point n, Y n-1 : Y-axis coordinate at time point n-1.
於步驟S540,軌跡監控模組122紀錄初始位置。於步驟S550,軌跡監控模組122根據初始位置以及位移斜率計算位移斜率正負值變化次數。於步驟S560,軌跡監控模組122評估每一時間點的移動軌跡(即樣本)的位移斜率變化次數,進而將多個移動軌跡中對應的移動軌跡執行步驟S570或是步驟S580中對應的步驟。換言之,軌跡監控模組122根據游標初始位置以及位移斜率的變化獲得移動折返次數,並且當移動折返次數為2時,軌跡監控模組122接著執行步驟S570。當移動折返次數為3時,軌跡監控模組122接著執行步驟S580。In step S540, the trajectory monitoring module 122 records the initial position. In step S550, the trajectory monitoring module 122 calculates the number of positive and negative changes in the displacement slope according to the initial position and the displacement slope. In step S560, the trajectory monitoring module 122 evaluates the number of changes in the displacement slope of the moving trajectory (i.e., sample) at each time point, and then executes the corresponding moving trajectory in the multiple moving trajectories in step S570 or the corresponding step in step S580. In other words, the trajectory monitoring module 122 obtains the number of movement returns according to the change of the cursor initial position and the displacement slope, and when the number of movement returns is 2, the trajectory monitoring module 122 then executes step S570. When the number of movement returns is 3, the trajectory monitoring module 122 then executes step S580.
於步驟S570,軌跡監控模組122紀錄轉折位置與累計樣本個數。於步驟S580,軌跡監控模組122紀錄結束位置與累計樣本個數。軌跡監控模組122將具有特定次數的移動折返次數的移動軌跡作為軌跡紀錄組,並且記錄當前樣本數量(即步驟S570以及步驟580中的累計樣本個數)。In step S570, the trajectory monitoring module 122 records the turning position and the number of accumulated samples. In step S580, the trajectory monitoring module 122 records the end position and the number of accumulated samples. The trajectory monitoring module 122 takes the moving trajectory with a specific number of movement and return times as a trajectory record group, and records the current number of samples (i.e., the number of accumulated samples in step S570 and step S580).
執行完步驟S570或是步驟S580後,軌跡監控模組122接著執行步驟S590。於步驟S590,軌跡監控模組122計算待收集樣本數。具體來說,軌跡監控模組122比對累計樣本個數是否達到待收集樣本數。待收集樣本數為預設個數量,例如是3個、6個、10個、或是20個。當累計樣本個數的數量達到待收集樣本數時,軌跡監控模組122接著執行步驟S595,反之則執行步驟S510。在另一實施例中,軌跡監控模組122將步驟S570中所記錄的累計樣本個數、步驟S580中所記錄的累計樣本個數、一次正負值變化的軌跡的個數以及取樣比例進行運算以計算出待收集樣本數。具體來說,待收集樣本數等於取樣比例與平均一次正負值變化所經過樣本(個)數的商,而平均一次正負值變化所經過樣本數可透過以下公式計算 0.5*(0.5*步驟S570中所記錄的累計樣本個數加上步驟S580中所記錄的累計樣本個數)。After executing step S570 or step S580, the trajectory monitoring module 122 then executes step S590. In step S590, the trajectory monitoring module 122 calculates the number of samples to be collected. Specifically, the trajectory monitoring module 122 compares whether the cumulative number of samples reaches the number of samples to be collected. The number of samples to be collected is a preset number, such as 3, 6, 10, or 20. When the cumulative number of samples reaches the number of samples to be collected, the trajectory monitoring module 122 then executes step S595, otherwise it executes step S510. In another embodiment, the trajectory monitoring module 122 calculates the number of samples to be collected by the cumulative number of samples recorded in step S570, the cumulative number of samples recorded in step S580, the number of trajectories of a positive and negative value change, and the sampling ratio. Specifically, the number of samples to be collected is equal to the quotient of the sampling ratio and the average number of samples (numbers) passed by a positive and negative value change, and the average number of samples passed by a positive and negative value change can be calculated by the following formula: 0.5*(0.5*the cumulative number of samples recorded in step S570 plus the cumulative number of samples recorded in step S580).
當於步驟S595,軌跡監控模組122輸出滑鼠指標軌跡資訊。具體來說,軌跡監控模組122收集到一定數量的軌跡紀錄組時,將軌跡紀錄組(即滑鼠指標軌跡資訊)輸出至軌跡判斷模組123。In step S595 , the track monitoring module 122 outputs the mouse pointer track information. Specifically, when the track monitoring module 122 collects a certain number of track record sets, it outputs the track record sets (ie, the mouse pointer track information) to the track determination module 123 .
圖7是依照本揭露一實施例的判斷游標移動軌跡的流程圖。圖8是依照本揭露一實施例的游標的移動軌跡示意圖。請參照圖7,軌跡判斷模組123更用以執行步驟S610至步驟S680以判斷軌跡紀錄組是否包括尋找游標軌跡數據。於步驟S610,軌跡判斷模組123取得滑鼠指標軌跡資訊(即軌跡紀錄組)。FIG. 7 is a flow chart of determining the movement trajectory of the cursor according to an embodiment of the present disclosure. FIG. 8 is a schematic diagram of the movement trajectory of the cursor according to an embodiment of the present disclosure. Referring to FIG. 7 , the trajectory determination module 123 is further used to execute steps S610 to S680 to determine whether the trajectory record group includes the search cursor trajectory data. In step S610, the trajectory determination module 123 obtains the mouse pointer trajectory information (i.e., the trajectory record group).
於步驟S620以及步驟S630,軌跡判斷模組123執行圖形識別,進而取得圖形類別信心分數。在一實施例中,軌跡判斷模組123透過卷積神經網路模型對軌跡紀錄組執行圖形識別以獲得圖形信心分數。如圖8所示為一單位時間(例如3秒、5秒、6秒)內的軌跡紀錄組,經過訊號的卷積神經網路模型基於尋找游標圖形(即預設的訓練樣本)比對軌跡紀錄組的移動軌跡,進而根據圖形相似度獲得圖形信心分數。圖形信心分數相關於卷積神經網路模型輸出結果時的置信度,當比對相似度越高則圖形信心分數越高。In step S620 and step S630, the trajectory determination module 123 performs graphic recognition to obtain a graphic category confidence score. In one embodiment, the trajectory determination module 123 performs graphic recognition on the trajectory record group through a convolutional neural network model to obtain a graphic confidence score. As shown in FIG8 , a trajectory record group within a unit time (e.g., 3 seconds, 5 seconds, 6 seconds) is compared with the moving trajectory of the trajectory record group by the convolutional neural network model through the signal based on searching for the cursor graphic (i.e., the preset training sample), and then obtains the graphic confidence score according to the graphic similarity. The graph confidence score is related to the confidence level of the output of the convolutional neural network model. The higher the comparison similarity, the higher the graph confidence score.
於步驟S640,軌跡判斷模組123正規化滑鼠位移量。具體來說,軌跡判斷模組123對軌跡紀錄組中的位移量執行正規化處理以獲得二維陣列。軌跡判斷模組123可透過以下公式(16)至公式(19)執行正規化: X a= ( ) / N……(16) Y a= ( ) / N……(17) I n= X n– X a……(18) J n= Y n-Y a……(19) In step S640, the trajectory determination module 123 normalizes the mouse displacement. Specifically, the trajectory determination module 123 performs normalization processing on the displacement in the trajectory record set to obtain a two-dimensional array. The trajectory determination module 123 can perform normalization through the following formulas (16) to (19): X a = ( ) / N……(16) Y a = ( ) / N……(17) I n = X n – X a ……(18) J n = Y n -Y a ……(19)
N:樣本總數,X a:滑鼠X軸位置平均值,Y a:滑鼠Y軸位置平均值,I n:取樣點n的滑鼠X軸位置正規化,J n:取樣點n的滑鼠Y軸位置正規化,n為正整數。如此,軌跡判斷模組123將軌跡紀錄組的位移斜率從原本的一維陣列進行正規化後可以獲得以(X n, Y n)排列的二維陣列。 N: total number of samples, X a : average value of mouse X-axis position, Y a : average value of mouse Y-axis position, In : normalized mouse X-axis position of sampling point n, J n : normalized mouse Y-axis position of sampling point n, n is a positive integer. Thus, the trajectory judgment module 123 normalizes the displacement slope of the trajectory record group from the original one-dimensional array to obtain a two-dimensional array arranged in (X n , Y n ).
在一實施例中,卷積神經網路模型以及循環神經網路模型為透過多個尋找游標圖形所訓練的神經網路模型。軌跡判斷模組123進而根據二維陣列以及軌跡紀錄組的位移斜率獲得三維陣列。舉例來說,軌跡判斷模組123基於相同取樣點將步驟S640所獲得的二維陣列再加上對應的位移斜率進而獲得三維陣列(例如(X n, Y n, S n)。 In one embodiment, the convolution neural network model and the recurrent neural network model are neural network models trained by multiple search cursor graphs. The trajectory determination module 123 further obtains a three-dimensional array based on the two-dimensional array and the displacement slope of the trajectory record set. For example, the trajectory determination module 123 adds the corresponding displacement slope to the two-dimensional array obtained in step S640 based on the same sampling point to obtain a three-dimensional array (e.g. ( Xn , Yn , Sn ).
於步驟S650,軌跡判斷模組123執行時間序列分析。也就是說,軌跡判斷模組123透過循環神經網路模型對軌跡紀錄組執行圖形識別以獲得訊號信心分數。具體來說,循環神經網路模型對三維陣列執行時間序列分析以根據三維陣列中每一位置和前一位置之間的時間依賴性和關聯性判斷與多個尋找游標圖形(即預設的比對樣本)中的時間依賴性和關聯性的相似度判斷軌跡紀錄組的訊號信心分數。換言之,軌跡判斷模組123透過循環神經網路模型比對軌跡紀錄組中每一筆數據與前一時間點的時間和斜率關聯性和比對樣本中的時間和斜率關聯性的相似程度,進而獲得訊號流類別信心分數(即訊號信心分數)(步驟S660)。In step S650, the trajectory determination module 123 performs time series analysis. That is, the trajectory determination module 123 performs pattern recognition on the trajectory record set through the recurrent neural network model to obtain a signal confidence score. Specifically, the recurrent neural network model performs time series analysis on the three-dimensional array to determine the signal confidence score of the trajectory record set based on the similarity between the time dependency and correlation between each position and the previous position in the three-dimensional array and the time dependency and correlation in multiple search cursor patterns (i.e., the preset comparison samples). In other words, the trajectory judgment module 123 compares the time and slope correlation of each data in the trajectory record group with the previous time point and the time and slope correlation in the comparison sample through the recurrent neural network model, thereby obtaining the signal flow category confidence score (i.e., signal confidence score) (step S660).
於步驟S670,軌跡判斷模組123根據訊號信心分數以及圖形信心分數計算總信心分數F。 F = (W c* C c+ W r* C r) / (W c+ W r) ……(16) In step S670, the trajectory determination module 123 calculates the total confidence score F according to the signal confidence score and the image confidence score. F = (W c * C c + W r * C r ) / (W c + W r ) …… (16)
W c:「尋找滑鼠指標」圖形信心分數權重,W c:「尋找滑鼠指標」訊號信心分數權重,C r:訊號信心分數,C c:圖形信心分數。 W c : "Find Mouse Pointer" graph confidence score weight, W c : "Find Mouse Pointer" signal confidence score weight, Cr : signal confidence score, C c : graph confidence score.
換言之,軌跡判斷模組123基於圖形權重以及訊號權重對圖形信心分數以及訊號信心分數執行加權運算,進而獲得信心分數(即總信心分數)。In other words, the trajectory determination module 123 performs weighted operations on the image confidence score and the signal confidence score based on the image weight and the signal weight to obtain a confidence score (ie, a total confidence score).
在本裝置中,軌跡判斷模組123基於多張尋找游標圖形對軌跡紀錄組進行圖形識別以獲得信心分數,其中響應於信心分數大於一門檻值(F th)時,軌跡判斷模組123判定移動軌跡的軌跡紀錄組包括尋找游標軌跡數據,也就是判定使用者正在尋找顯示器130上游標的位置(步驟S680)。 In the present device, the trajectory determination module 123 performs graphic recognition on the trajectory record group based on multiple seek cursor graphics to obtain a confidence score, wherein in response to the confidence score being greater than a threshold value ( Fth ), the trajectory determination module 123 determines that the trajectory record group of the moving trajectory includes seek cursor trajectory data, that is, determines that the user is seeking the position of the cursor on the display 130 (step S680).
綜上所述,於本揭露的實施例中,動態調整游標顯示的方法與電子裝置透過分別地偵測/監控是否有顯示切換事件以及尋找游標軌跡,進而達到分散運算負載的效果而整體的操作順暢度。並且,動態調整游標顯示的方法與電子裝置基於桌面資訊與視窗資訊,將游標設定調整成適合的大小以及/或適合的顏色。如此一來,動態調整游標顯示的方法與電子裝置可自動判斷出游標當前的移動軌跡為找尋游標位置,進而透過調整游標顯示設定以令使用者可快速找到游標位置以提高使用上的便利性。並且,透過加權顏色值相關於平均顏色值透過加權係數提高桌面中央區域的比重的顏色值,進而將邊緣部分像素的影響權重降低,以提高游標的可視性。In summary, in the embodiments disclosed herein, the method and electronic device for dynamically adjusting the cursor display respectively detect/monitor whether there is a display switching event and find the cursor track, thereby achieving the effect of distributing the computing load and overall smooth operation. In addition, the method and electronic device for dynamically adjusting the cursor display adjust the cursor setting to a suitable size and/or a suitable color based on the desktop information and the window information. In this way, the method and electronic device for dynamically adjusting the cursor display can automatically determine that the current movement track of the cursor is to find the cursor position, and then adjust the cursor display setting so that the user can quickly find the cursor position to improve the convenience of use. Furthermore, the weighted color value is related to the average color value by using a weighted coefficient to increase the weight of the color value of the central area of the desktop, thereby reducing the weight of the pixels at the edge to improve the visibility of the cursor.
雖然本揭露已以實施例揭露如上,然其並非用以限定本揭露,任何所屬技術領域中具有通常知識者,在不脫離本揭露的精神和範圍內,當可作些許的更動與潤飾,故本揭露的保護範圍當視後附的申請專利範圍所界定者為準。Although the present disclosure has been disclosed as above by way of embodiments, it is not intended to limit the present disclosure. Any person having ordinary knowledge in the relevant technical field may make some changes and modifications without departing from the spirit and scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the definition of the attached patent application scope.
100:電子裝置 110:處理器 120:儲存器 130:顯示器 121:游標訊號收集模組 122:軌跡監控模組 123:軌跡判斷模組 124:游標顯示調整模組 125:桌面偵測模組 126:視窗資訊收集模組 S210~S250、S310~350、S410~S430、S510~S595、S610~S680:步驟100: electronic device 110: processor 120: memory 130: display 121: cursor signal collection module 122: track monitoring module 123: track judgment module 124: cursor display adjustment module 125: desktop detection module 126: window information collection module S210~S250, S310~350, S410~S430, S510~S595, S610~S680: steps
圖1是依照本揭露一實施例的電子裝置的方塊圖。 圖2是依照本揭露一實施例的動態調整游標顯示的方法的流程圖。 圖3是依照本揭露一實施例的擷取顯示畫面以計算出游標顏色的流程圖。 圖4是依照本揭露一實施例的多個模組的流程示意圖。 圖5是依照本揭露一實施例的根據視窗資訊獲得加權視窗顏色值的流程圖。 圖6是依照本揭露一實施例的監控游標移動軌跡的流程示意圖。 圖7是依照本揭露一實施例的判斷游標移動軌跡的流程圖。 圖8是依照本揭露一實施例的游標的移動軌跡示意圖。 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure. FIG. 2 is a flow chart of a method for dynamically adjusting cursor display according to an embodiment of the present disclosure. FIG. 3 is a flow chart of capturing a display screen to calculate a cursor color according to an embodiment of the present disclosure. FIG. 4 is a flow chart of multiple modules according to an embodiment of the present disclosure. FIG. 5 is a flow chart of obtaining a weighted window color value according to window information according to an embodiment of the present disclosure. FIG. 6 is a flow chart of monitoring a cursor movement trajectory according to an embodiment of the present disclosure. FIG. 7 is a flow chart of determining a cursor movement trajectory according to an embodiment of the present disclosure. FIG. 8 is a schematic diagram of a cursor movement trajectory according to an embodiment of the present disclosure.
S210~S250:步驟 S210~S250: Steps
Claims (18)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW113118649A TWI879573B (en) | 2024-05-20 | 2024-05-20 | Method and electronic device for dynamically adjusting cursor display |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW113118649A TWI879573B (en) | 2024-05-20 | 2024-05-20 | Method and electronic device for dynamically adjusting cursor display |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI879573B true TWI879573B (en) | 2025-04-01 |
| TW202546616A TW202546616A (en) | 2025-12-01 |
Family
ID=96142311
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW113118649A TWI879573B (en) | 2024-05-20 | 2024-05-20 | Method and electronic device for dynamically adjusting cursor display |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI879573B (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108920230A (en) * | 2018-06-15 | 2018-11-30 | 广州视源电子科技股份有限公司 | Response method, device, equipment and storage medium for mouse suspension operation |
| TWI731781B (en) * | 2020-09-02 | 2021-06-21 | 宏碁股份有限公司 | Keyboard, computer system, method for controlling keyboard backlights, and program thereof |
| CN114153348A (en) * | 2020-09-04 | 2022-03-08 | 华为终端有限公司 | Cursor prompting method and host |
| CN114428576A (en) * | 2021-12-20 | 2022-05-03 | 北京镁伽科技有限公司 | Cursor color determination method and device, PG (program guide) equipment and storage medium |
| TWI792712B (en) * | 2021-11-24 | 2023-02-11 | 宏正自動科技股份有限公司 | Cursor marking method and switching device |
| CN116302261A (en) * | 2023-02-27 | 2023-06-23 | 深圳华为云计算技术有限公司 | User interface display method, device, terminal and server |
| TWI815487B (en) * | 2022-05-31 | 2023-09-11 | 優派國際股份有限公司 | Electronic device and method of controlling mouse cursor |
-
2024
- 2024-05-20 TW TW113118649A patent/TWI879573B/en active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108920230A (en) * | 2018-06-15 | 2018-11-30 | 广州视源电子科技股份有限公司 | Response method, device, equipment and storage medium for mouse suspension operation |
| TWI731781B (en) * | 2020-09-02 | 2021-06-21 | 宏碁股份有限公司 | Keyboard, computer system, method for controlling keyboard backlights, and program thereof |
| CN114153348A (en) * | 2020-09-04 | 2022-03-08 | 华为终端有限公司 | Cursor prompting method and host |
| TWI792712B (en) * | 2021-11-24 | 2023-02-11 | 宏正自動科技股份有限公司 | Cursor marking method and switching device |
| CN114428576A (en) * | 2021-12-20 | 2022-05-03 | 北京镁伽科技有限公司 | Cursor color determination method and device, PG (program guide) equipment and storage medium |
| TWI815487B (en) * | 2022-05-31 | 2023-09-11 | 優派國際股份有限公司 | Electronic device and method of controlling mouse cursor |
| CN116302261A (en) * | 2023-02-27 | 2023-06-23 | 深圳华为云计算技术有限公司 | User interface display method, device, terminal and server |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10084964B1 (en) | Providing subject information regarding upcoming images on a display | |
| US7103852B2 (en) | Dynamic resizing of clickable areas of touch screen applications | |
| JP5177075B2 (en) | Motion recognition device, motion recognition method, and program | |
| JP5674674B2 (en) | Occurrence of gestures tailored to the hand placed on the surface | |
| US20050179657A1 (en) | System and method of emulating mouse operations using finger image sensors | |
| CN112560723B (en) | Fall detection method and system based on morphological recognition and speed estimation | |
| US20100071965A1 (en) | System and method for grab and drop gesture recognition | |
| CN110221699B (en) | An eye movement behavior recognition method for front camera video source | |
| US20130088429A1 (en) | Apparatus and method for recognizing user input | |
| WO2018090538A1 (en) | Method and device for recognizing action of tennis racket | |
| US11941045B2 (en) | Image searching apparatus, image searching method, and storage medium | |
| CN114299050A (en) | An infrared image fall detection method based on improved Alphapose | |
| TWI879573B (en) | Method and electronic device for dynamically adjusting cursor display | |
| CN114067359A (en) | Pedestrian detection method integrating human body key points and attention features of visible parts | |
| JP2000357046A (en) | Handwriting input device, method, and computer-readable recording medium recording handwriting input program | |
| JP7452095B2 (en) | Data processing device, data processing method and program | |
| JPH0720987A (en) | Estimation device of closely observed point | |
| TW202546616A (en) | Method and electronic device for dynamically adjusting cursor display | |
| US10706601B2 (en) | Interface for receiving subject affinity information | |
| TWI871919B (en) | Method and electronic device for dynamically adjusting display setting | |
| CN115966012B (en) | 3D gesture detection device and 3D gesture detection method | |
| CN111367459A (en) | Text input method and smart electronic device using pressure touchpad | |
| US12487730B2 (en) | Method for analyzing activity of a user of an electronic terminal | |
| TWI885711B (en) | Electronic apparatus and windows arrangement method thereof | |
| TWI792620B (en) | Wet hand touch processing method, touch circuit, touch device and information processing device |