CN104657465B - The display control method and device of a kind of webpage - Google Patents
The display control method and device of a kind of webpage Download PDFInfo
- Publication number
- CN104657465B CN104657465B CN201510070898.4A CN201510070898A CN104657465B CN 104657465 B CN104657465 B CN 104657465B CN 201510070898 A CN201510070898 A CN 201510070898A CN 104657465 B CN104657465 B CN 104657465B
- Authority
- CN
- China
- Prior art keywords
- icon
- pixel
- color
- webpage
- unit
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present invention provides a kind of display control method and device of webpage, and method therein may include:The icon for obtaining webpage to be controlled includes the color of pixel;The color that the icon includes pixel is analyzed, determines the type of the icon;The color of pixel is included according to the icon, calculates the feature color of the icon;According to the type of the icon and the feature color of the icon, the label of the webpage is controlled to show.The present invention can be shown according to the type of the icon of webpage and the label of Color control webpage so that the label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
Description
Technical field
The present invention relates to Internet technical field, and in particular to web technologies field, more particularly to a kind of display of webpage
Control method and device.
Background technology
With the development of Internet technology, webpage turns into a kind of important and universal mode for obtaining information.Webpage it is interior
Appearance is shown by the window of browser, the label of webpage then refer in browser window shown by, for identifying the net
The Option Box of page.In the prior art, the label of all webpages is shown by the way of unified in browser, its display side
Formula is excessively dull, lacks individuality and diversity, can not increasingly meet actual demand of the people for web displaying, so as to reduce
Web displaying control it is intelligent.
The content of the invention
The embodiment of the present invention provides a kind of display control method and device of webpage, can be according to the type of the icon of webpage
Shown with the label of Color control webpage so that the label of webpage shows more personalized and diversified, optimizes the mark of webpage
Sign display effect.
First aspect of the embodiment of the present invention provides a kind of display control method of webpage, it may include:
The icon for obtaining webpage to be controlled includes the color of pixel;
The color that the icon includes pixel is analyzed, determines the type of the icon;
The color of pixel is included according to the icon, calculates the feature color of the icon;
According to the type of the icon and the feature color of the icon, the label of the webpage is controlled to show.
Second aspect of the embodiment of the present invention provides a kind of display control unit of webpage, it may include:
Acquiring unit, the icon for obtaining webpage to be controlled include the color of pixel;
Analytic unit, the color for including pixel for analyzing the icon, determine the type of the icon;
Computing unit, for including the color of pixel according to the icon, calculate the feature color of the icon;
Control unit, for the type according to the icon and the feature color of the icon, control the mark of the webpage
Label display.
Implement the embodiment of the present invention, have the advantages that:
In the embodiment of the present invention, the color of pixel can be included by the icon of webpage to be controlled, obtains the figure
Target type and feature color, and according to the type of the icon and the feature color of the icon, control the mark of the webpage
Label display, the icon of the display webpage that both can be apparent in the label of the webpage, may be such that in browser again
The label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the display control method of webpage provided in an embodiment of the present invention;
Fig. 2 is the display schematic diagram of webpage provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the display control method of another webpage provided in an embodiment of the present invention;
Fig. 4 is the specific refined flow chart of the step S203 shown in Fig. 3;
Fig. 5 is the specific refined flow chart of the step S204 shown in Fig. 3;
Fig. 6 is a kind of structural representation of the display control unit of webpage provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of acquiring unit provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of analytic unit provided in an embodiment of the present invention;
Fig. 9 is the structural representation of the embodiment of the first statistic unit shown in Fig. 8;
Figure 10 is the structural representation of the embodiment of the second statistic unit shown in Fig. 8;
Figure 11 is a kind of structural representation of computing unit provided in an embodiment of the present invention;
Figure 12 is a kind of structural representation of control unit provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
In the embodiment of the present invention, the icon of webpage can be referred to as icon or favicon, be by multiple pixels according to position,
The information arrangements such as color form.RGB is a kind of color standard of industrial quarters, is by R (Red, red) G (Green, green)
The change and their mutual superpositions of three Color Channels of B (Blue, blueness) obtains miscellaneous color, the face
Colour standard almost includes all colours that people's class view is perceived, and is at present with one of widest color system.HSV
(Hue, Saturation, Value, tone, saturation degree, brightness) is a kind of color model, and it is the intuitive nature according to color
A kind of color space created, can also claim hexagonal pyramid model, and the parameter of the model includes tone (abbreviation H), saturation degree (letter
Claim S), brightness (abbreviation V).RGB and HSV may be incorporated for representing the color of pixel, be analyzed for the ease of calculating, and the present invention is real
Apply in example, the color for the pixel that icon is included can use HSV to represent.
The label of webpage refers in browser window the shown Option Box for being used to identify the webpage, in the label of webpage
Generally comprise the title and icon of webpage.Please also refer to Fig. 1, for the display schematic diagram of webpage provided in an embodiment of the present invention;
In embodiment illustrated in fig. 1, browser window currently shows the content of pages of " XX nets homepage ", shown in dotted line frame is " XX in figure
The label of net homepage ", the label may include the title and icon of " XX nets homepage ".
Based on foregoing description, below in conjunction with accompanying drawing 2- accompanying drawings 4, to the display control of webpage provided in an embodiment of the present invention
Method describes in detail.
Fig. 2 is referred to, is a kind of flow chart of the display control method of webpage provided in an embodiment of the present invention;This method can
Comprise the following steps S101- steps S104.
S101, the icon for obtaining webpage to be controlled include the color of pixel.
Icon is made up of multiple pixels according to information arrangements such as position, colors.Wherein, the icon includes pixel
The color of point can use HSV to represent, such as:Assuming that n (n is positive integer) individual pixel that the icon includes altogether, then institute
The color for stating i-th (i is positive integer and i≤n) individual pixel of icon is represented by (Hi,Si,Vi)., it is necessary to obtain in this step
The color for each pixel that the icon of webpage to be controlled is included, according to above-mentioned example, it is assumed that the icon of webpage to be controlled is total
N (n is positive integer) individual pixel is included altogether, then this step needs to obtain the color (H of first pixel of the icon1,
S1,V1), the color (H of second pixel point2,S2,V2), the color (H of ith pixel pointi,Si,Vi), by that analogy, n-th of picture
Color (the H of vegetarian refreshmentsn,Sn,Vn)。
S102, the color that the icon includes pixel is analyzed, determine the type of the icon.
The type of the icon may include but be not limited to:Color map and achromaticity icon.The picture included according to icon
Whether the color of vegetarian refreshments is similar, and the type of the icon can further comprise:Pure color icon and ninsolid color icon.Wherein, it is non-
Color map can include black icon, white (transparent) icon and grey icon.Due to icon be by multiple pixels according to
The information arrangements such as position, color form, in this step, the color that includes pixel by analyzing the icon, it may be determined that institute
State the type of icon.
S103, the color of pixel is included according to the icon, calculate the feature color of the icon.
The feature color of the icon can be used for the basic colors for embodying the icon.In this step, if the icon
Type is achromaticity icon, and the feature color that can directly determine the icon is grey, black, white etc., it is preferable that this hair
Bright embodiment can determine that the feature color of achromaticity icon is grey;, can be according to institute if the type of the icon is color map
The color that icon includes pixel is stated, the modes such as color histograms nomography or clustering algorithm can be used, calculate the icon
Feature color.
S104, according to the type of the icon and the feature color of the icon, the label of the webpage is controlled to show.
The label of the webpage refers to the Option Box for being used to identify the webpage shown in browser window, the mark of webpage
The title and icon of webpage are generally comprised in label.In the prior art, the label of all webpages uses unified side in browser
Formula is shown that its display mode is excessively dull;In the embodiment of the present invention, can according to the Web page icon in browser type and
Feature color, the label of webpage is controlled to show, so as to may be such that it is more personalized and more that the label of the webpage in browser is shown
Sample, optimize the label display effect of webpage.
In the embodiment of the present invention, the color of pixel can be included by the icon of webpage to be controlled, obtains the figure
Target type and feature color, and according to the type of the icon and the feature color of the icon, control the mark of the webpage
Label display, the icon of the display webpage that both can be apparent in the label of the webpage, may be such that in browser again
The label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
Fig. 3 is referred to, is the flow chart of the display control method of another webpage provided in an embodiment of the present invention;This method
It may include following steps S201- steps S221.
S201, read the icon of the webpage from the configuration file of webpage to be controlled and the icon included it is every
The rgb value of individual pixel.
Generally, the configuration file of webpage have recorded the source code of webpage and some attribute informations of webpage, including but not
It is limited to:The icon of webpage, the icon of webpage attribute description (including:The icon of webpage includes the rgb value of pixel, alpha
Value etc.), the collection content of webpage, webpage render arrangement etc. information.The configuration file of webpage can be stored in internet
In database, this step can obtain the configuration file of webpage to be controlled from internet database, and therefrom read the webpage
Icon and the rgb value of each pixel that is included of the icon;Such as:(n is assuming that n that the icon includes altogether
Positive integer) individual pixel, then in this step, the rgb value that may be read into first pixel of the icon is represented by
(R1,G1,B1), the rgb value of second pixel point is represented by (R2,G2,B2), the rgb value of ith pixel point is represented by (Ri,
Gi,Bi), by that analogy, the rgb value of nth pixel point is represented by (Rn,Gn,Bn)。
S202, the rgb value of each pixel is converted to by HSV value using color conversion rule.
The color conversion rule can be the formula that RGB and HSV is exchanged, according to example shown in the present embodiment, it is assumed that institute
State n (n is positive integer) individual pixel that icon includes altogether, then, can be by (R using color conversion rule in this step1,
G1,B1) be converted to (H1,S1,V1), the color of first pixel of the icon is represented by (H1,S1,V1);By (R2,G2,
B2) be converted to (H2,S2,V2), the color of the second pixel point of the icon is represented by (H2,S2,V2);By (Ri,Gi,Bi)
Be converted to (Hi,Si,Vi), the color of the ith pixel point of the icon is represented by (Hi,Si,Vi);By that analogy, by (Rn,
Gn,Bn) be converted to (Hn,Sn,Vn), the color of the nth pixel point of the icon is represented by (Hn,Sn,Vn)。
The step S201- steps S202 of the present embodiment can be the step S101 of embodiment illustrated in fig. 1 specific refinement step
Suddenly.
S203, count the quantity for the nontransparent pixel that the icon is included.
The transparency of pixel is generally determined by the alpha value of pixel, can be according to the icon institute in this step
Comprising the alpha value of pixel determine which belongs to transparent pixels point, which belongs to nontransparent pixel, and further counts
The quantity of nontransparent pixel.
Please also refer to Fig. 4, the specific refined flow chart for being the step S203 shown in Fig. 3;Step S203 may include with
Lower step s11- steps s14.
S11, the alpha value for each pixel that the icon is included is read from the configuration file of the webpage.
S12, it is respectively compared the size of the alpha value and default transparency threshold values of each pixel.
The default transparency threshold values can be set according to actual conditions, such as:Rule of thumb alpha value be less than or
During equal to 150, pixel is usually expressed as transparent on visual perception, therefore can set the default transparency according to the experience
Threshold values is 150, etc.., it is necessary to which the alpha value for being respectively compared each pixel presets transparent bottom valve with described in this step
The size of value;If the alpha value of some pixel is less than or equal to the default transparency threshold values, the pixel can determine that
For transparent pixels point;If the alpha value of some pixel is more than the default transparency threshold values, it can determine that the pixel is
Nontransparent pixel.
S13, the pixel that alpha value is more than to the default transparency threshold values are defined as nontransparent pixel.
S14, count the quantity for the nontransparent pixel that the icon is included.
According to example shown in the present embodiment, it is assumed that n (n is positive integer) individual pixel that the icon includes altogether, pass through
The quantity that step s11-s14 can obtain the nontransparent pixel that the icon is included is N (N is positive integer and N≤n).
S204, according to the HSV value of each pixel, count the number for the specific color pixel that the icon is included
Amount.
Wherein, the specific color can include but is not limited to:Black or close to black, grey or close to grey etc..
Please also refer to Fig. 5, the specific refined flow chart for being the step S204 shown in Fig. 3;Step S204 may include following steps
S21- steps s23.
S21, pixel of the V values less than or equal to predetermined luminance threshold values is extracted in the pixel included from the icon,
First set is formed, and extracts the pixel that S values are less than or equal to default saturation degree threshold values, forms second set.
Brightness span is usually [0~255], and 0 represents black, and 255 represent white.Wherein, the predetermined luminance valve
Value can be set according to actual conditions, such as:When rule of thumb V values are less than or equal to 255*15%, the usual table of pixel
Now for the black on visual perception or close to black, therefore it is 255* that the predetermined luminance threshold values can be set according to the experience
15%, etc..Need to find out black in this step or connect pullous pixel, i.e., in the pixel included from the icon
The pixel that V values are less than or equal to predetermined luminance threshold values is extracted, forms first set, the first set is represented by set C.
Saturation degree span is usually [0~1], and value is bigger, and color gets over saturation.Wherein, the default saturation degree threshold values
It can be set according to actual conditions, such as:When rule of thumb S values are less than or equal to 1*15%, pixel is usually expressed as
Grey on visual perception or close to grey, therefore it be 1*15% that the default saturation degree threshold values can be set according to the experience, etc.
Deng.Need to find out grey or the pixel close to grey in this step, i.e., extract S values in the pixel included from the icon
Less than or equal to the pixel of default saturation degree threshold values, second set is formed, the second set is represented by set D.
S22, the nontransparent pixel included to the first set, the second set and the icon are handed over
Collection calculates, and obtains the pixel point set of specific color.
This step is needed to first set C, second set D, and the set being made up of N number of nontransparent pixel is carried out
The calculating occured simultaneously is asked for, is to find out in first set C, second set D and the set being made up of N number of nontransparent pixel to be total to
The pixel with existing for, form the pixel point set of specific color.
S23, count the quantity of the specific color pixel included in specific color pixel point set.Obtained assuming that can count
The quantity for obtaining the specific color pixel is M (M is positive integer).
S205, calculate the ratio of the quantity of the specific color pixel and the quantity of the nontransparent pixel.According to
Example in the present embodiment, this step need to calculate M/N value.
S206, judges whether the ratio is less than default accounting threshold value;If judged result is no, i.e., judged result be more than
Or be equal to, it is transferred to step S207;If the determination result is YES, i.e., judged result is less than being transferred to step S209.
Wherein, the default accounting threshold value can be set according to actual conditions, such as:The default accounting can be set
Threshold value is 90%, 85% etc..If it is judged that being no, that is, judge that the ratio is more than or equal to default accounting threshold value, example
Such as:M/N value is more than or equal to default accounting threshold value 85%, shows the number of the specific color pixel included in the icon
Measure more, the specific color such as black, grey is integrally presented in the icon, thus can be transferred to step S207 and determine that the icon belongs to non-coloured silk
Chromatic graph mark.If it is judged that being yes, that is, judge that the ratio is less than default accounting threshold value, such as:M/N value is less than default account for
Than threshold value 85%, show the negligible amounts of the specific color pixel included in the icon, the icon integrally present it is black,
Other colors outside the specific colors such as ash, it thus can be transferred to step S209 and determine that the icon is color map.
S207, it is achromaticity icon to determine the icon.
S208, the feature color for determining the icon are grey;Afterwards, it is transferred to step S214.
S209, it is color map to determine the icon.
S210, sets at least one tone section, and each tone section corresponds to a kind of color.
Tone is measured with angle, and the span of tone is 0 °~360 °, is calculated counterclockwise since red, red
Color is 0 °, and green is 120 °, and blueness is 240 °.In this step, the span of tone can be subjected to interval division, obtained extremely
A few tone section, such as:Can be set 5 tone sections, it is assumed that the first tone section can be (0 °, 45 °], the second tone
Section can be (45 °, 120 °], three color scheme section can be (120 °, 165 °], the 4th tone section can be (165 °,
200 °], the 5th tone section can be (200 °, 240 °];Etc..Further, a tone section is set to correspond to a kind of color,
Such as:According to above-mentioned example, it is assumed that the first tone section can correspond to red, and the second tone section can correspond to green, and the 3rd
Tone section can correspond to yellow, and three color scheme section can correspond to orange, and the 4th tone section can correspond to purple, the five colors
Section is adjusted to correspond to blueness.
S211, the H values of each pixel are mapped at least one tone section.
In this step, the H values of each pixel of the icon can be obtained respectively, can be obtained as follows:First pixel
H values be H1, the H values of second pixel point are H2, the H values of ith pixel point are Hi, by that analogy, the H of nth pixel point
It is worth for Hn.Further, the H values of each pixel are mapped at least one tone section respectively, such as:According to this
Example shown in embodiment, it is assumed that H1、H2、H3、H7... common x1Individual value maps to the first tone section, and totally 0 maps to the second color
Adjust section, H4、H8... common x2Individual value maps to three color scheme section, and totally 0 maps to the 4th tone section, H9、Hn... altogether
x3Individual value maps to the 5th tone section, wherein, x1、x2And x3It is positive integer, and x1> x3> x2> 0.
S212, the most panel tone section of mapping pixel quantity is chosen from least one tone section.
S213, color corresponding to the panel tone section is defined as to the feature color of the icon.
According to example shown in the present embodiment, due to x1> x3> x2> 0, therefore can determine that at least one tone section
The most panel tone section of middle mapping pixel quantity is the 5th tone section, and color corresponding to the 5th tone section is indigo plant
Color, so as to can determine that the feature color of the icon for blueness.
The step S210- steps S213 of the present embodiment can be understood as a kind of performance of clustering algorithm, step S210- steps
Rapid S213 can be the step S103 of embodiment illustrated in fig. 2 specific refinement step.
S214, interference filtering processing is carried out to the icon, filter out the color interference pixel in the icon.
Generally, the feature color of icon is generally determined by the pixel closer to icon center, the edge picture of icon
Vegetarian refreshments is generally considered to be color interference pixel, in this step, carries out interference filtering processing to the icon, generally refers to
Except the edge pixel point of the icon, such as:For the icon that resolution ratio is 16*16, this step can remove outermost edge totally 60
Individual color disturbs pixel;Or for the icon that resolution ratio is 32*32, this step can remove outermost edge totally 240 colors
Disturb pixel.
S215, judges whether the color for the residual pixel point that the icon after interference filtering processing includes is similar;If
Judged result is no, i.e., judged result is not approximate, is transferred to step S216;If the determination result is YES, i.e., judged result is close
Seemingly, it is transferred to step S218.
For the residual pixel point that includes of the icon after interference filtering processing, the deterministic process of this step may include with
Lower step:1. pixel quantity that H values in the residual pixel point are located in the panel tone section is calculated in all residues
Shared ratio e among the quantity of pixel;2. calculating the average value of the V values of all residual pixel points, calculate respectively described surplus
Difference in after image vegetarian refreshments between the V values of each pixel and the average value, calculating difference are less than the picture of the first pre-set threshold value
The quantity of vegetarian refreshments ratio f shared among the quantity of all residual pixel points;3. calculate the flat of the S values of all residual pixel points
Average, it is small that the difference between the S values of each pixel and the average value, calculating difference in the residual pixel point are calculated respectively
In the quantity of the pixel of the second pre-set threshold value ratio g shared among the quantity of all residual pixel points;If 4. judge that e is big
In or equal to tone than empirical value, and f is more than or equal to brightness ratio empirical value, and g is more than or equal to saturation degree than empirical value, then
Judge that the color of the residual pixel point is similar, determine that the icon is pure color icon so as to be transferred to step S218;Otherwise,
Judge that the color of the residual pixel point is not approximate, determine that the icon is ninsolid color icon so as to be transferred to step S216.
It should be noted that first pre-set threshold value, the second pre-set threshold value, tone compare experience than empirical value, saturation degree
Value and brightness ratio empirical value can be set according to actual conditions, such as:First pre-set threshold value could be arranged to 255*15%,
Second pre-set threshold value could be arranged to 1*20%, and tone can be set as 95% than empirical value, and the saturation degree compares experience
Value can be set as 80%, and the brightness ratio empirical value can be set as 90%, etc..If e is more than or equal to tone than empirical value,
Show that the form and aspect of all residual pixel points are similar;If f is more than or equal to brightness ratio empirical value, show all residual pixel points
Similar brightness is seemingly;If g is more than or equal to saturation degree than empirical value, show that the purity of all residual pixel points is similar, so as to
Judge that the color of all residual pixel points is similar.
S216, it is ninsolid color icon to determine the icon.
S217, the feature color of the icon is arranged to the background of the label of the webpage.
S218, the label of the webpage is controlled according to set background, and the figure is shown in the web page tag
Mark;Afterwards, terminate.
S219, it is pure color icon to determine the icon.
S220, the feature color of the icon is arranged to the background of the label of the webpage, and inverse is carried out to icon
Processing.Wherein, the inverse processing refers to setting the color of the icon into any in addition to the feature color of the icon
Color, give preferential treatment to as the color of the icon is arranged into white or the color opposite with the feature color of the icon, so as to
The display icon that can be relatively sharp in the label of the webpage.
S221, the label of the webpage is shown according to set background, and in the label of the webpage described in display
Icon after inverse;Afterwards, terminate.
According to the type and feature color of the Web page icon in browser the label of webpage can be set to carry on the back in the present embodiment
Scape, and control the label of the webpage to show according to set background, both can be apparent in the label of the webpage
The icon of the webpage is shown, may be such that the label of the webpage in browser shows more personalized and diversified again, optimize
The label display effect of webpage.
In the embodiment of the present invention, the color of pixel can be included by the icon of webpage to be controlled, obtains the figure
Target type and feature color, and according to the type of the icon and the feature color of the icon, control the mark of the webpage
Label display, the icon of the display webpage that both can be apparent in the label of the webpage, may be such that in browser again
The label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
Below in conjunction with accompanying drawing 6- accompanying drawings 12, the display control unit of webpage provided in an embodiment of the present invention is carried out in detail
Introduce.It should be noted that following devices can be run in terminal or server, for performing shown in above-mentioned Fig. 1-Fig. 5
Method;Terminal therein can include but is not limited to:Notebook computer, mobile phone, PAD (tablet personal computer), car-mounted terminal, intelligence
The equipment such as wearable device.
Fig. 6 is referred to, is a kind of structural representation of the display control unit of webpage provided in an embodiment of the present invention;The dress
Putting may include:Acquiring unit 101, analytic unit 102, computing unit 103 and control unit 104.
Acquiring unit 101, the icon for obtaining webpage to be controlled include the color of pixel.
Icon is made up of multiple pixels according to information arrangements such as position, colors.Wherein, the icon includes pixel
The color of point can use HSV to represent, such as:Assuming that n (n is positive integer) individual pixel that the icon includes altogether, then institute
The color for stating i-th (i is positive integer and i≤n) individual pixel of icon is represented by (Hi,Si,Vi).The acquiring unit 101 needs
The color for each pixel that the icon of webpage to be controlled is included is obtained, according to above-mentioned example, it is assumed that webpage to be controlled
Icon includes n (n is positive integer) individual pixel altogether, then the acquiring unit 101 needs to obtain first of the icon
Color (the H of pixel1,S1,V1), the color (H of second pixel point2,S2,V2), the color (H of ith pixel pointi,Si,Vi),
By that analogy, the color (H of nth pixel pointn,Sn,Vn)。
Analytic unit 102, the color for including pixel for analyzing the icon, determine the type of the icon.
The type of the icon may include but be not limited to:Color map and achromaticity icon.The picture included according to icon
Whether the color of vegetarian refreshments is similar, and the type of the icon can further comprise:Pure color icon and ninsolid color icon.Wherein, it is non-
Color map can include black icon, white (transparent) icon and grey icon.Due to icon be by multiple pixels according to
The information arrangements such as position, color form, and the color that the analytic unit 102 includes pixel by analyzing the icon can
Determine the type of the icon.
Computing unit 103, for including the color of pixel according to the icon, calculate the feature of the icon
It is color.
The feature color of the icon can be used for the basic colors for embodying the icon.If the type of the icon is non-coloured silk
Chromatic graph mark, the computing unit 103 can directly determine the feature color of the icon as grey, black, white etc., preferably
Ground, the embodiment of the present invention can determine that the feature color of achromaticity icon is grey;If the type of the icon is color map, institute
The color that computing unit 103 can include pixel according to the icon is stated, color histograms nomography or cluster can be used to calculate
The modes such as method, calculate the feature color of the icon.
Control unit 104, for the type according to the icon and the feature color of the icon, control the webpage
Label is shown.
The label of the webpage refers to the Option Box for being used to identify the webpage shown in browser window.Prior art
In, the label of all webpages is shown by the way of unified in browser, and its display mode is excessively dull;It is of the invention real
Apply in example, described control unit 104 according to the type and feature color of the Web page icon in browser, can control the label of webpage
It has been shown that, so as to may be such that it is more personalized and diversified that the label of the webpage in browser is shown, the label for optimizing webpage shows
Show effect.
In the embodiment of the present invention, the color of pixel can be included by the icon of webpage to be controlled, obtains the figure
Target type and feature color, and according to the type of the icon and the feature color of the icon, control the mark of the webpage
Label display, the icon of the display webpage that both can be apparent in the label of the webpage, may be such that in browser again
The label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
Fig. 7 is referred to, is a kind of structural representation of acquiring unit provided in an embodiment of the present invention;The acquiring unit 101
It may include:Configure reading unit 1001 and color conversion cell 1002.
Reading unit 1001 is configured, for reading icon and the institute of the webpage from the configuration file of webpage to be controlled
State the rgb value for each pixel that icon is included.
Generally, the configuration file of webpage have recorded the source code of webpage and some attribute informations of webpage, including but not
It is limited to:The icon of webpage, the icon of webpage attribute description (including:The icon of webpage includes the rgb value of pixel, alpha
Value etc.), the collection content of webpage, webpage render arrangement etc. information.The configuration file of webpage can be stored in internet
In database, the configuration reading unit 1001 can obtain the configuration file of webpage to be controlled from internet database, and from
The rgb value for each pixel that the middle icon for reading the webpage and the icon are included;Such as:Assuming that the icon is total
N (n is positive integer) individual pixel included altogether, then the configuration reading unit 1001 may be read into first of the icon
The rgb value of pixel is represented by (R1,G1,B1), the rgb value of second pixel point is represented by (R2,G2,B2), ith pixel
The rgb value of point is represented by (Ri,Gi,Bi), by that analogy, the rgb value of nth pixel point is represented by (Rn,Gn,Bn)。
Color conversion cell 1002, for the rgb value of each pixel to be converted into HSV using color conversion rule
Value.
The color conversion rule can be the formula that RGB and HSV is exchanged, according to example shown in the present embodiment, it is assumed that institute
State n (n is positive integer) individual pixel that icon includes altogether, then, the color conversion cell 1002 is advised using color conversion
Then can be by (R1,G1,B1) be converted to (H1,S1,V1), the color of first pixel of the icon is represented by (H1,S1,
V1);By (R2,G2,B2) be converted to (H2,S2,V2), the color of the second pixel point of the icon is represented by (H2,S2,V2);
By (Ri,Gi,Bi) be converted to (Hi,Si,Vi), the color of the ith pixel point of the icon is represented by (Hi,Si,Vi);With this
Analogize, by (Rn,Gn,Bn) be converted to (Hn,Sn,Vn), the color of the nth pixel point of the icon is represented by (Hn,Sn,Vn)。
In the embodiment of the present invention, the color of pixel can be included by the icon of webpage to be controlled, obtains the figure
Target type and feature color, and according to the type of the icon and the feature color of the icon, control the mark of the webpage
Label display, the icon of the display webpage that both can be apparent in the label of the webpage, may be such that in browser again
The label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
Fig. 8 is referred to, is a kind of structural representation of analytic unit provided in an embodiment of the present invention;The analytic unit 102
It may include:First statistic unit 2001, the second statistic unit 2002, ratio calculation unit 2003, judging unit 2004 and type
Determining unit 2005.
First statistic unit 2001, the quantity of the nontransparent pixel included for counting the icon.
The transparency of pixel is generally determined that first statistic unit 2001 can root by the alpha value of pixel
The alpha value of the pixel included according to the icon determines which belongs to transparent pixels point, and which belongs to nontransparent pixel,
And further count the quantity of nontransparent pixel.
Second statistic unit 2002, for the HSV value according to each pixel, count the spy that the icon is included
The quantity of fixation polychrome vegetarian refreshments.Wherein, the specific color can include but is not limited to:Black or close to black, grey or connects
Nearly grey etc..
Ratio calculation unit 2003, for the quantity for calculating the specific color pixel and the nontransparent pixel
The ratio of quantity.
Assuming that n (n is positive integer) individual pixel that the icon includes altogether, obtain the icon included it is nontransparent
The quantity of pixel is N (N is positive integer and N≤n), and the quantity that statistics obtains the specific color pixel is that (M is just whole to M
Number), the ratio calculation unit 2003 needs to calculate M/N value.
Judging unit 2004, for judging whether the ratio is less than default accounting threshold value.
Type determining units 2005, if for being less than, it is color map to determine the icon.
Wherein, the default accounting threshold value can be set according to actual conditions, such as:The default accounting can be set
Threshold value is 90%, 85% etc..If the judged result of judging unit 2004 is no, that is, judge that the ratio is more than or equal to
Default accounting threshold value, such as:M/N value is more than or equal to default accounting threshold value 85%, shows the spy included in the icon
The quantity of fixation polychrome vegetarian refreshments is more, and the icon is integrally presented the specific color such as black, grey, the type determining units 2005 by
This can determine that the icon belongs to achromaticity icon.If the judged result of judging unit 2004 is yes, that is, judge the ratio
Value is less than default accounting threshold value, such as:M/N value is less than default accounting threshold value 85%, shows the spy included in the icon
Other colors outside the specific color such as black, grey, the type is integrally presented in the negligible amounts of fixation polychrome vegetarian refreshments, the icon
Thus determining unit 2005 can determine that the icon is color map.
Fig. 8 is referred to again, and the analytic unit 102 may also include:Filter out processing unit 2006 and similar judging unit
2007。
Processing unit 2006 is filtered out, for carrying out interference filtering processing to the icon, filters out the color in the icon
Disturb pixel.
Generally, the feature color of icon is generally determined by the pixel closer to icon center, the edge picture of icon
Vegetarian refreshments is generally considered to be color interference pixel, and the processing unit 2006 that filters out is carried out at interference filtering to the icon
Reason, generally refer to remove the edge pixel point of the icon, such as:It is described to filter out processing for the icon that resolution ratio is 16*16
Unit 2006 can remove outermost edge totally 60 color interference pixels;Or for the icon that resolution ratio is 32*32, it is described
Filter out processing unit 2006 and can remove outermost edge totally 240 color interference pixels.
Similar judging unit 2007, the color of residual pixel point included for judging the icon after interference filtering processing
Whether coloured silk is similar.
The residual pixel point included for the icon after interference filtering processing, the similar judging unit 3007 are sentenced
Disconnected process may include:1. pixel quantity that H values in the residual pixel point are located in the panel tone section is calculated in institute
There is shared ratio e among the quantity of residual pixel point;2. calculating the average value of the V values of all residual pixel points, calculate respectively
Difference in the residual pixel point between the V values of each pixel and the average value, calculating difference are less than the first default valve
The quantity of the pixel of value ratio f shared among the quantity of all residual pixel points;3. calculate the S of all residual pixel points
The average value of value, the difference between the S values of each pixel and the average value in the residual pixel point is calculated respectively, calculate
Difference is less than ratio g of the quantity of the pixel of the second pre-set threshold value shared by among the quantity of all residual pixel points;If 4.
Judge that e is more than or equal to tone than empirical value, and f is more than or equal to brightness ratio empirical value, and g passes through more than or equal to saturation degree ratio
Value is tested, then judges that the color of the residual pixel point is similar;Otherwise, judge that the color of the residual pixel point is not approximate.
It should be noted that first pre-set threshold value, the second pre-set threshold value, tone compare experience than empirical value, saturation degree
Value and brightness ratio empirical value can be set according to actual conditions, such as:First pre-set threshold value could be arranged to 255*15%,
Second pre-set threshold value could be arranged to 1*20%, and tone can be set as 95% than empirical value, and the saturation degree compares experience
Value can be set as 80%, and the brightness ratio empirical value can be set as 90%, etc..If e is more than or equal to tone than empirical value,
Show that the form and aspect of all residual pixel points are similar;If f is more than or equal to brightness ratio empirical value, show all residual pixel points
Similar brightness is seemingly;If g is more than or equal to saturation degree than empirical value, show that the purity of all residual pixel points is similar, so as to
Judge that the color of all residual pixel points is similar.
If the type judging unit 2005 is additionally operable to be similar, it is pure color icon to determine the icon;It is or if not near
Seemingly, it is ninsolid color icon to determine the icon.
In the embodiment of the present invention, the color of pixel can be included by the icon of webpage to be controlled, obtains the figure
Target type and feature color, and according to the type of the icon and the feature color of the icon, control the mark of the webpage
Label display, the icon of the display webpage that both can be apparent in the label of the webpage, may be such that in browser again
The label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
Fig. 9 is referred to, for the structural representation of the embodiment of the first statistic unit shown in Fig. 8;First statistic unit
2001 may include:Alpha value reading unit 2111, comparing unit 2112, nontransparent determining unit 2113 and nontransparent statistics are single
Member 2114.
Alpha value reading unit 2111, for read from the configuration file of the webpage icon included it is every
The alpha value of individual pixel.
Comparing unit 2112, for being respectively compared the big of the alpha value of each pixel and default transparency threshold values
It is small.
The default transparency threshold values can be set according to actual conditions, such as:Rule of thumb alpha value be less than or
During equal to 150, pixel is usually expressed as transparent on visual perception, therefore can set the default transparency according to the experience
Threshold values is 150, etc..The alpha value that the comparing unit 2112 needs to be respectively compared each pixel is preset with described
The size of transparency threshold values;If the alpha value of some pixel is less than or equal to the default transparency threshold values, can determine that
The pixel is transparent pixels point;If the alpha value of some pixel is more than the default transparency threshold values, this can determine that
Pixel is nontransparent pixel.
Nontransparent determining unit 2113, the pixel for alpha value to be more than to the default transparency threshold values are defined as
Nontransparent pixel.
Nontransparent statistic unit 2114, the quantity of the nontransparent pixel included for counting the icon.
In the embodiment of the present invention, the color of pixel can be included by the icon of webpage to be controlled, obtains the figure
Target type and feature color, and according to the type of the icon and the feature color of the icon, control the mark of the webpage
Label display, the icon of the display webpage that both can be apparent in the label of the webpage, may be such that in browser again
The label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
Figure 10 is referred to, for the structural representation of the embodiment of the second statistic unit shown in Fig. 8;Second statistic unit
2002 may include:Extraction unit 2211, common factor computing unit 2212 and specific color statistic unit 2213.
Extraction unit 2211, it is less than or equal to predetermined luminance for extraction V values in the pixel that is included from the icon
The pixel of threshold values, first set is formed, and extract the pixel that S values are less than or equal to default saturation degree threshold values, form second
Set.
Brightness span is usually [0~255], and 0 represents black, and 255 represent white.Wherein, the predetermined luminance valve
Value can be set according to actual conditions, such as:When rule of thumb V values are less than or equal to 255*15%, the usual table of pixel
Now for the black on visual perception or close to black, therefore it is 255* that the predetermined luminance threshold values can be set according to the experience
15%, etc..The extraction unit 2211 needs to find out black or connects pullous pixel, i.e., is included from the icon
The pixel that V values are less than or equal to predetermined luminance threshold values is extracted in pixel, forms first set, the first set is represented by
Set C.
Saturation degree span is usually [0~1], and value is bigger, and color gets over saturation.Wherein, the default saturation degree threshold values
It can be set according to actual conditions, such as:When rule of thumb S values are less than or equal to 1*15%, pixel is usually expressed as
Grey on visual perception or close to grey, therefore it be 1*15% that the default saturation degree threshold values can be set according to the experience, etc.
Deng.The extraction unit 2211 needs to find out grey or the pixel close to grey, i.e., the pixel included from the icon
Middle extraction S values are less than or equal to the pixel of default saturation degree threshold values, form second set, and the second set is represented by gathering
D。
Common factor computing unit 2212, for what is included to the first set, the second set and the icon
Nontransparent pixel carries out common factor calculating, obtains the pixel point set of specific color.
The common factor computing unit 2212 is needed to first set C, second set D, and by N number of nontransparent pixel institute
The set of composition carries out asking for the calculating occured simultaneously, and is to find out first set C, second set D and by N number of nontransparent pixel institute
Common existing pixel in the set of composition, form the pixel point set of specific color.
Specific color statistic unit 2213, for counting the specific color pixel included in specific color pixel point set
The quantity of point.
In the embodiment of the present invention, the color of pixel can be included by the icon of webpage to be controlled, obtains the figure
Target type and feature color, and according to the type of the icon and the feature color of the icon, control the mark of the webpage
Label display, the icon of the display webpage that both can be apparent in the label of the webpage, may be such that in browser again
The label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
Figure 11 is referred to, is a kind of structural representation of computing unit provided in an embodiment of the present invention;The computing unit 103
It may include:Section setting unit 3001, map unit 3002, Object selection unit 3003 and feature color determining unit 3004.
Section setting unit 3001, for setting at least one tone section, each tone section corresponds to a kind of color.
Tone is measured with angle, and the span of tone is 0 °~360 °, is calculated counterclockwise since red, red
Color is 0 °, and green is 120 °, and blueness is 240 °.The span of tone can be carried out section by the section setting unit 3001
Division, obtains at least one tone section, such as:Can be set 5 tone sections, it is assumed that the first tone section can be (0 °,
45 °], the second tone section can be (45 °, 120 °], three color scheme section can be (120 °, 165 °], the 4th tone section
Can be (165 °, 200 °], the 5th tone section can be (200 °, 240 °];Etc..Further, a tone section is set
A kind of corresponding color, such as:According to above-mentioned example, it is assumed that the first tone section can correspond to red, and the second tone section can be right
Green is should be, three color scheme section can correspond to yellow, and three color scheme section can correspond to orange, and the 4th tone section can correspond to
For purple, the 5th tone section can correspond to blueness.
Map unit 3002, for the H values of each pixel to be mapped at least one tone section.
The map unit 3002 can obtain the H values of each pixel of the icon respectively, can obtain as follows:First
The H values of pixel are H1, the H values of second pixel point are H2, the H values of ith pixel point are Hi, by that analogy, n-th of picture
The H values of vegetarian refreshments are Hn.Further, the map unit 3002 respectively by the H values of each pixel map to described at least
One tone section, such as:According to example shown in the present embodiment, it is assumed that H1、H2、H3、H7... common x1Individual value maps to the first color
Section is adjusted, totally 0 maps to the second tone section, H4、H8... common x2Individual value maps to three color scheme section, and totally 0 maps to
4th tone section, H9、Hn... common x3Individual value maps to the 5th tone section, wherein, x1、x2And x3It is positive integer, and x1
> x3> x2> 0.
Object selection unit 3003, it is most for choosing mapping pixel quantity from least one tone section
Panel tone section.
Feature color determining unit 3004, for color corresponding to the panel tone section to be defined as into the icon
Feature color.
According to example shown in the present embodiment, due to x1> x3> x2> 0, therefore the feature color determining unit 3004 can
It is the 5th tone section to determine to map the most panel tone section of pixel quantity at least one tone section, the 5th
Color corresponding to tone section is blueness, so as to can determine that the feature color of the icon for blueness.
In the embodiment of the present invention, the color of pixel can be included by the icon of webpage to be controlled, obtains the figure
Target type and feature color, and according to the type of the icon and the feature color of the icon, control the mark of the webpage
Label display, the icon of the display webpage that both can be apparent in the label of the webpage, may be such that in browser again
The label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
Figure 12 is referred to, is a kind of structural representation of control unit provided in an embodiment of the present invention;The control unit 104
It may include:First display control unit 4001 and the second display control unit 4002.
First display control unit 4001, if being pure color icon for the icon, the feature color of the icon is set
The background of the label of the webpage is set to, and inverse processing is carried out to icon, the webpage is shown according to set background
Label, and the icon after the inverse is shown in the label of the webpage.
Wherein, the inverse processing refers to the color of the icon setting appointing in addition to the feature color of the icon
One color, give preferential treatment to as the color of the icon is arranged into white or the color opposite with the feature color of the icon, so as to
Can be relatively sharp in the label of the webpage the display icon.
Second display control unit 4002, if being ninsolid color icon for the icon, by the feature color of the icon
The background of the label of the webpage is arranged to, and the label of the webpage is controlled according to set background, and in the webpage
The icon is shown in label.
In the embodiment of the present invention, the color of pixel can be included by the icon of webpage to be controlled, obtains the figure
Target type and feature color, and according to the type of the icon and the feature color of the icon, control the mark of the webpage
Label display, the icon of the display webpage that both can be apparent in the label of the webpage, may be such that in browser again
The label of webpage shows more personalized and diversified, optimizes the label display effect of webpage.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (14)
- A kind of 1. display control method of webpage, it is characterised in that including:The icon for obtaining webpage to be controlled includes the color of pixel;The color that the icon includes pixel is analyzed, determines the type of the icon;The color of pixel is included according to the icon, calculates the feature color of the icon;If the icon is pure color icon, the feature color of the icon is arranged to the background of the label of the webpage, and it is right Icon carries out inverse processing, the label of the webpage is shown according to set background, and shown in the label of the webpage Icon after the inverse;If the icon is ninsolid color icon, the feature color of the icon is arranged to the background of the label of the webpage, and The label of the webpage is controlled according to set background, and the icon is shown in the label of the webpage.
- 2. the method as described in claim 1, it is characterised in that the icon for obtaining webpage to be controlled includes pixel Color, including:Each pixel that the icon of the webpage and the icon are included is read from the configuration file of webpage to be controlled Rgb value;The rgb value of each pixel is converted to by HSV value using color conversion rule.
- 3. method as claimed in claim 2, it is characterised in that the analysis icon includes the color of pixel, really The type of the fixed icon, including:Count the quantity for the nontransparent pixel that the icon is included;According to the HSV value of each pixel, the quantity for the specific color pixel that the icon is included is counted;Calculate the ratio of the quantity of the specific color pixel and the quantity of the nontransparent pixel;Judge whether the ratio is less than default accounting threshold value;If being less than, it is color map to determine the icon.
- 4. method as claimed in claim 3, it is characterised in that the nontransparent pixel that the statistics icon is included Quantity, including:The alpha value for each pixel that the icon is included is read from the configuration file of the webpage;It is respectively compared the size of the alpha value and default transparency threshold values of each pixel;The pixel that alpha value is more than to the default transparency threshold values is defined as nontransparent pixel;Count the quantity for the nontransparent pixel that the icon is included.
- 5. method as claimed in claim 4, it is characterised in that the HSV value according to each pixel, described in statistics The quantity for the specific color pixel that icon is included, including:The pixel that V values are less than or equal to predetermined luminance threshold values is extracted in the pixel included from the icon, forms first Set, and the pixel that S values are less than or equal to default saturation degree threshold values is extracted, form second set;The nontransparent pixel included to the first set, the second set and the icon carries out common factor calculating, Obtain the pixel point set of specific color;Count the quantity of the specific color pixel included in specific color pixel point set.
- 6. method as claimed in claim 3, it is characterised in that it is described determine that the icon is color map after, in addition to:Interference filtering processing is carried out to the icon, filters out the color interference pixel in the icon;Judge whether the color for the residual pixel point that the icon after interference filtering processing includes is similar;If close, it is pure color icon to determine the icon;If not approximate, it is ninsolid color icon to determine the icon.
- 7. the method as described in claim any one of 3-6, it is characterised in that described that pixel is included according to the icon Color, the feature color of the icon is calculated, including:At least one tone section is set, and each tone section corresponds to a kind of color;The H values of each pixel are mapped at least one tone section;The most panel tone section of mapping pixel quantity is chosen from least one tone section;Color corresponding to the panel tone section is defined as to the feature color of the icon.
- A kind of 8. display control unit of webpage, it is characterised in that including:Acquiring unit, the icon for obtaining webpage to be controlled include the color of pixel;Analytic unit, the color for including pixel for analyzing the icon, determine the type of the icon;Computing unit, for including the color of pixel according to the icon, calculate the feature color of the icon;Control unit, for the type according to the icon and the feature color of the icon, the label of the webpage is controlled to show Show;Wherein, described control unit includes:First display control unit, if being pure color icon for the icon, the feature color of the icon is arranged to described The background of the label of webpage, and carry out inverse processing to icon, shows the label of the webpage according to set background, and The icon after the inverse is shown in the label of the webpage;Second display control unit, if being ninsolid color icon for the icon, the feature color of the icon is arranged to institute The background of the label of webpage is stated, and the label of the webpage is controlled according to set background, and in the label of the webpage Show the icon.
- 9. device as claimed in claim 8, it is characterised in that the acquiring unit includes:Reading unit is configured, for reading icon and the icon institute of the webpage from the configuration file of webpage to be controlled Comprising each pixel rgb value;Color conversion cell, for the rgb value of each pixel to be converted into HSV value using color conversion rule.
- 10. device as claimed in claim 9, it is characterised in that the analytic unit includes:First statistic unit, the quantity of the nontransparent pixel included for counting the icon;Second statistic unit, for the HSV value according to each pixel, count the specific color picture that the icon is included The quantity of vegetarian refreshments;Ratio calculation unit, for calculating the ratio of the quantity of the specific color pixel and the quantity of the nontransparent pixel Value;Judging unit, for judging whether the ratio is less than default accounting threshold value;Type determining units, if for being less than, it is color map to determine the icon.
- 11. device as claimed in claim 10, it is characterised in that first statistic unit includes:Alpha value reading unit, each pixel included for reading the icon from the configuration file of the webpage Alpha value;Comparing unit, the size of alpha value and default transparency threshold values for being respectively compared each pixel;Nontransparent determining unit, the pixel for alpha value to be more than to the default transparency threshold values are defined as nontransparent picture Vegetarian refreshments;Nontransparent statistic unit, the quantity of the nontransparent pixel included for counting the icon.
- 12. device as claimed in claim 11, it is characterised in that second statistic unit includes:Extraction unit, for extracting picture of the V values less than or equal to predetermined luminance threshold values in the pixel that is included from the icon Vegetarian refreshments, first set is formed, and extract the pixel that S values are less than or equal to default saturation degree threshold values, form second set;Common factor computing unit, for the nontransparent picture included to the first set, the second set and the icon Vegetarian refreshments carries out common factor calculating, obtains the pixel point set of specific color;Specific color statistic unit, for counting the number of the specific color pixel included in specific color pixel point set Amount.
- 13. device as claimed in claim 10, it is characterised in that the analytic unit also includes:Processing unit is filtered out, for carrying out interference filtering processing to the icon, filters out the color interference pixel in the icon Point;Similar judging unit, for judge the color of residual pixel point that the icon after interference filtering processing includes whether phase It is approximate;If the type determining units are additionally operable to be similar, it is pure color icon to determine the icon;Or if not approximate, it is determined that The icon is ninsolid color icon.
- 14. the device as described in claim any one of 10-13, it is characterised in that the computing unit includes:Section setting unit, for setting at least one tone section, each tone section corresponds to a kind of color;Map unit, for the H values of each pixel to be mapped at least one tone section;Object selection unit, the panel tone most for choosing mapping pixel quantity from least one tone section Section;Feature color determining unit, for color corresponding to the panel tone section to be defined as to the feature of the icon It is color.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510070898.4A CN104657465B (en) | 2015-02-10 | 2015-02-10 | The display control method and device of a kind of webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510070898.4A CN104657465B (en) | 2015-02-10 | 2015-02-10 | The display control method and device of a kind of webpage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104657465A CN104657465A (en) | 2015-05-27 |
CN104657465B true CN104657465B (en) | 2018-01-23 |
Family
ID=53248593
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510070898.4A Active CN104657465B (en) | 2015-02-10 | 2015-02-10 | The display control method and device of a kind of webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104657465B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106503004B (en) * | 2015-09-07 | 2020-09-11 | 腾讯科技(深圳)有限公司 | Information processing method and device, and terminal |
CN106708496B (en) * | 2015-11-18 | 2020-03-17 | 腾讯科技(深圳)有限公司 | Processing method and device for label page in graphical interface |
CN111506287B (en) * | 2020-04-08 | 2023-07-04 | 北京百度网讯科技有限公司 | Page display method and device, electronic equipment and storage medium |
CN111552451B (en) * | 2020-04-09 | 2023-08-22 | RealMe重庆移动通信有限公司 | Display control method and device, computer readable medium and terminal equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7873916B1 (en) * | 2004-06-22 | 2011-01-18 | Apple Inc. | Color labeling in a graphical user interface |
CN103176761A (en) * | 2011-12-23 | 2013-06-26 | 中国移动通信集团公司 | Screen background setting method and movable terminal |
CN103513946A (en) * | 2012-06-26 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Display control method and device |
CN104035665A (en) * | 2014-06-13 | 2014-09-10 | Tcl集团股份有限公司 | Method and device for performing color processing on desktop icons |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120274589A1 (en) * | 2011-04-28 | 2012-11-01 | De Angelo Michael J | Apparatus, system, and method for remote interaction with a computer display or computer visualization or object |
-
2015
- 2015-02-10 CN CN201510070898.4A patent/CN104657465B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7873916B1 (en) * | 2004-06-22 | 2011-01-18 | Apple Inc. | Color labeling in a graphical user interface |
CN103176761A (en) * | 2011-12-23 | 2013-06-26 | 中国移动通信集团公司 | Screen background setting method and movable terminal |
CN103513946A (en) * | 2012-06-26 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Display control method and device |
CN104035665A (en) * | 2014-06-13 | 2014-09-10 | Tcl集团股份有限公司 | Method and device for performing color processing on desktop icons |
Also Published As
Publication number | Publication date |
---|---|
CN104657465A (en) | 2015-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2693303C2 (en) | Method and device for changing background colour of tool panel according to dominant colour of image | |
CN106898026B (en) | A kind of the dominant hue extracting method and device of picture | |
EP3300024B1 (en) | Color identification system, color identification method, and display device | |
CN104657465B (en) | The display control method and device of a kind of webpage | |
CN104636726B (en) | A kind of image color recognition methods, device and terminal | |
CN106384117B (en) | A kind of vehicle color identification method and device | |
CN108446697A (en) | Image processing method, electronic device and storage medium | |
CN104599271B (en) | CIE Lab color space based gray threshold segmentation method | |
Berezhnoy et al. | Computer analysis of van Gogh’s complementary colours | |
CN106529429A (en) | Image recognition-based facial skin analysis system | |
CN103218832B (en) | Based on the vision significance algorithm of global color contrast and spatial distribution in image | |
CN109636825A (en) | Seal graphics dividing method, device and computer readable storage medium | |
JP2021531571A (en) | Certificate image extraction method and terminal equipment | |
CN108961250B (en) | Target object statistical method, device, terminal and storage medium | |
CN113052923B (en) | Tone mapping method, tone mapping apparatus, electronic device, and storage medium | |
CN112750162A (en) | Target identification positioning method and device | |
CN109389111A (en) | Image acquisition and processing method, device and computer readable storage medium | |
CN113129390A (en) | Color blindness image re-coloring method and system based on joint significance | |
Chen et al. | Automated bridge coating defect recognition using adaptive ellipse approach | |
CN105787965B (en) | A kind of image search method based on color characteristic | |
WO2022246945A1 (en) | Information display method and apparatus, ar device and storage medium | |
CN109683769A (en) | A kind of application icon sequencing display processing method, mobile terminal and storage medium | |
CN105069475B (en) | The image processing method of view-based access control model attention mechanism model | |
CN114138215A (en) | Display method and related equipment | |
JP5279085B2 (en) | Color arrangement conversion apparatus and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221130 Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518000 Patentee after: Shenzhen Yayue Technology Co.,Ltd. Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |
|
TR01 | Transfer of patent right |