CN105204807B - Method and device for adjusting color of display content at front end of screen - Google Patents

Method and device for adjusting color of display content at front end of screen Download PDF

Info

Publication number
CN105204807B
CN105204807B CN201510618383.3A CN201510618383A CN105204807B CN 105204807 B CN105204807 B CN 105204807B CN 201510618383 A CN201510618383 A CN 201510618383A CN 105204807 B CN105204807 B CN 105204807B
Authority
CN
China
Prior art keywords
pixel
color
value
wallpaper
obtains
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
Application number
CN201510618383.3A
Other languages
Chinese (zh)
Other versions
CN105204807A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510618383.3A priority Critical patent/CN105204807B/en
Publication of CN105204807A publication Critical patent/CN105204807A/en
Application granted granted Critical
Publication of CN105204807B publication Critical patent/CN105204807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method and a device for adjusting the color of display content at the front end of a screen. The method comprises the following steps: acquiring a color value of wallpaper displayed on a screen and a color value of display content at the front end of the screen; calculating the color difference between the color value of the display content at the front end of the screen and the color value of the wallpaper; and if the color difference is matched with a preset color difference threshold value, adjusting the color value of the display content at the front end of the screen to be a color value with a contrast effect with the color value of the wallpaper. By applying the method and the device, the browsing efficiency and the operating efficiency of the user can be improved.

Description

