CN106528187A - Method and device for determining occupied background color - Google Patents

Method and device for determining occupied background color Download PDF

Info

Publication number
CN106528187A
CN106528187A CN201510571979.2A CN201510571979A CN106528187A CN 106528187 A CN106528187 A CN 106528187A CN 201510571979 A CN201510571979 A CN 201510571979A CN 106528187 A CN106528187 A CN 106528187A
Authority
CN
China
Prior art keywords
color
theme color
adjustment
theme
preliminary
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.)
Granted
Application number
CN201510571979.2A
Other languages
Chinese (zh)
Other versions
CN106528187B (en
Inventor
陈挺
潘杰茂
唐斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510571979.2A priority Critical patent/CN106528187B/en
Publication of CN106528187A publication Critical patent/CN106528187A/en
Application granted granted Critical
Publication of CN106528187B publication Critical patent/CN106528187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The application discloses a method and device for determining an occupied background color. The method comprises the steps that according to proportions occupied by various types of colors in a to-be-loaded picture, a color is selected from the colors and taken as a preliminary theme color; offset adjustment is conducted ton saturability and brightness of the preliminary theme color, so an adjusted theme color is obtained, wherein the saturability of the adjusted theme color belongs to a preset saturability interval, and the brightness of the adjusted theme color belongs to a preset brightness interval; and the adjusted theme color is determined as the occupied background color of the to-be-loaded picture. According to the application, the preliminary theme color is determined according to the proportions of various types of colors in the to-be-loaded picture, so the occupied background color obtained after adjustment of the saturability and the brightness of the preliminary theme color can embody characteristics of the to-be-loaded picture; and occupied background colors determined aiming at different to-be-loaded pictures may be the same, so the method could help a user distinguish the different to-be-loaded pictures in actual application, and the user's vision experience is improved.

Description

A kind of occupy-place background colour determines method and device
Technical field
The application is related to picture Processing Technique field, more particularly, it relates to a kind of occupy-place background colour determines Method and device.
Background technology
Picture as webpage in an important element, can more attract the attention of user compared to word Power, lifts the visual effect of whole webpage.
For the picture in webpage or application, its loading position is fixed, is loaded in picture previous As can be using occupy-place background colour filling picture loading position.Prior art is it is determined that picture occupy-place background colour When, it is general to have 10 width pictures to be loaded using fixed color settings mode in for example whole webpage, then it is existing There is technology that preset a certain fixed color is set to the occupy-place background colour of 10 width pictures.
Inventor's research finds that prior art is suffered from the drawback that:The mode that fixed color is arranged without Method embodies the characteristic of picture to be loaded, and when picture to be loaded is several, each position to be loaded For same occupy-place background color, it is unfavorable for that user distinguishes, reduces the visual experience of user.
The content of the invention
In view of this, it is this application provides a kind of occupy-place background colour determines method and device, existing to solve Have that the occupy-place background colour existing for picture occupy-place background colour set-up mode is single, user's visual experience difference is asked Topic.
To achieve these goals, it is proposed that scheme it is as follows:
A kind of occupy-place background colour determines method, including:
Ratio with reference to shared by various types of color in picture to be loaded, therefrom chooses a kind of color as preliminary Theme color;
Saturation degree and brightness to the preliminary theme color enters line displacement adjustment, is adjusted rear theme color, After the adjustment, the saturation degree of theme color belongs to preset saturation degree interval, and the brightness of theme color belongs to after adjusting In preset brightness section;
Theme color after the adjustment is defined as into the occupy-place background colour of the picture to be loaded.
A kind of occupy-place background colour determining device, including:
Preliminary theme color determining unit, for the ratio with reference to shared by various types of color in picture to be loaded, A kind of color is chosen therefrom as preliminary theme color;
Preliminary theme color adjustment unit, for entering line displacement to the saturation degree of the preliminary theme color and brightness Adjustment, is adjusted rear theme color, and after the adjustment, the saturation degree of theme color belongs to preset saturation degree interval, And the brightness of theme color belongs to preset brightness section after adjusting;
Occupy-place background colour determining unit, for being defined as the picture to be loaded by theme color after the adjustment Occupy-place background colour.
It can be seen from above-mentioned technical scheme that, the occupy-place background colour that the embodiment of the present application is provided determines method, The ratio shared by all kinds of colors in picture to be loaded is with reference to, and then a kind of color is therefrom chosen as preliminary Theme color, and the skew adjustment of saturation degree and brightness is carried out to preliminary theme color so that theme color after adjustment Saturation degree and brightness correspondence presetting range within, finally the theme color after adjustment is defined as to be added Carry the occupy-place background colour of picture.As in the application, preliminary theme color is with reference to all kinds of face in picture to be loaded Ratio shared by color and determine, therefore the occupy-place after saturation degree and brightness adjustment is carried out to preliminary theme color Background colour can embody the characteristic of picture to be loaded, and for determined by different pictures to be loaded Occupy-place background colour is likely to identical, advantageously distinguishes different pictures to be loaded in user during practical application, Improve the visual experience of user.
Further, it is determined that after preliminary theme color adjust its saturation degree and brightness, it is allowed to return Belong to preset interval, this avoid multiple pictures to be loaded in the same page occupy-place background colour it is bright Degree and saturation jitter are excessive, affect the problem of user's visual experience.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to reality Apply accompanying drawing to be used needed for example or description of the prior art to be briefly described, it should be apparent that, below Accompanying drawing in description is only embodiments herein, for those of ordinary skill in the art, not On the premise of paying creative work, can be with according to the other accompanying drawings of accompanying drawing acquisition for providing.
Fig. 1 is a kind of server hardware structural representation disclosed in the embodiment of the present application;
Fig. 2 determines method flow diagram for a kind of occupy-place background colour disclosed in the embodiment of the present application;
Fig. 3 is that another kind of occupy-place background colour determines method flow diagram disclosed in the embodiment of the present application;
Fig. 4 is that disclosed another the occupy-place background colour of the embodiment of the present application determines method flow diagram;
Fig. 5 is that disclosed another the occupy-place background colour of the embodiment of the present application determines method flow diagram;
Fig. 6 is that disclosed another the occupy-place background colour of the embodiment of the present application determines method flow diagram;
Fig. 7 is a kind of occupy-place background colour determining device structural representation disclosed in the embodiment of the present application;
Fig. 8 is a kind of preliminary theme color adjustment unit structural representation disclosed in the embodiment of the present application;
Fig. 9 is another kind of occupy-place background colour determining device structural representation disclosed in the embodiment of the present application;
Figure 10 is a kind of preliminary theme color determining unit structural representation disclosed in the embodiment of the present application;
Figure 11 is another occupy-place background colour determining device structural representation disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out Clearly and completely describe, it is clear that described embodiment is only some embodiments of the present application, and It is not all, of embodiment.Based on the embodiment in the application, those of ordinary skill in the art are not doing The every other embodiment obtained under the premise of going out creative work, belongs to the scope of the application protection.
The occupy-place background colour that the embodiment of the present application is provided determines method based on server, the hardware of the server Structure can be computer, notebook etc..It is before the occupy-place background colour for introducing the application determines method, first The hardware configuration of server is introduced first.As shown in figure 1, the server can include:
Processor 1, communication interface 2, memory 3, communication bus 4, and display screen 5;
Wherein processor 1, communication interface 2, memory 3 and display screen 5 complete phase by communication bus 4 Communication between mutually.
Next, we combine server hardware structure, method is entered to be determined to the occupy-place background colour of the application Row is introduced, as shown in Fig. 2 the method includes:
Step S200, the ratio with reference to shared by various types of color in picture to be loaded, therefrom choose a kind of face Color is used as preliminary theme color;
Specifically, the color of several species, the color of various species is generally comprised in a picture to be loaded Shared ratio is also not quite similar.The application may be referred to the ratio shared by various types of color, therefrom choose A kind of color is used as preliminary theme color.Specifically Selection Strategy can have various, illustrate as according to color institute The size of accounting example, chooses a certain color of large percentage as preliminary theme color.
When being embodied as, picture to be loaded can be obtained by communication interface 2.Optionally, communication connects Mouth 2 can be the interface of communication module, the such as interface of gsm module.
Line displacement adjustment is entered in step S210, the saturation degree to the preliminary theme color and brightness, is adjusted Theme color afterwards;
Theme color includes form and aspect, saturation degree and brightness these three attributes.Saturation in this step to theme color Degree and brightness are adjusted.By adjustment so that after adjustment, the saturation degree of theme color belongs to preset saturation Degree is interval, and the brightness of theme color belongs to preset brightness section after adjusting.
Here, for preset saturation degree is interval and brightness section, can be needed according to user and be set. Citing such as, if it is determined that audient's major part be than younger user, then can be interval and bright by saturation degree Degree interval is set to medium low so that color seems more young vibrant.
If it is understood that the saturation degree of preliminary theme color and brightness belong to it is preset it is interval in, Can select no longer to be adjusted which, or select to be finely adjusted which.
Here, preset saturation degree is interval and brightness section can be uploaded onto the server by communication interface 2, And store in memory 3.Saturation degree and brightness adjustment algorithm can also be stored in memory 3.
This step specifically can be performed by processor 1, namely by processor 1 using communication bus 4 from Read specifically adjustment algorithm in memory 3, for preliminary theme color saturation degree and brightness enter line displacement Adjustment.The possibly central processor CPU of processor 1, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the embodiment of the present application One or more integrated circuits.
Step S220, the occupy-place background colour that theme color after the adjustment is defined as the picture to be loaded.
Through it is above-mentioned preliminary theme color is adjusted after, after the adjustment for obtaining, theme color can be used as to be added Carry the occupy-place background colour of picture.
The occupy-place background colour that the embodiment of the present application is provided determines method, with reference to all kinds of face in picture to be loaded Ratio shared by color, and then a kind of color is therefrom chosen as preliminary theme color, and preliminary theme color is entered The skew adjustment of row saturation degree and brightness so that the saturation degree of theme color and brightness are pre- in correspondence after adjustment Within the scope of putting, the theme color after adjustment is finally defined as the occupy-place background colour of picture to be loaded.Due to In the application, preliminary theme color is ratio with reference to shared by all kinds of colors in picture to be loaded and determines, because This carries out the occupy-place background colour after saturation degree and brightness adjustment and can embody figure to be loaded to preliminary theme color The characteristic of piece, and identical, reality is likely to for occupy-place background colour determined by different pictures to be loaded Advantageously different pictures to be loaded are distinguished in user when border is applied, improve the visual experience of user.
Further, it is determined that after preliminary theme color adjust its saturation degree and brightness, it is allowed to return Belong to preset interval, this avoid multiple pictures to be loaded in the same page occupy-place background colour it is bright Degree and saturation jitter are excessive, affect the problem of user's visual experience.
In another embodiment of the application, disclose another kind of occupy-place background colour and determine method, referring to Fig. 3.
As shown in figure 3, the method includes:
Step S300, determine the ratio shared by various types of color in the picture to be loaded;
Specifically, can pitch using eight during ratio shared by various types of color in picture to be loaded is calculated Tree algorithm.Octree algorithm is an existing algorithm, and detailed algorithm is the application do not lay down a definition.Certainly, remove Using other algorithms can also be adopted outside Octree algorithm, as long as guarantee to obtain various types of color Shared ratio.
Step S310, in the various types of color included by the picture to be loaded, choose non-preset color Ratio highest color, as preliminary theme color;
Due to the particularity of actually used scene, in order to distinguish occupy-place background colour and page background color, it is determined that Consider to weed out the color same or like with the page background color during preliminary theme color.It is provided with this step pre- Color is put, the color is page background color or the color close to page background color.
Generally, page background color is white, therefore preset color can include white.
When specifically choosing preliminary theme color, can be according to the scale of various types of color, to various types of Color is ranked up, and for example proportionally size carries out descending arrangement.And then judge first face in sequence Whether color is preset color, if it is not, then being defined as preliminary theme color;If it is, choosing Second color in sequence, and judge whether which is preset color again, until choosing non-preset to one The color of color, is defined as preliminary theme color.
Line displacement adjustment is entered in step S320, the saturation degree to the preliminary theme color and brightness, is adjusted Theme color afterwards;
Theme color includes form and aspect, saturation degree and brightness these three attributes.Saturation in this step to theme color Degree and brightness are adjusted.By adjustment so that after adjustment, the saturation degree of theme color belongs to preset saturation Degree is interval, and the brightness of theme color belongs to preset brightness section after adjusting.
Step S330, the occupy-place background colour that theme color after the adjustment is defined as the picture to be loaded.
In the present embodiment, a kind of specific embodiment for determining preliminary theme color is described.Specifically, lead to Cross Octree algorithm and determine various types of color proportion in picture to be loaded, and then choose wherein non-pre- The ratio highest color of color is put as preliminary theme color.Due to the application selection is non-preset color Ratio highest color as preliminary theme color, when using as occupy-place background colour after color adjustment more Stick on the theme colors for being bordering on picture to be loaded, preferably embody the characteristic of picture to be loaded.
In another embodiment of the application, disclose another occupy-place background colour and determine method, referring to Fig. 4.
As shown in figure 4, the method includes:
Step S400, the ratio with reference to shared by various types of color in picture to be loaded, therefrom choose a kind of face Color is used as preliminary theme color;
Specifically, the color of several species, the color of various species is generally comprised in a picture to be loaded Shared ratio is also not quite similar.The application may be referred to the ratio shared by various types of color, therefrom choose A kind of color is used as preliminary theme color.Specifically Selection Strategy can have various, illustrate as according to color institute The size of accounting example, chooses a certain color of large percentage as preliminary theme color.
Line displacement adjustment is entered in step S410, the saturation degree to the preliminary theme color and brightness, is adjusted Theme color afterwards;
Theme color includes form and aspect, saturation degree and brightness these three attributes.Saturation in this step to theme color Degree and brightness are adjusted.By adjustment so that after adjustment, the saturation degree of theme color belongs to preset saturation Degree is interval, and the brightness of theme color belongs to preset brightness section after adjusting.
Step S420, judge the adjustment after theme color it is whether identical with page background color;If so, perform step Rapid S430, if it is not, execution step S440;
Specifically, the above-mentioned page is the page for showing picture to be loaded.Such as Webpage, application Picture loading page etc..
Step S430, adjustment of color process is carried out to theme color after the adjustment, and by the theme after process Color is defined as the occupy-place background colour of the picture to be loaded;
Step S440, the occupy-place background colour that theme color after the adjustment is defined as the picture to be loaded.
Specifically, it is similar with a upper embodiment, it is contemplated that if occupy-place background colour and page background color phase Together, then picture occupy-place effect can not be embodied well, therefore detecting theme color and page background color When identical, process is adjusted to its form and aspect further, the form and aspect after adjustment can be with the color of page background color Distinguish and come.Lift for example, it is assumed that page background color for white, then if it is determined that adjustment after theme color be also White, then be adjusted to its form and aspect, can be adjusted to grey.And then using the theme color after adjustment as Occupy-place background colour, in the case where guarantee is close with the theme color of picture to be loaded, can more be different from page Face background color, embodies picture occupy-place effect.
In another embodiment of the application, disclose another occupy-place background colour and determine method, referring to Fig. 5.
As shown in figure 5, the method includes:
Step S500, the ratio with reference to shared by various types of color in picture to be loaded, therefrom choose a kind of face Color is used as preliminary theme color;
Specifically, the color of several species, the color of various species is generally comprised in a picture to be loaded Shared ratio is also not quite similar.The application may be referred to the ratio shared by various types of color, therefrom choose A kind of color is used as preliminary theme color.Specifically Selection Strategy can have various, illustrate as according to color institute The size of accounting example, chooses a certain color of large percentage as preliminary theme color.
Step S510, judge that whether the saturation degree of the preliminary theme color exceedes saturation degree threshold value, if so, Execution step S520;
Step S520, the saturation degree of the preliminary theme color is multiplied by into preset saturation degree shift ratio value;
Step S530, judge that whether the brightness of the preliminary theme color exceed luminance threshold, if so, perform Step S540;
Step S540, preset intensity deviation ratio value is multiplied by the brightness of the preliminary theme color;
Step S550, the occupy-place background colour that theme color after the adjustment is defined as the picture to be loaded.
Saturation degree threshold value and luminance threshold has been preset in the present embodiment, and then is detecting preliminary theme When the saturation degree of color and brightness exceed correspondence threshold value, saturation degree and brightness are carried out according to preset shift ratio Skew adjustment, is allowed to belong to preset saturation degree interval and brightness section.
By way of the present embodiment, saturation degree and the brightness for controlling the occupy-place background colour of picture to be loaded is equal In certain interval, when in the same page, picture to be loaded is several, the occupy-place background colour of each picture Brightness belong to same interval, saturation degree and fall within same interval, hence in so that each accounts in the same page The position saturation degree of background colour and the shake of brightness are unlikely to excessive, lift the visual experience of user.
It is illustrated by HSB models of colour model, in the model saturation degree maximum and brightness Maximum is 100.It is interval for 0-65 that we choose saturation degree, and brightness section is 0-55, and saturation degree is inclined It is 65% to move ratio value, and intensity deviation ratio value is 50%.Therefore, if it is determined that tentatively theme color is full Exceed 65 with degree x, then calculations of offset has been carried out to which:X*65%.Result after calculations of offset necessarily belongs to In saturation degree interval 0-65.Brightness is directed in the same manner.
It is understood that above-mentioned to the saturation degree of preliminary theme color and the skew adjustment mode of brightness be only Citing, is not construed as offseting the application the restriction of adjustment algorithm, any to make the full of preliminary theme color Can be used as the application specific embodiment to preset interval algorithm with degree and brightness adjustment.
In another embodiment of the application, disclose another occupy-place background colour and determine method, referring to Fig. 6.
As shown in fig. 6, the method includes:
Step S600, the ratio with reference to shared by various types of color in picture to be loaded, therefrom choose a kind of face Color is used as preliminary theme color;
Specifically, the color of several species, the color of various species is generally comprised in a picture to be loaded Shared ratio is also not quite similar.The application may be referred to the ratio shared by various types of color, therefrom choose A kind of color is used as preliminary theme color.Specifically Selection Strategy can have various, illustrate as according to color institute The size of accounting example, chooses a certain color of large percentage as preliminary theme color.
Line displacement adjustment is entered in step S610, the saturation degree to the preliminary theme color and brightness, is adjusted Theme color afterwards;
Theme color includes form and aspect, saturation degree and brightness these three attributes.Saturation in this step to theme color Degree and brightness are adjusted.By adjustment so that after adjustment, the saturation degree of theme color belongs to preset saturation Degree is interval, and the brightness of theme color belongs to preset brightness section after adjusting.
Step S620, the average brightness for determining each pixel in the picture to be loaded;
By treat Load Image in each pixel brightness averaged, obtain the complete of picture in its entirety Office's luminance mean value.
Step S630, judge the deviation of the brightness of theme color and the average brightness after the adjustment whether More than preset maximum deflection difference value, if so, execution step S640;
Step S640, the brightness for being adjusted theme color after the adjustment using the average brightness again, are obtained The theme color to after secondary adjustment;
The brightness of theme color after contrasting average brightness and adjustment, it may be determined that theme color after adjustment Whether brightness is had big difference with the global mean flow rate of picture in its entirety, if having big difference really, using bright Degree mean value adjusts the brightness of theme color after the adjustment again, is allowed to convergence or is equal to average brightness value.
Step S650, the occupy-place background colour that theme color after secondary adjustment is defined as the picture to be loaded.
In the present embodiment after the brightness to preliminary theme color and saturation degree are adjusted, determine whether to adjust Whether the brightness of whole rear theme color is had big difference with the global mean flow rate of picture to be loaded, if it is, The brightness of preliminary theme color is adjusted again using global mean flow rate so that its brightness convergence or be equal to figure Piece overall situation mean flow rate.
Wherein, for the adjustment mode of above-mentioned steps S640, can be directly by after adjustment theme color it is bright Degree is defined as the average brightness.Certainly, in addition can also there are other adjustment modes, as long as Ensure that the brightness of the preliminary theme color after secondary adjustment is differed in the range of setting i.e. with the average brightness value Can.
Below the occupy-place background colour determining device that the embodiment of the present application is provided is described, it is described below With above-described occupy-place background colour, occupy-place background colour determining device determines that method can be mutually to should refer to.
Referring to Fig. 7, Fig. 7 is a kind of occupy-place background colour determining device structural representation disclosed in the embodiment of the present application Figure.
As shown in fig. 7, the device includes:
Preliminary theme color determining unit 71, for the ratio with reference to shared by various types of color in picture to be loaded, A kind of color is chosen therefrom as preliminary theme color;
Preliminary theme color adjustment unit 72, for carrying out to the saturation degree of the preliminary theme color and brightness partially Transposition is whole, is adjusted rear theme color, and after the adjustment, the saturation degree of theme color belongs to preset saturation degree area Between, and the brightness of theme color belongs to preset brightness section after adjusting;
Occupy-place background colour determining unit 73, for being defined as the figure to be loaded by theme color after the adjustment The occupy-place background colour of piece.
The occupy-place background colour determining device that the embodiment of the present application is provided, with reference to all kinds of face in picture to be loaded Ratio shared by color, and then a kind of color is therefrom chosen as preliminary theme color, and preliminary theme color is entered The skew adjustment of row saturation degree and brightness so that the saturation degree of theme color and brightness are pre- in correspondence after adjustment Within the scope of putting, the theme color after adjustment is finally defined as the occupy-place background colour of picture to be loaded.Due to In the application, preliminary theme color is ratio with reference to shared by all kinds of colors in picture to be loaded and determines, because This carries out the occupy-place background colour after saturation degree and brightness adjustment and can embody figure to be loaded to preliminary theme color The characteristic of piece, and identical, reality is likely to for occupy-place background colour determined by different pictures to be loaded Advantageously different pictures to be loaded are distinguished in user when border is applied, improve the visual experience of user.
Further, it is determined that after preliminary theme color adjust its saturation degree and brightness, it is allowed to return Belong to preset interval, this avoid multiple pictures to be loaded in the same page occupy-place background colour it is bright Degree and saturation jitter are excessive, affect the problem of user's visual experience.
Optionally, the embodiment of the present application discloses a kind of optional knot of above-mentioned preliminary theme color adjustment unit 72 Structure, as shown in figure 8, preliminary theme color adjustment unit 72 can include:
First preliminary theme color adjustment subelement 721, for judge the preliminary theme color saturation degree whether More than saturation degree threshold value, the saturation degree of the preliminary theme color is multiplied by into preset saturation degree skew if so, Ratio value;
Second preliminary theme color adjustment subelement 722, for judging whether the brightness of the preliminary theme color surpasses Luminance threshold is crossed, preset intensity deviation ratio value is multiplied by the brightness of the preliminary theme color if so,.
Optionally, the embodiment of the present application discloses another kind of optional knot of above-mentioned occupy-place background colour determining device With reference to Fig. 7 and Fig. 9, structure, understands that the device can also include:
Picture luminance average determining unit 74, for after the preliminary theme color adjustment unit 72, really The average brightness of each pixel in the fixed picture to be loaded;
Brightness contrast unit 75, for judging the brightness of theme color and the average brightness after the adjustment Deviation whether exceed preset maximum deflection difference value;
Brightness adjustment unit 76, for when the judged result of the brightness contrast unit 75 is for being, utilizing The average brightness adjusts the brightness of theme color after the adjustment again, obtains theme color after secondary adjustment;
The occupy-place background colour determining unit 73 is specifically for being defined as institute by theme color after the secondary adjustment State the occupy-place background colour of picture to be loaded.
Optionally, the embodiment of the present application discloses a kind of optional knot of above-mentioned preliminary theme color determining unit 71 Structure, as shown in Figure 10, preliminary theme color determining unit 71 can include:
Color-ratio computing unit 711, it is various in the picture to be loaded for being determined using Octree algorithm Ratio shared by class color;
Theme color chooses unit 712, for, in the various types of color included by the picture to be loaded, selecting The ratio highest color of negated preset color, used as preliminary theme color.
Optionally, the embodiment of the present application discloses another optional knot of above-mentioned occupy-place background colour determining device With reference to Fig. 7 and Figure 11, structure, understands that the device can also include:
Theme color judging unit 77, for before the occupy-place background colour determining unit 73, judging described After adjustment, whether theme color is identical with page background color, and the page is the page for showing the picture to be loaded;
Form and aspect processing unit 78, for when 77 judged result of theme color judging unit is for being, to institute After stating adjustment, theme color carries out adjustment of color process;
Theme color after then the occupy-place background colour determining unit 73 is specifically for adjustment of color is processed determines For the occupy-place background colour of the picture to be loaded.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms It is used merely to make a distinction an entity or operation with another entity or operation, and not necessarily requires Or imply these entities or there is any this actual relation or order between operating.And, art Language " including ", "comprising" or its any other variant are intended to including for nonexcludability, so as to So that a series of process, method, article or equipment including key elements not only includes those key elements, and Also include other key elements for being not expressly set out, or also include for this process, method, article or The intrinsic key element of person's equipment.In the absence of more restrictions, by sentence "including a ..." The key element of restriction, it is not excluded that also deposit in the process including the key element, method, article or equipment In other identical element.
In this specification, each embodiment is described by the way of progressive, and each embodiment is stressed The difference with other embodiment, between each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or use The application.Various modifications to these embodiments will be aobvious and easy for those skilled in the art See, generic principles defined herein can in the case of without departing from spirit herein or scope, Realize in other embodiments.Therefore, the application is not intended to be limited to the embodiments shown herein, And it is to fit to the most wide scope consistent with principles disclosed herein and features of novelty.

Claims (10)

1. a kind of occupy-place background colour determines method, it is characterised in that include:
Ratio with reference to shared by various types of color in picture to be loaded, therefrom chooses a kind of color as preliminary Theme color;
Saturation degree and brightness to the preliminary theme color enters line displacement adjustment, is adjusted rear theme color, After the adjustment, the saturation degree of theme color belongs to preset saturation degree interval, and the brightness of theme color belongs to after adjusting In preset brightness section;
Theme color after the adjustment is defined as into the occupy-place background colour of the picture to be loaded.
2. method according to claim 1, it is characterised in that described to the preliminary theme color Line displacement adjustment is entered in saturation degree and brightness to be included:
Judge whether the saturation degree of the preliminary theme color exceedes saturation degree threshold value, if so, will be described preliminary The saturation degree of theme color is multiplied by preset saturation degree shift ratio value;
Judge whether the brightness of the preliminary theme color exceedes luminance threshold, if so, by the preliminary theme Preset intensity deviation ratio value is multiplied by the brightness of color.
3. method according to claim 1, it is characterised in that described to the preliminary theme color Saturation degree and brightness enter line displacement adjustment after, also include:
Determine the average brightness of each pixel in the picture to be loaded;
Judge after the adjustment brightness of theme color and the deviation of the average brightness whether exceed it is preset most Large deviation value;
If so, adjust the brightness of theme color after the adjustment using the average brightness again, obtain two Theme color after secondary adjustment;
Then the occupy-place background colour that theme color after the adjustment is defined as the picture to be loaded is concrete For:
Theme color after the secondary adjustment is defined as into the occupy-place background colour of the picture to be loaded.
4. method according to claim 1, it is characterised in that described with reference to each in picture to be loaded Ratio shared by species color, therefrom chooses a kind of color as preliminary theme color, including:
Ratio in the picture to be loaded shared by various types of color is determined using Octree algorithm;
In the various types of color included by the picture to be loaded, the ratio highest of non-preset color is chosen Color, as preliminary theme color.
5. method according to claim 1, it is characterised in that it is described by the adjustment after theme Before color is defined as the occupy-place background colour of the picture to be loaded, also include:
After judging the adjustment, whether theme color is identical with page background color, and the page is described to be added for showing Carry the page of picture;
If so, adjustment of color process is carried out to theme color after the adjustment, and will be the theme color after process true It is set to the occupy-place background colour of the picture to be loaded.
6. a kind of occupy-place background colour determining device, it is characterised in that include:
Preliminary theme color determining unit, for the ratio with reference to shared by various types of color in picture to be loaded, A kind of color is chosen therefrom as preliminary theme color;
Preliminary theme color adjustment unit, for entering line displacement to the saturation degree of the preliminary theme color and brightness Adjustment, is adjusted rear theme color, and after the adjustment, the saturation degree of theme color belongs to preset saturation degree interval, And the brightness of theme color belongs to preset brightness section after adjusting;
Occupy-place background colour determining unit, for being defined as the picture to be loaded by theme color after the adjustment Occupy-place background colour.
7. device according to claim 6, it is characterised in that the preliminary theme color adjustment unit Including:
First preliminary theme color adjustment subelement, for judging whether the saturation degree of the preliminary theme color surpasses If so, the saturation degree of the preliminary theme color is multiplied by preset saturation degree deviation ratio by degree of supersaturation threshold value Example value;
Second preliminary theme color adjustment subelement, for judging whether the brightness of the preliminary theme color exceedes If so, the brightness of the preliminary theme color be multiplied by preset intensity deviation ratio value by luminance threshold.
8. device according to claim 6, it is characterised in that also include:
Picture luminance average determining unit, for, after the preliminary theme color adjustment unit, determining institute State the average brightness of each pixel in picture to be loaded;
Brightness contrast unit, for judging the brightness of theme color and the average brightness after the adjustment Whether deviation exceedes preset maximum deflection difference value;
Brightness adjustment unit, for when the judged result of the brightness contrast unit is for being, using described Average brightness adjusts the brightness of theme color after the adjustment again, obtains theme color after secondary adjustment;
The occupy-place background colour determining unit is described specifically for theme color after the secondary adjustment is defined as The occupy-place background colour of picture to be loaded.
9. device according to claim 6, it is characterised in that the preliminary theme color determining unit Including:
Color-ratio computing unit, it is various types of in the picture to be loaded for being determined using Octree algorithm Ratio shared by color;
Theme color chooses unit, for, in the various types of color included by the picture to be loaded, choosing The ratio highest color of non-preset color, used as preliminary theme color.
10. device according to claim 6, it is characterised in that also include:
Theme color judging unit, for, before the occupy-place background colour determining unit, judging the adjustment Whether theme color is identical with page background color afterwards, and the page is the page for showing the picture to be loaded;
Form and aspect processing unit, for when the theme color judging unit judged result is for being, to the tune Whole rear theme color carries out adjustment of color process;
Theme color after then the occupy-place background colour determining unit is specifically for adjustment of color is processed is defined as The occupy-place background colour of the picture to be loaded.
CN201510571979.2A 2015-09-09 2015-09-09 Method and device for determining occupancy background color Active CN106528187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510571979.2A CN106528187B (en) 2015-09-09 2015-09-09 Method and device for determining occupancy background color

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510571979.2A CN106528187B (en) 2015-09-09 2015-09-09 Method and device for determining occupancy background color

Publications (2)

Publication Number Publication Date
CN106528187A true CN106528187A (en) 2017-03-22
CN106528187B CN106528187B (en) 2020-04-07

Family

ID=58345828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510571979.2A Active CN106528187B (en) 2015-09-09 2015-09-09 Method and device for determining occupancy background color

Country Status (1)

Country Link
CN (1) CN106528187B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197353A (en) * 2017-05-24 2017-09-22 环球智达科技(北京)有限公司 The processing method of the occupy-place figure of interface images
CN107222773A (en) * 2017-05-24 2017-09-29 环球智达科技(北京)有限公司 The processing system of the occupy-place figure of interface images
CN109491739A (en) * 2018-10-30 2019-03-19 北京字节跳动网络技术有限公司 A kind of theme color is dynamically determined method, apparatus, electronic equipment and storage medium
CN109597664A (en) * 2018-09-21 2019-04-09 北京字节跳动网络技术有限公司 Background configuration method, device, equipment and the readable medium of display area
CN109783178A (en) * 2019-01-24 2019-05-21 北京字节跳动网络技术有限公司 A kind of color adjustment method of interface assembly, device, equipment and medium
CN109859283A (en) * 2018-12-22 2019-06-07 Oppo广东移动通信有限公司 One kind taking color method, takes color device, electronic equipment and can storage medium
CN110298365A (en) * 2019-07-04 2019-10-01 浙江大学滨海产业技术研究院 A kind of theme color extracting method based on human eye vision
CN110673904A (en) * 2018-07-03 2020-01-10 阿里巴巴集团控股有限公司 Method, device and equipment for theme color processing and display page generation
CN112748829A (en) * 2020-07-14 2021-05-04 腾讯数码(天津)有限公司 Picture editing method, device, equipment and storage medium
CN112995630A (en) * 2021-03-11 2021-06-18 杭州当贝网络科技有限公司 Flexible brightness adjusting method for fixed-focus projector, projector and readable storage medium
CN113207023A (en) * 2021-04-06 2021-08-03 深圳创维-Rgb电子有限公司 Method, device, equipment and medium for processing background color change of television detail page
WO2021168675A1 (en) * 2020-02-26 2021-09-02 Boe Technology Group Co., Ltd. Computer-implemented method, apparatus, and computer-program product
CN113742025A (en) * 2021-09-17 2021-12-03 北京字跳网络技术有限公司 Page generation method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914450A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and device for presenting web graphics in mobile terminal platform
CN104238902A (en) * 2013-06-09 2014-12-24 苹果公司 Stacked tab view
CN104462312A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Web page displaying method and browser client side

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914450A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and device for presenting web graphics in mobile terminal platform
CN104238902A (en) * 2013-06-09 2014-12-24 苹果公司 Stacked tab view
CN104462312A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Web page displaying method and browser client side

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小老妈: ""Android UI设计(一)——胜过千言万语的图片设计"", 《HTTPS://SITE.DOUBAN.COM/169072/WIDGET/NOTES/9233791/NOTE/317606433/》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222773A (en) * 2017-05-24 2017-09-29 环球智达科技(北京)有限公司 The processing system of the occupy-place figure of interface images
CN107197353A (en) * 2017-05-24 2017-09-22 环球智达科技(北京)有限公司 The processing method of the occupy-place figure of interface images
CN110673904A (en) * 2018-07-03 2020-01-10 阿里巴巴集团控股有限公司 Method, device and equipment for theme color processing and display page generation
CN110673904B (en) * 2018-07-03 2023-08-25 淘宝(中国)软件有限公司 Method, device and equipment for theme color processing and page generation display
CN109597664A (en) * 2018-09-21 2019-04-09 北京字节跳动网络技术有限公司 Background configuration method, device, equipment and the readable medium of display area
CN109491739A (en) * 2018-10-30 2019-03-19 北京字节跳动网络技术有限公司 A kind of theme color is dynamically determined method, apparatus, electronic equipment and storage medium
CN109491739B (en) * 2018-10-30 2023-04-07 北京字节跳动网络技术有限公司 Theme color dynamic determination method and device, electronic equipment and storage medium
CN109859283B (en) * 2018-12-22 2024-01-09 Oppo广东移动通信有限公司 Color taking method, color taking device, electronic equipment and storable medium
CN109859283A (en) * 2018-12-22 2019-06-07 Oppo广东移动通信有限公司 One kind taking color method, takes color device, electronic equipment and can storage medium
CN109783178B (en) * 2019-01-24 2022-08-23 北京字节跳动网络技术有限公司 Color adjusting method, device, equipment and medium for interface component
CN109783178A (en) * 2019-01-24 2019-05-21 北京字节跳动网络技术有限公司 A kind of color adjustment method of interface assembly, device, equipment and medium
CN110298365A (en) * 2019-07-04 2019-10-01 浙江大学滨海产业技术研究院 A kind of theme color extracting method based on human eye vision
WO2021168675A1 (en) * 2020-02-26 2021-09-02 Boe Technology Group Co., Ltd. Computer-implemented method, apparatus, and computer-program product
CN112748829A (en) * 2020-07-14 2021-05-04 腾讯数码(天津)有限公司 Picture editing method, device, equipment and storage medium
CN112995630A (en) * 2021-03-11 2021-06-18 杭州当贝网络科技有限公司 Flexible brightness adjusting method for fixed-focus projector, projector and readable storage medium
CN113207023B (en) * 2021-04-06 2023-05-02 深圳创维-Rgb电子有限公司 Method, device, equipment and medium for processing background color change of television detail page
CN113207023A (en) * 2021-04-06 2021-08-03 深圳创维-Rgb电子有限公司 Method, device, equipment and medium for processing background color change of television detail page
CN113742025A (en) * 2021-09-17 2021-12-03 北京字跳网络技术有限公司 Page generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106528187B (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN106528187A (en) Method and device for determining occupied background color
EP1918873B1 (en) Image processing method, medium and system
WO2020038124A1 (en) Image contrast enhancement method and apparatus, and device and storage medium
US8290252B2 (en) Image-based backgrounds for images
CN107945766A (en) Display device
CN111899182B (en) Color enhancement method and device
JP5698992B2 (en) Power saving display information conversion system and method
JP2007082145A (en) Image processing apparatus, image processing method, and program
CN107680056A (en) A kind of image processing method and device
WO2021180173A1 (en) Image processing method and apparatus, device and storage medium
US9230484B2 (en) Adaptive backlight control and contrast enhancement
TWI390483B (en) Apparatus and method for contrast control
TW200824450A (en) Methods and devices for adjusting display characteristic of a video frame
CN116168652A (en) Image display method, device, electronic equipment and computer readable storage medium
TW201606732A (en) Image adjusting method and related display
TW200532642A (en) Method for adjusting image contrast
TW201913639A (en) Display device and backlight driving methods thereof
CN107027017A (en) A kind of method of adjustment, device, picture processing chip and the storage device of image white balance
CN101295467A (en) Contrast control device and control method thereof
CN101197911B (en) Picture edge intensification method and device
JP6257268B2 (en) Image processing apparatus and image processing method
US20160019863A1 (en) Image processing method and device
JP2009010636A (en) Adaption histogram equalization method, and adaption histogram equalization apparatus
CN113157356A (en) Method and device for adjusting object color, electronic equipment and computer storage medium
JPH118768A (en) Image processor, image processing method and medium recording image processing control program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant