CN105204807A - 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
CN105204807A
CN105204807A CN201510618383.3A CN201510618383A CN105204807A CN 105204807 A CN105204807 A CN 105204807A CN 201510618383 A CN201510618383 A CN 201510618383A CN 105204807 A CN105204807 A CN 105204807A
Authority
CN
China
Prior art keywords
color
value
pixel
screen
wallpaper
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
CN201510618383.3A
Other languages
Chinese (zh)
Other versions
CN105204807B (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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • User Interface Of Digital Computer (AREA)

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

Method and device for adjusting color of display content at front end of screen
Technical Field
The present invention relates to computer technologies, and in particular, to a method and an apparatus for adjusting a color of a content displayed at a front end of a screen.
Background
With the continuous development of multimedia and communication technologies, the current electronic devices, such as mobile computers, smart mobile phones, personal digital assistants, etc., can perform corresponding processing on different information by installing various application programs, and because the processing of information by using the electronic devices has the advantages of convenience, rapidness, resource saving, etc., the electronic devices become an indispensable part of the daily life and work of users.
With the increasing use of electronic devices by users for communication and communication of daily work and life, users have made higher and higher demands on the aspects of personalized experience of electronic devices, and the like. In order to improve the user experience of the electronic equipment and enrich the background image of the screen of the electronic equipment to meet the personalized requirements of various users, wallpaper libraries with various colors are preset in the electronic equipment, so that the user can select the required wallpaper from the wallpaper libraries according to the personalized requirements and preferences of the user, and the background image currently displayed in the screen, namely the wallpaper can be replaced at any time and any place, wherein the background image or the wallpaper displayed on the screen of the electronic equipment is the content displayed at the rear end of the screen, and the content displayed at the upper layer of the layer corresponding to the content displayed at the rear end of the screen is the content displayed at the front end of the screen, for example, each application control or started application interface displayed on the screen wallpaper. Certainly, the user can also select a favorite picture to be placed in the wallpaper library as the wallpaper, or download and install the third-party wallpaper application program so as to download various wallpapers from the wallpaper server corresponding to the third-party wallpaper application program into the wallpaper library, so that the screen of the electronic device is further enriched and the personalized screen display requirement of the user is met.
Taking the content displayed at the front end of the screen as an application control as an example, because a large number of applications are installed on the electronic device, and the application control with corresponding shortcuts is displayed on the screen, the application control is composed of application icons and characters, and because the colors of various wallpaper frequently changed are various, after the wallpaper on the screen of the electronic device is changed, the changed wallpaper may have the same or similar color to the application control displayed on the screen, which is inconvenient for the user to identify the application control, for example, when the color of the wallpaper changed by the user is similar to the color of the characters on the screen of the electronic device, the user may not see the characters on the screen clearly, and needs to take more time to recognize the characters, so that the browsing efficiency of the user is low, thereby having a certain influence on the operation of the application control of the user, for example, an application control required to be operated is not easy to find, and the operation efficiency of a user is reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for adjusting a color of a content displayed at a front end of a screen, so as to solve the technical problems of low browsing efficiency and low operation efficiency for a user.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in one aspect, an embodiment of the present invention provides a method for adjusting a color of a content displayed at a front end of a screen, including:
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.
According to the method for adjusting the color of the display content at the front end of the screen, provided by the embodiment of the invention, after the wallpaper of the screen of the electronic equipment is replaced, the color value of the wallpaper displayed on the screen and the color value of the display content at the front end of the screen are obtained, whether the color value of the replaced wallpaper and the color value of the display content at the front end of the screen have the preset color difference is compared, if the color value of the display content at the front end of the screen does not have the preset color difference, the color value of the display content at the front end of the screen is adjusted to enable the color value of the display content to have the preset color difference with the color value of the replaced wallpaper, so that the situation that the user is inconvenient to identify due to the fact that the color of the replaced wallpaper is the same as or similar to the color.
On the other hand, an embodiment of the present invention provides an apparatus for adjusting a color of a content displayed at a front end of a screen, including: an extraction module, a calculation module and an adjustment module, wherein,
the extraction module is used for acquiring the color value of the wallpaper displayed on the screen and the color value of the display content at the front end of the screen;
the calculation module is used for 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 the adjusting module is used for 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 if the color difference is matched with a preset color difference threshold value.
According to the device for adjusting the color of the display content at the front end of the screen, which is provided by the embodiment of the invention, the monitoring module acquires the color value of the wallpaper displayed on the screen, the extraction module extracts the color value of the display content at the front end of the screen, the calculation module calculates whether the color value of the replaced wallpaper and the color value of the display content at the front end of the screen have the preset color difference, if not, the adjustment module adjusts the color value of the display content at the front end of the screen to enable the color value of the display content at the front end of the screen to have the preset color difference with the color value of the replaced wallpaper, so that the situation that the replacement wallpaper and the display content at the front end of the screen have the same or similar colors and are inconvenient for user identification is effectively avoided, the browsing efficiency of a user is improved, the.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for adjusting color of content displayed on a front end of a screen according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an apparatus for adjusting color of content displayed at the front end of a screen according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for adjusting color of content displayed at the front end of a screen according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart illustrating a method for adjusting a color of a content displayed on a front end of a screen according to an embodiment of the present invention. Referring to fig. 1, the method includes:
step 101, obtaining a color value of wallpaper displayed on a screen and a color value of display content at the front end of the screen;
in this step, as an optional embodiment, when the wallpaper is changed on the screen of the electronic device, the step of obtaining the color value of the wallpaper displayed on the screen and the color value of the content displayed at the front end of the screen is performed. Wherein, the wallpaper is changed to the electronic equipment screen includes:
changing wallpaper on a desktop screen of the electronic equipment; or
And changing the wallpaper or background color on the started application program interface screen.
In the embodiment of the present invention, as an optional embodiment, determining whether the screen of the electronic device needs to be changed by monitoring includes:
a11, acquiring the name of the current wallpaper of the screen of the electronic equipment according to a preset monitoring time period;
in this step, the monitoring time period may be set according to the actual needs of the user, for example, 10s, 20s, or 1min may be set.
A12, comparing whether the name of the current wallpaper is the same as the name of the wallpaper acquired in the last monitoring time period, and if not, confirming that the screen of the electronic device changes the wallpaper.
In this step, if the name of the current wallpaper is the same as the name of the wallpaper acquired in the previous monitoring time period, it is indicated that the wallpaper is not replaced on the screen of the electronic device, and the next monitoring time period is waited.
In an embodiment of the present invention, before monitoring that a wallpaper of a screen of an electronic device is changed, the method may further include:
a21, receiving a command of changing wallpaper output by a user, and loading a preset wallpaper library in a screen of the electronic equipment;
in the step, through setting the operation for wallpaper replacement, after the user executes the operation for wallpaper replacement, the instruction for wallpaper replacement is triggered and output, so that the preset wallpaper library is loaded in the screen of the electronic equipment, the user does not need to click a right key on a desktop screen firstly, click an attribute control from a popped menu bar, trigger the loading and display of an attribute interface, and select the desktop bar from the display of the attribute interface to find the wallpaper library, thereby simplifying the user operation.
A22, obtaining the wallpaper selected by the user from the wallpaper library;
a23, applying the selected wallpaper to the current screen of the electronic equipment.
As an alternative embodiment, the obtaining the color value of the wallpaper displayed on the screen comprises:
a31, acquiring the pixel value of each pixel point in the replaced wallpaper;
in this step, as an optional embodiment, the color value is represented by a pixel value, and the pixel value is a Red, Green, Blue (RGB) value. For example, the pixel value of a certain pixel point can be represented as RGB (15, 60, 48).
In the embodiment of the invention, the pixel value of each pixel point in the wallpaper can be obtained by extracting the color information value recorded in the binary file corresponding to the wallpaper, namely the pixel value, and the pixel value of each pixel point in the wallpaper can also be obtained by performing color extraction on the wallpaper and utilizing a color extraction algorithm to calculate.
And A32, acquiring the coordinate value of each pixel point on the screen of the electronic equipment.
In this step, since the positions of the pixels in the wallpaper are different, the pixel values may be the same or different, and thus, the pixel value of a pixel needs to be represented, and the position coordinates of the pixel needs to be represented at the same time. For example, a certain pixel can be represented as RGB (15, 60, 48) { (x1, y1) }, and the set of pixels having the pixel value can be represented as: RGB (15, 60, 48) { (x1, y1), (x2, y2),. }, (xk, yk),. }.
In this step, the display content includes but is not limited to: application icons, text, etc.
As an optional embodiment, the display content includes text, and acquiring the color value of the display content at the front end of the screen includes:
and inquiring character attributes to obtain font color values of characters, and converting the font color values into pixel values.
In this step, all the characters have the same font color value for the characters at the front end of the screen.
As another alternative embodiment, the display content includes an application icon. In practical applications, if one or more application icons are included in a front end of a screen, the obtaining a color value of display content of the front end of the screen includes:
b11, aiming at each application program icon, acquiring the pixel value of each pixel point in each application program icon;
and B12, acquiring coordinate values of all pixel points in each application program icon on the screen of the electronic equipment.
In this step, the coordinates of different application icons on the screen of the electronic device are also different.
102, 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;
in this step, the color difference includes: color similarity, and/or color contrast. The smaller the color similarity is, the more obvious the difference between the color value of the display content at the front end of the screen and the color value of the wallpaper is, and the smaller the color contrast is, the less obvious the difference between the color value of the display content at the front end of the screen and the color value of the wallpaper is. Regarding calculating the color difference, it is a well-known technique, and a detailed description is omitted here.
As mentioned above, the display content includes text, and the calculating the color difference between the color value of the screen front end display content and the color value of the wallpaper includes:
c11, summing the pixel values of all the pixel points in the changed wallpaper to obtain the pixel value sum;
c12, calculating the quotient of the pixel value sum and the pixel point number in the changed wallpaper to obtain the pixel point average pixel value;
and C13, calculating the difference between the pixel value of the font and the average pixel value of the pixel points to obtain the color difference.
As another optional embodiment, the display content comprises application icons, and for each application icon, said calculating a color difference of a color value of the screen front display content and a color value of the wallpaper comprises:
c21, summing the pixel values of all the pixel points in the application program icon to obtain a first pixel value sum;
c22, calculating the quotient of the first pixel value sum and the number of the pixel points in the application program icon to obtain the average pixel value of the first pixel point;
c23, extracting a pixel point set which is the same as the coordinate value of each pixel point in the application program icon from the replaced wallpaper;
c23, summing the pixel values of the pixels in the pixel point set to obtain a second pixel value sum;
c24, calculating the quotient of the sum of the second pixel values and the number of the pixel points in the pixel point set to obtain the average pixel value of the second pixel points;
and C25, calculating the difference between the average pixel value of the first pixel point and the average pixel value of the second pixel point to obtain the color difference.
Of course, in practical applications, when the display content includes a plurality of application icons, the plurality of application icons may be considered as a whole. Thus, as a further alternative embodiment, the calculating the color difference between the color value of the screen front end display content and the color value of the wallpaper includes:
c31, summing the pixel values of all the pixel points in the changed wallpaper to obtain a third pixel value sum;
c32, calculating the quotient of the sum of the third pixel values and the number of the pixel points in the replaced wallpaper, and obtaining the average pixel value of the third pixel points;
c33, summing the pixel values of all the pixel points in all the application program icons to obtain a fourth pixel value sum;
c34, calculating the quotient of the sum of the fourth pixel values and the number of the pixel points in all the application program icons to obtain the average pixel value of the fourth pixel point;
in this step, the number of pixels is the sum of the numbers of pixels included in all the application icons.
And C35, calculating the difference between the average pixel value of the fourth pixel point and the average pixel value of the third pixel point to obtain color difference.
Step 103, if the color difference is matched with a preset color difference threshold, adjusting the color value of the display content at the front end of the screen to be a color value having a contrast effect with the color value of the wallpaper.
In this step, as an optional embodiment, the color difference is a color similarity, and the color difference threshold is a color similarity threshold, and the matching of the color difference and the preset color difference threshold includes:
and if the color similarity is larger than a preset color similarity threshold, determining that the color difference is matched with a preset color difference threshold.
As another alternative, if the color difference is a color contrast and the color difference threshold is a color contrast threshold, then matching the color difference with a preset color difference threshold comprises:
determining that the color difference matches a preset color difference threshold if the color contrast is less than a preset color contrast threshold.
As still another alternative, if the color difference is a color similarity and a color contrast, and the color difference threshold is a color similarity threshold and a color contrast threshold, the matching of the color difference with the preset color difference threshold includes:
and if the color similarity is greater than a preset color similarity threshold and the color contrast is less than a preset color contrast threshold, determining that the color difference is matched with the preset color difference threshold.
In this embodiment of the present invention, as an optional embodiment, the color value having a contrast effect with the color value of the wallpaper may be a sum or a difference between the color value of the wallpaper and the color difference threshold. For example, taking the simple division of the color value into a light color and a dark color, if the color value of the wallpaper is a light color, the contrast color is the sum of the color value of the wallpaper and the color difference threshold, and if the color value of the wallpaper is a dark color, the contrast color is the difference between the color value of the wallpaper and the color difference threshold. Wherein, the color value below the preset color threshold is called light color, and the color value above the preset color threshold is called dark color.
Of course, in practical application, the color value having a contrast effect with the color value of the wallpaper may be a sum or a difference between the color value of the wallpaper and a preset color value, as long as the color of the wallpaper and the color of the display content at the front end of the screen have the characteristic of being easily recognized by a user, and the display content is prevented from being identical or similar to the color of the wallpaper and being invisible. For example, if the color value of the wallpaper is a light color, the color value of the screen front-end display content may be adjusted to a dark color; if the color value of the wallpaper is a dark color, the color value of the display content at the front end of the screen can be adjusted to be a light color. That is, if the color value of the content displayed at the front end of the screen is light color and the color value of the wallpaper is light color, the color difference is matched with a preset color difference threshold value, and the color value of the content displayed at the front end of the screen is adjusted to be dark color; if the color value of the content displayed at the front end of the screen is dark color and the color value of the wallpaper is dark color, matching the color difference with a preset color difference threshold value, and adjusting the color value of the content displayed at the front end of the screen to be light color; and if the color value of the content displayed at the front end of the screen is dark color and the color value of the wallpaper is light color, the color difference is not matched with a preset color difference threshold value, and the color value of the content displayed at the front end of the screen does not need to be adjusted.
It can be seen from the above that, in the method for adjusting the color of the display content at the front end of the screen according to the embodiments of the present invention, by obtaining the color value of the wallpaper displayed on the screen and the color value of the display content at the front end of the screen, comparing whether the color value of the replaced wallpaper and the color value of the display content at the front end of the screen have the preset color difference, and if not, adjusting the color value of the display content at the front end of the screen to make the color value of the display content at the front end of the screen have the preset color difference, thereby effectively avoiding the situation that the color of the replaced wallpaper is the same as or similar to the color of the display content at the front end of the screen, which is inconvenient for the user to identify, improving the browsing efficiency of the user, and making the user easily find the display content at the front end of the screen to be operated, effectively improving the operation efficiency of the user, such as time words or the like or application icons, technical issues that affect the user experience.
Fig. 2 is a schematic structural diagram of an apparatus for adjusting color of content displayed at the front end of a screen according to an embodiment of the present invention. Referring to fig. 2, the apparatus includes: an extraction module 201, a calculation module 202, and an adjustment module 203, wherein,
the extraction module 201 is configured to obtain a color value of a wallpaper displayed on a screen and a color value of a display content at a front end of the screen;
a calculating module 202, configured to calculate a color difference between a color value of the screen front end display content and a color value of the wallpaper;
and the adjusting module 203 adjusts the color value of the display content at the front end of the screen to a color value with a contrast effect with the color value of the wallpaper if the color difference is matched with a preset color difference threshold.
Fig. 3 is a schematic structural diagram of an apparatus for adjusting color of content displayed at the front end of a screen according to an embodiment of the present invention. Referring to fig. 3, the apparatus includes an extracting module 201, a calculating module 202, and an adjusting module 203 shown in fig. 2, where in an embodiment of the present invention, as an optional embodiment, the extracting module 201 includes:
a color value obtaining unit 31, configured to obtain a color value of a wallpaper displayed on a screen and a color value of a display content at a front end of the screen, where obtaining the color value of the wallpaper displayed on the screen includes:
acquiring the pixel value of each pixel point in the replaced wallpaper; and the number of the first and second groups,
and obtaining the coordinate value of each pixel point on the screen of the electronic equipment.
In the embodiment of the present invention, the display content includes, but is not limited to: application icons, text, etc.
As an alternative embodiment, the obtaining the color value of the content displayed at the front end of the screen includes:
and when the display content comprises characters, inquiring character attributes to obtain character font color values, and converting the font color values into pixel values. Or,
and when the display content comprises the application program icons, acquiring the pixel value of each pixel point in each application program icon and the coordinate value of each pixel point in each application program icon on the screen of the electronic equipment aiming at each application program icon.
Preferably, the extraction module 201 further comprises: a wallpaper name acquisition unit 32, and a comparison unit 33, wherein,
the wallpaper name acquisition unit 32 is configured to acquire a name of a current wallpaper of a screen of the electronic device according to a preset monitoring time period;
the comparing unit 33 is configured to compare whether the name of the current wallpaper is the same as the name of the wallpaper acquired in the previous monitoring time period, and if not, determine that the wallpaper is replaced on the screen of the electronic device, and notify the color value acquiring unit 31.
As an alternative embodiment, the calculation module 202 includes: a summing unit 34, an average calculation unit 35, and a color difference calculation unit 36, wherein,
a summing unit 34, configured to sum pixel values of all pixel points in the replaced wallpaper to obtain a pixel value sum;
the average calculating unit 35 is configured to calculate a quotient of the sum of the pixel values and the number of the pixel points in the replaced wallpaper, so as to obtain an average pixel value of a pixel point;
and a color difference calculating unit 36, configured to calculate a difference between the pixel value of the font and the average pixel value of the pixel point, so as to obtain a color difference.
As another alternative embodiment, the calculation module 202 further includes: an extraction unit 37 for extracting, among other things,
the summing unit 34 is further configured to sum pixel values of each pixel point in the application icon to obtain a first pixel value sum;
the average calculating unit 35 is further configured to calculate a quotient between the sum of the first pixel values and the number of pixel points in the application icon, so as to obtain an average pixel value of the first pixel point;
an extracting unit 37, configured to extract, from the replaced wallpaper, a pixel point set that is the same as a coordinate value of each pixel point in the application icon;
the summing unit 34 is further configured to sum pixel values of all the pixels in the pixel set to obtain a second pixel value sum;
the average calculating unit 35 is further configured to calculate a quotient between the sum of the second pixel values and the number of the pixel points in the pixel point set, so as to obtain an average pixel value of the second pixel points;
and a color difference calculating unit 36, configured to calculate a difference between the average pixel value of the first pixel and the average pixel value of the second pixel, so as to obtain a color difference.
As another optional embodiment, the color value obtaining unit 31 is further configured to obtain, for each application icon, a pixel value of each pixel in each application icon and a coordinate value of each pixel in each application icon on the screen of the electronic device;
the summing unit 34 is further configured to sum pixel values of all pixel points in the replaced wallpaper to obtain a third pixel value sum; summing pixel values of all pixel points in all application program icons to obtain a fourth pixel value sum;
the average calculating unit 35 is further configured to calculate a quotient of the sum of the third pixel values and the number of pixel points in the replaced wallpaper, so as to obtain an average pixel value of a third pixel point; calculating the quotient of the sum of the fourth pixel values and the number of the pixel points in all the application program icons to obtain the average pixel value of the fourth pixel point;
and a color difference calculating unit 36, configured to calculate a difference between the average pixel value of the fourth pixel and the average pixel value of the third pixel, so as to obtain a color difference.
In this embodiment of the present invention, as an optional embodiment, the color difference is a color similarity, the color difference threshold is a color similarity threshold, and the matching of the color difference and the preset color difference threshold includes:
and if the color similarity is larger than a preset color similarity threshold, determining that the color difference is matched with a preset color difference threshold.
As another alternative, the color difference is a color contrast, the color difference threshold is a color contrast threshold, and the matching of the color difference with the preset color difference threshold includes:
determining that the color difference matches a preset color difference threshold if the color contrast is less than a preset color contrast threshold.
As still another alternative, if the color difference is a color similarity and a color contrast, and the color difference threshold is a color similarity threshold and a color contrast threshold, the matching of the color difference with the preset color difference threshold includes:
and if the color similarity is greater than a preset color similarity threshold and the color contrast is less than a preset color contrast threshold, determining that the color difference is matched with the preset color difference threshold.
In the embodiment of the present invention, the color value having a contrast effect with the color value of the wallpaper includes a sum or a difference between the color value of the wallpaper and the color difference threshold.
In this embodiment of the present invention, as an optional embodiment, the apparatus may further include:
the wallpaper replacing module 204 is configured to receive a wallpaper replacing instruction output by a user, and load a preset wallpaper library in a screen of the electronic device;
acquiring wallpaper selected by a user from the wallpaper library;
and applying the selected wallpaper to the current screen of the electronic equipment.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for adjusting the color of the content displayed at the front end of a screen is characterized in that 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.
2. The method of claim 1, wherein the obtaining a color value of wallpaper displayed on a screen comprises:
acquiring the pixel value of each pixel point in the replaced wallpaper;
and obtaining the coordinate value of each pixel point on the screen of the electronic equipment.
3. The method of claim 2, wherein the display content comprises text, and wherein obtaining the color value of the screen front display content comprises:
inquiring character attributes to obtain font color values of characters, and converting the font color values into pixel values;
the calculating a color difference between a color value of the screen front end display content and a color value of the wallpaper comprises:
summing pixel values of all pixel points in the changed wallpaper to obtain a pixel value sum;
calculating the quotient of the total pixel value and the number of pixel points in the changed wallpaper to obtain the average pixel value of the pixel points;
and calculating the difference between the pixel value of the font and the average pixel value of the pixel points to obtain the color difference.
4. The method of claim 2, wherein the display content comprises an application icon, and wherein obtaining the color value of the screen front-end display content comprises:
aiming at each application program icon, acquiring a pixel value of each pixel point in each application program icon;
obtaining the coordinate value of each pixel point in each application program icon on the screen of the electronic equipment;
the calculating a color difference between a color value of the screen front end display content and a color value of the wallpaper comprises:
summing pixel values of all pixel points in the application program icon to obtain a first pixel value sum;
calculating the quotient of the sum of the first pixel values and the number of the pixel points in the application program icon to obtain the average pixel value of the first pixel points;
extracting a pixel point set which is the same as the coordinate value of each pixel point in the application program icon from the replaced wallpaper;
summing the pixel values of all the pixel points in the pixel point set to obtain a second pixel value sum;
calculating the quotient of the sum of the second pixel values and the number of the pixel points in the pixel point set to obtain the average pixel value of the second pixel points;
and calculating the difference between the average pixel value of the first pixel point and the average pixel value of the second pixel point to obtain the color difference.
5. The method of claim 2, wherein the display content comprises an application icon, and wherein obtaining the color value of the screen front-end display content comprises:
aiming at each application program icon, acquiring a pixel value of each pixel point in each application program icon;
obtaining the coordinate value of each pixel point in each application program icon on the screen of the electronic equipment;
the calculating a color difference between a color value of the screen front end display content and a color value of the wallpaper comprises:
summing pixel values of all pixel points in the changed wallpaper to obtain a third pixel value sum;
calculating the quotient of the sum of the third pixel values and the number of the pixel points in the replaced wallpaper to obtain the average pixel value of the third pixel points;
summing pixel values of all pixel points in all application program icons to obtain a fourth pixel value sum;
calculating the quotient of the sum of the fourth pixel values and the number of the pixel points in all the application program icons to obtain the average pixel value of the fourth pixel points;
and calculating the difference between the average pixel value of the fourth pixel point and the average pixel value of the third pixel point to obtain the color difference.
6. The method according to any one of claims 1 to 5, wherein the color difference is a color similarity, the color difference threshold is a color similarity threshold, and the matching of the color difference with the preset color difference threshold comprises:
and if the color similarity is larger than a preset color similarity threshold, determining that the color difference is matched with a preset color difference threshold.
7. The method of any one of claims 1 to 5, wherein the color difference is a color contrast, the color difference threshold is a color contrast threshold, and the matching of the color difference with the preset color difference threshold comprises:
determining that the color difference matches a preset color difference threshold if the color contrast is less than a preset color contrast threshold.
8. The method according to any of claims 1 to 5, wherein the color value having a contrasting effect with the color value of the wallpaper comprises a sum or a difference of the color value of the wallpaper with the color difference threshold.
9. An apparatus for adjusting color of content displayed on a front end of a screen, the apparatus comprising: an extraction module, a calculation module and an adjustment module, wherein,
the extraction module is used for acquiring the color value of the wallpaper displayed on the screen and the color value of the display content at the front end of the screen;
the calculation module is used for 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 the adjusting module is used for 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 if the color difference is matched with a preset color difference threshold value.
10. The apparatus of claim 9, wherein the computing module comprises: a summing unit, an average calculation unit, and a color difference calculation unit, wherein,
the summing unit is used for summing the pixel values of all the pixel points in the changed wallpaper to obtain the pixel value sum;
the average calculating unit is used for calculating the quotient of the pixel value sum and the number of the pixel points in the replaced wallpaper to obtain the pixel point average pixel value;
and the color difference calculating unit is used for calculating the difference between the pixel value of the font and the average pixel value of the pixel points to obtain the color difference.
CN201510618383.3A 2015-09-24 2015-09-24 Method and device for adjusting color of display content at front end of screen Expired - Fee Related 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 true CN105204807A (en) 2015-12-30
CN105204807B CN105204807B (en) 2018-05-25

Family

ID=54952523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510618383.3A Expired - Fee Related 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)

Cited By (20)

* 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
CN105812616A (en) * 2016-03-01 2016-07-27 杭州尘埃科技有限公司 Method for enabling the displayed colors of status bar and toolbar to 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
CN106873859A (en) * 2017-03-06 2017-06-20 深圳天珑无线科技有限公司 The method and electric terminal of a kind of intelligent distribution tablecloth and application program
CN106951234A (en) * 2017-03-06 2017-07-14 深圳天珑无线科技有限公司 A kind of method and electric terminal for realizing tablecloth and application program intelligent distribution
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
CN107729099A (en) * 2017-09-25 2018-02-23 联想(北京)有限公司 Background method of adjustment and its system
CN107908383A (en) * 2017-11-14 2018-04-13 维沃移动通信有限公司 A kind of screen color method of adjustment, device and mobile terminal
CN109408177A (en) * 2018-09-29 2019-03-01 北京金山安全软件有限公司 Method and device for configuring color of characters in picture and electronic equipment
CN109783178A (en) * 2019-01-24 2019-05-21 北京字节跳动网络技术有限公司 A kind of color adjustment method of interface assembly, device, equipment and medium
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
CN111295637A (en) * 2017-09-07 2020-06-16 深圳传音通讯有限公司 Display method and display device for intelligent terminal
CN111290723A (en) * 2020-02-05 2020-06-16 北京小米移动软件有限公司 Display background adjusting method, device, terminal and storage medium
WO2020233593A1 (en) * 2019-05-23 2020-11-26 华为技术有限公司 Method for displaying foreground element, and electronic device
CN112148288A (en) * 2020-09-23 2020-12-29 京东数字科技控股股份有限公司 Interface color setting method, device, equipment and storage medium
CN112511890A (en) * 2020-11-23 2021-03-16 维沃移动通信有限公司 Video image processing method and device and electronic equipment

Citations (4)

* 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
US20140253579A1 (en) * 2013-03-05 2014-09-11 Funai Electric Co., Ltd. Headup Display, Display Method for Headup Display and Program for Headup Display

Patent Citations (4)

* 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
US20140253579A1 (en) * 2013-03-05 2014-09-11 Funai Electric Co., Ltd. Headup Display, Display Method for Headup Display and Program for Headup Display

Cited By (22)

* 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
CN105812616A (en) * 2016-03-01 2016-07-27 杭州尘埃科技有限公司 Method for enabling the displayed colors of status bar and toolbar to 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
CN106873859A (en) * 2017-03-06 2017-06-20 深圳天珑无线科技有限公司 The method and electric terminal of a kind of intelligent distribution tablecloth and application program
CN106951234A (en) * 2017-03-06 2017-07-14 深圳天珑无线科技有限公司 A kind of method and electric terminal for realizing tablecloth and application program intelligent distribution
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
CN111295637A (en) * 2017-09-07 2020-06-16 深圳传音通讯有限公司 Display method and display device for intelligent terminal
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
CN107908383A (en) * 2017-11-14 2018-04-13 维沃移动通信有限公司 A kind of screen color method of adjustment, device and mobile terminal
CN109408177A (en) * 2018-09-29 2019-03-01 北京金山安全软件有限公司 Method and device for configuring color of characters in picture and electronic equipment
CN109783178A (en) * 2019-01-24 2019-05-21 北京字节跳动网络技术有限公司 A kind of color adjustment method of interface assembly, device, equipment and medium
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
WO2020233593A1 (en) * 2019-05-23 2020-11-26 华为技术有限公司 Method for displaying foreground element, and electronic device
US11816494B2 (en) 2019-05-23 2023-11-14 Huawei Technologies Co., Ltd. Foreground element display method and electronic device
CN111290723A (en) * 2020-02-05 2020-06-16 北京小米移动软件有限公司 Display background adjusting method, device, terminal and storage medium
CN112148288A (en) * 2020-09-23 2020-12-29 京东数字科技控股股份有限公司 Interface color setting method, device, equipment and storage medium
CN112511890A (en) * 2020-11-23 2021-03-16 维沃移动通信有限公司 Video image processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN105204807B (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN105204807B (en) Method and device for adjusting color of display content at front end of screen
CN103513946B (en) Control the method and device of display
CN105117122B (en) A kind of terminal screenshotss method and terminal
US9083848B2 (en) Speaker displaying method and videophone terminal therefor
CN108701439B (en) Image display optimization method and device
CN110047443B (en) Backlight brightness adjusting method and device, mobile terminal and storage medium
CN107220020B (en) Display method and electronic equipment
CN111753701B (en) Method, device, equipment and readable storage medium for detecting violation of application program
EP3859521A1 (en) Theme color adjusting method and apparatus, storage medium, and electronic device
CN109272917B (en) Screen brightness adjusting method and device, storage medium and electronic equipment
CN104268540A (en) Equation processing method and device based on images and terminal
CN109271228A (en) Interface function recognition methods, device and the electronic equipment of application
KR20110055145A (en) List searching method and portable device using the same
US8265383B2 (en) Method and communication terminal for searching phone book for desired contacts
US10628031B2 (en) Control instruction identification method and apparatus, and storage medium
EP2669894A1 (en) Method for creating thumbnail images of videos and an electronic device for display thereof
CN112764606A (en) Identification display method and device and electronic equipment
CN110400355B (en) Method and device for determining monochrome video, electronic equipment and storage medium
CN103716685A (en) Icon recognition system, server and method
CN113794943B (en) Video cover setting method and device, electronic equipment and storage medium
CN106897012A (en) User instruction is recognized and processing method, device
CN107291345B (en) Multimedia object sharing method and device
CN113992784B (en) Audio and video call method, device, computer equipment and storage medium
CN105868616A (en) Terminal control method and apparatus
CN106055229B (en) Display interface adjusting method and display interface adjusting module based on screen reading

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180525