TW201426372A - Webpage color-matching system and method - Google Patents

Webpage color-matching system and method Download PDF

Info

Publication number
TW201426372A
TW201426372A TW101150048A TW101150048A TW201426372A TW 201426372 A TW201426372 A TW 201426372A TW 101150048 A TW101150048 A TW 101150048A TW 101150048 A TW101150048 A TW 101150048A TW 201426372 A TW201426372 A TW 201426372A
Authority
TW
Taiwan
Prior art keywords
color
webpage
main
auxiliary
matching
Prior art date
Application number
TW101150048A
Other languages
Chinese (zh)
Other versions
TWI478001B (en
Inventor
Tzren-Ru Chou
Wen-Jung Chien
Original Assignee
Univ Nat Taiwan Normal
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 Univ Nat Taiwan Normal filed Critical Univ Nat Taiwan Normal
Priority to TW101150048A priority Critical patent/TWI478001B/en
Publication of TW201426372A publication Critical patent/TW201426372A/en
Application granted granted Critical
Publication of TWI478001B publication Critical patent/TWI478001B/en

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

Disclosed is a webpage color-matching system and method, comprising inputting a picture into a computer device for retrieving a main color of the picture as a theme color for a webpage, searching a color corresponding to the main color from a color phase ring, selecting an assisting color and a decorative color respectively from the color phase ring accordingly, and finally applying the assisting and decorative colors respectively to a plurality of predefined color-matching regions based on predetermined proportions, thereby assisting in webpage color-matching and saving time in the process of webpage configuration.

Description

網頁配色方法及系統 Web color matching method and system

本發明係關於一種色彩配置方法,特別是關於一種應用於個人化網頁製作,以進行網頁配色之方法。 The present invention relates to a color collocation method, and more particularly to a method for applying personalized web page creation for web page color matching.

由於電腦的普及,使得電腦的使用人數以及上網的人口在近幾年來呈現大幅度成長。由於網路提供的服務相當多,目前存在許多關於資料搜尋、收發郵件、線上遊戲、線上購物以及具有行銷功能之個人化網頁。 Due to the popularity of computers, the number of users of computers and the population of the Internet have grown tremendously in recent years. Due to the large number of services provided by the Internet, there are many personalized web pages for data search, email, online games, online shopping, and marketing functions.

就個人化網頁而言,由於近年網路部落格快速崛起,讓個人化網頁的製作困難度降低許多,且許多網路部落格可供使用者上傳照片或撰寫文章,因此,有許多使用者透過個人化網頁的建立達到展現自我以及與其他性質相近的使用者交流的目的。除了使用者對於其個人化網頁的維護之外,在個人化網頁建置過程中,網頁的呈現方式及網頁配色也是吸引他人瀏覽的因素。 In terms of personalized web pages, due to the rapid rise of online blogs in recent years, the difficulty of creating personalized web pages has been reduced, and many online blogs allow users to upload photos or write articles. Therefore, many users have The creation of personalized web pages is aimed at presenting themselves and communicating with other users of similar nature. In addition to the user's maintenance of their personalized web pages, the presentation of web pages and the color matching of web pages are also factors that attract others to browse during the process of personalizing web pages.

對於網頁設計者而言,在網頁建置過程中,對於色彩的選用如何能夠凸顯網頁特色,使整體色彩不至於過於突兀,也不至於太過暗沉,一直是網頁設計者較為困難的問題,對於完全沒有色彩學觀念的一般使用者而言,更是一大難題。 For the web designer, in the process of webpage construction, how to choose the color can highlight the characteristics of the webpage, so that the overall color is not too abrupt, nor too dull, which has been a difficult problem for web designers. For the average user who has no concept of color, it is a big problem.

因此,如何克服網頁建置過程中,對於網頁色彩配置的問題,實已成目前亟欲解決的課題。 Therefore, how to overcome the problem of web page color configuration during the webpage construction process has become a problem that is currently being solved.

本發明提供一種網頁配色方法,用以解決使用者於網頁建置過程中所產生的配色問題。 The invention provides a webpage color matching method for solving the color matching problem generated by a user during webpage construction.

本發明又提供一種網頁配色方法,係依據圖片顏色進行網頁配色,無需使用者執行任何操作,以節省網頁建置所耗費的時間。 The invention further provides a webpage color matching method, which performs webpage color matching according to the color of the image, without requiring the user to perform any operation, thereby saving time spent on webpage construction.

本發明所提供之網頁配色方法係包含以下步驟:(1)將圖片輸入電腦裝置,以由該電腦裝置擷取該圖片之主色;(2)令該電腦裝置依據該主色,於一色相環找出對應該主色之顏色;(3)依據該主色之顏色,於該色相環找出該主色之輔助色及點綴色之顏色;以及(4)令該電腦裝置係將該主色、輔助色以及點綴色之顏色分別套用於一網頁中依照預定比例所預先劃分之複數個配色區域。 The webpage color matching method provided by the present invention comprises the following steps: (1) inputting a picture into a computer device to capture the main color of the picture by the computer device; (2) causing the computer device to be in a hue according to the main color The ring finds the color corresponding to the main color; (3) according to the color of the main color, finds the auxiliary color of the main color and the color of the embellishment color in the hue circle; and (4) causes the computer device to be the main The colors of the color, the auxiliary color, and the dotted color are respectively applied to a plurality of color matching areas pre-divided according to a predetermined ratio in a web page.

本發明復提供一種電腦可讀取記錄媒體,係儲存有電腦程式,該電腦程式用以使電腦裝置執行本發明之網頁配色方法。 The present invention provides a computer readable recording medium storing a computer program for causing a computer device to perform the web page color matching method of the present invention.

本發明更提供一種網頁配色系統,包括色彩擷取單元、色彩搜尋單元以及色彩配置單元。色彩擷取單元用以擷取一圖片之主色;色彩搜尋單元係依據該主色,於一色相環找出對應該主色之顏色,並依據該主色之顏色,於該色相環找出該主色之輔助色及點綴色之顏色;色彩配置單元係將該主色、輔助色及點綴色分別套用於一網頁中依照預定比例所劃分之配色區域。 The invention further provides a webpage color matching system, comprising a color capturing unit, a color searching unit and a color configuration unit. The color capturing unit is configured to capture a main color of a picture; the color searching unit is configured to find a color corresponding to the main color in a hue circle according to the main color, and find out the hue circle according to the color of the main color. The auxiliary color of the primary color and the color of the dotted color; the color configuration unit applies the primary color, the auxiliary color, and the dotted color to the color matching area divided by a predetermined ratio in a web page.

綜上所述,本發明所提供之方法只要輸入圖片於電腦裝置,即可依據該圖片找出網頁之主色、輔助色與點綴色, 且可分別套用於該網頁中依照比例所預先劃分之複數個配色區域。由於本發明之網頁配色方法無需人為操作即可完成網頁色彩配置,解決了傳統在網頁建置時所產生的配色問題,無形中也節省了許多網頁建置所耗費的時間。 In summary, the method provided by the present invention can find the main color, the auxiliary color and the dotted color of the webpage according to the image as long as the image is input to the computer device. And can be separately applied to a plurality of color matching areas pre-divided according to the proportion in the webpage. Since the webpage color matching method of the invention can complete the webpage color configuration without human operation, the color matching problem generated by the traditional webpage construction is solved, and the time spent on the webpage construction is saved invisibly.

以下藉由特定的具體實施例說明本發明之實施方式,熟悉此技藝之人士可由本說明書所揭示之內容輕易地瞭解本發明之其他優點及功效。 The other embodiments of the present invention will be readily understood by those skilled in the art from this disclosure.

須知,本說明書所附圖式所繪示之結構、比例、大小等,均僅用以配合說明書所揭示之內容,以供熟悉此技藝之人士之瞭解與閱讀,並非用以限定本發明可實施之限定條件,故不具技術上之實質意義,任何結構之修飾、比例關係之改變或大小之調整,在不影響本發明所能產生之功效及所能達成之目的下,均應仍落在本發明所揭示之技術內容得能涵蓋之範圍內。同時,本說明書中所引用之如“上”、“下”、“左”、“右”、“一”及“二”等之用語,亦僅為便於敘述之明瞭,而非用以限定本發明可實施之範圍,其相對關係之改變或調整,在無實質變更技術內容下,當亦視為本發明可實施之範疇。 It is to be understood that the structure, the proportions, the size, and the like of the present invention are intended to be used in conjunction with the disclosure of the specification, and are not intended to limit the invention. The conditions are limited, so it is not technically meaningful. Any modification of the structure, change of the proportional relationship or adjustment of the size should remain in this book without affecting the effects and the objectives that can be achieved by the present invention. The technical content disclosed in the invention can be covered. In the meantime, the terms "upper", "lower", "left", "right", "one" and "two" as used in this specification are also for convenience of description, and are not intended to limit the present. The scope of the invention can be implemented, and the change or adjustment of the relative relationship is also considered to be within the scope of the invention.

請參閱第1圖,其係為本發明之網頁配色方法之流程圖。如圖所示,本發明之網頁配色方法係包含以下步驟:步驟S1,係將圖片輸入於電腦裝置,以由該電腦裝置擷取該圖片之主色,接著進至步驟S2。於步驟S2中,令該電腦裝置依據所擷取之主色,於一色相環找出對應該主色之 顏色,接著進入步驟S3。於步驟S3中,於該色相環找出該主色之輔助色及點綴色之顏色,然後進入步驟S4。於步驟S4中,係令該電腦裝置係將該主色、輔助色以及點綴色之顏色分別套用於一網頁中依照預定比例所預先劃分之複數個配色區域。 Please refer to FIG. 1 , which is a flow chart of a webpage color matching method of the present invention. As shown in the figure, the web page color matching method of the present invention comprises the following steps: Step S1, the picture is input to the computer device to capture the main color of the picture by the computer device, and then proceeds to step S2. In step S2, the computer device is caused to find the corresponding main color in a hue circle according to the main color captured. Color, then proceeds to step S3. In step S3, the auxiliary color of the main color and the color of the dotted color are found in the hue circle, and then the process proceeds to step S4. In step S4, the computer device is configured to apply the colors of the primary color, the auxiliary color, and the dotted color to a plurality of color matching regions pre-divided according to a predetermined ratio in a web page.

請參閱第2圖,其係為本發明之網頁配色方法之主色擷取示意圖。如圖所示,本發明之網頁配色方法,首先,係先提供圖片10,並且將該圖片10輸入於電腦裝置(圖未示),由該電腦裝置擷取該圖片之主色以作為網頁之主題色。該圖片10可為風景照片,或是其他電腦裝置可辨識之影像檔案即可。 Please refer to FIG. 2, which is a schematic diagram of the main color capture of the webpage color matching method of the present invention. As shown in the figure, the webpage color matching method of the present invention firstly provides a picture 10, and the picture 10 is input to a computer device (not shown), and the main color of the picture is captured by the computer device as a web page. Theme color. The picture 10 can be a landscape photo or an image file identifiable by other computer devices.

在本發明中,電腦裝置係利用演算法擷取圖片10之主色,而在本實施中,該演算法係為Median-Cut演算法。Median-Cut演算法是將所有像素視為一個群集合,再於該群集合中找出RGB三個頻譜色階值分佈最廣的頻譜,接著將影像中的所有像素依照挑選出來的頻譜作色階值排序,依排序結果找出中位點的色階值,最後以此中位點的色階值為分裂的依據將原本的像素群分成兩群像素數個大約相等的子群,再將像素群分裂後之結果予以擷取,以獲得所需之顏色。 In the present invention, the computer device uses the algorithm to capture the dominant color of the picture 10. In the present embodiment, the algorithm is the Median-Cut algorithm. The Median-Cut algorithm treats all pixels as a group set, and then finds the spectrum with the widest distribution of RGB three spectral gradation values in the group set, and then colors all the pixels in the image according to the selected spectrum. Sorting the order values, finding the gradation value of the median point according to the sorting result, and finally dividing the original pixel group into two groups of pixels and about equal subgroups based on the division of the gradation value of the middle point, and then The result of the splitting of the pixel group is extracted to obtain the desired color.

由於Median-Cut演算法係為本領域技術人員所習知之演算法,故,在此僅針對Median-Cut演算法說明應用於本發明之方式,而不針對Median-Cut演算法本身多做贅述,且Median-Cut演算法僅作為本發明之實施方式之說 明,並非用以限制本發明。 Since the Median-Cut algorithm is an algorithm known to those skilled in the art, the method applied to the present invention is described only for the Median-Cut algorithm, and the Median-Cut algorithm itself is not described. And the Median-Cut algorithm is only used as an embodiment of the present invention. It is not intended to limit the invention.

由於以Median-Cut演算法所擷取之色彩空間係屬於RGB之色彩空間,然而色彩學領域中,對於物件進行配色時,並非以RGB色彩空間進行配色,而是採用色相環所分佈之顏色進行配色,因此,必須依照所擷取之主色對應地於色相環取出其顏色。 Since the color space captured by the Median-Cut algorithm belongs to the color space of RGB, in the field of color science, when color matching is performed on an object, color matching is not performed in the RGB color space, but color in the hue circle is used. Color matching, therefore, the color must be taken out of the hue ring corresponding to the main color captured.

請一併參閱第3圖,其係為HSV色彩空間與伊登色相環角度對應示意圖。在依據RGB色彩空間之主色於色相環找出對應顏色過程中,為了簡化並縮短找出顏色的過程與時間,因此,於色相環找出對應主色之顏色之前,先將所擷取之RGB色彩空間之主色轉換為HSV色彩空間20中對應於該主色之色彩。 Please refer to Figure 3, which is a schematic diagram of the HSV color space and the Eden phase hue angle. In the process of finding the corresponding color in the hue circle according to the main color of the RGB color space, in order to simplify and shorten the process and time of finding the color, before the hue circle finds the color of the corresponding main color, the first one is taken. The dominant color of the RGB color space is converted to the color corresponding to the primary color in the HSV color space 20.

RGB色彩空間與HSV色彩空間20的轉換中存在著單方向的對應,S值為0時,H值沒有定義,即是在沒有色彩飽和度的狀態時,就沒有色彩產生;而在V值為0時,S值沒有定義,意思是在沒有亮度時,就沒有色彩飽和度,因此,RGB色彩空間與HSV色彩空間20之間的轉換屬於非線性的。由RGB色彩空間轉換為HSV色彩空間20的公式如下:V=max(R,G,B) There is a one-way correspondence between the RGB color space and the HSV color space 20 conversion. When the S value is 0, the H value is not defined, that is, when there is no color saturation state, no color is generated; and the V value is At 0, the S value is not defined, meaning that there is no color saturation when there is no brightness, so the transition between the RGB color space and the HSV color space 20 is non-linear. The formula for converting from RGB color space to HSV color space 20 is as follows: V = max ( R, G, B )

V值與S值可以由RGB直接求得,而H值則會視RGB三值何者為最大值有所不同。 The V value and the S value can be directly obtained from RGB, and the H value is different depending on which of the RGB three values is the maximum value.

由於本發明之網頁配色方法係於色相環中取出顏色對網頁進行配色,因此,在完成RGB色彩空間與HSV色彩空間20的轉換後,接著將HSV色彩空間20轉換為色相環之對應顏色,用以在色相環取出對應於該主色之顏色。在本實施例中所採用的色相環係採用伊登色相環30作為本發明實施方式之說明,例如:若先前所擷取之主色係為黃色,在HSV色彩空間20中,黃色係為角度60度,在經過角度轉換後,於伊登色相環30之120度之位置取得黃色之顏色。惟,本領域的技術人員皆知色相環的種類並不僅止於伊登色相環30,不應以此限制本發明。 Since the webpage color matching method of the present invention performs color matching on the webpage by taking out the color in the hue circle, after completing the conversion of the RGB color space and the HSV color space 20, the HSV color space 20 is then converted into the corresponding color of the hue circle. The color corresponding to the primary color is taken out at the hue circle. The hue ring system used in this embodiment adopts the Eden hue ring 30 as an embodiment of the present invention. For example, if the main color system previously drawn is yellow, in the HSV color space 20, the yellow angle is At 60 degrees, after the angle conversion, the yellow color is obtained at the position of 120 degrees of the Eden hue circle 30. However, it is known to those skilled in the art that the type of hue loop does not stop at the Eden hue ring 30 and should not limit the invention.

請參閱第4圖,其係為伊登色相環之三角配色示意圖。在找出主色於色相環之顏色後,接著依據該主色於色相環找出對應該主色之輔助色及點綴色。在伊登色相環30理論中,以三角配色方式所選出的顏色可以產生色彩調和效果。為了使得網頁配色結果具有良好的配色效果,因此,本發明在本實施例的實施方式中,係採用三角配色方式以選取網頁之第一輔助色及第二輔助色。其中,伊登色相環30係為本領域技術人員所熟知之色彩配置之技術,故,在 此僅針對伊登色相環30於本發明之應用作敘述,而不針對伊登色相環30本身多作贅述。 Please refer to Figure 4, which is a schematic diagram of the triangle color matching of the Eden hue circle. After finding the color of the main color in the hue circle, the auxiliary color and the embellishment color corresponding to the main color are found according to the main color in the hue circle. In the Eden Hue Loop 30 theory, the color selected by the triangle color matching method can produce a color harmony effect. In order to make the color matching result of the webpage have a good color matching effect, in the embodiment of the present invention, the triangular color matching mode is adopted to select the first auxiliary color and the second auxiliary color of the webpage. Among them, the Eden Hue Loop 30 is a technology for color configuration well known to those skilled in the art, and therefore, This is only described for the application of the Eden Hue Loop 30 in the present invention, and is not described in detail for the Eden Hue Loop 30 itself.

三角配色方式於本發明之應用係先以前述所取得之主色作為三角形之第一頂點31,接著依據該第一頂點31,於伊登色相環30左右各旋轉120度,可得到三角形於伊登色相環30內之第二頂點32以及第三頂點33,該第二頂點32以及第三頂點33分別所對應之顏色即為本發明之第一輔助色及第二輔助色。然而,在伊登色相環30中並沒有角度概念,因此,在旋轉的過程中,係於HSV色彩空間20中進行角度轉換,並且將獲得之結果,再次經過角度轉換之後,以對應於伊登色相環30之角度上所分佈之顏色,即為本發明進行網頁配色所需之第一輔助色及第二輔助色。 The application of the triangular color matching method in the present invention firstly uses the main color obtained as the first vertex 31 of the triangle, and then rotates 120 degrees on the left and right sides of the Eden hue circle 30 according to the first vertex 31, and the triangle is obtained. The second vertex 32 and the third vertex 33 in the hue circle 30, the colors corresponding to the second vertex 32 and the third vertex 33 are the first auxiliary color and the second auxiliary color of the present invention. However, there is no angle concept in the Eden Hue Loop 30, so during the rotation, the angle is converted in the HSV color space 20, and the result obtained will be again after the angle conversion to correspond to Eden. The color distributed at the angle of the hue circle 30 is the first auxiliary color and the second auxiliary color required for the color matching of the webpage of the present invention.

伊登色相環30所述之三角配色方式並不侷限於第3圖所呈現之形態,凡是於伊登色相環30內任取一顏色作為第一頂點31,接著依據該第一頂點31左右各旋轉120度,皆可得到三角形之第二頂點32與第三頂點33作為第一輔助色與第二輔助色。 The triangular color matching manner described in the Eden hue circle 30 is not limited to the form shown in FIG. 3, and any color is taken as the first vertex 31 in the Eden hue circle 30, and then according to the first vertex 31 Rotating 120 degrees, the second vertex 32 and the third vertex 33 of the triangle are obtained as the first auxiliary color and the second auxiliary color.

上述的三角配色法係於伊登色相環左右各旋轉120度,故,上述之三角配色法所得到之三角形係為正三角形。但是,此一方式之三角配色法僅係為解釋三角配色方法之一實施例,本領域的技術人員皆知三角配色法並非僅此一種。於另一實施例中,三角配色法係以主題色為第一頂點31,接著於該頂點旋轉180度,可找出主題色之對比色,接著選取該對比色左右兩側之顏色作為第一輔助色與第二 輔助色。 The above-described triangular color matching method is rotated by 120 degrees on the right and left sides of the Eden hue circle. Therefore, the triangle obtained by the above-described triangular color matching method is an equilateral triangle. However, the triangular color matching method of this mode is merely an embodiment for explaining the triangular color matching method, and those skilled in the art know that the triangular color matching method is not the only one. In another embodiment, the triangle color matching method uses the theme color as the first vertex 31, and then rotates the vertex by 180 degrees to find the contrast color of the theme color, and then selects the color of the left and right sides of the contrast color as the first auxiliary color. And second Auxiliary color.

除了三角配色法外,尚有四角配色法以及六角配色法等其他配色方法,而該等配色方法係為本領域技術人員所熟知,故不再此多加贅述。 In addition to the triangular color matching method, there are other color matching methods such as a four-corner color matching method and a hexagonal color matching method, and such color matching methods are well known to those skilled in the art, and thus will not be further described.

請參閱第5圖,其係為點綴色之選取方式示意圖。如圖所示,於選出第一輔助色與第二輔助色之後,接著選取點綴色,以作為網頁中需要被凸顯之區域之顏色,例如文字欄位之背景色。為了能夠在主題色、第一輔助色以及第二輔助色中凸顯出點綴色之明視度,因此,本發明係以對比色配色法選取點綴色之顏色。而在本實施例之所用的伊登色相環40中,由於先前所擷取之主色係為黃色41,因此,其對比色擷取方式係以黃色41為基準,於伊登色相環40旋轉180度,而得到黃色41於伊登色相環40之對比色,即紫色42之顏色,則紫色42即為該網頁之點綴色。同樣的,黃色41與紫色42之對比色的取得方式僅用於實施例說明,並不以此為限,只要先以任一顏色作為基準,接著旋轉180度,即可得到其對比色。 Please refer to Figure 5, which is a schematic diagram of the selection of the embellishment color. As shown in the figure, after the first auxiliary color and the second auxiliary color are selected, the dotted color is selected as the color of the area of the webpage to be highlighted, such as the background color of the text field. In order to be able to highlight the brightness of the dotted color in the theme color, the first auxiliary color, and the second auxiliary color, the present invention selects the color of the dotted color by the contrast color matching method. In the Eden phase ring 40 used in the embodiment, since the main color system previously captured is yellow 41, the contrast color capturing mode is rotated by 180 on the Eden hue circle 40 based on the yellow 41. Degree, and the contrast color of the yellow 41 in the Eden hue circle 40, that is, the color of the purple 42 is obtained, then the purple color 42 is the dotted color of the web page. Similarly, the manner in which the contrast colors of yellow 41 and purple 42 are obtained is only used for the description of the embodiment, and is not limited thereto. The contrast color can be obtained by first using any color as a reference and then rotating by 180 degrees.

在選出主題色、第一輔助色、第二輔助色以及點綴色後,接著進行主題色、第一輔助色、第二輔助色以及點綴色於網頁上的分配。 After selecting the theme color, the first auxiliary color, the second auxiliary color, and the dotted color, the theme color, the first auxiliary color, the second auxiliary color, and the distribution of the dotted color on the web page are then performed.

請參閱第6圖,其係為網頁色彩比例配置示意圖。在選出主色、第一輔助色、第二輔助色以及點綴色之後,為了在後續的網頁配色過程中凸顯出網頁配色效果,因此將該主色、第一輔助色、第二輔助色以及點綴色分別進行比 例調配。在第6圖中,係將色彩配置圖50依照主色、第一輔助色、第二輔助色,以及點綴色劃分為複數區域,分別為主色配色區域51、第一輔助色配色區域52、第二輔助色配色區域53以及點綴色配色區域54。由於主色係為整個網頁的重點色彩,因此,在本實施例中,係定義主色配色區域51約佔色彩配置圖50整體的70%,第一輔助色配色區域52以及第二輔助色配色區域53約佔色彩配置圖50整體的25%,至於點綴色配色區域約佔總面積5%,並且在完成色彩比例配置後,分別將主色、第一輔助色、第二輔助色以及點綴色套用於網頁依照預定比例所預先劃分之複數個區域。本實施例所採用的配置比例僅係為實施例之說明,亦可依照實際情況對各個配色區作比例調整。 Please refer to Figure 6, which is a schematic diagram of web page color ratio configuration. After the main color, the first auxiliary color, the second auxiliary color, and the dotted color are selected, the main color, the first auxiliary color, the second auxiliary color, and the embellishment are emphasized in order to highlight the web color matching effect in the subsequent web color matching process. Color ratio Example deployment. In FIG. 6, the color map 50 is divided into a plurality of regions according to the main color, the first auxiliary color, the second auxiliary color, and the dotted color, respectively, a main color matching region 51, a first auxiliary color matching region 52, The second auxiliary color matching area 53 and the dotted color matching area 54. Since the main color is the key color of the entire webpage, in the present embodiment, the main color matching area 51 is defined to occupy about 70% of the entire color arrangement map 50, and the first auxiliary color matching area 52 and the second auxiliary color matching color. The area 53 accounts for about 25% of the overall color map 50, and the dotted color area accounts for about 5% of the total area, and after completing the color ratio configuration, the main color, the first auxiliary color, the second auxiliary color, and the dotted color are respectively respectively. The set is used for a plurality of areas in which the web page is pre-divided according to a predetermined ratio. The configuration ratios used in this embodiment are only for the description of the embodiments, and the ratios of the respective color matching areas may be adjusted according to actual conditions.

請參閱第7圖,其係為色彩套用於網頁示意圖。在取得網頁60之主色、第一輔助色、第二輔助色以及點綴色,並且完成各個色彩的比例調配之後,接著將各個色彩分別套用於網頁60上,即可完成網頁色彩配置,如第7圖所示。 Please refer to Figure 7, which is a color set for the web page. After obtaining the main color of the webpage 60, the first auxiliary color, the second auxiliary color, and the embellishment color, and completing the proportioning of the respective colors, then respectively applying the respective colors to the webpage 60, the webpage color configuration can be completed, such as Figure 7 shows.

在第7圖中,網頁60之中間區段61係為網頁60之主色,所呈現之內容係為網頁60主題以及圖片。網頁60之底部62係為網頁60之第一輔助色,所呈現之內容係為網頁60之備註說明。在網頁60之頂部63係為網頁60之第二輔助色,所呈現之內容係為網頁60之標題。而在第二輔助色與主色之間係為網頁60之點綴色,所呈現之內容係可供使用者點選之選項。 In FIG. 7, the middle section 61 of the web page 60 is the main color of the web page 60, and the presented content is the webpage 60 theme and the photo. The bottom 62 of the web page 60 is the first auxiliary color of the web page 60, and the presented content is a remark description of the web page 60. At the top 63 of the web page 60 is the second secondary color of the web page 60, and the presented content is the title of the web page 60. The color between the second auxiliary color and the main color is the dotted color of the webpage 60, and the presented content is an option for the user to click.

從第2圖至第7圖已說明本發明網頁配色方法對於色 彩的選取以及套用於網頁的方式。而為了使各個色彩間產生色彩調和,以及較佳的視覺效果,因此,在主色、第一輔助色、第二輔助色以及點綴色分別套用於網頁後,接著,可針對各個色彩調整其明度與彩度,以凸顯各個色彩之間之差異性。 The color matching method of the webpage of the present invention has been described from the second to seventh figures. The choice of color and the way it is used for web pages. In order to create a color harmony between the colors, and a better visual effect, after the main color, the first auxiliary color, the second auxiliary color, and the dotted color are respectively applied to the webpage, then the brightness can be adjusted for each color. And chroma to highlight the difference between the colors.

請參閱第8圖,其係為色彩明視度之示意圖。當主題色、第一輔助色、第二輔助色與點綴色之間達到色彩調和之後,為了使網頁上之文字得以清晰易於辨識,因此,必須對網頁上之文字進行明視度調整,如圖所示。例如:黑色與黃色,或是白色與藍色等,利用對比度較大之色彩作為網頁之文字之色彩,以凸顯文字於網頁上之明視度。 Please refer to Figure 8, which is a schematic diagram of color visibility. After the color matching between the theme color, the first auxiliary color, the second auxiliary color and the dotted color, in order to make the text on the webpage clear and easy to recognize, it is necessary to adjust the brightness of the text on the webpage, as shown in the figure. Shown. For example: black and yellow, or white and blue, etc., use the contrast color as the color of the text of the webpage to highlight the clarity of the text on the webpage.

請參閱第9圖,其係為本發明之網頁配色系統之方塊示意圖。如圖所示,網頁配色系統70包括色彩擷取單元71、色彩搜尋單元72以及色彩配置單元73。 Please refer to FIG. 9, which is a block diagram of a webpage color matching system of the present invention. As shown, the web page color matching system 70 includes a color capture unit 71, a color search unit 72, and a color configuration unit 73.

色彩擷取單元71用以接收圖片,並擷取該圖片之主色。色彩搜尋單元72係依據所擷取之主色而在色相環找出對應該主色之顏色以作為網頁之主題色。並依據該主色之顏色進而找出該網頁之輔助色及綴色之顏色。其中,該色彩擷取單元71係利用Median-cut演算法擷取該圖片之主色,而色彩擷取單元71所擷取之主色係為RGB色彩空間之色彩,由該色彩搜尋單元72將該RGB色彩空間之色彩轉換為HSV色彩空間之對應色彩,並依據該HSV色彩空間之色彩經過角度轉換之後於該色相環取出對應該主色之顏色。其中,本發明係利用伊登色相環以取得網頁之主色之顏 色,並利用伊登色相環之三角配色法以及對比色配色法分別找出輔助色及點綴色。 The color capturing unit 71 is configured to receive a picture and capture a dominant color of the picture. The color search unit 72 finds the color corresponding to the main color in the hue circle as the theme color of the web page according to the main color captured. And according to the color of the main color to find the auxiliary color of the web page and the color of the color. The color capturing unit 71 captures the main color of the image by using the Median-cut algorithm, and the main color captured by the color capturing unit 71 is the color of the RGB color space, and the color searching unit 72 The color of the RGB color space is converted into a corresponding color of the HSV color space, and the color corresponding to the main color is extracted from the hue circle according to the color of the HSV color space. Wherein, the present invention utilizes the Eden Hue Loop to obtain the color of the main color of the webpage Color, and use the triangle color matching method of Eden's hue circle and the contrast color matching method to find the auxiliary color and the dotted color respectively.

在取出主色、輔助色以及點綴色之後,接著由色彩配置單元73係將該主色、輔助色及點綴色分別套用於該網頁依照預定比例所劃分之複數個配色區域。並調整該主色、輔助色與點綴色之明度及彩度,再依據該主色、輔助色及點綴色之色彩而調整網網頁文字之明視度。其中,該主色配色區域之比例係為70%,該輔助色配色區域之比例係為25%,該點綴色配色區域之比例係為5%。 After the main color, the auxiliary color, and the dotted color are taken out, the main color, the auxiliary color, and the dotted color are respectively applied by the color configuring unit 73 to the plurality of color matching areas divided by the predetermined proportion of the web page. The brightness and chroma of the main color, the auxiliary color and the dotted color are adjusted, and the brightness of the web page text is adjusted according to the colors of the main color, the auxiliary color and the dotted color. Wherein, the ratio of the main color matching area is 70%, the ratio of the auxiliary color matching area is 25%, and the ratio of the dotted color matching area is 5%.

本發明復提供一種電腦可讀取記錄媒體,用以儲存電腦程式,該電腦程式係可應用於電腦裝置,用以使該電腦裝置執行上述之方法。該記錄媒體可為軟碟、硬碟、光碟、隨身碟、磁帶,或是其他具有相同功能之記錄媒體。 The present invention provides a computer readable recording medium for storing a computer program, the computer program being applicable to a computer device for causing the computer device to perform the above method. The recording medium can be a floppy disk, a hard disk, a compact disc, a flash drive, a magnetic tape, or other recording medium having the same function.

上述實施例係用以例示性說明本發明之原理及其功效,而非用於限制本發明。任何熟習此項技藝之人士均可在不違背本發明之精神及範疇下,對上述實施例進行修改。因此本發明之權利保護範圍,應如後述之申請專利範圍所列。 The above embodiments are intended to illustrate the principles of the invention and its effects, and are not intended to limit the invention. Any of the above-described embodiments may be modified by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of protection of the present invention should be as set forth in the appended claims.

10‧‧‧圖片 10‧‧‧ Pictures

20‧‧‧HSV色彩空間 20‧‧‧HSV color space

30、40‧‧‧伊登色相環 30, 40‧‧‧ Eden Hue Loop

31‧‧‧第一頂點 31‧‧‧ first vertex

32‧‧‧第二頂點 32‧‧‧second vertex

33‧‧‧第三頂點 33‧‧‧ third vertex

41‧‧‧黃色 41‧‧‧Yellow

42‧‧‧紫色 42‧‧‧ Purple

50‧‧‧色彩配置圖 50‧‧‧Color map

51‧‧‧主色配色區域 51‧‧‧Main color matching area

52‧‧‧第一輔助色配色區域 52‧‧‧First auxiliary color matching area

53‧‧‧第二輔助色配色區域 53‧‧‧Second auxiliary color matching area

54‧‧‧點綴色配色區域 54‧‧‧ dotted color matching area

60‧‧‧網頁 60‧‧‧Webpage

61‧‧‧中間區段 61‧‧‧ Middle section

62‧‧‧底部 62‧‧‧ bottom

63‧‧‧頂部 63‧‧‧ top

70‧‧‧網頁配色系統 70‧‧‧Web color matching system

71‧‧‧色彩擷取單元 71‧‧‧Color capture unit

72‧‧‧色彩搜尋單元 72‧‧‧Color Search Unit

73‧‧‧色彩配置單元 73‧‧‧Color configuration unit

S1~S4‧‧‧步驟 S1~S4‧‧‧ steps

第1圖係為本發明之網頁配色方法之流程圖;第2圖係為本發明之網頁配色方法之主色擷取示意圖;第3圖係為HSV色彩空間與伊登色相環角度對應示意圖; 第4圖係為伊登色相環之三角配色示意圖;第5圖係為點綴色之選取方式示意圖;第6圖係為網頁色彩比例配置示意圖;第7圖係為色彩套用於網頁示意圖;第8圖係為色彩明視度之示意圖;以及第9圖係為本發明之網頁配色系統之方塊示意圖。 1 is a flow chart of a method for color matching of a webpage of the present invention; FIG. 2 is a schematic diagram of main color capture of a webpage color matching method of the present invention; and FIG. 3 is a schematic diagram of a corresponding angle of an HSV color space and an Eden hue circle; Figure 4 is a schematic diagram of the triangle color matching of the Eden hue circle; Figure 5 is a schematic diagram of the selection of the dotted color; Figure 6 is a schematic diagram of the color ratio of the webpage; Figure 7 is a color set for the webpage; The figure is a schematic diagram of color visibility; and the ninth figure is a block diagram of the web color matching system of the present invention.

S1~S4‧‧‧步驟 S1~S4‧‧‧ steps

Claims (10)

一種網頁配色方法,包括:(1)將圖片輸入電腦裝置,以由該電腦裝置擷取該圖片之主色;(2)令該電腦裝置依據該主色,於一色相環找出對應該主色之顏色;(3)依據該主色之顏色,於該色相環找出該主色之輔助色及點綴色之顏色;及(4)令該電腦裝置係將該主色、輔助色以及點綴色之顏色分別套用於一網頁中依照預定比例所預先劃分之複數個配色區域。 A webpage color matching method includes: (1) inputting a picture into a computer device to capture a main color of the picture by the computer device; (2) causing the computer device to find a corresponding color in a hue circle according to the main color (3) according to the color of the main color, find the auxiliary color of the main color and the color of the embellishment color in the hue circle; and (4) make the main color, auxiliary color and embellishment of the computer device The colors of the colors are respectively applied to a plurality of color matching areas pre-divided according to a predetermined ratio in a web page. 如申請專利範圍第1項所述之網頁配色方法,其中,該步驟(1)復包括將該主色轉換為HSV色彩空間之對應色彩,並且將該HSV色彩空間之色彩轉換為該色相環中對應該主色之顏色之步驟。 The webpage color matching method according to claim 1, wherein the step (1) comprises converting the main color into a corresponding color of the HSV color space, and converting the color of the HSV color space into the hue circle. The step corresponding to the color of the main color. 如申請專利範圍第1項所述之網頁配色方法,其中,該色相環係為伊登色相環。 The webpage color matching method according to claim 1, wherein the hue ring is an Eden hue circle. 如申請專利範圍第1項所述之網頁配色方法,其中,該步驟(4)復包括調整該主色、輔助色以及點綴色之明度及彩度之步驟。 The method for color matching of a webpage according to claim 1, wherein the step (4) includes the steps of adjusting the brightness and chroma of the primary color, the auxiliary color, and the dotted color. 如申請專利範圍第4項所述之網頁配色方法,其中,該步驟(4)復包括依據該主色、輔助色及點綴色之明度及彩度而調整該網頁之文字之明視度之步驟。 The method for color matching of a webpage as described in claim 4, wherein the step (4) includes the step of adjusting the visibility of the text of the webpage according to the brightness and chroma of the primary color, the auxiliary color, and the dotted color. . 如申請專利範圍第1項所述之網頁配色方法,其中, 對應該主色之配色區域之比例係為70%,對應該輔助色之配色區域之比例係為25%,對應該點綴色之配色區域之比例係為5%。 The method for color matching of a webpage as described in claim 1 of the patent application, wherein The ratio of the color matching area corresponding to the main color is 70%, the ratio of the color matching area corresponding to the auxiliary color is 25%, and the ratio of the color matching area corresponding to the dotted color is 5%. 一種電腦可讀取記錄媒體,用以儲存電腦程式,該電腦程式係用以執行請求項1所述之方法。 A computer readable recording medium for storing a computer program for performing the method of claim 1. 一種網頁配色系統,包括:色彩擷取單元,用以擷取一圖片之主色;色彩搜尋單元,用以於一色相環找出對應該主色之顏色,並依據該主色之顏色於該色相環找出該主色之輔助色及點綴色之顏色;以及色彩配置單元,係將該主色、輔助色及點綴色分別套用於一網頁中依照預定比例所劃分之複數個配色區域。 A webpage color matching system includes: a color capturing unit for capturing a main color of a picture; and a color searching unit for finding a color corresponding to the main color in a hue circle, and according to the color of the main color The hue circle finds the auxiliary color of the main color and the color of the embellishment color; and the color configuration unit applies the main color, the auxiliary color and the embellishment color respectively to a plurality of color matching areas divided by a predetermined ratio in a web page. 如申請專利範圍第8項所述之網頁配色系統,其中,該色彩配置單元係在該主色、輔助色及點綴色配置於該網頁後,調整該主色、輔助色與點綴色之明度及彩度,並依據該主色、輔助色及點綴色之色彩而調整該網頁之文字之明視度。 The webpage color matching system of claim 8, wherein the color configuration unit adjusts the brightness of the primary color, the auxiliary color, and the dotted color after the primary color, the auxiliary color, and the dotted color are disposed on the webpage. Chroma, and adjust the visibility of the text of the web page according to the colors of the main color, the auxiliary color and the dotted color. 如申請專利範圍第8項所述之網頁配色系統,其中,對應該主色之配色區域之比例係為70%,對應該輔助色之配色區域之比例係為25%,對應該點綴色之配色區域之比例係為5%。 For example, in the webpage color matching system described in claim 8, wherein the ratio of the color matching area corresponding to the main color is 70%, and the ratio of the color matching area corresponding to the auxiliary color is 25%, corresponding to the color matching of the color The ratio of the regions is 5%.
TW101150048A 2012-12-26 2012-12-26 Webpage color-matching system and method TWI478001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101150048A TWI478001B (en) 2012-12-26 2012-12-26 Webpage color-matching system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101150048A TWI478001B (en) 2012-12-26 2012-12-26 Webpage color-matching system and method

Publications (2)

Publication Number Publication Date
TW201426372A true TW201426372A (en) 2014-07-01
TWI478001B TWI478001B (en) 2015-03-21

Family

ID=51725521

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101150048A TWI478001B (en) 2012-12-26 2012-12-26 Webpage color-matching system and method

Country Status (1)

Country Link
TW (1) TWI478001B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109345612A (en) * 2018-09-13 2019-02-15 腾讯数码(天津)有限公司 A kind of image generating method, device, equipment and storage medium
CN117315172A (en) * 2023-09-22 2023-12-29 鲸数科技(北京)有限公司 Map page configuration method, map page configuration device, electronic equipment and computer readable medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI813247B (en) * 2022-04-13 2023-08-21 江昱穎 Automatic color matching device and method of using same

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090031003A1 (en) * 2007-07-26 2009-01-29 International Business Machines Corporation Color Coding Web Site Presentation
CN101136089A (en) * 2007-09-24 2008-03-05 腾讯科技(深圳)有限公司 Method, system and device for updating e-mail web page background
CN101546343B (en) * 2009-05-14 2013-03-27 阿里巴巴集团控股有限公司 Method and device for matching the colors of probes
US8532372B2 (en) * 2010-08-19 2013-09-10 Thomas Youngman System and method for matching color swatches
TWI419080B (en) * 2010-12-07 2013-12-11 私立中原大學 A method for using color coordination system of interior design

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109345612A (en) * 2018-09-13 2019-02-15 腾讯数码(天津)有限公司 A kind of image generating method, device, equipment and storage medium
CN117315172A (en) * 2023-09-22 2023-12-29 鲸数科技(北京)有限公司 Map page configuration method, map page configuration device, electronic equipment and computer readable medium
CN117315172B (en) * 2023-09-22 2024-04-12 鲸数科技(北京)有限公司 Map page configuration method, map page configuration device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
TWI478001B (en) 2015-03-21

Similar Documents

Publication Publication Date Title
US8823726B2 (en) Color balance
US9836856B2 (en) Color name generation from images and color palettes
US9552656B2 (en) Image-based color palette generation
US8854370B2 (en) Color waveform
US9396560B2 (en) Image-based color palette generation
US9547427B2 (en) User interface with color themes based on input image data
US9311889B1 (en) Image-based color palette generation
US9401032B1 (en) Image-based color palette generation
US9135719B1 (en) Color name generation from images and color palettes
US9251169B2 (en) Systems and methods for creating photo collages
GB2513499B (en) Color adjustors for color segments
US8572501B2 (en) Rendering graphical objects based on context
US20130235069A1 (en) Context aware user interface for image editing
US20130207994A1 (en) System and method for generating and applying a color theme to a user interface
CN103440674B (en) A kind of rapid generation of digital picture wax crayon specially good effect
TWI478001B (en) Webpage color-matching system and method
JP5594282B2 (en) Image processing device
CN107122103A (en) A kind of image processing method and terminal
US20160203108A1 (en) Display scaling application
Gao et al. PencilArt: a chromatic penciling style generation framework
CN114529624A (en) Image color matching method and system and image generation method and system
JP6154545B2 (en) Information processing device
US9681064B1 (en) Lookup table interpolation in a film emulation camera system
WO2015151175A1 (en) Information processing device
Wang et al. Interactive Grayscale Image Colorization with Generative Adversarial Networks

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees