TWI602111B - Electronic device and color setting method for user interface - Google Patents

Electronic device and color setting method for user interface Download PDF

Info

Publication number
TWI602111B
TWI602111B TW103120049A TW103120049A TWI602111B TW I602111 B TWI602111 B TW I602111B TW 103120049 A TW103120049 A TW 103120049A TW 103120049 A TW103120049 A TW 103120049A TW I602111 B TWI602111 B TW I602111B
Authority
TW
Taiwan
Prior art keywords
color
image
user interface
background
screen
Prior art date
Application number
TW103120049A
Other languages
Chinese (zh)
Other versions
TW201546697A (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 TW103120049A priority Critical patent/TWI602111B/en
Publication of TW201546697A publication Critical patent/TW201546697A/en
Application granted granted Critical
Publication of TWI602111B publication Critical patent/TWI602111B/en

Links

Description

電子裝置及使用者介面的色彩設定方法 Electronic device and user interface color setting method

本發明是有關於一種電子裝置及其操作方法,且特別是有關於一種電子裝置及其使用者介面的色彩設定方法。 The present invention relates to an electronic device and a method of operating the same, and more particularly to a color setting method for an electronic device and a user interface thereof.

使用者介面(User Interface,UI)是系統和使用者之間進行互動和訊息交換的媒介,其主要是介於使用者與硬體而設計彼此之間互動溝通相關軟體,目的在使得使用者能夠方便有效率地去操作硬體以達成雙向之互動,完成所希望藉助硬體完成之工作,使用者介面定義廣泛,包含了人機互動與圖形使用者介面,凡參與人類與機械的訊息交流的領域都存在著使用者介面。 The user interface (UI) is a medium for interaction and information exchange between the system and the user. The user interface is designed to interact with each other and is designed to enable the user to interact with each other. It is convenient and efficient to operate the hardware to achieve two-way interaction, to complete the work that you want to complete with hardware, the user interface is broadly defined, including human-computer interaction and graphical user interface, and participate in the communication between human and mechanical information. There are user interfaces in the field.

軟體開發者事先設計時,因為現代軟體常由不同公司開發然後可以執行在同一裝置上,並且使用者界面會有重疊的情形。例如安卓(Android)系統的主螢幕啟動器(home screen launcher)的背景是可以更換的,使用者可以更換桌面的桌布(wallpaper),此時事先設計的界面工具 集(widget)的顏色,與桌面恐有不協調的使用者感覺。倘若每次更換桌布都要讓使用者重新挑選顏色,又顯得太過麻煩。 Software developers design in advance because modern software is often developed by different companies and can then be executed on the same device, and the user interface will overlap. For example, the background of the home screen launcher of the Android system can be replaced, and the user can replace the wallpaper of the desktop. In this case, the interface tool is designed in advance. The color of the widget may be inconsistent with the user's desktop. It would be too much trouble if the user had to re-select the color each time the tablecloth was changed.

為了解決上述問題,相關領域莫不費盡心思來謀求解決之道,但長久以來一直未見適用的方式被發展完成。因此,如何能自動調整使用者介面的色彩,實屬當前重要研發課題之一,亦成為當前相關領域極需改進的目標。 In order to solve the above problems, the relevant fields have not exhausted their efforts to seek solutions, but the methods that have not been applied for a long time have been developed. Therefore, how to automatically adjust the color of the user interface is one of the current important research and development topics, and has become an urgent need for improvement in related fields.

本發明之一態樣是在提供一種電子裝置及其使用者介面的色彩設定方法,以解決先前技術的問題。 One aspect of the present invention is to provide a color setting method for an electronic device and its user interface to solve the problems of the prior art.

本發明所提供之使用者介面的色彩設定方法包括下列步驟:自螢幕的顯示內容中擷取取樣圖像,其中取樣圖像包括前景使用者介面之圖像與背景使用者介面之部分圖像,背景使用者介面之部分圖像係毗連於前景使用者介面之圖像的外圍;分析取樣圖像中背景使用者介面之部分圖像的色彩參數;根據色彩參數,計算出對比色彩參數,其中對比色彩參數與色彩參數具有互補性;根據對比色彩參數,調整前景使用者介面之色彩。 The color setting method of the user interface provided by the present invention includes the following steps: capturing a sample image from the display content of the screen, wherein the sample image includes a part of the image of the foreground user interface and a part of the background user interface, A part of the image of the background user interface is adjacent to the periphery of the image of the foreground user interface; analyzing the color parameters of the partial image of the background user interface in the sampled image; and calculating the contrast color parameter according to the color parameter, wherein the contrast is The color parameters are complementary to the color parameters; the color of the foreground user interface is adjusted according to the contrast color parameters.

另一方面,本發明所提供之電子裝置包括螢幕、螢幕擷取模組、色彩分析模組、色彩選擇模組與色彩調整模組。螢幕用以顯示背景使用者介面與前景使用者介面;螢幕擷取模組用以自螢幕的顯示內容中擷取取樣圖像,其中取樣圖像包括前景使用者介面之圖像與背景使用者介面之 部分圖像,背景使用者介面之部分圖像係毗連於前景使用者介面之圖像的外圍;色彩分析模組用以分析取樣圖像中背景使用者介面之部分圖像的色彩參數;色彩選擇模組用以根據色彩參數,計算出對比色彩參數,其中對比色彩參數與色彩參數具有互補性;色彩調整模組根據對比色彩參數,調整螢幕所顯示的前景使用者介面之相關色彩。 In another aspect, the electronic device provided by the present invention includes a screen, a screen capture module, a color analysis module, a color selection module, and a color adjustment module. The screen is used to display the background user interface and the foreground user interface; the screen capture module is used to capture the sampled image from the display content of the screen, wherein the sampled image includes the image of the foreground user interface and the background user interface. It Part of the image, part of the image of the background user interface is adjacent to the periphery of the image of the foreground user interface; the color analysis module is used to analyze the color parameters of the image of the background user interface in the sampled image; color selection The module is configured to calculate a contrast color parameter according to the color parameter, wherein the contrast color parameter and the color parameter are complementary; the color adjustment module adjusts the relevant color of the foreground user interface displayed on the screen according to the contrast color parameter.

綜上所述,本發明之技術方案與現有技術相比具有明顯的優點和有益效果。藉由上述技術方案,可達到相當的技術進步,並具有產業上的廣泛利用價值,其至少具有下列優點:1、在多重使用者介面重疊時,自動設定前景使用者介面的色彩,讓使用者感覺色彩分明,從而有效地保護人體眼睛;以及2、無需使用者手動選擇顏色,簡單方便。 In summary, the technical solution of the present invention has obvious advantages and beneficial effects compared with the prior art. With the above technical solution, considerable technological progress can be achieved, and the industrial use value is widely used, which has at least the following advantages: 1. When the multiple user interfaces overlap, the color of the foreground user interface is automatically set, and the user is allowed to It has a clear color, which effectively protects the human eye; and 2, no need for the user to manually select the color, simple and convenient.

以下將以實施方式對上述之說明作詳細的描述,並對本發明之技術方案提供更進一步的解釋。 The above description will be described in detail in the following embodiments, and further explanation of the technical solutions of the present invention will be provided.

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附符號之說明如下: The above and other objects, features, advantages and embodiments of the present invention will become more apparent and understood.

100‧‧‧電子裝置 100‧‧‧Electronic devices

110‧‧‧螢幕 110‧‧‧ screen

120‧‧‧螢幕擷取模組 120‧‧‧Screen capture module

130‧‧‧色彩分析模組 130‧‧‧Color Analysis Module

140‧‧‧色彩選擇模組 140‧‧‧Color selection module

150‧‧‧色彩調整模組 150‧‧‧Color adjustment module

210、310‧‧‧前景使用者介面 210, 310‧‧‧ prospect user interface

220、320‧‧‧背景使用者介面 220, 320‧‧‧ background user interface

222‧‧‧部分圖像 222‧‧‧Part image

223‧‧‧第一背景圖像區 223‧‧‧First background image area

225‧‧‧第二背景圖像區 225‧‧‧second background image area

230‧‧‧取樣圖像 230‧‧‧Sampling images

250‧‧‧螢幕圖像 250‧‧‧ screen image

260‧‧‧取樣區域 260‧‧‧Sampling area

311、312、313‧‧‧邊緣 Edge of 311, 312, 313‧‧

315‧‧‧圖符 315‧‧‧ icon

400‧‧‧色彩設定方法 400‧‧‧Color setting method

410~440‧‧‧步驟 410~440‧‧‧Steps

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:第1圖是依照本發明一實施例之一種電子裝置的方塊圖;第2圖是依照本發明一實施例之一種前景及背景使用者介面重疊的示意圖;第3圖是依照本發明另一實施例之一種前景及背景使用者 介面重疊的示意圖;以及第4圖是依照本發明一實施例之一種使用者介面的色彩設定方法的流程圖。 The above and other objects, features, advantages and embodiments of the present invention will become more <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; The figure is a schematic diagram of foreground and background user interface overlap according to an embodiment of the invention; FIG. 3 is a foreground and background user according to another embodiment of the present invention. A schematic diagram of interface overlap; and FIG. 4 is a flow chart of a color setting method of a user interface according to an embodiment of the invention.

為了使本發明之敘述更加詳盡與完備,可參照所附之圖式及以下所述各種實施例,圖式中相同之號碼代表相同或相似之元件。另一方面,眾所週知的元件與步驟並未描述於實施例中,以避免對本發明造成不必要的限制。 In order to make the description of the present invention more complete and complete, reference is made to the accompanying drawings and the accompanying drawings. On the other hand, well-known elements and steps are not described in the embodiments to avoid unnecessarily limiting the invention.

第1圖是依照本發明一實施例之一種電子裝置100的方塊圖,如第1圖所示,電子裝置100包括螢幕110、螢幕擷取模組120、色彩分析模組130、色彩選擇模組140與色彩調整模組150。實作上,電子裝置100可為平板電腦、手機、筆記型電腦或其他可攜式電子產品,螢幕110可為液晶螢幕、電子紙或其他顯示裝置。至於螢幕擷取模組120、色彩分析模組130、色彩選擇模組140與色彩調整模組150之具體實施方式可為軟體、硬體與/或軔體。舉例來說,若以執行速度及精確性為首要考量,則該等模組基本上可選用硬體與/或軔體為主;若以設計彈性為首要考量,則該等模組基本上可選用軟體為主;或者,該等模組可同時採用軟體、硬體及軔體協同作業。應瞭解到,以上所舉的這些例子並沒有所謂孰優孰劣之分,亦並非用以限制本發明,熟習此項技藝者當視當時需要,彈性選擇該等模組的具體實施方式。於一實施例中,螢幕擷取模組120、色彩 分析模組130、色彩選擇模組140與色彩調整模組150可整合至中央處理單元、微控制器或類似功能的電子元件。 FIG. 1 is a block diagram of an electronic device 100 according to an embodiment of the invention. As shown in FIG. 1 , the electronic device 100 includes a screen 110 , a screen capture module 120 , a color analysis module 130 , and a color selection module . 140 and color adjustment module 150. In practice, the electronic device 100 can be a tablet computer, a mobile phone, a notebook computer or other portable electronic products, and the screen 110 can be a liquid crystal screen, an electronic paper or other display device. The specific implementation manners of the screen capture module 120, the color analysis module 130, the color selection module 140, and the color adjustment module 150 may be software, hardware, and/or carcass. For example, if the execution speed and accuracy are the primary considerations, the modules can basically be dominated by hardware and/or carcass; if design flexibility is the primary consideration, then the modules are basically The software is mainly used; or, the modules can work together with software, hardware and carcass. It should be understood that the above examples are not intended to limit the present invention, and are not intended to limit the present invention. Those skilled in the art will be able to flexibly select the specific embodiments of the modules as needed. In an embodiment, the screen capture module 120, color The analysis module 130, the color selection module 140, and the color adjustment module 150 can be integrated into a central processing unit, a microcontroller, or similar functional electronic components.

請同時參照第1、2圖,於一實施例中,螢幕110可顯示如第2圖所示的螢幕圖像250,例如可為全螢幕畫面。螢幕110顯示之背景使用者介面220與前景使用者介面210彼此部分重疊,舉例來說,前景使用者介面210可為界面工具集(widget),背景使用者介面220可為桌布。螢幕擷取模組120自螢幕110的顯示內容中擷取取樣圖像230,其中取樣圖像230包括前景使用者介面210之圖像與背景使用者介面220之部分圖像222,背景使用者介面220之部分圖像222係毗連於前景使用者介面210之圖像的外圍;色彩分析模組130用以分析取樣圖像230中背景使用者介面220之部分圖像222的色彩參數;色彩選擇模組140根據色彩參數,計算出對比色彩參數,其中對比色彩參數與色彩參數具有互補性;色彩調整模組150根據對比色彩參數,調整螢幕110所顯示的前景使用者介面之色彩,其顏色改變過程可採用淡入/淡出(fade-in/fade-out)效果。藉此,在多重使用者介面重疊時,電子裝置100自動設定前景使用者介面的色彩,讓使用者感覺色彩分明,從而有效地保護人體眼睛。 Referring to FIG. 1 and FIG. 2 simultaneously, in an embodiment, the screen 110 can display the screen image 250 as shown in FIG. 2, for example, can be a full screen screen. The background user interface 220 and the foreground user interface 210 of the screen 110 are partially overlapped with each other. For example, the foreground user interface 210 can be an interface tool set, and the background user interface 220 can be a tablecloth. The screen capture module 120 captures the sample image 230 from the display content of the screen 110. The sample image 230 includes an image of the foreground user interface 210 and a partial image 222 of the background user interface 220. The background user interface The image 222 of the portion 220 is adjacent to the periphery of the image of the foreground user interface 210; the color analysis module 130 is configured to analyze the color parameter of the partial image 222 of the background user interface 220 in the sample image 230; The group 140 calculates a contrast color parameter according to the color parameter, wherein the contrast color parameter and the color parameter are complementary; the color adjustment module 150 adjusts the color of the foreground user interface displayed by the screen 110 according to the contrast color parameter, and the color changing process A fade-in/fade-out effect can be used. Thereby, when the multiple user interfaces overlap, the electronic device 100 automatically sets the color of the foreground user interface, so that the user feels the color is distinct, thereby effectively protecting the human eye.

實務上,每當背景使用者介面220變換時,使用者就有可能感覺色彩不協調,為了不麻煩使用者手動重選顏色,螢幕擷取模組120可自動偵測背景使用者介面220是否改變,當背景使用者介面220改變時,自螢幕110獲取 螢幕圖像250,進而從螢幕圖像250中剪裁取樣圖像230,然後,再由色彩分析模組130、色彩選擇模組140與色彩調整模組150做後續處理。或者,螢幕擷取模組120可週期性地自螢幕獲取螢幕圖像250,進而從螢幕圖像250中剪裁取樣圖像230,然後,再由色彩分析模組130、色彩選擇模組140與色彩調整模組150做後續處理。藉此,無需使用者手動挑選顏色,簡單方便。 In practice, whenever the background user interface 220 is changed, the user may feel that the color is uncoordinated. In order not to bother the user to manually reselect the color, the screen capture module 120 can automatically detect whether the background user interface 220 is changed. When the background user interface 220 is changed, it is obtained from the screen 110. The screen image 250 is further cropped from the screen image 250, and then processed by the color analysis module 130, the color selection module 140, and the color adjustment module 150. Alternatively, the screen capture module 120 can periodically acquire the screen image 250 from the screen, and then crop the sample image 230 from the screen image 250, and then, by the color analysis module 130, the color selection module 140, and the color. The adjustment module 150 performs subsequent processing. Thereby, the user does not need to manually select the color, which is simple and convenient.

具體而言,螢幕擷取模組120係以前景使用者介面210所占的位置為中心向外等比例擴張的區域定義為取樣區域260,進而將螢幕圖像250中與取樣區域260重疊的範圍剪裁出來以作為取樣圖像230,在本發明之一實施例中,取樣區域260的長和寬為前景使用者介面210的長和寬的各3倍,但將螢幕圖像250中與取樣區域260未重疊的範圍捨棄。藉此,排除了距離前景使用者介面210較遠的背景範圍,以提高取樣的可靠性。 Specifically, the screen capture module 120 defines an area that is outwardly proportionally expanded centering on the position occupied by the foreground user interface 210 as the sampling area 260, thereby overlapping the screen image 250 with the sampling area 260. Clipped out as a sampled image 230, in one embodiment of the invention, the length and width of the sampling region 260 are each 3 times the length and width of the foreground user interface 210, but the screen image 250 is centered with the sampling region 260 non-overlapping ranges are discarded. Thereby, the background range far from the foreground user interface 210 is excluded to improve the reliability of sampling.

色彩分析模組130將取樣圖像230中背景使用者介面220之部分圖像222劃分為第一背景圖像區223與第二背景圖像區225,進而將第一背景圖像區223的平均色彩值乘以第一權重並且將第二背景圖像區225的平均色彩值乘以第二權重,據以得出色彩參數,其中該第二背景圖像區225係毗連於第一背景圖像區223的外圍,而第一背景圖像區223係毗連於前景使用者介面210之圖像的外圍,第一權重高於第二權重。藉此,電子裝置100優先考量距離前景使用者介面210最近的第一背景圖像區223,有助於提高 色彩調整的突顯性。 The color analysis module 130 divides the partial image 222 of the background user interface 220 in the sample image 230 into the first background image area 223 and the second background image area 225, thereby averaging the first background image area 223. The color value is multiplied by the first weight and the average color value of the second background image area 225 is multiplied by a second weight to derive a color parameter, wherein the second background image area 225 is contiguous with the first background image The periphery of the area 223, and the first background image area 223 is adjacent to the periphery of the image of the foreground user interface 210, the first weight being higher than the second weight. Thereby, the electronic device 100 preferentially considers the first background image area 223 that is closest to the foreground user interface 210, which helps to improve. The highlight of color adjustment.

實作上,色彩分析模組130所得出的色彩參數係對應第一顏色,色彩選擇模組140根據色彩參數所計算出的對比色彩參數係對應第二顏色,其中第一顏色與第二顏色互為補色。在疊加型的原色系統中,例如RGB系統,若兩種顏色等量混合時能產生白色,則該兩種顏色互為補色;相對地,在消減型的原色系統中,例如CMYK系統,若兩種顏色等量混合時產生接近黑色的濁褐色,則該兩種顏色互為補色。以RGB系統為例,若色彩參數(R255,G255,B0)係對應於純黃色,通過色彩選擇模組140的計算:R(255-255),G(255-255),B(255-0),其計算出的對比色彩參數(R0,G0,B255)係對應於藍色;若色彩參數(R0,G255,B0)係對應於綠色,通過色彩選擇模組140的計算:R(255-0),G(255-255),B(255-0),其計算出的對比色彩參數(R255,G0,B255)係對應於紫色。另一方面,HSV是一種將RGB系統中的點在圓柱坐標系中的表示法,HSV即色相、飽和度、明度(Hue,Saturation,Value),Hue的範圍是0~360,計算互補色方法是(Hue+180)取360的餘數。舉例來說,藍色在RGB系統中的色彩參數(R0,G0,B255)可轉換成HSV系統中的色彩參數(H(240),S(100),V(100)),而對比色彩參數為H((240+180)%360),S(100),V(100)=H(60),S(100),V(100)。應瞭解到,以上所舉的RGB、HSV系統僅為例示,並非用以限制本發明,實務上,熟習此項技藝者應視當時需要彈性選擇任何的色彩模型。 In practice, the color parameter obtained by the color analysis module 130 corresponds to the first color, and the contrast color parameter calculated by the color selection module 140 according to the color parameter corresponds to the second color, wherein the first color and the second color are mutually For complementary colors. In a superimposed primary color system, such as an RGB system, if two colors can produce white when mixed in equal amounts, the two colors complement each other; in contrast, in a subtractive primary color system, such as a CMYK system, if two When the colors are mixed in equal amounts, a turbid brown that is close to black is produced, and the two colors are complement each other. Taking the RGB system as an example, if the color parameters (R255, G255, B0) correspond to pure yellow, the calculation by the color selection module 140: R (255-255), G (255-255), B (255-0) ), the calculated contrast color parameter (R0, G0, B255) corresponds to blue; if the color parameter (R0, G255, B0) corresponds to green, the calculation by the color selection module 140: R (255- 0), G(255-255), B(255-0), and the calculated contrast color parameters (R255, G0, B255) correspond to purple. On the other hand, HSV is a representation of the point in the RGB system in the cylindrical coordinate system. HSV is hue, saturation, and brightness (Hue, Saturation, Value). The range of Hue is 0~360. Yes (Hue+180) takes the remainder of 360. For example, blue color parameters (R0, G0, B255) in RGB systems can be converted to color parameters (H(240), S(100), V(100)) in HSV systems, while contrasting color parameters It is H ((240 + 180)% 360), S (100), V (100) = H (60), S (100), V (100). It should be understood that the above-mentioned RGB and HSV systems are merely illustrative and are not intended to limit the present invention. In practice, those skilled in the art should flexibly select any color model at that time.