A kind of method and device for adjusting screen front end display content color
Technical field
The present invention relates to computer technology more particularly to a kind of methods and dress for adjusting screen front end display content color It puts.
Background technology
With the continuous development of multimedia and the communication technology, current electronic equipment, such as removable computer, intelligent mobile Phone, personal digital assistant etc. by installing types of applications program, can carry out respective handling, due to profit to different information With electronic equipment processing information have it is convenient and efficient, save the advantages such as resource so that electronic equipment become user's daily life and An indispensable part in work.
As user more and more carries out the exchanges and communication of routine work, life using electronic equipment, user is to electricity Individualized experience of sub- equipment etc. proposes increasingly higher demands.In order to promote the user experience of electronic equipment, enrich The background image of electronic equipment screen is previously provided with a variety of colors to meet the individual demand of all types of user in electronic equipment Wallpaper storehouse, so that user is according to itself personalized demand and hobby, required wallpaper, Ke Yisui are chosen from wallpaper storehouse When, everywhere to the background image currently shown in screen, i.e. wallpaper is replaced, wherein, shown on electronic equipment screen Background image or wallpaper are screen rear end display content, and in the last layer of the corresponding layer of screen rear end display content is shown Hold for screen front end display content, for example, each application program control or application program circle of startup that are shown in screen wallpaper Face etc..Certainly, user can also choose the picture oneself liked and be put into wallpaper storehouse as wallpaper, alternatively, by downloading and pacifying Fill third party's wallpaper application program, so as to downloaded from the corresponding wallpaper server of third party's wallpaper application program all kinds of wallpapers to In wallpaper storehouse, further to enrich electronic equipment screen and meet itself personalized screen display demand.
By taking screen front end display content is application program control as an example, due to being equipped on electronic equipment largely using journey Sequence shows the application program control of corresponding shortcut on the screen, which is marked with by application program image And word composition, since all kinds of wallpaper colors frequently replaced are varied, in this way, the wallpaper on electronic equipment screen is replaced Afterwards, the application program control color shown on the wallpaper and screen replaced may be caused same or similar, be not easy to user discrimination Application program control for example, when the color for the wallpaper that user replaces is close with the text color on electronic equipment screen, can be led Family of applying does not see word on Chu's screen, it is necessary to more carefully and take more time identification word so that user browses It is less efficient, so as to be influenced on the operation generation of the application program control of user is certain, for example, operation needed for being not easily found is answered With program control, the operating efficiency of user is reduced.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of method and device for adjusting screen front end display content color, solution Certainly user's browse efficiency and the technical issues of relatively low operating efficiency.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
On the one hand, the embodiment of the present invention provides a kind of method for adjusting screen front end display content color, including:
Obtain the color value of wallpaper shown on screen and the color value of screen front end display content;
Calculate the color distortion of the color value of screen front end display content and the color value of the wallpaper;
If the color distortion matches with pre-set color distortion threshold value, by screen front end display content Color value be adjusted to the color value of the wallpaper have contrast effect color value.
The method of adjustment screen front end provided in an embodiment of the present invention display content color, wall is replaced in electronic equipment screen After paper, by obtaining the color value of the wallpaper shown on screen and the color value of screen front end display content, compare replacement Whether the color value of wallpaper has pre-set color distortion with the color value of screen front end display content, if do not had, The color value of screen front end display content is adjusted, the color value for being allowed to the wallpaper with replacing has pre-set color distortion, So as to effectively avoid being not easy to user discrimination caused by the wallpaper replaced and screen front end display content color are same or similar Situation promotes user's browse efficiency, and user is caused to be easily found the screen front end display content of required operation, effectively increases The operating efficiency of user.
On the other hand, the embodiment of the present invention provides a kind of device for adjusting screen front end display content color, including:Extraction Module, computing module and adjustment module, wherein,
Extraction module, for obtaining the color of the color value of the wallpaper shown on screen and screen front end display content Value;
Computing module, for calculating the color of the color value of screen front end display content and the color value of the wallpaper Difference;
Module is adjusted, if the color distortion matches with pre-set color distortion threshold value, before the screen The color value of end display content is adjusted to the color value for having contrast effect with the color value of the wallpaper.
The device of adjustment screen front end provided in an embodiment of the present invention display content color, monitoring modular are obtained and shown on screen The color value of the wallpaper shown, the color value of extraction module extraction screen front end display content, computing module calculate the wallpaper replaced The color value of color value and screen front end display content whether there is pre-set color distortion, if do not had, adjustment The color value of module adjustment screen front end display content, the color value for being allowed to the wallpaper with replacing have pre-set colour-difference It is different, so as to effectively avoid being not easy to user discrimination caused by the wallpaper replaced and screen front end display content color are same or similar Situation, promoted user's browse efficiency, and cause user be easily found needed for operation screen front end display content, effectively improve The operating efficiency of user.
Description of the drawings
It 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 attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the method flow schematic diagram that the embodiment of the present invention adjusts screen front end display content color;
Fig. 2 is the apparatus structure schematic diagram that the embodiment of the present invention adjusts screen front end display content color;
Fig. 3 is the device concrete structure schematic diagram that the embodiment of the present invention adjusts screen front end display content color.
Specific embodiment
The embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
It will be appreciated that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained without creative efforts it is all its Its embodiment, belongs to the scope of protection of the invention.
Fig. 1 is the method flow schematic diagram that the embodiment of the present invention adjusts screen front end display content color.It, should referring to Fig. 1 Method includes:
Step 101, the color value of wallpaper shown on screen and the color value of screen front end display content are obtained;
In this step, as an alternative embodiment, when electronic equipment screen replaces wallpaper, perform on the acquisition screen The step of color value of the wallpaper of display and the color value of screen front end display content.Wherein, the electronic equipment screen is more Changing wallpaper includes:
Wallpaper is replaced in electronic equipment desktop screen;Or
In the Application Program Interface screen update wallpaper or background colour of startup.
In the embodiment of the present invention, as an alternative embodiment, determine whether electronic equipment screen needs replacing by monitoring Wallpaper, including:
A11, according to pre-set monitoring time cycle, the title of acquisition electronic equipment screen current wallpaper;
In this step, the monitoring time cycle can according to user be actually needed be configured, for example, could be provided as 10s, 20s or 1min etc..
A12, whether identical, such as if comparing the title of the wallpaper of the title of current wallpaper with being obtained in the upper monitoring time cycle Fruit differs, and confirms that electronic equipment screen replaces wallpaper.
In this step, if the title of wallpaper of the title of current wallpaper with being obtained in the upper monitoring time cycle is identical, Show that electronic equipment screen does not replace wallpaper, wait next monitoring time cycle.
In the embodiment of the present invention, before monitoring that electronic equipment screen replaces wallpaper, this method may further include:
A21 receives the instruction of the replacement wallpaper of user's output, pre-set wallpaper is loaded in electronic equipment screen Storehouse;
In this step, by setting the operation replaced for wallpaper, after user performs the operation of wallpaper replacement, triggering The instruction of wallpaper is replaced in output, so as to load pre-set wallpaper storehouse in electronic equipment screen, without user first in desktop Click right on screen clicks on attribute control again from the menu bar of pop-up, triggers loaded and displayed properties interface, then belongs to from display Property interface in choose desktop column and find wallpaper storehouse, simplify user's operation.
A22 obtains the wallpaper that user chooses from the wallpaper storehouse;
The wallpaper of the selection is applied to current electronic equipment screen by A23.
As an alternative embodiment, obtaining the color value of the wallpaper shown on screen includes:
A31 obtains the pixel value of each pixel in the wallpaper of replacement;
In this step, as an alternative embodiment, color value is characterized with pixel value, pixel value for RGB (RGB, Red, Green, Blue) value.For example, the pixel value of a certain pixel can be expressed as RGB (15,60,48).
The present invention is in embodiment, can by extracting the color information value recorded in the corresponding binary file of wallpaper, I.e. pixel is worth to the pixel value of each pixel in wallpaper, can also be calculated by carrying out taking color to wallpaper using color algorithm is taken Obtain the pixel value of each pixel in wallpaper.
A32 obtains coordinate value of each pixel in electronic equipment screen.
In this step, due to the location of each pixel difference in wallpaper, pixel value may be identical, it is also possible to and it is different, Thus, the pixel value of one pixel of characterization, it is also necessary to while characterize the position coordinates of pixel.For example, a certain pixel can be with RGB (15,60,48) { (x1, y1) } is expressed as, each pixel point set with the pixel value can be expressed as:RGB (15,60, 48) (x1, y1), (x2, y2) ..., (xk, yk) ....
In this step, display content includes but not limited to:Application icon, word etc..
As an alternative embodiment, display content includes word, obtains the color value of screen front end display content and includes:
Word attribute is inquired about, the font color value of word is obtained, the font color value is converted into pixel value.
In this step, for the word of screen front end, all words have identical font color value.
As another alternative embodiment, display content includes application icon.In practical application, in a screen front end, Include one or more application program icon, then obtaining the color value of screen front end display content includes:
B11 for each application icon, obtains the pixel value of each pixel in each application icon;
B12 obtains in each application icon each pixel in the coordinate value of electronic equipment screen.
In this step, different application icons, the coordinate on electronic equipment screen is also different.
Step 102, the color distortion of the color value of screen front end display content and the color value of the wallpaper is calculated;
In this step, color distortion includes:Color similarity, and/or, color contrast.Wherein, color similarity is got over It is small, show that the color data error of the color value and the wallpaper of screen front end display content is more apparent, and color contrast is smaller, Show that the color value of screen front end display content gets over unobvious with the color data error of the wallpaper.It is on color distortion is calculated Known technology, detailed description is omitted here.
As previously mentioned, display content include word, it is described calculate screen front end display content color value with it is described The color distortion of the color value of wallpaper includes:
C11 sums to the pixel value of each pixel in the wallpaper of the replacement, obtains pixel value summation;
C12 calculates pixel value summation and the business of pixel number in the wallpaper of the replacement, obtains pixel mean pixel Value;
C13 calculates the pixel value of the font and the difference of the pixel average pixel value, obtains color distortion.
As another alternative embodiment, display content includes application icon, described for each application icon Calculating the color distortion of the color value and the color value of the wallpaper of screen front end display content includes:
C21 sums to the pixel value of each pixel in application icon, obtains the first pixel value summation;
C22 calculates the first pixel value summation and the business of pixel number in the application icon, obtains the first pixel Average pixel value;
C23, in the wallpaper of the replacement, extraction is identical with the coordinate value of each pixel in the application icon Pixel point set;
C23 sums to the pixel value of each pixel in the pixel point set, obtains the second pixel value summation;
C24 calculates the second pixel value summation and the business of pixel number in the pixel point set, obtains the second pixel and put down Equal pixel value;
C25 calculates the difference of the first pixel average pixel value and the second pixel average pixel value, obtains face Aberration is different.
Certainly, in practical application, in the case where display content includes multiple application icons, can be answered multiple It is accounted for by the use of program icon as an entirety.Thus, as yet another alternative embodiment, the calculating screen front end is shown Showing the color distortion of the color value and the color value of the wallpaper of content includes:
C31 sums to the pixel value of each pixel in the wallpaper of the replacement, obtains the 3rd pixel value summation;
C32 calculates the 3rd pixel value summation and the business of pixel number in the wallpaper of the replacement, obtains the 3rd pixel and put down Equal pixel value;
C33 sums to the pixel value of each pixel in all application icons, obtains the 4th pixel value summation;
C34 calculates the 4th pixel value summation and the business of pixel number in all application icons, obtains the 4th picture Vegetarian refreshments average pixel value;
In this step, the sum of pixel number that pixel number includes for all application icons.
C35 calculates the difference of the 4th pixel average pixel value and the 3rd pixel average pixel value, obtains face Aberration is different.
Step 103, if the color distortion matches with pre-set color distortion threshold value, by the screen front end The color value of display content is adjusted to the color value for having contrast effect with the color value of the wallpaper.
In this step, as an alternative embodiment, color distortion is color similarity, and color distortion threshold value is similar for color Spend threshold value, then the color distortion and pre-set color distortion threshold value match including:
If the color similarity be more than pre-set color similarity threshold value, determine the color distortion in advance The color distortion threshold value of setting matches.
As another alternative embodiment, color distortion is color contrast, and color distortion threshold value is color contrast threshold value, Then the color distortion and pre-set color distortion threshold value match including:
If the color contrast be less than pre-set color contrast threshold value, determine the color distortion in advance The color distortion threshold value of setting matches.
As yet another alternative embodiment, color distortion is color similarity and color contrast, and color distortion threshold value is face Color similarity threshold and color contrast threshold value, then the color distortion and pre-set color distortion threshold value match bag It includes:
If the color similarity is more than pre-set color similarity threshold value, and the color contrast is less than in advance The color contrast threshold value first set determines that the color distortion matches with pre-set color distortion threshold value.
In the embodiment of the present invention, as an alternative embodiment, there is the color of contrast effect with the color value of the wallpaper Value can be the wallpaper color value with it is the color distortion threshold value and/or poor.For example, color value simply to be divided into Exemplified by opposite light colour and dark colour, if the color value of wallpaper is light colour, the comparison color is the wallpaper Color value and the color distortion threshold value and, if the color value of wallpaper is dark colour, the comparison color is the wall The color value of paper and the difference of the color distortion threshold value.Wherein it is possible to color value is set to claim less than pre-set color threshold For light colour, color value is referred to as dark colour higher than pre-set color threshold.
Certainly, in practical application, it can also be the wall to have the color value of contrast effect with the color value of the wallpaper The color value of paper is with pre-set color value and/or poor, as long as enabling to the color of the wallpaper and the screen front end The color of display content has the characteristics that user is readily discernible, avoids display content and wallpaper color is same or similar to see clearly .It for example, can be by the color value tune of screen front end display content if the color value of wallpaper is light colour Whole is dark colour;If the color value of wallpaper is dark colour, the color value of screen front end display content can be adjusted For light colour.If that is, the color value of screen front end display content is light colour, the color value of wallpaper is shallow face Color, then the color distortion match with pre-set color distortion threshold value, by the color of screen front end display content Value is adjusted to dark colour;If the color value of screen front end display content is dark colour, the color value of wallpaper is dark colour, Then the color distortion matches with pre-set color distortion threshold value, by the color value tune of screen front end display content Whole is light colour;If the color value of screen front end display content is dark colour, the color value of wallpaper is light colour, then institute It states color distortion not matching that with pre-set color distortion threshold value, without adjusting the color of screen front end display content Value.
By above-mentioned as it can be seen that the method for adjustment of embodiment of the present invention screen front end display content color, by obtaining on screen The color value of the wallpaper of display and the color value of screen front end display content, before the color value and screen that compare the wallpaper of replacement Whether hold the color value of display content has pre-set color distortion, if do not had, adjustment screen front end display content Color value, be allowed to replace wallpaper color value have pre-set color distortion, so as to effectively avoid replace wall Paper is not easy to the situation of user discrimination with screen front end display content color caused by same or similar, promote user and browse effect Rate, and user is caused to be easily found the screen front end display content of required operation, the operating efficiency of user is effectively increased, it can It is effective to solve user due to independently selecting wallpaper so that wallpaper color with screen front end display content color is improper causes to see Unclear word, such as time word etc. or application icon, the technical issues of influencing user experience.
Fig. 2 is the apparatus structure schematic diagram that the embodiment of the present invention adjusts screen front end display content color.It, should referring to Fig. 2 Device includes:Extraction module 201, computing module 202 and adjustment module 203, wherein,
Extraction module 201, for obtaining the face of the color value of the wallpaper shown on screen and screen front end display content Color value;
Computing module 202, for calculating the color value of screen front end display content and the color value of the wallpaper Color distortion;
Module 203 is adjusted, if the color distortion matches with pre-set color distortion threshold value, by the screen The color value of front end display content is adjusted to the color value for having contrast effect with the color value of the wallpaper.
Fig. 3 is the device concrete structure schematic diagram that the embodiment of the present invention adjusts screen front end display content color.Referring to figure 3, which includes extraction module 201 shown in Fig. 2, computing module 202 and adjustment module 203, wherein, the embodiment of the present invention In, as an alternative embodiment, extraction module 201 includes:
Color value acquiring unit 31, for obtaining the color value of the wallpaper shown on screen and screen front end display content Color value, wherein, obtaining the color value of wallpaper shown on screen includes:
Obtain the pixel value of each pixel in the wallpaper replaced;And
Obtain coordinate value of each pixel in electronic equipment screen.
In the embodiment of the present invention, display content includes but not limited to:Application icon, word etc..
As an alternative embodiment, obtaining the color value of screen front end display content includes:
When the display content includes word, word attribute is inquired about, the font color value of word is obtained, by the font Color value is converted to pixel value.Alternatively,
When the display content includes application icon, for each application icon, obtain it is described it is each should With each pixel in the pixel value of each pixel in program icon and each application icon in electronic equipment screen Coordinate value.
It is preferred that extraction module 201 further includes:Wallpaper name acquiring unit 32 and comparing unit 33, wherein,
Wallpaper name acquiring unit 32, for according to the pre-set monitoring time cycle, obtaining electronic equipment screen and working as The title of preceding wallpaper;
Comparing unit 33, for comparing the title of current wallpaper and the title of the wallpaper obtained in the upper monitoring time cycle It is whether identical, if it is not the same, confirming that electronic equipment screen replaces wallpaper, notice color value acquiring unit 31.
As an alternative embodiment, computing module 202 includes:Sum unit 34, average calculation unit 35 and colour-difference Different computing unit 36, wherein,
Sum unit 34, the pixel value for each pixel in the wallpaper to the replacement are summed, and obtain pixel value Summation;
Average calculation unit 35 for calculating pixel value summation and the business of pixel number in the wallpaper of the replacement, obtains Pixel average pixel value;
Color distortion computing unit 36, for calculating the pixel value of the font and the pixel average pixel value Difference obtains color distortion.
As another alternative embodiment, computing module 202 further includes:Extraction unit 37, wherein,
Sum unit 34 is additionally operable to sum to the pixel value of each pixel in application icon, obtains the first picture Element value summation;
Average calculation unit 35 is additionally operable to calculate the first pixel value summation and pixel number in the application icon Business obtains the first pixel average pixel value;
Extraction unit 37, in the wallpaper of the replacement, extracting and each pixel in the application icon The identical pixel point set of coordinate value;
Sum unit 34 is additionally operable to sum to the pixel value of each pixel in the pixel point set, obtains second Pixel value summation;
Average calculation unit 35 is additionally operable to calculate the second pixel value summation and pixel number in the pixel point set Business obtains the second pixel average pixel value;
Color distortion computing unit 36 is put down for calculating the first pixel average pixel value with second pixel The difference of equal pixel value, obtains color distortion.
As yet another alternative embodiment, color value acquiring unit 31 is additionally operable to, for each application icon, obtain institute Each pixel is stated in each application icon in the pixel value of each pixel and each application icon in electronics The coordinate value of device screen;
Sum unit 34, the pixel value for being additionally operable to each pixel in the wallpaper to the replacement are summed, and obtain the 3rd Pixel value summation;And sum to the pixel value of each pixel in all application icons, it is total to obtain the 4th pixel value With;
Average calculation unit 35 is additionally operable to calculate the 3rd pixel value summation and pixel number in the wallpaper of the replacement Business obtains the 3rd pixel average pixel value;And calculate the 4th pixel value summation and picture in all application icons The business of vegetarian refreshments number obtains the 4th pixel average pixel value;
Color distortion computing unit 36 is put down for calculating the 4th pixel average pixel value with the 3rd pixel The difference of equal pixel value, obtains color distortion.
In the embodiment of the present invention, as an alternative embodiment, the color distortion be color similarity, the color distortion Threshold value is color similarity threshold value, the color distortion and pre-set color distortion threshold value match including:
If the color similarity be more than pre-set color similarity threshold value, determine the color distortion in advance The color distortion threshold value of setting matches.
As another alternative embodiment, the color distortion is color contrast, and the color distortion threshold value is color pair Than degree threshold value, the color distortion and pre-set color distortion threshold value match including:
If the color contrast be less than pre-set color contrast threshold value, determine the color distortion in advance The color distortion threshold value of setting matches.
As yet another alternative embodiment, color distortion is color similarity and color contrast, and color distortion threshold value is face Color similarity threshold and color contrast threshold value, then the color distortion and pre-set color distortion threshold value match bag It includes:
If the color similarity is more than pre-set color similarity threshold value, and the color contrast is less than in advance The color contrast threshold value first set determines that the color distortion matches with pre-set color distortion threshold value.
In the embodiment of the present invention, include the face of the wallpaper with color value of the color value with contrast effect of the wallpaper Color value with it is the color distortion threshold value and/or poor.
In the embodiment of the present invention, as an alternative embodiment, which can further include:
Wallpaper replaces module 204, for receiving the instruction of the replacement wallpaper of user's output, is loaded in electronic equipment screen Pre-set wallpaper storehouse;
Obtain the wallpaper that user chooses from the wallpaper storehouse;
The wallpaper of the selection is applied to current electronic equipment screen.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the 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, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, all should by the change or replacement that can be readily occurred in It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (8)

  1. A kind of 1. method for adjusting screen front end display content color, which is characterized in that this method includes:
    Obtain the color value of wallpaper shown on screen and the color value of screen front end display content;
    Calculate the color distortion of the color value of screen front end display content and the color value of the wallpaper;
    If the color distortion matches with pre-set color distortion threshold value, by the face of screen front end display content Color value is adjusted to the color value for having contrast effect with the color value of the wallpaper;
    The color value of the wallpaper shown on the acquisition screen includes:Obtain the pixel value of each pixel in the wallpaper replaced;It obtains Each pixel is taken in the coordinate value of electronic equipment screen;
    Wherein, the display content includes word, and obtaining the color value of screen front end display content includes:Inquire about word category Property, the font color value of word is obtained, the font color value is converted into pixel value;
    The color distortion of the color value and the color value of the wallpaper for calculating screen front end display content includes:To institute The pixel value for stating each pixel in the wallpaper of replacement is summed, and obtains pixel value summation;Calculate pixel value summation with it is described more The business of pixel number in the wallpaper changed, obtains pixel average pixel value;Calculate the pixel value of the font and the pixel The difference of average pixel value, obtains color distortion;
    Alternatively,
    The display content includes application icon, and obtaining the color value of screen front end display content includes:For every One application icon obtains the pixel value of each pixel in each application icon;It obtains described each using journey Each pixel is in the coordinate value of electronic equipment screen in sequence icon;
    The color distortion of the color value and the color value of the wallpaper for calculating screen front end display content includes:It is corresponding It is summed with the pixel value of each pixel in program icon, obtains the first pixel value summation;Calculate the first pixel value summation with The business of pixel number in the application icon obtains the first pixel average pixel value;In the wallpaper of the replacement, carry Take the pixel point set identical with the coordinate value of each pixel in the application icon;To each picture in the pixel point set The pixel value of vegetarian refreshments is summed, and obtains the second pixel value summation;It calculates in the second pixel value summation and the pixel point set The business of pixel number obtains the second pixel average pixel value;Calculate the first pixel average pixel value and described second The difference of pixel average pixel value, obtains color distortion;
    Alternatively,
    The display content includes application icon, and obtaining the color value of screen front end display content includes:For every One application icon obtains the pixel value of each pixel in each application icon;It obtains described each using journey Each pixel is in the coordinate value of electronic equipment screen in sequence icon;
    The color distortion of the color value and the color value of the wallpaper for calculating screen front end display content includes:To institute The pixel value for stating each pixel in the wallpaper of replacement is summed, and obtains the 3rd pixel value summation;Calculate the 3rd pixel value summation With the business of pixel number in the wallpaper of the replacement, the 3rd pixel average pixel value is obtained;To in all application icons The pixel value of each pixel is summed, and obtains the 4th pixel value summation;Calculate the 4th pixel value summation and all applications The business of pixel number in program icon, obtains the 4th pixel average pixel value;Calculate the 4th pixel average pixel value With the difference of the 3rd pixel average pixel value, color distortion is obtained.
  2. 2. according to the method described in claim 1, it is characterized in that, the color distortion be color similarity, the colour-difference Different threshold value is color similarity threshold value, the color distortion and pre-set color distortion threshold value match including:
    If the color similarity is more than pre-set color similarity threshold value, determine the color distortion with pre-setting Color distortion threshold value match.
  3. 3. according to the method described in claim 1, it is characterized in that, the color distortion be color contrast, the colour-difference Different threshold value is color contrast threshold value, the color distortion and pre-set color distortion threshold value match including:
    If the color contrast is less than pre-set color contrast threshold value, determine the color distortion with pre-setting Color distortion threshold value match.
  4. 4. according to the method described in claim 1, it is characterized in that, there is the color of contrast effect with the color value of the wallpaper Value include the color value of the wallpaper with it is the color distortion threshold value and/or poor.
  5. 5. a kind of device for adjusting screen front end display content color, which is characterized in that the device includes:Extraction module, calculating Module and adjustment module, wherein,
    Extraction module, for obtaining the color value of the color value of the wallpaper shown on screen and screen front end display content;Institute Stating extraction module includes:Color value acquiring unit shows for obtaining the color value of the wallpaper shown on screen and screen front end Show the color value of content, wherein, the color value for obtaining the wallpaper shown on screen includes:Obtain each picture in the wallpaper replaced The pixel value of vegetarian refreshments;Obtain coordinate value of each pixel in electronic equipment screen;
    Computing module, for calculating the colour-difference of the color value of screen front end display content and the color value of the wallpaper It is different;
    Module is adjusted, if the color distortion matches with pre-set color distortion threshold value, the screen front end is shown Show that the color value of content is adjusted to the color value for having contrast effect with the color value of the wallpaper;
    Wherein, the display content includes word;The computing module includes:Sum unit, average calculation unit and color Difference calculation units, wherein, sum unit, the pixel value for each pixel in the wallpaper to the replacement is summed, and is obtained To pixel value summation;Average calculation unit for calculating pixel value summation and the business of pixel number in the wallpaper of the replacement, obtains To pixel average pixel value;Color distortion computing unit, for calculating the pixel value of the font of the word and the pixel The difference of point average pixel value, obtains color distortion;
    Alternatively,
    The display content includes application icon, and the computing module further includes:Extraction unit, wherein, sum unit, also It sums for the pixel value to each pixel in application icon, obtains the first pixel value summation;Average calculation unit, It is additionally operable to calculate the business of pixel number in the first pixel value summation and the application icon, obtains the first pixel and be averaged picture Element value;Extraction unit, in the wallpaper of the replacement, extracting the coordinate value with each pixel in the application icon Identical pixel point set;Sum unit is additionally operable to sum to the pixel value of each pixel in the pixel point set, obtain To the second pixel value summation;Average calculation unit is additionally operable to calculate the second pixel value summation and pixel in the pixel point set The business of points obtains the second pixel average pixel value;Color distortion computing unit is averaged for calculating first pixel The difference of pixel value and the second pixel average pixel value, obtains color distortion;
    Alternatively, the display content includes application icon, the color value acquiring unit is additionally operable to for each using journey Sequence icon obtains in each application icon each in the pixel value of each pixel and each application icon Pixel is in the coordinate value of electronic equipment screen;Sum unit is additionally operable to the pixel of each pixel in the wallpaper to the replacement Value is summed, and obtains the 3rd pixel value summation;And the pixel value of each pixel in all application icons is asked With obtain the 4th pixel value summation;Average calculation unit is additionally operable in the wallpaper of the 3rd pixel value summation of calculating and the replacement The business of pixel number obtains the 3rd pixel average pixel value;And calculate the 4th pixel value summation with it is described it is all apply journey The business of pixel number in sequence icon, obtains the 4th pixel average pixel value;Color distortion computing unit, for calculating described The difference of four pixel average pixel values and the 3rd pixel average pixel value, obtains color distortion.
  6. 6. device according to claim 5, which is characterized in that the color distortion be color similarity, the colour-difference Different threshold value is color similarity threshold value, the color distortion and pre-set color distortion threshold value match including:
    If the color similarity is more than pre-set color similarity threshold value, determine the color distortion with pre-setting Color distortion threshold value match.
  7. 7. device according to claim 5, which is characterized in that the color distortion be color contrast, the colour-difference Different threshold value is color contrast threshold value, the color distortion and pre-set color distortion threshold value match including:
    If the color contrast is less than pre-set color contrast threshold value, determine the color distortion with pre-setting Color distortion threshold value match.
  8. 8. device according to claim 5, which is characterized in that there is the color of contrast effect with the color value of the wallpaper Value include the color value of the wallpaper with it is the color distortion threshold value and/or poor.
CN201510618383.3A 2015-09-24 2015-09-24 Method and device for adjusting color of display content at front end of screen Active CN105204807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510618383.3A CN105204807B (en) 2015-09-24 2015-09-24 Method and device for adjusting color of display content at front end of screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510618383.3A CN105204807B (en) 2015-09-24 2015-09-24 Method and device for adjusting color of display content at front end of screen

Publications (2)

Publication Number Publication Date
CN105204807A CN105204807A (en) 2015-12-30
CN105204807B true CN105204807B (en) 2018-05-25

Family

ID=54952523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510618383.3A Active CN105204807B (en) 2015-09-24 2015-09-24 Method and device for adjusting color of display content at front end of screen

Country Status (1)

Country Link
CN (1) CN105204807B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677349A (en) * 2016-01-05 2016-06-15 努比亚技术有限公司 Desktop icon display method and device
CN105744317A (en) * 2016-01-29 2016-07-06 深圳市美贝壳科技有限公司 Method for rapidly modifying display background
CN105812616B (en) * 2016-03-01 2018-04-10 杭州尘埃科技有限公司 A kind of method for making status bar and toolbar display color change automatically
CN105955457A (en) * 2016-04-19 2016-09-21 北京小鸟看看科技有限公司 Method for user interface layout of head-mounted display equipment and head-mounted display equipment
CN106604106A (en) * 2016-12-29 2017-04-26 北京奇虎科技有限公司 Player control display control method and apparatus thereof
CN106951234A (en) * 2017-03-06 2017-07-14 深圳天珑无线科技有限公司 A kind of method and electric terminal for realizing tablecloth and application program intelligent distribution
CN106873859A (en) * 2017-03-06 2017-06-20 深圳天珑无线科技有限公司 The method and electric terminal of a kind of intelligent distribution tablecloth and application program
CN106951235A (en) * 2017-03-06 2017-07-14 深圳天珑无线科技有限公司 The method and electric terminal of a kind of intelligent set tablecloth and application program
CN107479781A (en) * 2017-07-20 2017-12-15 努比亚技术有限公司 A kind of update method and terminal of application icon color
CN111295637B (en) * 2017-09-07 2024-03-26 深圳传音通讯有限公司 Display method and display device for intelligent terminal
CN107729099A (en) * 2017-09-25 2018-02-23 联想(北京)有限公司 Background method of adjustment and its system
CN107908383B (en) * 2017-11-14 2020-07-07 维沃移动通信有限公司 Screen color adjusting method and device and mobile terminal
CN109408177B (en) * 2018-09-29 2022-08-12 北京乐蜜科技有限责任公司 Method and device for configuring color of characters in picture and electronic equipment
CN109783178B (en) * 2019-01-24 2022-08-23 北京字节跳动网络技术有限公司 Color adjusting method, device, equipment and medium for interface component
CN109828712A (en) * 2019-01-25 2019-05-31 努比亚技术有限公司 A kind of setting method and device, mobile terminal and storage medium of virtual navigation key
CN109993738A (en) * 2019-03-31 2019-07-09 联想(北京)有限公司 A kind of processing method and electronic equipment
CN110286975B (en) * 2019-05-23 2021-02-23 华为技术有限公司 Display method of foreground elements and electronic equipment
CN111290723A (en) * 2020-02-05 2020-06-16 北京小米移动软件有限公司 Display background adjusting method, device, terminal and storage medium
CN112511890A (en) * 2020-11-23 2021-03-16 维沃移动通信有限公司 Video image processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119499A (en) * 2007-09-06 2008-02-06 中兴通讯股份有限公司 Method for performing self-adaption paint to text focus on set up box
CN102508666A (en) * 2011-11-11 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting application prompt message in application program
CN103137103A (en) * 2011-12-05 2013-06-05 中兴通讯股份有限公司 Character display method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014172406A (en) * 2013-03-05 2014-09-22 Funai Electric Co Ltd Head-up display device, head-up display device displaying method and program of head-up display device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119499A (en) * 2007-09-06 2008-02-06 中兴通讯股份有限公司 Method for performing self-adaption paint to text focus on set up box
CN102508666A (en) * 2011-11-11 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting application prompt message in application program
CN103137103A (en) * 2011-12-05 2013-06-05 中兴通讯股份有限公司 Character display method and device

