CN105955754B - A kind of user interface character displaying method and device - Google Patents

A kind of user interface character displaying method and device Download PDF

Info

Publication number
CN105955754B
CN105955754B CN201610333107.7A CN201610333107A CN105955754B CN 105955754 B CN105955754 B CN 105955754B CN 201610333107 A CN201610333107 A CN 201610333107A CN 105955754 B CN105955754 B CN 105955754B
Authority
CN
China
Prior art keywords
color
value
user interface
text
brightness
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
CN201610333107.7A
Other languages
Chinese (zh)
Other versions
CN105955754A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610333107.7A priority Critical patent/CN105955754B/en
Publication of CN105955754A publication Critical patent/CN105955754A/en
Application granted granted Critical
Publication of CN105955754B publication Critical patent/CN105955754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a kind of user interface character displaying method and devices, need the color of text to be shown same or similar in the wallpaper picture and UI to solve terminal UI, lead to the unsharp problem of text importing.Method are as follows: terminal determines that color value section belonging to each pixel for the wallpaper picture that user interface uses, the color value section are determined according to the value range of the red R component of pixel, green G component and blue B component;The terminal is directed to each color value section respectively, determines the ratio of the pixel number that the color value section includes and the sum of all pixels that the wallpaper picture includes, and determines the average value of the brightness for all pixels that the color value section is included;The terminal determines the color of text in the user interface according to the average value and the ratio of each corresponding brightness in color value section.

Description