色彩調整模組150可改變前景使用者介面210之內部顏色,使內部顏色含有上述之第二顏色,藉以突顯前景使用者介面210的色彩。舉例來說,前景使用者介面210之內部顏色包括字型顏色,若字型顏色變為第二顏色,則字體相較於背景可以更清楚。再者,色彩調整模組150可改變前景使用者介面210之邊緣顏色,使邊緣顏色至少含有第二顏色,藉以使前景使用者介面210與背景使用者介面220之間得交界更為明顯。 The color adjustment module 150 can change the internal color of the foreground user interface 210 such that the internal color contains the second color described above, thereby highlighting the color of the foreground user interface 210. For example, the internal color of the foreground user interface 210 includes a font color, and if the font color changes to the second color, the font can be more clear than the background. Moreover, the color adjustment module 150 can change the edge color of the foreground user interface 210 so that the edge color has at least a second color, so that the interface between the foreground user interface 210 and the background user interface 220 is more obvious.

為了對「邊緣顏色」做更進一步闡述,請同時參照第1、3圖,於一實施例中,螢幕110可顯示如第3圖所示的螢幕圖像350,螢幕圖像350中呈現了背景使用者介面320與前景使用者介面310,舉例來說,前景使用者介面310可為選單,背景使用者介面320可為桌布。色彩調整模組150可設定前景使用者介面310具有複數層邊緣311、312、313,進而將這些邊層緣312的顏色係調整為由第二顏色與第一顏色交替排列,舉例來說,邊緣311、313為第二顏色,而邊緣312為第一顏色,藉以使前景使用者介面310與背景使用者介面320之間得交界更為分明。另一方面,關於前景使用者介面210之內部顏色,色彩調整模組150可改變前景使用者介面310中圖符315的顏色,使圖符315的顏色含有第二顏色(如:第二顏色邊框、第二顏色的字型…等),藉以突顯圖符315的色彩。 In order to further describe the "edge color", please refer to FIG. 1 and FIG. 3 simultaneously. In an embodiment, the screen 110 can display the screen image 350 as shown in FIG. 3, and the screen image 350 presents the background. The user interface 320 and the foreground user interface 310, for example, the foreground user interface 310 can be a menu, and the background user interface 320 can be a tablecloth. The color adjustment module 150 can set the foreground user interface 310 to have a plurality of layer edges 311, 312, 313, and then adjust the color of the edge layer 312 to be alternately arranged by the second color and the first color, for example, an edge. 311, 313 are the second color, and the edge 312 is the first color, so that the boundary between the foreground user interface 310 and the background user interface 320 is more distinct. On the other hand, regarding the internal color of the foreground user interface 210, the color adjustment module 150 can change the color of the icon 315 in the foreground user interface 310 so that the color of the icon 315 contains the second color (eg, the second color border). , the font of the second color, etc.), thereby highlighting the color of the icon 315.

第4圖是依照本發明一實施例之一種使用者介面的色彩設定方法400的流程圖。如第4圖所示,色彩設定 方法400包括步驟410~440(應瞭解到,在本實施例中所提及的步驟,除特別敘明其順序者外,均可依實際需要調整其前後順序,甚至可同時或部分同時執行)。至於實施該些步驟的硬體裝置,由於以上實施例已具體揭露,因此不再重複贅述之。 4 is a flow chart of a color setting method 400 for a user interface in accordance with an embodiment of the present invention. As shown in Figure 4, color settings The method 400 includes steps 410-440. It should be understood that the steps mentioned in this embodiment can be adjusted according to actual needs, except that the order is specifically described, and may be performed simultaneously or partially simultaneously. . As for the hardware device for carrying out these steps, since the above embodiments have been specifically disclosed, the description thereof will not be repeated.

若背景使用者介面與前景使用者介面彼此部分重疊,於步驟410,自螢幕的顯示內容中擷取取樣圖像,其中取樣圖像包括前景使用者介面之圖像與背景使用者介面之部分圖像,背景使用者介面之部分圖像係毗連於前景使用者介面之圖像的外圍;於步驟420,分析取樣圖像中背景使用者介面之部分圖像的色彩參數;於步驟430,根據色彩參數,計算出一對比色彩參數,其中對比色彩參數與色彩參數具有互補性;於步驟440,根據對比色彩參數,調整前景使用者介面之色彩,其顏色改變過程可採用淡入/淡出效果。藉此,在多重使用者介面重疊時,色彩設定方法400自動設定前景使用者介面的色彩,讓使用者感覺色彩分明,從而有效地保護人體眼睛。 If the background user interface and the foreground user interface partially overlap each other, in step 410, a sample image is captured from the display content of the screen, wherein the sample image includes a partial image of the foreground user interface and the background user interface. For example, a part of the image of the background user interface is adjacent to the periphery of the image of the foreground user interface; in step 420, the color parameter of the partial image of the background user interface in the sampled image is analyzed; in step 430, according to the color The parameter calculates a contrast color parameter, wherein the contrast color parameter and the color parameter have complementarity; in step 440, the color of the foreground user interface is adjusted according to the contrast color parameter, and the color change process may adopt a fade in/out effect. Thereby, when the multiple user interfaces overlap, the color setting method 400 automatically sets the color of the foreground user interface, so that the user feels the color is distinct, thereby effectively protecting the human eye.