Also Published As

Publication number Publication date
CN105204807A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
CN105204807B (en) Method and device for adjusting color of display content at front end of screen
CN104572735B (en) A kind of picture mark words recommending method and device
CN101706724A (en) Icon generation method and icon processing device
CN102780804A (en) Contact grouping and image setting method and device
CN107368550B (en) Information acquisition method, device, medium, electronic device, server and system
CN106951140A (en) The icon replacing options and electronic equipment of application program
CN108898082B (en) Picture processing method, picture processing device and terminal equipment
CN106873857B (en) Automatic application icon layout method and device
CN105225212A (en) A kind of image processing method and device
CN106250421A (en) A kind of method shooting process and terminal
CN112069341A (en) Background picture generation and search result display method, device, equipment and medium
CN106294549A (en) A kind of image processing method and terminal
CN105094975A (en) Method and device for calling application program
CN111399965A (en) User interface compatible display method and device, equipment and storage medium
CN107203312B (en) Mobile terminal and picture rendering method and storage device thereof
US8265383B2 (en) Method and communication terminal for searching phone book for desired contacts
CN106911937A (en) The collocation method and system of a kind of live middle present banner background colour
CN113079273A (en) Watermark processing method, device, electronic equipment and medium
CN104951309B (en) The page decoration method and system of displaying sytlized font and a kind of client device
CN109635829B (en) Picture classification method, mobile terminal and computer storage medium
CN117112090A (en) Business page theme generation method, device, computer equipment, medium and product
CN106130887A (en) A kind of sharing files method and terminal
CN106055229B (en) Display interface adjusting method and display interface adjusting module based on screen reading
CN113992784B (en) Audio and video call method, device, computer equipment and storage medium
CN112929489B (en) Communication method and device

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