CN105955754A - Method and device for displaying characters of user interface - Google Patents
Method and device for displaying characters of user interface Download PDFInfo
- Publication number
- CN105955754A CN105955754A CN201610333107.7A CN201610333107A CN105955754A CN 105955754 A CN105955754 A CN 105955754A CN 201610333107 A CN201610333107 A CN 201610333107A CN 105955754 A CN105955754 A CN 105955754A
- Authority
- CN
- China
- Prior art keywords
- color
- interval
- colour
- user interface
- determines
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
- Color Image Communication Systems (AREA)
Abstract
The invention discloses a method and a device for displaying characters of a user interface used for solving a problem that the color of a wallpaper picture of the terminal UI and the color of the characters that need to be displayed on the UI are the same or similar to cause unclear character display. The method comprises the following steps that the terminal determines a color range of each pixel of the wallpaper picture used by the user interface, and the color range is determined by the value range of a red R component, a green G component and a blue B component of the pixel; the terminal determines a ratio of a pixel number included in the color range to a sum of all pixels included in the wallpaper picture and an average value of the brightness of all pixels included in the color range for each color range respectively; and the terminal determines the color of the characters on the user interface according to the average value of the brightness and the ratio which are respectively corresponding to each color range.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of user interface character displaying method and device.
Background technology
Along with the development of mobile Internet industry, terminal plays the part of the most important angle in the life of people
Color.Further, user is to the requirement of end-user interface (User Interface, UI) display effect increasingly
High.
At present, various user interface wallpaper picture etc. are occurred in that, in order to user decorates the use of terminal
Interface, family.But, a lot of in the case of, the wallpaper picture of terminal UI that user updates and UI need display
The Show Color of word same or like, 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, in order to solve terminal UI
Wallpaper picture and UI on need the color of word of display same or like, cause text importing unintelligible
Problem.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
First aspect, embodiments provides a kind of user interface text color and determines method, including:
Terminal determines that the colour belonging to each pixel of the wallpaper picture that user interface uses is interval, described colour
The span of the interval red R component according to pixel, green G component and blue B component determines;
It is interval that described terminal is respectively directed to each described colour, determine pixel count that described colour interval comprises with
The ratio of the sum of all pixels that described wallpaper picture comprises, and determine all pictures that described colour interval is comprised
The meansigma methods of the brightness of element;
Described terminal is according to the meansigma methods of the interval each self-corresponding described brightness of each described colour and described
Ratio, determines the color of word in described user interface.
In possible embodiment, described terminal is according to the interval each self-corresponding described brightness of each described colour
Meansigma methods and described ratio, determine the color of word in described user interface, including:
It is interval that described terminal determines that the meansigma methods of described brightness meets the first pre-conditioned each described colour,
And calculate the described sum meeting the first interval each self-corresponding described ratio of pre-conditioned each described colour;
Described terminal, if it is determined that calculated and value meets second pre-conditioned, determines in described user interface
The color of word belongs to first kind color, otherwise, it determines the color of word belongs to second in described user interface
Class color.
In possible embodiment, described terminal is according to the interval each self-corresponding described brightness of each described colour
Meansigma methods and described ratio, determine the color of word in described user interface, including:
Described terminal determines the meansigma methods each described colour more than or equal to the first preset value of described brightness
Interval, and calculate the meansigma methods meeting described brightness more than or equal to each described colour district of the first preset value
Between the sum of each self-corresponding described ratio, wherein, the meansigma methods of described brightness is first pre-more than or equal to described
If the colour interval of value belongs to light color type;
Described terminal is if it is determined that calculated and value more than or equal to the second preset value, determines described user circle
On face, the color of word belongs to first kind color, otherwise, it determines the color of word belongs in described user interface
Equations of The Second Kind color, the degree of depth of described first kind color is less than the degree of depth of Equations of The Second Kind color.
In possible embodiment, described terminal is according to the interval each self-corresponding described brightness of each described colour
Meansigma methods and described ratio, determine the color of word in described user interface, including:
Described terminal determines the meansigma methods each described colour less than or equal to the first preset value of described brightness
Interval, and calculate the meansigma methods meeting described brightness less than or equal to each described colour district of the first preset value
Between the sum of each self-corresponding described ratio, wherein, the meansigma methods of described brightness is first pre-less than or equal to described
If the colour interval of value belongs to dark type;
Described terminal is if it is determined that calculated and value less than or equal to the second preset value, determines described user circle
On face, the Show Color of word belongs to first kind color, otherwise, it determines the display of word in described user interface
Color belongs to Equations of The Second Kind color, and the degree of depth of described first kind color is less than the degree of depth of Equations of The Second Kind color.
In possible embodiment, described first kind color is black, and described Equations of The Second Kind color is white.
Second aspect, embodiments provides a kind of user interface text color and determines device, including:
First processing module, for determining the colour belonging to each pixel of wallpaper picture that user interface uses
Interval, taking of the interval red R component according to pixel of described colour, green G component and blue B component
Value scope determines;
Second processing module, is used for being respectively directed to each described colour interval, determines that described colour interval comprises
The ratio of sum of all pixels that comprises with described wallpaper picture of pixel count, and determine that described colour interval is wrapped
The meansigma methods of the brightness of all pixels contained;
3rd processing module, for the meansigma methods according to the interval each self-corresponding described brightness of each described colour
And described ratio, determine the color of word in described user interface.
In possible embodiment, described 3rd processing module specifically for:
Determine that the meansigma methods of described brightness meets the first pre-conditioned each described colour interval, and calculate institute
State the sum of the satisfied first interval each self-corresponding described ratio of pre-conditioned each described colour;
If it is determined that calculated and value meets second pre-conditioned, determine the face of word in described user interface
Color belongs to first kind color, otherwise, it determines the color of word belongs to Equations of The Second Kind color in described user interface.
In possible embodiment, described 3rd processing module specifically for:
Determine that the meansigma methods of described brightness is interval more than or equal to each described colour of the first preset value, and count
Calculate the meansigma methods meeting described brightness the most right more than or equal to each described colour interval of the first preset value
The sum of the described ratio answered, wherein, the meansigma methods of described brightness is more than or equal to the color of described first preset value
Value interval belongs to light color type;
It is more than or equal to the second preset value if it is determined that calculated with value, determines word in described user interface
Color belong to first kind color, otherwise, it determines the color of word belongs to Equations of The Second Kind face in described user interface
Color, the degree of depth of described first kind color is less than the degree of depth of Equations of The Second Kind color.
In possible embodiment, described 3rd processing module specifically for:
Determine that the meansigma methods of described brightness is interval less than or equal to each described colour of the first preset value, and count
Calculate the meansigma methods meeting described brightness the most right less than or equal to each described colour interval of the first preset value
The sum of the described ratio answered, wherein, the meansigma methods of described brightness is less than or equal to the color of described first preset value
Value interval belongs to dark type;
It is less than or equal to the second preset value if it is determined that calculated with value, determines word in described user interface
Show Color belong to first kind color, otherwise, it determines the Show Color of word belongs in described user interface
Equations of The Second Kind color, the degree of depth of described first kind color is less than the degree of depth of Equations of The Second Kind color.
In possible embodiment, described first kind color is black, and described Equations of The Second Kind color is white.
Based on technique scheme, in the embodiment of the present invention, the wallpaper picture that user interface is used by terminal
Each pixel colour of returning value corresponding interval, interval for each colour, add up what this colour interval comprised
The ratio of the sum of all pixels of pixel count and ratio, and determine the bright of the interval all pixels comprised of this colour
The meansigma methods of degree, according to meansigma methods and this ratio of interval each this brightness self-corresponding of each colour, determines
The Show Color of word in this user interface, so that terminal can be according to the color self adaptation of wallpaper picture
Select the Show Color of word, it is ensured that the contrast between color and the color of word of wallpaper picture, thus
The wallpaper picture avoiding end-user interface is identical with the color of the word needing display in this user interface
Or close, cause the unsharp problem of text importing.
Accompanying drawing explanation
Fig. 1 is that in the embodiment of the present invention, on end-user interface, text color determines process schematic;
Fig. 2 is the terminal determination process detail flowchart to user interface text color in the embodiment of the present invention;
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 that in the embodiment of the present invention, text color is the display effect schematic diagram of white;
Fig. 6 is that in the embodiment of the present invention, text color is the display effect schematic diagram of black;
Fig. 7 is the structural representation that in the embodiment of the present invention, user interface text color determines device.
Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to this
Bright it is described in further detail, it is clear that described embodiment is only a part of embodiment of the present invention,
Rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing
Go out all other embodiments obtained under creative work premise, broadly fall into the scope of protection of the invention.
In order to the color solving to need on the wallpaper picture of terminal UI and UI the word of display is same or like,
Causing the unsharp problem of text importing, embodiments providing one can be according to wallpaper picture color
Self adaptation determines the method for text color.
The core concept of the present invention by: each pixel that wallpaper picture is comprised by terminal is returned respectively to affiliated
Colour is interval, the pixel that the pixel count comprised by each colour interval of statistics and each colour interval are comprised
The meansigma methods of brightness, determine the body color of wallpaper picture, determine use according to the body color of wallpaper picture
The Show Color of word on interface, family, right with the body color of the Show Color with wallpaper picture that ensure word
More sufficiently large than degree, reach text importing purpose clearly.
Below in conjunction with accompanying drawing, the present invention is preferably carried out mode to be described in detail.
In the embodiment of the present invention, as it is shown in figure 1, text color determines that process is concrete such as on end-user interface
Under:
Step 101: terminal determines that the colour belonging to each pixel of the wallpaper picture that user interface uses is interval,
Wherein, interval redness (R) component according to pixel of colour, green (G) component and blue (B) component
Span determine.
In enforcement, terminal is preset multiple colours interval, the redness (R) corresponding to each colour interval point
In amount, green (G) component and blue (B) component, at least one-component differs.
In the embodiment of the present invention, the number in the colour interval that terminal uses can be that technical field of image processing is normal
32 colours interval or 64 colours interval or 128 colours are interval etc..
Specifically, terminal is if it is determined that the R component of pixel belongs to the value of the interval R component of a certain colour
Interval, the G component of this pixel belongs to the interval of the interval G component of this colour, and the B of this pixel
Component belongs to the interval of the interval B component of this colour, it is determined that it is interval that this pixel belongs to this colour.
Step 102: it is interval that terminal is respectively directed to each colour, determine pixel count that this colour interval comprises with
The ratio of the sum of all pixels that wallpaper picture comprises, and determine the bright of the interval all pixels comprised of this colour
The meansigma methods of degree.
Specifically, terminal determines colourity (Hue the is called for short H) component of each pixel of wallpaper picture, satisfies
With degree (Saturation is called for short S) component and brightness (Lightness, L) component.Wherein, L * component
Span is: 0≤L≤1, and wherein, L value is 0 interval scale black, and value is 1 interval scale white.
Such as, terminal determines that the sum of all pixels that wallpaper picture comprises is 256, interval belonging to a certain colour
Pixel count be 15, it is determined that the pixel count that this colour interval comprises is total with the pixel that wallpaper picture comprises
The ratio of number is 15/256.
Specifically, interval for any one colour, terminal determines each pixel that this colour interval is comprised
L * component, calculate the sum of the value of the L * component of each pixel that this colour interval comprises, and the sum that will obtain
The number of the pixel that value comprises divided by this colour interval, obtains the brightness of all pixels that this colour interval is comprised
Meansigma methods.
Step 103: terminal is according to the meansigma methods of the interval each self-corresponding described brightness of each colour and described
Ratio, determines the color of word in user interface.
In enforcement, terminal is according to the meansigma methods of the interval each self-corresponding described brightness of each described colour and institute
Stating ratio, determine the color of word in described user interface, detailed process is:
It is interval that terminal determines that the meansigma methods of described brightness meets first pre-conditioned each colour, and calculates institute
State the sum of the satisfied first interval each self-corresponding described ratio of pre-conditioned each colour;
Terminal, if it is determined that calculated and value meets second pre-conditioned, determines the face of word in user interface
Color belongs to first kind color, otherwise, it determines the color of word belongs to Equations of The Second Kind color in user interface.
Wherein, first kind color is significantly different with the color depth of Equations of The Second Kind color.
Specifically, terminal is according to the meansigma methods of the interval each self-corresponding described brightness of each described colour and institute
State ratio, determine the color of word in described user interface, include but not limited to following two specific embodiment party
Formula:
The first embodiment
Terminal determines that the meansigma methods of brightness is interval more than or equal to each colour of the first preset value, and calculates full
The meansigma methods of foot brightness is more than or equal to the interval each self-corresponding described ratio of each colour of the first preset value
Sum, wherein, the meansigma methods of brightness belongs to light color type more than or equal to the colour interval of the first preset value;
Terminal is if it is determined that calculated and value more than or equal to the second preset value, determines word in user interface
Color belong to first kind color, otherwise, it determines the color of word belongs to Equations of The Second Kind color in user interface,
Wherein, the degree of depth of first kind color is less than the degree of depth of Equations of The Second Kind color.
The second embodiment
Terminal determines that the meansigma methods of brightness is interval less than or equal to each colour of the first preset value, and calculates full
The meansigma methods of foot brightness is less than or equal to the interval each self-corresponding described ratio of each colour of the first preset value
Sum, wherein, the meansigma methods of brightness belongs to dark type less than or equal to the colour interval of the first preset value;
Terminal is if it is determined that calculated and value less than or equal to the second preset value, determines word in user interface
Color belong to first kind color, otherwise, it determines the color of word belongs to Equations of The Second Kind color in user interface,
Wherein, the degree of depth of first kind color is less than the degree of depth of Equations of The Second Kind color.
Preferably, in first and second kinds of embodiments, first kind color is black, and Equations of The Second Kind color is white
Color.Alternatively, first kind color is black and translucent.
Alternatively, the first preset value is 0.8, if the brightness of the interval all pixels comprised of colour
Meansigma methods is less than or equal to 0.8, then can determine that this colour interval belongs to dark, otherwise, it determines this colour district
Between belong to light color.Or, if the meansigma methods of the brightness of all pixels that comprised of colour interval more than or
Equal to 0.8, then can determine that this colour interval belongs to light color, otherwise, it determines this colour interval belongs to dark.
Alternatively, the second preset value is 0.5, if it is pre-less than or equal to first to calculate the meansigma methods meeting brightness
If the sum of the interval each self-corresponding described ratio of each colour of value, if obtaining and being worth less than or equal to 0.5,
Then determine the sum of the interval pixel comprised of each colour belonging to dark, the picture comprised less than wallpaper picture
The half of element sum, determines that wallpaper picture entirety belongs to light color type;If obtain and value be more than 0.5, then
Determine the sum of the interval pixel comprised of each colour belonging to dark, the pixel comprised more than wallpaper picture
The half of sum, determines that wallpaper picture entirety belongs to dark type.
Below by way of an example, the determination process of user interface text color is illustrated, such as Fig. 2
Shown in, specific as follows:
Step 201: according to user operation, terminal determines that a certain wallpaper picture of selection is as desktop wallpaper;
Step 202: the pixel that the wallpaper picture selected is comprised by terminal is sorted out, is specially according to pixel
R component, G component, B component this pixel is returned to colour interval, it is assumed herein that colour interval is N number of,
Being expressed as color [i], wherein, 1≤i≤N, colour is interval by R component, G component and the interval of B component
Scope determines;
Step 203: it is interval that terminal is respectively directed to each colour, calculate pixel count that this colour interval comprises with
The ratio of the sum of all pixels that wallpaper picture comprises, this ratio is referred to as the ratio that this colour is interval, is expressed as
population[i];
Step 204: terminal determines the H component of each pixel of wallpaper picture, S component and L * component, wherein
The span of L * component is: 0≤L≤1, and wherein, L value is 0 interval scale black, when value is 1
Represent white;
Step 205: it is interval that terminal is respectively directed to each colour, calculates all pixels that this colour interval comprises
The meansigma methods of L * component, determine the color type belonging to this colour interval according to this meansigma methods, specifically:
Judge that this meansigma methods, whether more than or equal to 0.8, if so, judges that this colour interval belongs to light color type, no
Then, it is determined that this colour interval belongs to dark type;
Step 206: terminal calculates the sum of the ratio in all colour intervals belonging to light color type, it is judged that obtain
And value whether more than 0.5, the color if so, arranging desktop text is dark color, and such as black is translucent,
Otherwise, the color arranging desktop text is light color, such as white.
Such as, being illustrated in figure 3 wallpaper picture, table 1 show the colour district determined according to this wallpaper picture
Between ratio, belonging to the meansigma methods of the L * component of all pixels that comprised of colour interval and this colour interval
Color type.Wherein, if the meansigma methods of the L * component of the interval all pixels comprised of colour is more than
0.8, then the color type that this colour is interval is light color type, if all colour intervals belonging to light color type
Ratio and less than threshold value 0.5, it is determined that this wallpaper picture generally dark picture, then desktop text
Color is white.First colour interval in table 1 be R component span be 0 to 11, G component
Span is 0 to 12, and the span of B component is 0 to 61;In table 1, second colour interval is R
Component span is 11 to 34, and the span of G component is 12 to 102, the span of B component
Being 61 to 212, the span in other colour interval is by that analogy.
Such as, being illustrated in figure 4 wallpaper picture, table 2 show the colour district determined according to this wallpaper picture
Between ratio, belonging to the meansigma methods of the L * component of all pixels that comprised of colour interval and this colour interval
Color type.Wherein, if the meansigma methods of the L * component of the interval all pixels comprised of colour is more than
0.8, then the color type that this colour is interval is light color type, if all colour intervals belonging to light color type
Ratio and more than threshold value 0.5, it is determined that this wallpaper picture generally light color picture, then desktop text
Color 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 is the display effect schematic diagram of black.
Based on same inventive concept, the embodiment of the present invention provides a kind of user interface text color and determines
Device, this can be deployed in terminal, this device be embodied as can be found in the description of embodiment of the method part,
Repeat no more in place of repetition, as it is shown in fig. 7, this device specifically includes that
First processing module 701, for determining belonging to each pixel of wallpaper picture that user interface uses
Colour is interval, the interval red R component according to pixel of described colour, green G component and blue B component
Span determine;
Second processing module 702, is used for being respectively directed to each described colour interval, determines that described colour is interval
The ratio of the sum of all pixels that the pixel count comprised comprises with described wallpaper picture, and determine that described colour is interval
The meansigma methods of the brightness of all pixels comprised;
3rd processing module 703, for putting down according to the interval each self-corresponding described brightness of each described colour
Average and described ratio, determine the color of word in described user interface.
In possible embodiment, the 3rd processing module specifically for:
Determine that the meansigma methods of described brightness meets the first pre-conditioned each described colour interval, and calculate institute
State the sum of the satisfied first interval each self-corresponding described ratio of pre-conditioned each described colour;
If it is determined that calculated and value meets second pre-conditioned, determine the face of word in described user interface
Color belongs to first kind color, otherwise, it determines the color of word belongs to Equations of The Second Kind color in described user interface.
In possible embodiment, the 3rd processing module specifically for:
Determine that the meansigma methods of described brightness is interval more than or equal to each described colour of the first preset value, and count
Calculate the meansigma methods meeting described brightness the most right more than or equal to each described colour interval of the first preset value
The sum of the described ratio answered, wherein, the meansigma methods of described brightness is more than or equal to the color of described first preset value
Value interval belongs to light color type;
It is more than or equal to the second preset value if it is determined that calculated with value, determines word in described user interface
Color belong to first kind color, otherwise, it determines the color of word belongs to Equations of The Second Kind face in described user interface
Color, the degree of depth of described first kind color is less than the degree of depth of Equations of The Second Kind color.
In possible embodiment, the 3rd processing module specifically for:
Determine that the meansigma methods of described brightness is interval less than or equal to each described colour of the first preset value, and count
Calculate the meansigma methods meeting described brightness the most right less than or equal to each described colour interval of the first preset value
The sum of the described ratio answered, wherein, the meansigma methods of described brightness is less than or equal to the color of described first preset value
Value interval belongs to dark type;
It is less than or equal to the second preset value if it is determined that calculated with value, determines word in described user interface
Show Color belong to first kind color, otherwise, it determines the Show Color of word belongs in described user interface
Equations of The Second Kind color, the degree of depth of described first kind color is less than the degree of depth of Equations of The Second Kind color.
Preferably, described first kind color is black, and described Equations of The Second Kind color is white.
Based on technique scheme, in the embodiment of the present invention, the wallpaper picture that user interface is used by terminal
Each pixel colour of returning value corresponding interval, interval for each colour, add up what this colour interval comprised
The ratio of the sum of all pixels of pixel count and ratio, and determine the bright of the interval all pixels comprised of this colour
The meansigma methods of degree, according to meansigma methods and this ratio of interval each this brightness self-corresponding of each colour, determines
The Show Color of word in this user interface, so that terminal can be according to the color self adaptation of wallpaper picture
Select the Show Color of word, it is ensured that the contrast between color and the color of word of wallpaper picture, thus
The wallpaper picture avoiding end-user interface is identical with the color of the word needing display in this user interface
Or close, cause the unsharp problem of text importing.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot
The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more
Computer-usable storage medium containing computer usable program code (include but not limited to disk memory and
Optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention
The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding
The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating
The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one
The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set
In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart
The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention
Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and
Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. a user interface text color determines method, it is characterised in that including:
Terminal determines that the colour belonging to each pixel of the wallpaper picture that user interface uses is interval, described colour
The span of the interval red R component according to pixel, green G component and blue B component determines;
It is interval that described terminal is respectively directed to each described colour, determine pixel count that described colour interval comprises with
The ratio of the sum of all pixels that described wallpaper picture comprises, and determine all pictures that described colour interval is comprised
The meansigma methods of the brightness of element;
Described terminal is according to the meansigma methods of the interval each self-corresponding described brightness of each described colour and described
Ratio, determines the color of word in described user interface.
2. the method for claim 1, it is characterised in that described terminal is according to each described colour
The meansigma methods of interval each self-corresponding described brightness and described ratio, determine word in described user interface
Color, including:
It is interval that described terminal determines that the meansigma methods of described brightness meets the first pre-conditioned each described colour,
And calculate the described sum meeting the first interval each self-corresponding described ratio of pre-conditioned each described colour;
Described terminal, if it is determined that calculated and value meets second pre-conditioned, determines in described user interface
The color of word belongs to first kind color, otherwise, it determines the color of word belongs to second in described user interface
Class color.
3. method as claimed in claim 2, it is characterised in that described terminal is according to each described colour
The meansigma methods of interval each self-corresponding described brightness and described ratio, determine word in described user interface
Color, including:
Described terminal determines the meansigma methods each described colour more than or equal to the first preset value of described brightness
Interval, and calculate the meansigma methods meeting described brightness more than or equal to each described colour district of the first preset value
Between the sum of each self-corresponding described ratio, wherein, the meansigma methods of described brightness is first pre-more than or equal to described
If the colour interval of value belongs to light color type;
Described terminal is if it is determined that calculated and value more than or equal to the second preset value, determines described user circle
On face, the color of word belongs to first kind color, otherwise, it determines the color of word belongs in described user interface
Equations of The Second Kind color, the degree of depth of described first kind color is less than the degree of depth of Equations of The Second Kind color.
4. method as claimed in claim 2, it is characterised in that described terminal is according to each described colour
The meansigma methods of interval each self-corresponding described brightness and described ratio, determine word in described user interface
Color, including:
Described terminal determines the meansigma methods each described colour less than or equal to the first preset value of described brightness
Interval, and calculate the meansigma methods meeting described brightness less than or equal to each described colour district of the first preset value
Between the sum of each self-corresponding described ratio, wherein, the meansigma methods of described brightness is first pre-less than or equal to described
If the colour interval of value belongs to dark type;
Described terminal is if it is determined that calculated and value less than or equal to the second preset value, determines described user circle
On face, the Show Color of word belongs to first kind color, otherwise, it determines the display of word in described user interface
Color belongs to Equations of The Second Kind color, and the degree of depth of described first kind color is less than the degree of depth of Equations of The Second Kind color.
5. the method as described in claim 3 or 4, it is characterised in that described first kind color is black,
Described Equations of The Second Kind color is white.
6. a user interface text color determines device, it is characterised in that including:
First processing module, for determining the colour belonging to each pixel of wallpaper picture that user interface uses
Interval, taking of the interval red R component according to pixel of described colour, green G component and blue B component
Value scope determines;
Second processing module, is used for being respectively directed to each described colour interval, determines that described colour interval comprises
The ratio of sum of all pixels that comprises with described wallpaper picture of pixel count, and determine that described colour interval is wrapped
The meansigma methods of the brightness of all pixels contained;
3rd processing module, for the meansigma methods according to the interval each self-corresponding described brightness of each described colour
And described ratio, determine the color of word in described user interface.
7. device as claimed in claim 6, it is characterised in that described 3rd processing module specifically for:
Determine that the meansigma methods of described brightness meets the first pre-conditioned each described colour interval, and calculate institute
State the sum of the satisfied first interval each self-corresponding described ratio of pre-conditioned each described colour;
If it is determined that calculated and value meets second pre-conditioned, determine the face of word in described user interface
Color belongs to first kind color, otherwise, it determines the color of word belongs to Equations of The Second Kind color in described user interface.
8. device as claimed in claim 7, it is characterised in that described 3rd processing module specifically for:
Determine that the meansigma methods of described brightness is interval more than or equal to each described colour of the first preset value, and count
Calculate the meansigma methods meeting described brightness the most right more than or equal to each described colour interval of the first preset value
The sum of the described ratio answered, wherein, the meansigma methods of described brightness is more than or equal to the color of described first preset value
Value interval belongs to light color type;
It is more than or equal to the second preset value if it is determined that calculated with value, determines word in described user interface
Color belong to first kind color, otherwise, it determines the color of word belongs to Equations of The Second Kind face in described user interface
Color, the degree of depth of described first kind color is less than the degree of depth of Equations of The Second Kind color.
9. device as claimed in claim 7, it is characterised in that described 3rd processing module specifically for:
Determine that the meansigma methods of described brightness is interval less than or equal to each described colour of the first preset value, and count
Calculate the meansigma methods meeting described brightness the most right less than or equal to each described colour interval of the first preset value
The sum of the described ratio answered, wherein, the meansigma methods of described brightness is less than or equal to the color of described first preset value
Value interval belongs to dark type;
It is less than or equal to the second preset value if it is determined that calculated with value, determines word in described user interface
Show Color belong to first kind color, otherwise, it determines the Show Color of word belongs in described user interface
Equations of The Second Kind color, the degree of depth of described first kind color is less than the degree of depth of Equations of The Second Kind color.
10. device as claimed in claim 8 or 9, it is characterised in that described first kind color is black,
Described Equations of The Second Kind color is white.
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 true CN105955754A (en) | 2016-09-21 |
CN105955754B 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) |
Cited By (6)
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 |
CN111368502A (en) * | 2019-05-15 | 2020-07-03 | 深圳市鸿合创新信息技术有限责任公司 | Method, device and equipment for modifying character color and storage medium |
CN112203022A (en) * | 2020-10-28 | 2021-01-08 | 努比亚技术有限公司 | 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 |
CN113763256A (en) * | 2020-07-06 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Picture adaptation method and device |
CN114116079A (en) * | 2021-11-19 | 2022-03-01 | 深圳市华胜软件技术有限公司 | Character display method and device, storage medium and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090147099A1 (en) * | 2007-12-07 | 2009-06-11 | Samsung Electro-Mechanics Co., Ltd. | Method of performing auto white balance in ycbcr color space |
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 |
-
2016
- 2016-05-18 CN CN201610333107.7A patent/CN105955754B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090147099A1 (en) * | 2007-12-07 | 2009-06-11 | Samsung Electro-Mechanics Co., Ltd. | Method of performing auto white balance in ycbcr color space |
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 |
Cited By (6)
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 |
CN111368502A (en) * | 2019-05-15 | 2020-07-03 | 深圳市鸿合创新信息技术有限责任公司 | Method, device and equipment for modifying character color and storage medium |
CN113763256A (en) * | 2020-07-06 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Picture adaptation method and device |
CN112203022A (en) * | 2020-10-28 | 2021-01-08 | 努比亚技术有限公司 | 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 |
Also Published As
Publication number | Publication date |
---|---|
CN105955754B (en) | 2019-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105955754A (en) | Method and device for displaying characters of user interface | |
CN104778047B (en) | A kind of content display method and terminal | |
CN104536771B (en) | According to the icon sequencing display method and system of Icon Color | |
US20110305386A1 (en) | Color Indication Tool for Colorblindness | |
US20150154763A1 (en) | Control system and method for controlling background colors for mobile terminal | |
CN106339224B (en) | Readability enhancing method and device | |
CN109408177A (en) | Method and device for configuring color of characters in picture and electronic equipment | |
CN104866755B (en) | Setting method and device for background picture of application program unlocking interface and electronic equipment | |
CN110351540B (en) | Method and device for extracting image of vibrating mirror test unit of projector and electronic equipment | |
CN104461614A (en) | Method for processing theme resource and electronic device | |
CN104765437A (en) | Power saving method and power saving system | |
CN107799093A (en) | Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal | |
CN102663786A (en) | Layer superposition method and mobile terminal employing the same | |
JP2015512194A (en) | Method and wireless handheld device for determining the hue of an image | |
CN103903587A (en) | Method and device for processing picture data | |
CN111796889A (en) | Terminal interface color correction method and device, electronic equipment and terminal | |
CN109410295A (en) | Color setting method, device, equipment and computer readable storage medium | |
US20200192554A1 (en) | Terminal device, display control method implemented by the terminal device, computer readable storage medium and computer program product | |
CN110444181B (en) | Display method, display device, terminal and computer-readable storage medium | |
CN104423909A (en) | Information processing method and electronic device | |
EP3273439A1 (en) | Method and device for enhancing color saturation | |
CN106445501A (en) | Display method of notification bar, and terminal | |
CN105334956A (en) | Information processing method and electronic device | |
CN106775548B (en) | page processing method and device | |
CN105138932A (en) | Text display method, text display device, and mobile terminal |
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. |