實務上,每當背景使用者介面變換時,使用者就有可能感覺色彩不協調,為了不麻煩使用者手動重選顏色,於步驟410可偵測背景使用者介面是否改變,當背景使用者介面改變時,自螢幕獲取一螢幕圖像,進而從螢幕圖像中剪裁取樣圖像,然後,再由步驟420~440做後續處理。或者,於步驟410可週期性地自螢幕獲取一螢幕圖像,進而從螢幕圖像中剪裁取樣圖像,然後,再由步驟420~440 做後續處理。藉此,無需使用者手動挑選顏色,簡單方便。 In practice, whenever the background user interface changes, the user may feel that the color is uncoordinated. In order not to bother the user to manually reselect the color, in step 410, it is possible to detect whether the background user interface changes, when the background user interface is changed. When changing, a screen image is acquired from the screen, and the sampled image is cropped from the screen image, and then processed by steps 420-440. Alternatively, in step 410, a screen image may be periodically acquired from the screen, and then the sampled image is cropped from the screen image, and then, by steps 420-440 Do follow-up processing. Thereby, the user does not need to manually select the color, which is simple and convenient.

具體而言,於步驟410,以前景使用者介面所占的位置為中心向外等比例擴張的區域定義為一取樣區域;將螢幕圖像中與取樣區域重疊的範圍剪裁出來以作為取樣圖像。藉此,排除了距離前景使用者介面較遠的背景範圍,以提高取樣的可靠性。 Specifically, in step 410, an area that is outwardly proportionally expanded centering on a position occupied by the foreground user interface is defined as a sampling area; and a range overlapping the sampling area in the screen image is cut out as a sample image. . Thereby, the background range far from the foreground user interface is excluded to improve the reliability of sampling.