A kind of user interface character displaying method and device
Technical field
The present invention relates to field of communication technology more particularly to a kind of user interface character displaying methods and device.
Background technique
With the development of mobile Internet industry, terminal plays the part of more and more important role in people's lives.Also, Requirement of the user to end-user interface (User Interface, UI) display effect is higher and higher.
Currently, there are various user interface wallpaper pictures etc., in order to which user decorates the user interface of terminal. But in many cases, need the display color of text to be shown identical in the wallpaper picture and UI of the terminal UI that user updates Or it is close, cause text importing unintelligible.
Summary of the invention
The embodiment of the present invention provides a kind of user interface character displaying method and device, to solve the wallpaper figure of terminal UI It needs the color of text to be shown same or similar on piece and UI, leads to the unsharp problem of text importing.
Specific technical solution provided in an embodiment of the present invention is as follows:
In a first aspect, the embodiment of the invention provides a kind of user interface text colors to determine method, comprising:
Terminal determines color value section belonging to each pixel for the wallpaper picture that user interface uses, color value section root It is determined according to the value range of the red R component of pixel, green G component and blue B component;
The terminal is directed to each color value section respectively, determines pixel number and the wall that the color value section includes The ratio for the sum of all pixels that paper picture includes, and determine that the brightness of all pixels that the color value section is included is averaged Value;
The terminal is according to the average value and the ratio of each corresponding brightness in color value section, really The color of text in the fixed user interface.
In possible embodiment, the terminal is averaged according to each corresponding brightness in color value section Value and the ratio, determine the color of text in the user interface, comprising:
The terminal determines that the average value of the brightness meets each of the first preset condition color value section, and calculates The sum for meeting each of the first preset condition corresponding ratio in the color value section;
The terminal determines text in the user interface if it is determined that be calculated and value the second preset condition of satisfaction Color belongs to first kind color, otherwise, it determines the color of text belongs to the second class color in the user interface.
In possible embodiment, the terminal is averaged according to each corresponding brightness in color value section Value and the ratio, determine the color of text in the user interface, comprising:
The terminal determines that the average value of the brightness is greater than or equal to each of the first preset value color value section, and It is corresponding described that the average value that calculating meets the brightness is greater than or equal to each of the first preset value color value section The sum of ratio, wherein the color value section that the average value of the brightness is greater than or equal to first preset value belongs to light type;
The terminal is if it is determined that be calculated and value determines that the user interface is above more than or equal to the second preset value The color of word belongs to first kind color, otherwise, it determines the color of text belongs to the second class color in the user interface, described Depth of the depth of a kind of color less than the second class color.
In possible embodiment, the terminal is averaged according to each corresponding brightness in color value section Value and the ratio, determine the color of text in the user interface, comprising:
The terminal determines that the average value of the brightness is less than or equal to each of the first preset value color value section, and It is corresponding described that the average value that calculating meets the brightness is less than or equal to each of the first preset value color value section The sum of ratio, wherein the color value section that the average value of the brightness is less than or equal to first preset value belongs to dark type;
The terminal is if it is determined that be calculated and value determines that the user interface is above less than or equal to the second preset value The display color of word belongs to first kind color, otherwise, it determines the display color of text belongs to the second class face in the user interface Color, the depth of the depth of the first kind color less than the second class color.
In possible embodiment, the first kind color is black, and the second class color is white.
Second aspect, the embodiment of the invention provides a kind of user interface text color determining devices, comprising:
First processing module, for determining color value section belonging to each pixel of wallpaper picture that user interface uses, The color value section is determined according to the value range of the red R component of pixel, green G component and blue B component;
Second processing module determines the pixel that the color value section includes for being directed to each color value section respectively The ratio of several sum of all pixels for including with the wallpaper picture, and determine the bright of all pixels that the color value section is included The average value of degree;
Third processing module, for according to each corresponding brightness in color value section average value and institute Ratio is stated, determines the color of text in the user interface.
In possible embodiment, the third processing module is specifically used for:
It determines that the average value of the brightness meets each of the first preset condition color value section, and calculates the satisfaction The sum of the corresponding ratio in each of the first preset condition color value section;
If it is determined that be calculated and value meets the second preset condition, determine that the color of text in the user interface belongs to First kind color, otherwise, it determines the color of text belongs to the second class color in the user interface.
In possible embodiment, the third processing module is specifically used for:
It determines that the average value of the brightness is greater than or equal to each of the first preset value color value section, and calculates satisfaction The average value of the brightness is greater than or equal to the sum of each of the first preset value corresponding ratio in the color value section, Wherein, the color value section that the average value of the brightness is greater than or equal to first preset value belongs to light type;
If it is determined that be calculated and value is greater than or equal to the second preset value, the color of text in the user interface is determined Belong to first kind color, otherwise, it determines the color of text belongs to the second class color, the first kind color in the user interface Depth less than the second class color depth.
In possible embodiment, the third processing module is specifically used for:
It determines that the average value of the brightness is less than or equal to each of the first preset value color value section, and calculates satisfaction The average value of the brightness is less than or equal to the sum of each of the first preset value corresponding ratio in the color value section, Wherein, the color value section that the average value of the brightness is less than or equal to first preset value belongs to dark type;
If it is determined that be calculated and value is less than or equal to the second preset value, the display of text in the user interface is determined Color belongs to first kind color, otherwise, it determines the display color of text belongs to the second class color in the user interface, described Depth of the depth of a kind of color less than the second class color.
In possible embodiment, the first kind color is black, and the second class color is white.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, terminal is by each of wallpaper picture used in user interface Pixel returns the corresponding color value section of value, for each color value section, count the picture of pixel number and ratio that the color value section includes The ratio of plain sum, and determine the average value of the brightness for all pixels that the color value section is included, according to each color value area Between corresponding brightness average value and the ratio, determine the display color of text in the user interface so that Terminal according to the display color of the adaptively selected text of color of wallpaper picture, can guarantee the color and text of wallpaper picture Contrast between color, so as to avoid text to be shown is needed in the wallpaper picture and the user interface of end-user interface Color it is same or similar, lead to the unsharp problem of text importing.
Detailed description of the invention
Fig. 1 is text color determination process schematic diagram on end-user interface in the embodiment of the present invention;
Fig. 2 is terminal in the embodiment of the present invention to the determination process detail flowchart of user interface text color;
Fig. 3 is wallpaper picture schematic diagram in the embodiment of the present invention;
Fig. 4 is another wallpaper picture schematic diagram in the embodiment of the present invention;
Fig. 5 is the display effect schematic diagram that text color is white in the embodiment of the present invention;
Fig. 6 is the display effect schematic diagram that text color is black in the embodiment of the present invention;
Fig. 7 is the structural schematic diagram of user interface text color determining device in the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
It needs the color of text to be shown same or similar in wallpaper picture and UI in order to solve terminal UI, leads to text Show unsharp problem, the embodiment of the invention provides one kind adaptively to determine text color according to wallpaper picture color Method.
The core idea of the invention is as follows: each pixel that wallpaper picture is included by terminal is returned respectively to affiliated color value area Between, the average value of the brightness by counting the pixel number that each color value section includes and the pixel that each color value section includes, The body color for determining wallpaper picture determines the display color of text in user interface according to the body color of wallpaper picture, with Guarantee that the contrast of the display color of text and the body color of wallpaper picture is sufficiently large, reaches text importing clearly purpose.
Mode is preferably carried out to the present invention below in conjunction with attached drawing to be described in detail.
In the embodiment of the present invention, as shown in Figure 1, text color determination process is specific as follows on end-user interface:
Step 101: terminal determines color value section belonging to each pixel for the wallpaper picture that user interface uses, wherein Color value section is determined according to the value range of red (R) component of pixel, green (G) component and blue (B) component.
Multiple color value sections are preset in implementation, in terminal, red (R) component, green (G) corresponding to each color value section At least one component is not identical in component and blue (B) component.
In the embodiment of the present invention, the number in the color value section that terminal uses can be technical field of image processing common 32 Color value section or 64 color value sections or 128 color value sections etc..
Specifically, terminal is if it is determined that the R component of pixel belongs to the value interval of the R component in a certain color value section, the picture The G component of element belongs to the value interval of the G component in the color value section, and the B component of the pixel belongs to the B component in the color value section Value interval, it is determined that the pixel belongs to the color value section.
Step 102: terminal is directed to each color value section respectively, determines pixel number and wallpaper picture that the color value section includes The ratio for the sum of all pixels for including, and determine the average value of the brightness for all pixels that the color value section is included.
Specifically, terminal determines coloration (Hue, abbreviation H) component of each pixel of wallpaper picture, saturation degree (Saturation, abbreviation S) component and brightness (Lightness, L) component.Wherein, the value range of L * component are as follows: 0≤L≤1, Wherein, black is represented when L value is 0, value is to explain color in 1 epoch.
For example, terminal determines that the sum of all pixels that wallpaper picture includes is 256, in the pixel number for belonging to a certain color value section It is 15, it is determined that the ratio for the sum of all pixels that the pixel number and wallpaper picture that the color value section includes include is 15/256.
Specifically, for any one color value section, terminal determines L points of each pixel that the color value section is included Amount calculates the sum of the value of the L * component for each pixel that the color value section includes, and obtain and value is wrapped divided by the color value section The number of the pixel contained obtains the average value of the brightness for all pixels that the color value section is included.
Step 103: terminal is according to the average value and the ratio of the corresponding brightness in each color value section, really Determine the color of text in user interface.
In implementation, terminal is according to the average value and the ratio of each corresponding brightness in color value section Value, determines the color of text in the user interface, detailed process are as follows:
Terminal determines that the average value of the brightness meets each color value section of the first preset condition, and calculates the satisfaction The sum of the corresponding ratio in each color value section of first preset condition;
Terminal determines that the color of text belongs in user interface if it is determined that be calculated and value the second preset condition of satisfaction First kind color, otherwise, it determines the color of text belongs to the second class color in user interface.
Wherein, first kind color and the color depth of the second class color are significantly different.
Specifically, terminal is according to the average value and the ratio of each corresponding brightness in color value section Value, determines the color of text in the user interface, including but not limited to following two specific embodiment:
The first embodiment
Terminal determines that the average value of brightness is greater than or equal to each color value section of the first preset value, and calculates and meet brightness Average value be greater than or equal to the first preset value the corresponding ratio in each color value section sum, wherein brightness The color value section that average value is greater than or equal to the first preset value belongs to light type;
Terminal is if it is determined that be calculated and value determines the color of text in user interface more than or equal to the second preset value Belong to first kind color, otherwise, it determines the color of text belongs to the second class color in user interface, wherein first kind color Depth of the depth less than the second class color.
Second of embodiment
Terminal determines that the average value of brightness is less than or equal to each color value section of the first preset value, and calculates and meet brightness Average value be less than or equal to the first preset value the corresponding ratio in each color value section sum, wherein brightness The color value section that average value is less than or equal to the first preset value belongs to dark type;
Terminal is if it is determined that be calculated and value determines the color of text in user interface less than or equal to the second preset value Belong to first kind color, otherwise, it determines the color of text belongs to the second class color in user interface, wherein first kind color Depth of the depth less than the second class color.
Preferably, in first and second kinds of embodiments, first kind color is black, and the second class color is white.It is optional Ground, first kind color are black and translucent.
Optionally, the first preset value is 0.8, if the average value of the brightness for all pixels that a color value section is included is small In or be equal to 0.8, then can determine that the color value section belongs to dark color, otherwise, it determines the color value section belongs to light color.Alternatively, if one The average value of the brightness for all pixels that a color value section is included is greater than or equal to 0.8, then can determine that the color value section belongs to Light color, otherwise, it determines the color value section belongs to dark color.
Optionally, the second preset value is 0.5, if the average value that calculating meets brightness is less than or equal to the every of the first preset value The sum of a corresponding ratio in color value section, if obtaining the sum value less than or equal to 0.5, it is determined that belong to each of dark color The sum for the pixel that color value section is included determines wallpaper picture entirety less than the half for the sum of all pixels that wallpaper picture includes Belong to light type;If obtain and value is greater than 0.5, it is determined that belong to the total of the pixel that dark each color value section is included Number, greater than the half for the sum of all pixels that wallpaper picture includes, determines that wallpaper picture integrally belongs to dark type.
The determination process of user interface text color is illustrated below by way of an example, as shown in Fig. 2, tool Body is as follows:
Step 201: terminal selects a certain wallpaper picture as desktop wallpaper according to user's operation determination;
Step 202: the pixel that terminal includes to the wallpaper picture of selection is sorted out, specially according to the R component of pixel, G component, B component return the pixel to color value section, it is assumed herein that color value section be it is N number of, be expressed as color [i], wherein 1≤ I≤N, color value section are determined by the interval range of R component, G component and B component;
Step 203: terminal is directed to each color value section respectively, calculates pixel number and wallpaper picture that the color value section includes The ratio for the sum of all pixels for including, the ratio are known as the ratio in the color value section, are expressed as population [i];
Step 204: terminal determines the H component, S component and L * component of each pixel of wallpaper picture, wherein the value of L * component Range are as follows: 0≤L≤1, wherein L value represents black when being 0, value is to explain color in 1 epoch;
Step 205: terminal is directed to each color value section respectively, calculates the L * component for all pixels that the color value section includes Average value, according to the average value determine the color value section belonging to color type, specifically: judging whether the average value is greater than Or it is equal to 0.8, if so, determining that the color value section belongs to light type, otherwise, it is determined that the color value section belongs to dark type;
Step 206: terminal calculates the sum of the ratio in all color value sections for belonging to light type, and judge and value is It is no to be greater than 0.5, if so, the color of setting desktop text is translucent for dark color, such as black, otherwise, the face of desktop text is set Color is light color, such as white.
For example, be illustrated in figure 3 wallpaper picture, table 1 show the color value section determined according to the wallpaper picture ratio, Color type belonging to the average value of the L * component for all pixels that color value section is included and the color value section.Wherein, if The average value of the L * component for all pixels that color value section is included is greater than 0.8, then the color type in the color value section is light class Type, if the ratio in all color value sections for belonging to light type and be less than threshold value 0.5, it is determined that the wallpaper picture is generally Dark picture, then the color of desktop text is white.It is 0 to 11, G that first color value section in table 1, which is R component value range, Component value range is 0 to 12, and the value range of B component is 0 to 61;Second color value section is R component value range in table 1 The value range for being 11 to 34, G component is 12 to 102, and the value range of B component is 61 to 212, the value in other color value sections Range and so on.
For example, be illustrated in figure 4 wallpaper picture, table 2 show the color value section determined according to the wallpaper picture ratio, Color type belonging to the average value of the L * component for all pixels that color value section is included and the color value section.Wherein, if The average value of the L * component for all pixels that color value section is included is greater than 0.8, then the color type in the color value section is light class Type, if the ratio in all color value sections for belonging to light type and be greater than threshold value 0.5, it is determined that the wallpaper picture is generally Light picture, then the color of desktop text is black.
Specifically, it is illustrated in figure 5 the display effect schematic diagram that text color is white, is illustrated in figure 6 text color For the display effect schematic diagram of black.
Based on the same inventive concept, a kind of user interface text color determining device is provided in the embodiment of the present invention, it should It can dispose at the terminal, the specific implementation of the device can be found in the description of embodiment of the method part, and overlaps will not be repeated, As shown in fig. 7, the device mainly includes:
First processing module 701, for determining color value area belonging to each pixel of wallpaper picture that user interface uses Between, the color value section is determined according to the value range of the red R component of pixel, green G component and blue B component;
Second processing module 702 determines the picture that the color value section includes for being directed to each color value section respectively The ratio for the sum of all pixels that prime number and the wallpaper picture include, and determine all pixels that the color value section is included The average value of brightness;
Third processing module 703, for according to the average value of each corresponding brightness in color value section with And the ratio, determine the color of text in the user interface.
In possible embodiment, third processing module is specifically used for:
It determines that the average value of the brightness meets each of the first preset condition color value section, and calculates the satisfaction The sum of the corresponding ratio in each of the first preset condition color value section;
If it is determined that be calculated and value meets the second preset condition, determine that the color of text in the user interface belongs to First kind color, otherwise, it determines the color of text belongs to the second class color in the user interface.
In possible embodiment, third processing module is specifically used for:
It determines that the average value of the brightness is greater than or equal to each of the first preset value color value section, and calculates satisfaction The average value of the brightness is greater than or equal to the sum of each of the first preset value corresponding ratio in the color value section, Wherein, the color value section that the average value of the brightness is greater than or equal to first preset value belongs to light type;
If it is determined that be calculated and value is greater than or equal to the second preset value, the color of text in the user interface is determined Belong to first kind color, otherwise, it determines the color of text belongs to the second class color, the first kind color in the user interface Depth less than the second class color depth.
In possible embodiment, third processing module is specifically used for:
It determines that the average value of the brightness is less than or equal to each of the first preset value color value section, and calculates satisfaction The average value of the brightness is less than or equal to the sum of each of the first preset value corresponding ratio in the color value section, Wherein, the color value section that the average value of the brightness is less than or equal to first preset value belongs to dark type;
If it is determined that be calculated and value is less than or equal to the second preset value, the display of text in the user interface is determined Color belongs to first kind color, otherwise, it determines the display color of text belongs to the second class color in the user interface, described Depth of the depth of a kind of color less than the second class color.
Preferably, the first kind color is black, and the second class color is white.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, terminal is by each of wallpaper picture used in user interface Pixel returns the corresponding color value section of value, for each color value section, count the picture of pixel number and ratio that the color value section includes The ratio of plain sum, and determine the average value of the brightness for all pixels that the color value section is included, according to each color value area Between corresponding brightness average value and the ratio, determine the display color of text in the user interface so that Terminal according to the display color of the adaptively selected text of color of wallpaper picture, can guarantee the color and text of wallpaper picture Contrast between color, so as to avoid text to be shown is needed in the wallpaper picture and the user interface of end-user interface Color it is same or similar, lead to the unsharp problem of text importing.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (8)

1. a kind of user interface text color determines method characterized by comprising
Terminal determines color value section belonging to each pixel for the wallpaper picture that user interface uses, and the color value section is according to picture The value range determination of the red R component, green G component and blue B component of element;
The terminal is directed to each color value section respectively, determines pixel number and the wallpaper figure that the color value section includes The ratio for the sum of all pixels that piece includes, and determine the average value of the brightness for all pixels that the color value section is included;
The terminal determines institute according to the average value and the ratio of each corresponding brightness in color value section State the color of text in user interface;
Wherein, the terminal is according to the average value and the ratio of each corresponding brightness in color value section, Determine the color of text in the user interface, comprising:
The terminal determines that the average value of the brightness meets each of the first preset condition color value section, and described in calculating Meet the sum of the corresponding ratio in each of first preset condition color value section;
The terminal determines the color of text in the user interface if it is determined that be calculated and value the second preset condition of satisfaction Belong to first kind color, otherwise, it determines the color of text belongs to the second class color in the user interface.
2. the method as described in claim 1, which is characterized in that the terminal is corresponding according to each color value section The average value of the brightness and the ratio, determine the color of text in the user interface, comprising:
The terminal determines that the average value of the brightness is greater than or equal to each of the first preset value color value section, and calculates The average value for meeting the brightness is greater than or equal to each of the first preset value corresponding ratio in the color value section Sum, wherein the average value of the brightness be greater than or equal to first preset value color value section belong to light type;
The terminal is if it is determined that be calculated and value determines text in the user interface more than or equal to the second preset value Color belongs to first kind color, otherwise, it determines the color of text belongs to the second class color, the first kind in the user interface Depth of the depth of color less than the second class color.
3. the method as described in claim 1, which is characterized in that the terminal is corresponding according to each color value section The average value of the brightness and the ratio, determine the color of text in the user interface, comprising:
The terminal determines that the average value of the brightness is less than or equal to each of the first preset value color value section, and calculates The average value for meeting the brightness is less than or equal to each of the first preset value corresponding ratio in the color value section Sum, wherein the average value of the brightness be less than or equal to first preset value color value section belong to dark type;
The terminal is if it is determined that be calculated and value determines text in the user interface less than or equal to the second preset value Display color belongs to first kind color, otherwise, it determines the display color of text belongs to the second class color, institute in the user interface State depth of the depth less than the second class color of first kind color.
4. method as claimed in claim 2 or claim 3, which is characterized in that the first kind color is black, the second class color For white.
5. a kind of user interface text color determining device characterized by comprising
First processing module, it is described for determining color value section belonging to each pixel of wallpaper picture that user interface uses Color value section is determined according to the value range of the red R component of pixel, green G component and blue B component;
Second processing module, for being directed to each color value section respectively, determine pixel number that the color value section includes with The ratio for the sum of all pixels that the wallpaper picture includes, and determine the brightness for all pixels that the color value section is included Average value;
Third processing module, for the average value and the ratio according to each corresponding brightness in color value section Value, determines the color of text in the user interface;
Wherein, the third processing module is specifically used for:
It determines that the average value of the brightness meets each of the first preset condition color value section, and calculates the satisfaction first The sum of the corresponding ratio in each of preset condition color value section;
If it is determined that be calculated and value meets the second preset condition, determine that the color of text in the user interface belongs to first Class color, otherwise, it determines the color of text belongs to the second class color in the user interface.
6. device as claimed in claim 5, which is characterized in that the third processing module is specifically used for:
It determines that the average value of the brightness is greater than or equal to each of the first preset value color value section, and calculates described in satisfaction The average value of brightness is greater than or equal to the sum of each of the first preset value corresponding ratio in the color value section, In, the color value section that the average value of the brightness is greater than or equal to first preset value belongs to light type;
If it is determined that be calculated and value is greater than or equal to the second preset value, determine that the color of text in the user interface belongs to First kind color, otherwise, it determines the color of text belongs to the second class color, the depth of the first kind color in the user interface Spend the depth less than the second class color.
7. device as claimed in claim 5, which is characterized in that the third processing module is specifically used for:
It determines that the average value of the brightness is less than or equal to each of the first preset value color value section, and calculates described in satisfaction The average value of brightness is less than or equal to the sum of each of the first preset value corresponding ratio in the color value section, In, the color value section that the average value of the brightness is less than or equal to first preset value belongs to dark type;
If it is determined that be calculated and value is less than or equal to the second preset value, the display color of text in the user interface is determined Belong to first kind color, otherwise, it determines the display color of text belongs to the second class color, the first kind in the user interface Depth of the depth of color less than the second class color.
8. device as claimed in claims 6 or 7, which is characterized in that the first kind color is black, the second class color For white.
CN201610333107.7A 2016-05-18 2016-05-18 A kind of user interface character displaying method and device Active CN105955754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610333107.7A CN105955754B (en) 2016-05-18 2016-05-18 A kind of user interface character displaying method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610333107.7A CN105955754B (en) 2016-05-18 2016-05-18 A kind of user interface character displaying method and device

Publications (2)

Publication Number Publication Date
CN105955754A CN105955754A (en) 2016-09-21
CN105955754B true CN105955754B (en) 2019-09-17

Family

ID=56911998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610333107.7A Active CN105955754B (en) 2016-05-18 2016-05-18 A kind of user interface character displaying method and device

Country Status (1)

Country Link
CN (1) CN105955754B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582421A (en) * 2018-11-29 2019-04-05 珠海豹趣科技有限公司 A kind of page display method, device and equipment
CN112203022B (en) * 2020-10-28 2022-08-19 努比亚技术有限公司 Electrochromic control method and device and computer readable storage medium
CN113064687A (en) * 2021-03-23 2021-07-02 支付宝(杭州)信息技术有限公司 Color adaptation processing method, device and equipment for user interface component
CN114116079A (en) * 2021-11-19 2022-03-01 深圳市华胜软件技术有限公司 Character display method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706718A (en) * 2009-11-05 2010-05-12 中兴通讯股份有限公司 Method and device for automatically changing desktop text color
CN103020248A (en) * 2012-12-19 2013-04-03 青岛海信传媒网络技术有限公司 Video file thumbnail generating method and generating device
CN104391691A (en) * 2014-11-07 2015-03-04 久邦计算机技术(广州)有限公司 Icon and text processing method
CN104657980A (en) * 2014-12-24 2015-05-27 江南大学 Improved multi-channel image partitioning algorithm based on Meanshift
CN104978189A (en) * 2015-06-19 2015-10-14 深圳天珑无线科技有限公司 Method, device and mobile terminal for changing text color of application description

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100925629B1 (en) * 2007-12-07 2009-11-06 삼성전기주식회사 METHOD FOR AUTO WHITE BALANCE IN YCbCr COLOR SPACE

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706718A (en) * 2009-11-05 2010-05-12 中兴通讯股份有限公司 Method and device for automatically changing desktop text color
CN103020248A (en) * 2012-12-19 2013-04-03 青岛海信传媒网络技术有限公司 Video file thumbnail generating method and generating device
CN104391691A (en) * 2014-11-07 2015-03-04 久邦计算机技术(广州)有限公司 Icon and text processing method
CN104657980A (en) * 2014-12-24 2015-05-27 江南大学 Improved multi-channel image partitioning algorithm based on Meanshift
CN104978189A (en) * 2015-06-19 2015-10-14 深圳天珑无线科技有限公司 Method, device and mobile terminal for changing text color of application description

