TWI871919B - Method and electronic device for dynamically adjusting display setting - Google Patents
Method and electronic device for dynamically adjusting display setting Download PDFInfo
- Publication number
- TWI871919B TWI871919B TW113105603A TW113105603A TWI871919B TW I871919 B TWI871919 B TW I871919B TW 113105603 A TW113105603 A TW 113105603A TW 113105603 A TW113105603 A TW 113105603A TW I871919 B TWI871919 B TW I871919B
- Authority
- TW
- Taiwan
- Prior art keywords
- cursor
- signal
- display setting
- value
- electronic device
- Prior art date
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
本揭露是有關於依據電子裝置的尺寸以及參數動態調整顯示設定的方法與電子裝置,且特別是有關於一種動態調整顯示設定的方法與電子裝置。The present disclosure relates to a method and an electronic device for dynamically adjusting display settings according to the size and parameters of the electronic device, and more particularly to a method and an electronic device for dynamically adjusting display settings.
使用者在使用筆記型電腦時,經常會遇到滑鼠或其他輸入裝置的操作環境無法讓使用者精準地操控顯示器中的游標。其中一個情況是,由於桌面光滑的導致游標會大幅度飄移。然而,當使用者將滑鼠放置於筆記型電腦觸控板單側(例如左側或是右側)的機殼部分時由於可操作滑鼠的剩餘機殼區域小於標準滑鼠墊,導致使用者需要經常將滑鼠重新放置於機殼剩餘區域的中心,造成使用者無法便利以及精準地操作電子裝置的游標。When using a laptop, users often encounter an operating environment where the mouse or other input device cannot accurately control the cursor on the display. One of the situations is that the cursor will move significantly due to the smoothness of the desktop. However, when the user places the mouse on the case on one side (e.g., the left or right side) of the laptop touchpad, the remaining case area where the mouse can be operated is smaller than the standard mouse pad, resulting in the user frequently having to reposition the mouse to the center of the remaining case area, making it impossible for the user to conveniently and accurately operate the cursor of the electronic device.
有鑑於此,本揭露提出一種動態調整顯示設定的方法與電子裝置,其可解決上述技術問題。In view of this, the present disclosure provides a method and an electronic device for dynamically adjusting display settings, which can solve the above technical problems.
本揭露實施例提供一種動態調整顯示設定的方法,適用於耦接顯示器以及輸入裝置的電子裝置,所述方法包括下列步驟。處理器取得電子裝置的硬體資訊。處理器收集游標訊號,其中游標訊號相關於輸入裝置所輸入的訊號。處理器對游標訊號執行訊號預處理,以產生游標頻率訊號組,其中訊號預處理包括將游標訊號從時域訊號轉換成頻域訊號。依據預設範圍以分析游標頻率訊號組的分布範圍,處理器獲得對應游標頻率訊號組的操作環境資訊。響應於操作環境資訊為光滑環境資訊,處理器依據硬體資訊、預設參數以及當前顯示設定值調整對應輸入裝置的顯示設定值。The disclosed embodiment provides a method for dynamically adjusting display settings, which is applicable to an electronic device coupled to a display and an input device, and the method includes the following steps. The processor obtains hardware information of the electronic device. The processor collects a cursor signal, wherein the cursor signal is related to a signal input by the input device. The processor performs signal preprocessing on the cursor signal to generate a cursor frequency signal group, wherein the signal preprocessing includes converting the cursor signal from a time domain signal to a frequency domain signal. The processor analyzes the distribution range of the cursor frequency signal group according to a preset range, and obtains operating environment information corresponding to the cursor frequency signal group. In response to the operating environment information being the smooth environment information, the processor adjusts the display setting value corresponding to the input device according to the hardware information, the preset parameters and the current display setting value.
本揭露實施例提供一種電子裝置,其包括儲存器以及處理器。處理器耦接顯示器以及輸入裝置,並執行儲存器所儲存的多個模組。硬體資訊收集模組取得該電子裝置的硬體資訊。操作訊號收集模組收集游標訊號。訊號預處理模組對游標訊號執行訊號預處理,以產生游標頻率訊號組。訊號分析模組依據預設範圍以分析該游標頻率訊號組的分布範圍以獲得對應該游標頻率訊號組的操作環境資訊。響應於操作環境資訊為光滑環境資訊,顯示設定估算模組依據硬體資訊、預設參數以及當前顯示設定值調整顯示設定值。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 hardware information collection module obtains the hardware information of the electronic device. The operation signal collection module collects the cursor signal. The signal pre-processing module performs signal pre-processing on the cursor signal to generate a cursor frequency signal group. The signal analysis module analyzes the distribution range of the cursor frequency signal group according to a preset range to obtain operating environment information corresponding to the cursor frequency signal group. In response to the operating environment information being smooth environment information, the display setting estimation module adjusts the display setting value according to the hardware information, the preset parameters and the current display setting value.
基於上述,本揭露實施例的動態調整顯示設定的方法與電子裝置透過預處理游標訊號以及分析頻域訊號的分布範圍,進而判斷出游標訊號的操作環境資訊是否為光滑桌面,以達到自動偵測以及提示使用者當前操作環境。並且,透過適合的演算法計算出當前電子裝置的所適合的顯示設定調整值,以避免滑鼠操作於光滑桌面上,導致使用者無法精準操作游標的情形發生,進而提高使用者體驗的滿意度以及便利性。Based on the above, the method and electronic device for dynamically adjusting display settings of the disclosed embodiment pre-processes the cursor signal and analyzes the distribution range of the frequency domain signal to determine whether the operating environment information of the cursor signal is a smooth desktop, so as to automatically detect and prompt the user of the current operating environment. In addition, the appropriate display setting adjustment value of the current electronic device is calculated through a suitable algorithm to avoid the situation where the mouse is operated on a smooth desktop, resulting in the user being unable to accurately operate the cursor, thereby improving the user experience satisfaction and convenience.
為讓本揭露的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。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。FIG1 is a block diagram of an electronic device according to an embodiment of the present disclosure. A
電子裝置100的儲存器120可以是系統記憶體,此系統記憶體例如是任意型式的揮發性隨機存取記憶體(random access memory,RAM)。輸入裝置用以接收使用者輸入的使用者命令/指令。輸入裝置130可以是鍵盤、滑鼠、或觸控裝置等等,本揭露對此不限制。The
處理器110例如是中央處理單元(central processing unit,CPU)、應用處理器(application processor,AP),或是其他可程式化之一般用途或特殊用途的微處理器(microprocessor)、數位訊號處理器(digital signal processor,DSP)或其他類似裝置、積體電路及其組合。處理器110可存取並執行記錄在基本輸入輸出系統裝置110與系統記憶體中的程式碼、代碼或指令,以實現本揭露實施例中的動態調整顯示設定的方法。The
顯示器130用以顯示資訊、設定介面與操作介面。於不同實施例中,上述顯示器130可以是液晶顯示器(Liquid Crystal Display,LCD)、發光二極體(Light Emitting Diode,LED)顯示器、有機發光二極體(Organic Light Emitting Diode,OLED)等各類型的顯示器,本揭露對此不限制。The
圖2是依照本揭露一實施例的動態調整顯示設定的方法的流程圖,而圖2的方法流程可以由圖1的電子裝置100實現。請參照圖1至圖2,以下即搭配圖1中電子裝置100的各項元件,說明本實施例的動態調整顯示設定的方法的步驟。FIG2 is a flow chart of a method for dynamically adjusting display settings according to an embodiment of the present disclosure, and the method flow of FIG2 can be implemented by the
於步驟S210,處理器110取得電子裝置的硬體資訊。硬體資訊包括作業系統的登錄值、顯示器資訊、觸控板大小、機殼扣除觸控板的單側可使用範圍以及尺寸、製造商資訊、產品型以及顯示面板尺寸的至少其中之一。舉例而言,處理器110讀取Windows作業系統中的登錄值,進而取得電子裝置的觸控板大小、觸控板位置以及機殼尺寸,進而計算出單側機殼扣除觸控板後的剩餘範圍(即外殼可使用範圍)。具體來說,處理器110可依據各作業系統讀取裝置中的裝置資訊,例如Windows 作業系統中的硬體開發人員檔案(Hardware Developer Documentation),進而取得電子裝置的硬體資訊。In step S210, the
於步驟S220,處理器110收集游標訊號。游標訊號相關於輸入裝置所輸入的訊號。於一實施例中,處理器110基於耦接輸入裝置而接收輸入裝置所傳送的游標訊號。舉例而言,輸入裝置為滑鼠,並且使用者移動滑鼠、按壓滑鼠按鍵、以及使用滑鼠滾輪之時,滑鼠皆會輸出訊號至電子裝置之中,如此處理器110收集這些訊號,進而收集游標訊號。In step S220, the
於步驟S230,處理器110將游標訊號執行訊號預處理,以產生游標頻率訊號組。訊號預處理包括將游標訊號從時域訊號轉換成頻域訊號。在一實施例中,處理器110透過傅立葉轉換將游標時域訊號轉換為游標頻域訊號,以獲得游標頻率訊號組。In step S230, the
於步驟S240,處理器110執行訊號分析模組125,以使訊號分析模組125依據預設範圍以分析游標頻率訊號組的分布範圍,獲得對應游標頻率訊號組的操作環境資訊。在一實施例中,訊號分析模組125分析游標頻率訊號組的頻率分布範圍的分布廣度小於頻率的預設範圍,則訊號分析模組125判斷游標頻率訊號組的操作環境資訊為光滑環境資訊。相反地,當游標頻率訊號組的頻率分布範圍的分布廣度大於預設範圍,則訊號分析模組125判斷游標頻率訊號組的操作環境資訊為非光滑操作環境。具體來說,訊號分析模組125透過判斷游標頻率訊號組的分布範圍的廣度,進而分析游標頻率訊號組是否為使用於光滑桌面上的游標訊號,進而判斷出滑鼠(輸入裝置)是否在光滑操作環境下移動(即操作環境資訊屬於光滑環境資訊)。In step S240, the
在另一實施例中,依據電子裝置的儲存器所儲存的多個歷史游標資料,訊號分析模組125通過執行運算演算法分析游標頻率訊號組的操作環境資訊。舉例而言,訊號分析模組125根據多個歷史游標資料中的光滑操作環境的歷史游標訊號以及非光滑操作環境的歷史游標訊號,分析出當前的游標頻率訊號組的操作環境資訊為光滑操作環境或是非光滑操作環境。In another embodiment, based on a plurality of historical cursor data stored in the memory of the electronic device, the
於步驟S250,處理器110執行顯示設定估算模組126,以使顯示設定估算模組126響應於操作環境資訊為光滑環境資訊,依據硬體資訊、預設參數以及當前顯示設定值調整對應輸入裝置的顯示設定值。詳細來說,顯示設定估算模組126依據硬體資訊、預設參數以及當前顯示設定值計算出對應電子裝置的顯示設定調整值,進而將當前的顯示設定值設定為顯示設定調整值。如此設置,動態調整顯示設定的方法以及電子裝置可判斷輸入裝置(例如滑鼠)是否操作於光滑環境上,並且根據電子裝置的當前顯示設定以及電子裝置的剩餘可操作範圍位置,以計算出顯示設定調整值,進而動態地將顯示設定值調整成對應於電子裝置的顯示設定調整值。In step S250, the
在一實施例中,預設參數包括預設的標準滑鼠操作範圍(即預設標準滑鼠墊的尺寸)、預設係數上限值以及顯示設定上限值,並且硬體資訊包括外殼可使用範圍(即機殼剩餘大小)。處理器110執行顯示設定估算模組125以依據硬體資訊中的外殼可使用範圍、調整係數最大值、標準操作範圍計算出顯示設定的調整係數。In one embodiment, the preset parameters include a preset standard mouse operating range (i.e., a preset standard mouse pad size), a preset coefficient upper limit, and a display setting upper limit, and the hardware information includes a usable range of the housing (i.e., the remaining size of the housing). The
計算顯示設定調整值的具體步驟如下所示,顯示設定估算模組125依據標準滑鼠操作範圍以及外殼可使用範圍,獲得調整係數。由於常見的電子裝置的機殼剩餘大小不大於標準滑鼠墊大小,因此本實施例中的調整係數相關於標準滑鼠操作範圍與外殼可使用範圍的長寬比例,並且調整係數的數值介於1至該預設係數上限值之間以確保機殼剩餘大小不會大於標準滑鼠墊大小,進而避免機殼剩餘大小的估算錯誤的情形。調整係數的計算方式,如以下方程式(1)以及方程式(2)所示:
……(1)
……(2)
The specific steps of calculating the display setting adjustment value are as follows. The display
W l為滑鼠墊長度(length)影響權重,W w為滑鼠墊寬度(width)影響權重,P l為自定義標準滑鼠墊長度,P w為自定義標準滑鼠墊寬度,V l為虛擬滑鼠墊長度,V w為虛擬滑鼠墊寬度,S為滑鼠敏感度調整係數,S max為滑鼠敏感度調整係數上限值。 W l is the weight of the mouse pad length (length), W w is the weight of the mouse pad width (width), P l is the custom standard mouse pad length, P w is the custom standard mouse pad width, V l is the virtual mouse pad length, V w is the virtual mouse pad width, S is the mouse sensitivity adjustment coefficient, and S max is the upper limit of the mouse sensitivity adjustment coefficient.
接著,顯示設定估算模組125依據預設係數上限值、顯示設定上限值、調整係數以及當前顯示設定值,獲得顯示設定調整值。顯示設定調整值相關於調整係數與預設係數上限值的比例,顯示設定調整值不大於顯示設定上限值。調整後滑鼠靈敏度(即顯示設定調整值)調整係數的計算方式,如以下方程式(3)以及方程式(4)所示:
……(3)
……(4)
Then, the display setting
M out為調整後滑鼠靈敏度,S為滑鼠敏感度調整係數設定 ,S max為滑鼠敏感度調整係數上限值,M max為作業系統設定中滑鼠敏感度最大設定值,M input為作業系統設定中當前滑鼠敏感度設定值。調整後滑鼠靈敏度會四捨五入至個位數,且設定值不超過作業系統中最大的滑鼠敏感度設定值。 M out is the mouse sensitivity after adjustment, S is the mouse sensitivity adjustment coefficient setting, S max is the upper limit of the mouse sensitivity adjustment coefficient, M max is the maximum mouse sensitivity setting value in the operating system settings, and M input is the current mouse sensitivity setting value in the operating system settings. The mouse sensitivity after adjustment will be rounded to the unit, and the setting value will not exceed the maximum mouse sensitivity setting value in the operating system.
如此設置,透過上述所計算出的調整後滑鼠靈敏度,顯示設定估算模組125可在步驟S250以及步驟S805中,將當前顯示設定值調整為顯示設定調整值(即調整後滑鼠靈敏度),以調整對應輸入裝置的顯示設定值。In this way, through the above-calculated adjusted mouse sensitivity, the display setting
圖3是依照本揭露一實施例的讀取系統參數以獲得機殼剩餘大小的流程圖。顯示設定值包括一游標移動速度,且該預設參數包括標準操作範圍。標準操作範圍可以是預設的標準滑鼠墊長度以及寬度,例如標準長度預設為26公分,以及標準寬度預設為22公分。請參照圖3,處理器110透過執行硬體資訊收集模組122以取得輸入裝置的硬體資訊的步驟之中,處理器110更用以執行步驟S301至步驟S307。FIG. 3 is a flow chart of reading system parameters to obtain the remaining size of the housing according to an embodiment of the present disclosure. The display setting value includes a cursor movement speed, and the default parameter includes a standard operating range. The standard operating range can be a default standard mouse pad length and width, for example, the standard length is defaulted to 26 cm, and the standard width is defaulted to 22 cm. Referring to FIG. 3, the
於步驟S301,硬體資訊收集模組122讀取電子裝置的作業系統的登錄值;該登錄值相關於該電子裝置的該觸控板資訊。舉例而言,作業系統為Windows,則處理器110根據微軟線上公開的指南(guideline)得知電子裝置的讀取觸控板的大小應記錄於報告描述元(Report Descriptor)的實體最大值(PHYSICAL_MAXIMUM)的欄位,以讀取到觸控板大小。另外,觸控板位置資訊在登錄路徑“HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\PrecisionTouchPad”,如此處理器110進而讀取上述登錄路徑中“HorizontalOffset、HorizontalOffsetIsNeg、SpaceBarOffset”的登錄值,以獲得電子裝置的觸控板的位置。In step S301, the hardware
於步驟S302,響應於未讀取到登錄值,硬體資訊收集模組122讀取電子裝置的系統資訊。在本案中,系統資訊包括製造商資訊、產品型號以及顯示器尺寸的至少其中之一。舉例而言,在Windows的作業系統中,硬體資訊收集模組122可執行指令“msinfo32.exe”以查看系統資訊,進而獲得製造商資訊。並且,硬體資訊收集模組122可在電子裝置中執行指令“msinfo32.exe”查看系統資訊,進而獲得產品型號資訊。同樣地,硬體資訊收集模組122透過讀取作業系統中的“Extended Display Identification Data (EDID)”獲得某筆記型電腦的顯示面板大小。In step S302, in response to not reading the registered value, the hardware
於步驟S303,依據系統資訊搜尋資料庫中的資料,硬體資訊收集模組122獲得電子裝置的外殼可使用範圍。也就是說,硬體資訊收集模組122以步驟S302所獲得的系統資訊為索引查詢資料庫。舉例而言,資料庫中儲存有多筆電子裝置的觸控板單側可操作範圍的資訊。如此設置,硬體資訊收集模組122根據在步驟S302所獲得的系統資訊(例如製造商資訊以及產品型號)從資料庫中搜尋匹配的資料,進而獲得此電子裝置的可操作範圍。In step S303, the hardware
於步驟S304以及步驟S305,響應於資料庫中未儲存有電子裝置的外殼可使用範圍,硬體資訊收集模組122讀取電子裝置中顯示器的尺寸資訊,進而計算出電子裝置的觸控板資訊。也就是說,當資料庫中未儲存有此電子裝置的資料時,硬體資訊收集模組122根據預設計算參數計算出電子裝置的顯示面板大小以及觸控板大小(即觸控板資訊)。預設計算參數可以為硬體資訊參數與顯示面板尺寸的關係,預設計算參數如下所表1所示,示例了一組預設計算參數(即觸控板、機殼邊框以及顯示面板的尺寸關係參數),其參數中觸控板尺寸可以為顯示面板的百分之20至百分之60,邊框的尺寸可以是顯示面板加上1至5公分,因此本案不應以此為限制。舉例而言,步驟S302中所讀取到的顯示面板的長寬為31公分與17公分,接著硬體資訊收集模組122根據預設計算參數計算出觸控板的長寬為10.23公分與6.8公分。
於步驟S306,依據顯示器130的尺寸資訊以及觸控板資訊,硬體資訊收集模組122計算出外殼可使用範圍。舉例而言,硬體資訊收集模組122將步驟S305所計算出的機殼大小減去觸控板大小,進而獲得觸控板旁單側的機殼剩餘大小,其中機殼剩餘大小為與觸控板同一平面的機殼扣除掉觸控板後單側可操作滑鼠的範圍。如此設置,硬體資訊收集模組122可透過資料庫以及作業系統登錄值其中之一的方式,讀取電子裝置的硬體資訊,以獲得電子裝置的機殼剩餘大小。另外,於步驟S307,硬體資訊收集模組122將步驟S306以及步驟301所獲得的硬體資訊以及機殼剩餘大小儲存至資料庫之中,進而提升下次計算機殼剩餘大小的速度。資料庫是雲端資料庫以及本地儲存裝置的其中之一。In step S306, based on the size information of the
圖4是依照本揭露一實施例的讀取以及處理游標訊號的流程圖。請參照圖4,處理器更用以執行操作訊號收集模組以執行步驟S401至步驟S406。於步驟S401,操作訊號收集模組123初始化游標訊號變數組。也就是說,操作訊號收集模組123將游標訊號變數組內的變數值都設為零。在本實施例中,游標訊號變數組由兩個變數所組成,分別是移動計數器以及位置陣列,進而用來記錄所分析的滑鼠/游標資訊。移動計數器用以紀錄目前收集到幾個連續的游標移動事件,其預設為整數變數。游標移動事件包括游標移動以及游標離開顯示畫面。滑鼠/游標位置陣列用以紀錄目前收集到連續類移動事件中每一組的位置資訊,其預設為二維整數陣列。FIG. 4 is a flow chart of reading and processing cursor signals according to an embodiment of the present disclosure. Referring to FIG. 4 , the processor is further used to execute the operation signal collection module to execute steps S401 to S406. In step S401, the operation
於步驟S402,操作訊號收集模組123接收輸入裝置所輸入的訊號。在一實施例中,操作訊號收集模組123透過電子裝置的通訊器接收輸入裝置所發出的訊號。於步驟S403,操作訊號收集模組123依序分別判斷這些訊號的訊號分類,進而判斷訊號是否為游標移動事件。訊號分類包括滑鼠移動事件(即游標移動)、滑鼠按鍵事件(例如按下左鍵、釋放左鍵)、滾輪滾動事件(例如游標在網頁瀏覽器中上下滾動頁面)以及游標離開事件,其中滑鼠移動事件以及游標離開事件被歸類於游標移動事件。In step S402, the operation
在步驟S404,響應於訊號為非游標移動事件(即滑鼠按鍵事件以及滾輪滾動事件的其中之一),操作訊號收集模組123重複執行步驟S401,以歸零計數器的數值並且清空該游標訊號變數組的記錄。In step S404, in response to the signal being a non-cursor movement event (i.e., one of a mouse button event and a scroll wheel event), the operation
於步驟S404,響應於訊號為游標移動訊號(即游標移動以及游標離開畫面的其中之一),操作訊號收集模組123將計數器的計數器值加一,並且將游標位置資料記錄為游標訊號變數組。也就是說,操作訊號收集模組123將此事件內的滑鼠位置資訊擷取出來,存入滑鼠/游標位置陣列之中。In step S404, in response to the signal being a cursor movement signal (i.e., one of the cursor movement and the cursor leaving the screen), the operation
於步驟S405,響應於計數值到達一預設計數值(可以是3次至50次之間,例如10次、15次或是30次,本案不應以此為限),操作訊號收集模組123將游標訊號變數組作為游標訊號。換句話說,當滑鼠移動計數器的值超過一給定門檻值(即預設計數值),可以解讀為使用者於一定時間內未做正常滑鼠操作,即代表滑鼠可能使用於光滑桌面上,因此將滑鼠位置陣列(即游標訊號變數組)輸出於至訊號預處理模組124,以進行進一步的計算(步驟S406)。In step S405, in response to the count value reaching a preset count value (which may be between 3 and 50 times, such as 10, 15 or 30 times, but the present invention should not be limited thereto), the operation
圖5是依照本揭露一實施例的游標訊號處理為游標頻率訊號組的流程圖。圖6A以及圖6B是依照本揭露一實施例的非光滑桌面資訊的水平軸訊號、水平軸頻率訊號、垂直軸訊號以及垂直軸頻率訊號的示意圖。圖7A以及圖7B是依照本揭露一實施例的光滑桌面資訊的水平軸訊號、水平軸頻率訊號、垂直軸訊號以及垂直軸頻率訊號的示意圖。請參照圖5,處理器110執行訊號預處理模組124以進行步驟S501至步驟S509。FIG. 5 is a flow chart of processing a cursor signal into a cursor frequency signal set according to an embodiment of the present disclosure. FIG. 6A and FIG. 6B are schematic diagrams of a horizontal axis signal, a horizontal axis frequency signal, a vertical axis signal, and a vertical axis frequency signal of non-smooth desktop information according to an embodiment of the present disclosure. FIG. 7A and FIG. 7B are schematic diagrams of a horizontal axis signal, a horizontal axis frequency signal, a vertical axis signal, and a vertical axis frequency signal of smooth desktop information according to an embodiment of the present disclosure. Referring to FIG. 5 , the
於步驟S501,訊號預處理模組124讀取游標位置陣列(即游標訊號變數組中的位置陣列)。游標訊號包括游標位置陣列,游標位置陣列包括游標水平軸訊號以及游標垂直軸訊號。於步驟S502以及步驟S505,訊號預處理模組124從游標位置陣列中分別擷取游標水平軸數據流以及游標垂直軸數據流。換言之,訊號預處理模組124先將滑鼠游標位置陣列中水平軸(即X軸)與垂直軸(即Y軸)的數據流分開。In step S501, the
接著,在步驟503以及步驟S506中,訊號預處理模組124依據擷取設置參數擷取游標水平/垂直軸訊號(即數據流)中的多個游標水平/垂直軸訊號框。擷取設置參數可以是擷取範圍參數以及每隔多少訊號點擷取訊號的設置參數。也就是說,訊號預處理模組124依據擷取設置參數,擷取游標垂直軸訊號中的多個游標垂直軸訊號框,以及擷取游標水平軸訊號中的多個游標水平軸訊號框。具體來說,訊號預處理模組124分別對水平軸以及垂直軸的數據流每隔固定取樣點(例如,192個取樣點)(即擷取設置參數),擷取固定數量的取樣點(例如,256個取樣點)(即擷取設置參數)為一個分析單位,以分別作為游標水平軸訊號框(Frame)以及游標垂直軸訊號框。Next, in step 503 and step S506, the
在步驟S504以及步驟S507中,訊號預處理模組124以步驟S503以及步驟S506所擷取到的訊號框為單位做傅立葉轉換,將各軸的時域訊號轉換為頻域訊號。具體來說,於步驟S504以及步驟S507中,訊號預處理模組124將多個游標水平軸訊號框以及多個游標垂直軸訊號框透過傅立葉轉換分別從時域訊號轉換成頻域訊號,以獲得多個垂直軸頻率訊號以及多個水平軸頻率訊號。In step S504 and step S507, the
如圖6A以及圖7A所示,左方為游標X軸(水平軸)訊號框的時域訊號,經過訊號預處理模組124對其做傅立葉轉換後獲得如圖6A以及圖7A右方所示游標X軸頻域訊號。同樣地,如圖6B以及圖7B所示,左方為游標Y軸(垂直軸)訊號框的時域訊號,經過訊號預處理模組124對其做傅立葉轉換後獲得如圖6B以及圖7B右方所示游標Y軸頻域訊號。圖6A以及圖6B的游標訊號為滑鼠在一般桌面(非光滑)操作環境下的操作訊號,圖7A以及圖7B的游標訊號為滑鼠在光滑操作環境下的操作訊號。As shown in FIG6A and FIG7A, the left side is the time domain signal of the cursor X-axis (horizontal axis) signal frame, and after the
從圖6A至圖7B可以得知,當滑鼠使用於一般桌面時,滑鼠位置座標X、Y軸在時間軸上的變化比較平順,在訊號預處理模組124對其進行傅立葉轉換後,可以看出其訊號的頻率分布範圍較廣(如圖6A以及圖6B右方的圖)。當滑鼠使用於光滑桌面時,滑鼠位置座標X、Y軸在時間軸上的變化比較驟變非平順,在訊號預處理模組124對其進行傅立葉轉換後,可看出其訊號的頻率分布範圍較窄(如圖7A以及圖7B右方的圖)。也就是說,滑鼠在光滑操作環境下的游標頻域訊號具有較窄的分布範圍。如此一來,訊號分析模組125透過比對游標頻域訊號的分布範圍與預設範圍的大小,進而判斷當前游標訊號的操作環境資訊(即光滑桌面或非光滑桌面)。補充說明的是,圖6A、圖6B、圖7A以及圖7B中左方的圖其X軸單位為時間,以及其Y軸單位為振幅;右方的圖其X軸單位為頻率,以及其Y軸單位為振幅。From FIG. 6A to FIG. 7B , it can be seen that when the mouse is used on a general desktop, the changes of the mouse position coordinates X and Y axes on the time axis are relatively smooth. After the
於步驟S508,訊號預處理模組124將該多個垂直軸頻率訊號依序組成垂直軸頻率訊號組,並且訊號預處理模組124將該多個水平軸頻率訊號依序組成水平軸頻率訊號組。具體來說,訊號預處理模組124將多個垂直軸頻率訊號以及多個水平軸頻率訊號組分別依序頭尾相接。並且,訊號預處理模組124將垂直軸頻率訊號組以及相對應時間的水平軸頻率訊號組作為游標頻率訊號組。於步驟S509,訊號預處理模組124輸出游標頻率訊號組。如此設置,訊號預處理模組124擷取滑鼠位置座標信號,並做適當的預處理以確保可有效地分析所收集的游標訊號。In step S508, the
由於每種演算法的所需運算量以及準確度皆不同,用不適合的演算法恐導致電子裝置當機或是準確度不高。在一實施例中,儲存器120更儲存有效能評估模組121,效能評估模組121用於判斷當前的處理器110所適合的演算法,以提高處理器110在執行其他步驟時的運算效率。效能評估模組121分別透過多個演算法執行同一預測程式,以獲得多個執行時間。效能評估模組121將該多個演算法中具有最短執行時間的演算法作為電子裝置的運算演算法。如此一來,效能評估模組121可即時根據電子裝置的效能,獲得最適合電子裝置的演算法。演算法可以是深層類神經網路、統計模型演算法(例如隱藏式馬可夫模型)或是集群分析演算法(例如K-means),本案不應以此為限。Since the amount of computation required and the accuracy of each algorithm are different, using an inappropriate algorithm may cause the electronic device to crash or have low accuracy. In one embodiment, the
在一實施例中,效能評估模組121所選定的演算法為深層類神經網路。在步驟S250中,訊號分析模組125執行深層類神經網路以基於多個歷史游標資料分析游標頻率訊號組的分布範圍,進而獲得對應游標頻率訊號組的操作環境資訊。操作環境資訊相關於多個歷史游標資料的歷史操作資訊以及歷史頻率訊號組。訊號分析模組125可根據歷史游標資料判斷當前的游標頻率訊號組的操作環境資訊。In one embodiment, the algorithm selected by the
圖8是依照本揭露一實施例的判斷滑鼠是否使用於光滑桌面以及調整敏感度的流程圖。請參照圖8,電子裝置100的處理器110可執行步驟S801至步驟S808。於步驟S801,處理器110根據步驟S240的步驟判斷滑鼠(即輸入裝置)是否使用於光滑桌面上。於步驟S802,響應於滑鼠的操作環境資訊為光滑桌面,處理器110於顯示器130上顯示提示視窗。提示視窗可以是包括“滑鼠是否於光滑平面上,是否要於機殼上操作滑鼠?”或“偵測到滑鼠在光滑表面上,是否將滑鼠置於觸控板旁,並且提高滑鼠靈敏度?”的內容,並且包括確認鍵以及取消鍵。如此設置,處理器110透過提示視窗提示使用者可將滑鼠放置於電子裝置的觸控板旁的剩餘機殼處,並且自動將滑鼠敏感度調整至可操作於機殼上的設定值(即顯示設定調整值)。FIG8 is a flow chart of determining whether the mouse is used on a smooth desktop and adjusting the sensitivity according to an embodiment of the present disclosure. Referring to FIG8 , the
於步驟S803,處理器110判斷是否接收到調整指令(即使用者點擊步驟S802中顯示視窗的確認鍵)。於步驟S804,處理器110響應於操作環境資訊為光滑環境資訊,並且接收到調整指令。處理器110讀取敏感度設定值。也就是說,處理器110讀取在步驟S250中根據顯示設定的調整係數、調整係數最大值、最大設定值、最小設定值以及當前顯示設定值所獲得的顯示設定調整值。In step S803, the
於步驟S805,處理器110將電子裝置的當前顯示設定值調整為調整顯示設定值,進而設定滑鼠敏感度。於步驟S806,處理110結束此流程。於步驟S807,處理器110判斷當前顯示設定值是否等於預設值。在步驟S808,響應於操作環境資訊為非光滑環境資訊,並且當前顯示設定值不等於預設值,則處理器110將當前顯示設定值調整成顯示設定的預設值。In step S805, the
綜上所述,於本揭露的實施例中,動態調整顯示設定的方法與電子裝置根據預處理以及分析頻域訊號的分布範圍,進而判斷出游標訊號的操作環境資訊,以達到自動偵測以及提示使用者當前操作環境。並且,動態調整顯示設定的方法及其電子裝置計算出當前電子裝置的觸控板旁可操作滑鼠的範圍,以調整滑鼠敏感度。如此,動態調整顯示設定的方法與電子裝置可透過適合的演算法計算出適合當前電子裝置的顯示設定調整值,並且提示使用者是否採用調整過後的滑鼠靈敏度以及將滑鼠放置於機殼上操作,以提高使用者體驗的滿意度以及便利性。In summary, in the embodiments disclosed herein, the method and electronic device for dynamically adjusting display settings pre-process and analyze the distribution range of frequency domain signals to determine the operating environment information of the cursor signal, so as to automatically detect and prompt the user of the current operating environment. In addition, the method and electronic device for dynamically adjusting display settings calculate the range of the mouse that can be operated next to the touch panel of the current electronic device to adjust the mouse sensitivity. In this way, the method and electronic device for dynamically adjusting display settings can calculate the display setting adjustment value suitable for the current electronic device through a suitable algorithm, and prompt the user whether to adopt the adjusted mouse sensitivity and place the mouse on the housing for operation, so as to improve the user experience satisfaction and convenience.
雖然本揭露已以實施例揭露如上,然其並非用以限定本揭露,任何所屬技術領域中具有通常知識者,在不脫離本揭露的精神和範圍內,當可作些許的更動與潤飾,故本揭露的保護範圍當視後附的申請專利範圍所界定者為準。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、S301~307、S401~S406、S501~S509、S801~S808:步驟100: Computer system 110: Processor 120: Memory 130: Display 121: Performance evaluation module 122: Hardware information collection module 123: Operation signal collection module 124: Signal pre-processing module 125: Signal analysis module 126: Display setting estimation module S210~S250, S301~307, S401~S406, S501~S509, S801~S808: Steps
圖1是依照本揭露一實施例的電子裝置的方塊圖。 圖2是依照本揭露一實施例的動態調整顯示設定的方法的流程圖。 圖3是依照本揭露一實施例的讀取系統參數以獲得機殼剩餘大小的流程圖。 圖4是依照本揭露一實施例的讀取以及處理游標訊號的流程圖。 圖5是依照本揭露一實施例的游標訊號處理為游標頻率訊號組的流程圖。 圖6A以及圖6B是依照本揭露一實施例的非光滑桌面資訊的水平軸訊號、水平軸頻率訊號、垂直軸訊號以及垂直軸頻率訊號的示意圖。 圖7A以及圖7B是依照本揭露一實施例的光滑桌面資訊的水平軸訊號、水平軸頻率訊號、垂直軸訊號以及垂直軸頻率訊號的示意圖。 圖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 display settings according to an embodiment of the present disclosure. FIG. 3 is a flow chart of reading system parameters to obtain the remaining size of the housing according to an embodiment of the present disclosure. FIG. 4 is a flow chart of reading and processing cursor signals according to an embodiment of the present disclosure. FIG. 5 is a flow chart of processing cursor signals into cursor frequency signal groups according to an embodiment of the present disclosure. FIG. 6A and FIG. 6B are schematic diagrams of horizontal axis signals, horizontal axis frequency signals, vertical axis signals, and vertical axis frequency signals of non-smooth desktop information according to an embodiment of the present disclosure. FIG. 7A and FIG. 7B are schematic diagrams of the horizontal axis signal, the horizontal axis frequency signal, the vertical axis signal, and the vertical axis frequency signal of the smooth desktop information according to an embodiment of the present disclosure. FIG. 8 is a flow chart of determining whether the mouse is used on a smooth desktop and adjusting the sensitivity according to an embodiment of the present disclosure.
S210~S250:步驟 S210~S250: Steps
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW113105603A TWI871919B (en) | 2024-02-17 | 2024-02-17 | Method and electronic device for dynamically adjusting display setting |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW113105603A TWI871919B (en) | 2024-02-17 | 2024-02-17 | Method and electronic device for dynamically adjusting display setting |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI871919B true TWI871919B (en) | 2025-02-01 |
| TW202534492A TW202534492A (en) | 2025-09-01 |
Family
ID=95557134
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW113105603A TWI871919B (en) | 2024-02-17 | 2024-02-17 | Method and electronic device for dynamically adjusting display setting |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI871919B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW201423499A (en) * | 2012-12-07 | 2014-06-16 | Geoffrey Wen-Chieh Lee | Optical mouse with cursor rotating ability, the motion detector and method thereof |
| US20220147163A1 (en) * | 2019-02-13 | 2022-05-12 | Xinlin CAO | System and method for processing commands in a computer-graphics software environment |
| TWI792613B (en) * | 2021-10-15 | 2023-02-11 | 致伸科技股份有限公司 | Adjustment method of data report rate |
-
2024
- 2024-02-17 TW TW113105603A patent/TWI871919B/en active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW201423499A (en) * | 2012-12-07 | 2014-06-16 | Geoffrey Wen-Chieh Lee | Optical mouse with cursor rotating ability, the motion detector and method thereof |
| US20220147163A1 (en) * | 2019-02-13 | 2022-05-12 | Xinlin CAO | System and method for processing commands in a computer-graphics software environment |
| TWI792613B (en) * | 2021-10-15 | 2023-02-11 | 致伸科技股份有限公司 | Adjustment method of data report rate |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202534492A (en) | 2025-09-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7474772B2 (en) | System and method for a miniature user input device | |
| US8260740B2 (en) | System to associate a demographic to a user of an electronic system | |
| CN107710111B (en) | Determining the pitch angle for proximity sensitive interactions | |
| CN104516499B (en) | Apparatus and method for utilizing events of a user interface | |
| CN111598149B (en) | A loop detection method based on attention mechanism | |
| WO2012063560A1 (en) | Image processing system, image processing method, and storage medium storing image processing program | |
| CN115951783A (en) | A computer human-computer interaction method based on gesture recognition | |
| CN119311122A (en) | Cloud game virtual reality gesture interaction method, device and storage medium based on adaptive multimodal fusion | |
| CN108664348B (en) | Fast variable point detection method and device based on CUDA (compute unified device architecture) and storage medium | |
| Wen et al. | UbiTouch: Ubiquitous smartphone touchpads using built-in proximity and ambient light sensors | |
| TWI871919B (en) | Method and electronic device for dynamically adjusting display setting | |
| CN107729144B (en) | Application control method and device, storage medium and electronic equipment | |
| Yen et al. | Adaptive indoor people-counting system based on edge ai computing | |
| CN113743295A (en) | Fall detection method, device, equipment and storage medium | |
| CN120449922B (en) | Reliability analysis method and system for body model, medium, equipment and product | |
| CN118276608B (en) | A scene sensing pan/tilt motor adjustment system | |
| CN118711249A (en) | A human body recognition method and system based on digital skills | |
| TWI879573B (en) | Method and electronic device for dynamically adjusting cursor display | |
| JP2022081159A (en) | Inference device, learning device, object counting method, and program | |
| KR20210029753A (en) | Method and apparatus for recognizing gesture | |
| CN118968566B (en) | Fall event identification method, device and medium | |
| TW202546616A (en) | Method and electronic device for dynamically adjusting cursor display | |
| CN111797859A (en) | Feature processing method, device, storage medium and electronic device | |
| CN111797866A (en) | Feature extraction method and device, storage medium and electronic equipment | |
| JP7792150B2 (en) | Information processing method, information processing device, and computer program |