於步驟420,將取樣圖像中背景使用者介面之部分圖像劃分為一第一背景圖像區與一第二背景圖像區,其中第二背景圖像區係毗連於第一背景圖像區的外圍,而第一背景圖像區係毗連於前景使用者介面之圖像的外圍;接著,將第一背景圖像區的平均色彩值乘以第一權重並將第二背景圖像區的平均色彩值乘以第二權重,據以得出色彩參數,其中第一權重高於第二權重。藉此,色彩設定方法400優先考量距離前景使用者介面最近的第一背景圖像區223,有助於提高色彩調整的突顯性。 In step 420, the partial image of the background user interface in the sampled image is divided into a first background image area and a second background image area, wherein the second background image area is adjacent to the first background image. a periphery of the area, and the first background image area is adjacent to the periphery of the image of the foreground user interface; then, the average color value of the first background image area is multiplied by the first weight and the second background image area is The average color value is multiplied by a second weight to derive a color parameter, wherein the first weight is higher than the second weight. Thereby, the color setting method 400 preferentially considers the first background image area 223 closest to the foreground user interface, which helps to improve the highlighting of the color adjustment.

於步驟430中,可藉由前述互補色的原則來選取較為突顯的色彩。於一實施例中,於步驟420所得出的色彩參數係對應第一顏色,於步驟430根據色彩參數所計算出的對比色彩參數係對應第二顏色,第一顏色與第二顏色互為補色。 In step 430, the more prominent colors can be selected by the principle of the aforementioned complementary colors. In one embodiment, the color parameter obtained in step 420 corresponds to the first color, and the contrast color parameter calculated according to the color parameter in step 430 corresponds to the second color, and the first color and the second color are complementary colors to each other.