Also Published As

Publication number Publication date
CN105955754A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN104778047B (en) A kind of content display method and terminal
CN105955754B (en) A kind of user interface character displaying method and device
JP6483221B2 (en) 3D code generation method
CN101360250B (en) Immersion method and system, factor dominating method, content analysis method and parameter prediction method
US20110305386A1 (en) Color Indication Tool for Colorblindness
CN104076928B (en) A kind of method for adjusting text importing image
CN107179889B (en) Interface color adjusting method, webpage color adjusting method and webpage color adjusting device
CN109801605A (en) Screen brightness regulation method, electronic equipment, mobile terminal and storage medium
US8599212B2 (en) Character display method and apparatus
CN108701351B (en) Image display enhancement method and device
CN109166159A (en) Obtain the method, apparatus and terminal of the dominant hue of image
CN106204690B (en) Image processing method and device
CN107799093A (en) Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal
CN104978186A (en) Interface skin rendering method and apparatus
CN109408177A (en) Method and device for configuring color of characters in picture and electronic equipment
CN110996174B (en) Video image quality enhancement method and related equipment thereof
CN103065338A (en) Method and device providing shadow for foreground image in background image
CN104461614A (en) Method for processing theme resource and electronic device
CN106406900A (en) Wallpaper display method and device
CN109600605A (en) Detection method, electronic equipment and the computer program product of 4K ultra high-definition video
CN113282212A (en) Interface display method, interface display device and electronic equipment
CN104423909A (en) Information processing method and electronic device
KR102082766B1 (en) Method and apparatus for distinguishing objects
CN111124404A (en) Custom color display method and system
CN110880164B (en) Image processing method, device, equipment and computer storage medium

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.