於步驟440中,可改變前景使用者介面之內部顏色,使內部顏色含有第二顏色,藉以突顯前景使用者介面的色彩。舉例來說,前景使用者介面之內部顏色包括字型顏色,若字型顏色變為第二顏色,則字體相較於背景可以 更清楚。或者或再者,於步驟440中,亦可改變前景使用者介面之邊緣顏色,使邊緣顏色至少含有第二顏色,藉以使前景使用者介面與背景使用者介面之間得交界更為明顯。 In step 440, the internal color of the foreground user interface can be changed such that the internal color contains a second color to highlight the color of the foreground user interface. For example, the internal color of the foreground user interface includes the font color. If the font color changes to the second color, the font can be compared to the background. More clearly. Alternatively, or in addition, in step 440, the edge color of the foreground user interface may also be changed so that the edge color has at least a second color, so that the interface between the foreground user interface and the background user interface is more obvious.

為了更突顯「邊緣顏色」,於一實施例中,於步驟440可設定前景使用者介面具有複數層邊緣,將些邊層緣的顏色係調整為由第一顏色與第二顏色交替排列。 In order to further highlight the "edge color", in an embodiment, in step 440, the foreground user interface can be set to have a plurality of layer edges, and the color layers of the edge layers are adjusted to be alternately arranged by the first color and the second color.

如上所述之色彩設定方法400可經由各類電腦裝置來實作,例如前述之電子裝置100等,亦可將部份功能實作為一程式產品(如:手機APP)以供使用者下載,或是部份功能實作為一應用程式儲存於一電腦可讀取之記錄媒體中,而使電腦讀取此記錄媒體後令一電腦系統執行色彩設定方法400。 The color setting method 400 as described above can be implemented by various types of computer devices, such as the aforementioned electronic device 100, etc., and some functions can be implemented as a program product (such as a mobile phone APP) for users to download, or Some functions are stored as an application on a computer readable recording medium, and the computer reads the recording medium to cause a computer system to execute the color setting method 400.

雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and the present invention can be modified and modified without departing from the spirit and scope of the present invention. The scope is subject to the definition of the scope of the patent application attached.

400‧‧‧色彩設定方法 400‧‧‧Color setting method

410~440‧‧‧步驟 410~440‧‧‧Steps

Claims (20)

一種使用者介面的色彩設定方法,包括:自一螢幕的顯示內容中擷取一取樣圖像,其中該取樣圖像包括一前景使用者介面之圖像與一背景使用者介面之部分圖像,該背景使用者介面之該部分圖像係毗連於該前景使用者介面之該圖像的外圍;分析該取樣圖像中該背景使用者介面之該部分圖像的色彩參數;根據該色彩參數,計算出一對比色彩參數,其中該對比色彩參數與該色彩參數具有互補性;以及根據該對比色彩參數,調整該前景使用者介面之色彩。 A method for setting a color of a user interface, comprising: capturing a sample image from a display content of a screen, wherein the sample image includes an image of a foreground user interface and a partial image of a background user interface, The portion of the image of the background user interface is adjacent to the periphery of the image of the foreground user interface; analyzing color parameters of the portion of the image of the background user interface in the sampled image; according to the color parameter, A contrast color parameter is calculated, wherein the contrast color parameter is complementary to the color parameter; and the color of the foreground user interface is adjusted according to the contrast color parameter. 如請求項1所述之色彩設定方法,其中自該螢幕擷取該取樣圖像的步驟包括:偵測該背景使用者介面是否改變;以及當該背景使用者介面改變時,自該螢幕獲取一螢幕圖像,進而從該螢幕圖像中剪裁該取樣圖像。 The color setting method of claim 1, wherein the step of capturing the sampled image from the screen comprises: detecting whether the background user interface is changed; and acquiring a background from the screen when the background user interface is changed The screen image, and then the sampled image is cropped from the screen image. 如請求項1所述之色彩設定方法,其中自該螢幕擷取該取樣圖像的步驟包括:週期性地自該螢幕獲取一螢幕圖像,進而從該螢幕圖像中剪裁該取樣圖像。 The color setting method of claim 1, wherein the step of capturing the sampled image from the screen comprises: periodically acquiring a screen image from the screen, and then cropping the sampled image from the screen image. 如請求項2或3所述之色彩設定方法,其中從該螢幕圖像中剪裁該取樣圖像的步驟包括: 以該前景使用者介面所占的位置為中心向外等比例擴張的區域定義為一取樣區域;以及將該螢幕圖像中與該取樣區域重疊的範圍剪裁出來以作為該取樣圖像。 The color setting method of claim 2 or 3, wherein the step of cropping the sampled image from the screen image comprises: An area that is outwardly scaled outwardly centered on the position occupied by the foreground user interface is defined as a sampling area; and a range of the screen image overlapping the sampling area is clipped as the sampled image. 如請求項1所述之色彩設定方法,其中分析該取樣圖像中該背景使用者介面之該部分圖像的該色彩參數的步驟包括:將該取樣圖像中該背景使用者介面之該部分圖像劃分為一第一背景圖像區與一第二背景圖像區,其中該第二背景圖像區係毗連於該第一背景圖像區的外圍,而該第一背景圖像區係毗連於該前景使用者介面之該圖像的外圍;以及將該第一背景圖像區的平均色彩值乘以第一權重並將該第二背景圖像區的平均色彩值乘以第二權重,據以得出該色彩參數,其中該第一權重高於該第二權重。 The color setting method of claim 1, wherein the step of analyzing the color parameter of the partial image of the background user interface in the sampled image comprises: selecting the portion of the background user interface in the sampled image The image is divided into a first background image area and a second background image area, wherein the second background image area is adjacent to a periphery of the first background image area, and the first background image area is a periphery of the image adjacent to the foreground user interface; and multiplying an average color value of the first background image region by a first weight and multiplying an average color value of the second background image region by a second weight According to the color parameter, the first weight is higher than the second weight. 如請求項1所述之色彩設定方法,其中該色彩參數係對應一第一顏色,該對比色彩參數係對應一第二顏色,該第一顏色與該第二顏色互為補色。 The color setting method of claim 1, wherein the color parameter corresponds to a first color, and the contrast color parameter corresponds to a second color, the first color and the second color being complementary colors. 如請求項6所述之色彩設定方法,其中調整該前景使用者介面之該色彩的步驟包括:改變該前景使用者介面之內部顏色,使該內部顏色含有該第二顏色。 The color setting method of claim 6, wherein the step of adjusting the color of the foreground user interface comprises: changing an internal color of the foreground user interface such that the internal color contains the second color. 如請求項7所述之色彩設定方法,其中該內部顏色 包括字型顏色。 The color setting method of claim 7, wherein the internal color is Includes font color. 如請求項6所述之色彩設定方法,其中調整該前景使用者介面之該色彩的步驟包括:改變該前景使用者介面之邊緣顏色,使該邊緣顏色至少含有該第二顏色。 The color setting method of claim 6, wherein the step of adjusting the color of the foreground user interface comprises: changing an edge color of the foreground user interface such that the edge color contains at least the second color. 如請求項9所述之色彩設定方法,其中改變該前景使用者介面之該邊緣顏色的步驟包括:設定該前景使用者介面具有複數層邊緣;以及將該些邊層緣的顏色係調整為由該第一顏色與該第二顏色交替排列。 The color setting method of claim 9, wherein the step of changing the edge color of the foreground user interface comprises: setting the foreground user interface to have a plurality of layer edges; and adjusting the color of the edge layer edges to The first color is alternately arranged with the second color. 一種電子裝置,包括:一螢幕,用以顯示一背景使用者介面與一前景使用者介面;一螢幕擷取模組,用以自該螢幕的顯示內容中擷取一取樣圖像,其中該取樣圖像包括該前景使用者介面之圖像與該背景使用者介面之部分圖像,該背景使用者介面之該部分圖像係毗連於該前景使用者介面之該圖像的外圍;一色彩分析模組,用以分析該取樣圖像中該背景使用者介面之該部分圖像的色彩參數;一色彩選擇模組,用以根據該色彩參數,計算出一對比色彩參數,其中該對比色彩參數與該色彩參數具有互補性;以及一色彩調整模組,用以根據該對比色彩參數,調整該螢 幕所顯示的該前景使用者介面之色彩。 An electronic device includes: a screen for displaying a background user interface and a foreground user interface; and a screen capture module for capturing a sample image from the display content of the screen, wherein the sampling The image includes an image of the foreground user interface and a portion of the image of the background user interface, the portion of the image of the background user interface being adjacent to the periphery of the image of the foreground user interface; a color analysis a module for analyzing a color parameter of the image of the portion of the background user interface in the sampled image; a color selection module configured to calculate a contrast color parameter according to the color parameter, wherein the contrast color parameter Complementing the color parameter; and a color adjustment module for adjusting the firefly according to the contrast color parameter The color of the foreground user interface displayed by the screen. 如請求項11所述之電子裝置,其中該螢幕擷取模組偵測該背景使用者介面是否改變,當該背景使用者介面改變時,自該螢幕獲取一螢幕圖像,進而從該螢幕圖像中剪裁該取樣圖像。 The electronic device of claim 11, wherein the screen capture module detects whether the background user interface is changed, and when the background user interface changes, acquiring a screen image from the screen, and further from the screen image The sampled image is cropped in the image. 如請求項11所述之電子裝置,其中該螢幕擷取模組週期性地自該螢幕獲取一螢幕圖像,進而從該螢幕圖像中剪裁該取樣圖像。 The electronic device of claim 11, wherein the screen capture module periodically acquires a screen image from the screen, and then crops the sample image from the screen image. 如請求項12或13所述之電子裝置,其中該螢幕擷取模組以該前景使用者介面所占的位置為中心向外等比例擴張的區域定義為一取樣區域,進而將該螢幕圖像中與該取樣區域重疊的範圍剪裁出來以作為該取樣圖像。 The electronic device of claim 12 or 13, wherein the screen capture module defines an area that is outwardly proportionally expanded centering on a position occupied by the foreground user interface, and thereby defines the screen image. The range in which the sampling area overlaps is clipped to serve as the sampled image. 如請求項11所述之電子裝置,其中該色彩分析模組將該取樣圖像中該背景使用者介面之該部分圖像劃分為一第一背景圖像區與一第二背景圖像區,進而將該第一背景圖像區的平均色彩值乘以第一權重並將該第二背景圖像區的平均色彩值乘以第二權重,據以得出該色彩參數,其中該第二背景圖像區係毗連於該第一背景圖像區的外圍,而該第一背景圖像區係毗連於該前景使用者介面之該圖像的外圍,該第一權重高於該第二權重。 The electronic device of claim 11, wherein the color analysis module divides the partial image of the background user interface in the sample image into a first background image area and a second background image area, And multiplying the average color value of the first background image area by the first weight and multiplying the average color value of the second background image area by the second weight, thereby obtaining the color parameter, wherein the second background The image area is adjacent to the periphery of the first background image area, and the first background image area is adjacent to the periphery of the image of the foreground user interface, and the first weight is higher than the second weight. 如請求項11所述之電子裝置,其中該色彩參數係 對應一第一顏色,該對比色彩參數係對應一第二顏色,該第一顏色與該第二顏色互為補色。 The electronic device of claim 11, wherein the color parameter is Corresponding to a first color, the contrast color parameter corresponds to a second color, and the first color and the second color are complement colors. 如請求項16所述之電子裝置,其中該色彩調整模組改變該前景使用者介面之內部顏色,使該內部顏色含有該第二顏色。 The electronic device of claim 16, wherein the color adjustment module changes an internal color of the foreground user interface such that the internal color contains the second color. 如請求項17所述之電子裝置,其中該內部顏色包括字型顏色。 The electronic device of claim 17, wherein the internal color comprises a font color. 如請求項16所述之電子裝置,其中該色彩調整模組改變該前景使用者介面之邊緣顏色,使該邊緣顏色至少含有該第二顏色。 The electronic device of claim 16, wherein the color adjustment module changes an edge color of the foreground user interface such that the edge color includes at least the second color. 如請求項19所述之電子裝置,其中該色彩調整模組設定該前景使用者介面具有複數層邊緣,進而將該些邊層緣的顏色係調整為由該第二顏色與該第一顏色交替排列。 The electronic device of claim 19, wherein the color adjustment module sets the foreground user interface to have a plurality of layer edges, and then adjusts the color of the edge layers to be alternated by the second color and the first color arrangement.
TW103120049A 2014-06-10 2014-06-10 Electronic device and color setting method for user interface TWI602111B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103120049A TWI602111B (en) 2014-06-10 2014-06-10 Electronic device and color setting method for user interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103120049A TWI602111B (en) 2014-06-10 2014-06-10 Electronic device and color setting method for user interface

Publications (2)

Publication Number Publication Date
TW201546697A TW201546697A (en) 2015-12-16
TWI602111B true TWI602111B (en) 2017-10-11

Family

ID=55407518

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103120049A TWI602111B (en) 2014-06-10 2014-06-10 Electronic device and color setting method for user interface

Country Status (1)

Country Link
TW (1) TWI602111B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170205977A1 (en) 2016-01-18 2017-07-20 Michael Benjamin Selkowe Fertik Methods for displaying an e-book using a combination of colors for text and background that have a reduced myopiagenic effect

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200935295A (en) * 2008-02-05 2009-08-16 Lg Electronics Inc Terminal and method of controlling the same
TW201349126A (en) * 2012-05-28 2013-12-01 Acer Inc Transparent display device and transparency adjustment method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200935295A (en) * 2008-02-05 2009-08-16 Lg Electronics Inc Terminal and method of controlling the same
TW201349126A (en) * 2012-05-28 2013-12-01 Acer Inc Transparent display device and transparency adjustment method thereof

Also Published As

Publication number Publication date
TW201546697A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
US9891817B2 (en) Processing an infrared (IR) image based on swipe gestures
US9159144B2 (en) Color adjustors for color segments
GB2513499B (en) Color adjustors for color segments
US7978938B1 (en) Multi-behavior image correction tool
JP7122595B2 (en) Image display device and image display method
JP5769516B2 (en) Image processing apparatus and control method thereof
JP2015518588A (en) Integrated slider control to modify multiple image properties
US11734805B2 (en) Utilizing context-aware sensors and multi-dimensional gesture inputs to efficiently generate enhanced digital images
US20140063047A1 (en) Duotone effect
WO2016107229A1 (en) Icon displaying method and device, and computer storage medium
CN105787874B (en) Method and device for mosaic processing of screenshot
JP6582472B2 (en) Image processing apparatus, image processing system, and program
CN110174984B (en) Information processing method and electronic equipment
TWI602111B (en) Electronic device and color setting method for user interface
US20190179507A1 (en) Method, Device and Computer Storage Medium for Multichannel Touch Control of All-in-One Machine
US10168880B2 (en) System, method and computer-accessible medium for manipulating a plurality of components using a single gesture or motion
EP2400742A3 (en) Image sensing apparatus and control method thereof
TW201701143A (en) System, method, and apparatus for color selection
US8885953B2 (en) Grain effect
AU2017201441A1 (en) Image processing apparatus, program, and image processing method
US9235783B1 (en) Highlighting an object in a display using a highlight object
JP2016171406A (en) Image processing method in digital image
JP2019087282A (en) Image processing program
JP2017126969A (en) Image processing apparatus, image processing system, and program