CN106504723A - Screen color adjusting method and device and electronic equipment - Google Patents
Screen color adjusting method and device and electronic equipment Download PDFInfo
- Publication number
- CN106504723A CN106504723A CN201610881161.5A CN201610881161A CN106504723A CN 106504723 A CN106504723 A CN 106504723A CN 201610881161 A CN201610881161 A CN 201610881161A CN 106504723 A CN106504723 A CN 106504723A
- Authority
- CN
- China
- Prior art keywords
- color
- value
- kinds
- rgb
- interval
- 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
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/02—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Color Image Communication Systems (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The embodiment of the invention discloses a screen color adjusting method, which comprises the following steps: acquiring the light intensity of the current environment of the user; determining the color value of each of the red, green and blue colors according to the light intensity and a preset rule; and determining a brightness value obtained after mixing the red, green and blue colors according to the color value of each color, and adjusting the background color of the electronic equipment to the brightness value. The embodiment of the invention also discloses a screen color adjusting device and electronic equipment. By adopting the embodiment of the invention, the adjusting range of the screen color can be expanded.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of screen color control method, device and electronic equipment.
Background technology
In recent years, with the continuous progress of the continuous development and electronic equipment research and development of development of Mobile Internet technology, electronic equipment
Use increasingly popularize and extensively.However, electronic equipment also brings some harm while great convenience is brought using
The unfavorable factor of person's health, wherein, a most commonly seen unfavorable factor is that the screen of electronic equipment is brought to user's eyes
Injury.In the prior art scheme, electronic equipment can adjust screen background color by application software, but this tune
Section mode fixed single, it is also possible to select different colors by arranging, but the species of the color for selecting is also very limited.
Content of the invention
The embodiment of the present invention provides a kind of screen color control method, device and electronic equipment.Prior art can be solved
The technical problem of adjustable screen color fixed single in scheme.
First aspect present invention provides a kind of screen color control method, including:
Obtain the light intensity that user is presently in environment;
According to the light intensity, according to the color value that preset rules determine each color in three kinds of colors of RGB;
According to the color value of each color, the brightness value after three kinds of color mixture of the RGB is determined, and by institute
The background color for stating electronic equipment is adjusted to the brightness value.
Wherein, described according to the light intensity, each color in three kinds of colors of RGB is determined according to preset rules
Color value includes:
By the light intensity divided by default maximum light intensity, strength factor is calculated;
According to the strength factor, determine that the color value belonging to each color is interval;
Random number is taken as the color value of each color from the color value interval belonging to each color.
Wherein, described according to the strength factor, determine that the color value interval belonging to each color includes:
Calculate default maximum color value and be multiplied by the product of the strength factor and obtain the first numerical value;
Judge the strength factor whether more than predetermined threshold value;
According to judged result and first numerical value, determine that the color value belonging to each color is interval.
Wherein, described according to judged result and first numerical value, determine that the color value belonging to each color is interval
Including:
When the strength factor is not more than the predetermined threshold value, using first numerical value as three kinds of face of the RGB
The interval maximum of color value in color belonging to redness, will first numerical value blueness institute as in three kinds of colors of the RGB
The interval minima of the color value of category;
When the strength factor is more than the predetermined threshold value, using first numerical value as three kinds of colors of the RGB
The minima in the color value interval belonging to middle redness, first numerical value is blue affiliated as in three kinds of colors of the RGB
The interval maximum of color value.
Wherein, the color value according to each color, determines the brightness after three kinds of color mixture of the RGB
Value includes:
Calculate the product in three kinds of colors of the RGB between the color value of each color and obtain second value, and by institute
Second value is stated as the brightness value after three kinds of color mixture of the RGB.
Correspondingly, second aspect present invention provides a kind of screen color adjusting means, including:
Data obtaining module, is presently in the light intensity of environment for obtaining user;
Color determination module, for according to the light intensity, determining according to preset rules every in three kinds of colors of RGB
Plant the color value of color;
Color adaptation module, for the color value according to each color, determines three kinds of color mixture of the RGB
Brightness value afterwards, and the background color of the electronic equipment is adjusted to the brightness value.
Wherein, the color determination module specifically for:
By the light intensity divided by default maximum light intensity, strength factor is calculated;
According to the strength factor, determine that the color value belonging to each color is interval;
Random number is taken as the color value of each color from the color value interval belonging to each color.
Wherein, the color determination module specifically for:
Calculate default maximum color value and be multiplied by the product of the strength factor and obtain the first numerical value;
Judge the strength factor whether more than predetermined threshold value;
According to judged result and first numerical value, determine that the color value belonging to each color is interval.
Wherein, the color determination module specifically for:
When the strength factor is not more than the predetermined threshold value, using first numerical value as three kinds of face of the RGB
The interval maximum of color value in color belonging to redness, will first numerical value blueness institute as in three kinds of colors of the RGB
The interval minima of the color value of category;
When the strength factor is more than the predetermined threshold value, using first numerical value as three kinds of colors of the RGB
The minima in the color value interval belonging to middle redness, first numerical value is blue affiliated as in three kinds of colors of the RGB
The interval maximum of color value.
Wherein, the color adaptation module specifically for:
Calculate the product in three kinds of colors of the RGB between the color value of each color and obtain second value, and by institute
Second value is stated as the brightness value after three kinds of color mixture of the RGB.
Correspondingly, third aspect present invention provide a kind of electronic equipment, including processor, memorizer, communication interface and
Bus;
The processor, the memorizer and the communication interface are connected by the bus and complete mutual leading to
Letter;
The memory storage executable program code;
The processor is executable with described to run by reading the executable program code stored in the memorizer
The corresponding program of program code, for:
Obtain the light intensity that user is presently in environment;
According to the light intensity, according to the color value that preset rules determine each color in three kinds of colors of RGB;
According to the color value of each color, the brightness value after three kinds of color mixture of the RGB is determined, and by institute
The background color for stating electronic equipment is adjusted to the brightness value.
Correspondingly, a kind of storage medium is embodiments provided, and wherein, the storage medium is used for storing application journey
Sequence, the application program are used for operationally executing a kind of screen color regulation side disclosed in embodiment of the present invention first aspect
Method.
Correspondingly, a kind of application program is embodiments provided, and wherein, the application program is used for operationally holding
A kind of screen color control method disclosed in row embodiment of the present invention first aspect.
Implement the embodiment of the present invention, obtain the light intensity that user is presently in environment first;Then according to the light
Intensity, according to the color value that preset rules determine each color in three kinds of colors of RGB;Finally according to each color
Color value, determines the brightness value after three kinds of color mixture of the RGB, and the background color of the electronic equipment is adjusted to
The brightness value.Secondary colour, the model of the brightness value of secondary colour is obtained after mixing as three kinds of colors of RGB take random number
Enclose value bigger, therefore extend the range of accommodation of screen color.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to using needed for embodiment description
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for this area
For those of ordinary skill, on the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of schematic flow sheet of screen color control method that the embodiment of the present invention is proposed;
Fig. 2 is a kind of structural representation of screen color adjusting means that the embodiment of the present invention is proposed;
Fig. 3 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Accompanying drawing in below in conjunction with the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.It is based on this
Embodiment in bright, the every other enforcement obtained under the premise of creative work is not made by those of ordinary skill in the art
Example, belongs to the scope of protection of the invention.
Fig. 1 is refer to, Fig. 1 is a kind of schematic flow sheet of screen color control method that the embodiment of the present invention is proposed.Such as
Shown in figure, the method in the embodiment of the present invention includes:
S101, obtains the light intensity that user is presently in environment.
In implementing, the light intensity that user is presently in environment can be obtained by the lighting apparatus of electronic equipment,
The light intensity that user is presently in environment can also be obtained according to predetermined period.
S102, according to the light intensity, according to the color that preset rules determine each color in three kinds of colors of RGB
Value;
In implementing, strength factor can be calculated by the light intensity divided by default maximum light intensity;
According to the strength factor, determine that the color value belonging to each color is interval;From the color value belonging to each color
Random number is taken in interval as the color value of each color.
Further, default maximum color value can be calculated it is multiplied by the product of the strength factor and obtains the first numerical value;
Judge the strength factor whether more than predetermined threshold value;According to judged result and first numerical value, each color is determined
Affiliated color value is interval.Further, when the strength factor is not more than the predetermined threshold value, first numerical value is made
The interval maximum of color value belonging to redness in three kinds of colors of the RGB, using first numerical value as described red green
The minima in the color value interval in blue three-color belonging to blueness;When the strength factor is more than the predetermined threshold value, will
First numerical value is counted described first as the interval minima of the color value belonging to redness in three kinds of colors of the RGB
It is worth the maximum interval as the color value belonging to blueness in three kinds of colors of the RGB.
It should be noted that the span of three kinds of colors of RGB is 0~255, three kinds of colors of RGB are not according to
Any one color can be constituted after same color value mixing, if red color value in three kinds of colors is more than blue color
Value, the then secondary colour for ultimately producing belong to warm colour system, if red color value in three kinds of colors is less than blue color value,
The secondary colour for ultimately producing belongs to cool colour system.Therefore according to features above, determine in three kinds of colors of RGB belonging to each color
Color value interval.
For example, it is first determined whether light intensity coefficient K is more than 0.5, if more than 0.5, light intensity coefficient K illustrates that light is brighter,
Therefore be K*255~255 by red color value section definition, and a random number is taken as redness from the color value interval
Color value, be 0~255*K by blue color value section definition, and take a random number as indigo plant from the color value interval
The color value of color, takes random number as the color value of green from color value interval 0~255.If light intensity coefficient K is said less than 0.5
Bright dark, is therefore 0~255*K by red color value section definition, and from the color value interval take one random
Blue color value section definition is K*255~255, and takes one from the color value interval as red color value by number
Random number takes random number as the color value of green as blue color value from color value interval 0~255.
Optionally, light intensity multiple strength grades be can be divided in advance, each strength grade and RGB set up
The interval corresponding relation of the color value of each color in three kinds of colors, for example, if light intensity is the first estate, can will be red
The color value interval 220~255 of color, the color value interval 0~30 of blueness, the color value interval 100~200 of green and the last the first
Degree grade sets up corresponding relation, if light intensity is the second grade, can be blue by red color value interval 200~220
Color value interval 30~80, the color value interval 100~200 of green and the second strength grade set up corresponding relation, and successively
Set up multiple corresponding relations.After getting user and being presently in the light intensity of environment, first determine whether belonging to light intensity
Strength grade, it is then determined that the color value of three kinds of color each colors of RGB is interval, then from the color value of each color
Random number is taken in interval as the color value of each color.It should be noted that being not limited only to above-mentioned corresponding relation.
S103, according to the color value of each color, determines the brightness value after three kinds of color mixture of the RGB, and
The background color of the electronic equipment is adjusted to the brightness value.
In implementing, the product in three kinds of colors of the RGB between the color value of each color can be calculated and obtained
Second value, and the second value is adjusted as the brightness value after three kinds of color mixture of the RGB according to the brightness value
Section screen color.After adjusting screen color every time, after predetermined period being waited, obtain user again and be presently in environment
Light intensity, and according to reacquire light intensity calculate obtain brightness value to adjust screen color.
In embodiments of the present invention, the light intensity that user is presently in environment is obtained first;Then according to the light
Intensity, according to the color value that preset rules determine each color in three kinds of colors of RGB;Finally according to each color
Color value, determines the brightness value after three kinds of color mixture of the RGB, and the background color of the electronic equipment is adjusted to
The brightness value.Secondary colour, the model of the brightness value of secondary colour is obtained after mixing as three kinds of colors of RGB take random number
Enclose value bigger, therefore extend the range of accommodation of screen color.
Fig. 2 is refer to, Fig. 2 is a kind of structural representation of screen color adjusting means provided in an embodiment of the present invention.Such as
Shown in figure, the device in the embodiment of the present invention includes:
Data obtaining module 201, is presently in the light intensity of environment for obtaining user.
In implementing, the light intensity that user is presently in environment can be obtained by the lighting apparatus of electronic equipment,
The light intensity that user is presently in environment can also be obtained according to predetermined period.
Color determination module 202, for according to the light intensity, determining in three kinds of colors of RGB according to preset rules
The color value of each color.
In implementing, strength factor can be calculated by the light intensity divided by default maximum light intensity;
According to the strength factor, determine that the color value belonging to each color is interval;From the color value belonging to each color
Random number is taken in interval as the color value of each color.
Further, default maximum color value can be calculated it is multiplied by the product of the strength factor and obtains the first numerical value;
Judge the strength factor whether more than predetermined threshold value;According to judged result and first numerical value, each color is determined
Affiliated color value is interval.Further, when the strength factor is not more than the predetermined threshold value, first numerical value is made
The interval maximum of color value belonging to redness in three kinds of colors of the RGB, using first numerical value as described red green
The minima in the color value interval in blue three-color belonging to blueness;When the strength factor is more than the predetermined threshold value, will
First numerical value is counted described first as the interval minima of the color value belonging to redness in three kinds of colors of the RGB
It is worth the maximum interval as the color value belonging to blueness in three kinds of colors of the RGB.
It should be noted that the span of three kinds of colors of RGB is 0~255, three kinds of colors of RGB are not according to
Any one color can be constituted after same color value mixing, if red color value in three kinds of colors is more than blue color
Value, the then secondary colour for ultimately producing belong to warm colour system, if red color value in three kinds of colors is less than blue color value,
The secondary colour for ultimately producing belongs to cool colour system.Therefore according to features above, determine in three kinds of colors of RGB belonging to each color
Color value interval.
For example, it is first determined whether light intensity coefficient K is more than 0.5, if more than 0.5, light intensity coefficient K illustrates that light is brighter,
Therefore be K*255~255 by red color value section definition, and a random number is taken as redness from the color value interval
Color value, be 0~255*K by blue color value section definition, and take a random number as indigo plant from the color value interval
The color value of color, takes random number as the color value of green from color value interval 0~255.If light intensity coefficient K is said less than 0.5
Bright dark, is therefore 0~255*K by red color value section definition, and from the color value interval take one random
Blue color value section definition is K*255~255, and takes one from the color value interval as red color value by number
Random number takes random number as the color value of green as blue color value from color value interval 0~255.
Optionally, light intensity multiple strength grades be can be divided in advance, each strength grade and RGB set up
The interval corresponding relation of the color value of each color in three kinds of colors, for example, if light intensity is the first estate, can will be red
The color value interval 220~255 of color, the color value interval 0~30 of blueness, the color value interval 100~200 of green and the last the first
Degree grade sets up corresponding relation, if light intensity is the second grade, can be blue by red color value interval 200~220
Color value interval 30~80, the color value interval 100~200 of green and the second strength grade set up corresponding relation, and successively
Set up multiple corresponding relations.After getting user and being presently in the light intensity of environment, first determine whether belonging to light intensity
Strength grade, it is then determined that the color value of three kinds of color each colors of RGB is interval, then from the color value of each color
Random number is taken in interval as the color value of each color.
Color adaptation module 203, for the color value according to each color, determines that three kinds of colors of the RGB are mixed
Brightness value after conjunction, and the background color of the electronic equipment is adjusted to the brightness value.
In implementing, the product in three kinds of colors of the RGB between the color value of each color can be calculated and obtained
Second value, and the second value is adjusted as the brightness value after three kinds of color mixture of the RGB according to the brightness value
Section screen color.After adjusting screen color every time, after predetermined period being waited, obtain user again and be presently in environment
Light intensity, and according to reacquire light intensity calculate obtain brightness value to adjust screen color.
In embodiments of the present invention, the light intensity that user is presently in environment is obtained first;Then according to the light
Intensity, according to the color value that preset rules determine each color in three kinds of colors of RGB;Finally according to each color
Color value, determines the brightness value after three kinds of color mixture of the RGB, and the background color of the electronic equipment is adjusted to
The brightness value.Secondary colour, the model of the brightness value of secondary colour is obtained after mixing as three kinds of colors of RGB take random number
Enclose value bigger, therefore extend the range of accommodation of screen color.
Fig. 3 is refer to, Fig. 3 is the structural representation of a kind of electronic equipment that the embodiment of the present invention is proposed.As illustrated, should
Electronic equipment can include:At least one processor 301, such as CPU, at least one communication interface 302, at least one memorizer
303, at least one bus 304.Wherein, bus 304 is used for realizing the connection communication between these components.Wherein, the present invention is real
The communication interface 302 for applying electronic equipment in example is wired sending port, or wireless device, for example include antenna assembly,
For carrying out the communication of signaling or data with other node devices.Memorizer 303 can be high-speed RAM memorizer, or
Non-labile memorizer (non-volatile memory), for example, at least one disk memory.Memorizer 303 is optional
Can also be at least one storage device for being located remotely from aforementioned processor 301.Batch processing code is stored in memorizer 303,
And processor 301 is used for calling the program code stored in memorizer, for executing following operation:
Obtain the light intensity that user is presently in environment;
According to the light intensity, according to the color value that preset rules determine each color in three kinds of colors of RGB;
According to the color value of each color, the brightness value after three kinds of color mixture of the RGB is determined, and by institute
The background color for stating electronic equipment is adjusted to the brightness value.
Wherein, processor 301 is additionally operable to execute following operating procedure:
By the light intensity divided by default maximum light intensity, strength factor is calculated;
According to the strength factor, determine that the color value belonging to each color is interval;
Random number is taken as the color value of each color from the color value interval belonging to each color.
Wherein, processor 301 is additionally operable to execute following operating procedure:
Calculate default maximum color value and be multiplied by the product of the strength factor and obtain the first numerical value;
Judge the strength factor whether more than predetermined threshold value;
According to judged result and first numerical value, determine that the color value belonging to each color is interval.
Wherein, processor 301 is additionally operable to execute following operating procedure:
When the strength factor is not more than the predetermined threshold value, using first numerical value as three kinds of face of the RGB
The interval maximum of color value in color belonging to redness, will first numerical value blueness institute as in three kinds of colors of the RGB
The interval minima of the color value of category;
When the strength factor is more than the predetermined threshold value, using first numerical value as three kinds of colors of the RGB
The minima in the color value interval belonging to middle redness, first numerical value is blue affiliated as in three kinds of colors of the RGB
The interval maximum of color value.
Wherein, processor 301 is additionally operable to execute following operating procedure:
Calculate the product in three kinds of colors of the RGB between the color value of each color and obtain second value, and by institute
Second value is stated as the brightness value after three kinds of color mixture of the RGB.
It should be noted that the embodiment of the present invention also provides a kind of storage medium simultaneously, the storage medium is used for storing
Application program, the application program are used for operationally executing a kind of screen color control method shown in Fig. 1.
It should be noted that the embodiment of the present invention also provides a kind of application program simultaneously, the application program is used in fortune
Execute during row.
It should be noted that for each embodiment of the method aforesaid, in order to be briefly described, therefore which is all expressed as one it is
The combination of actions of row, but those skilled in the art should know, and the present invention is not limited by described sequence of movement, because
It is that certain some step can be carried out using other orders or simultaneously according to the present invention.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this
Bright necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, is not described in certain embodiment
Part, may refer to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Completed with instructing the hardware of correlation by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:Flash disk, read only memory (English:Read-Only Memory, referred to as:ROM), random access device (English
Text:Random Access Memory, referred to as:RAM), disk or CD etc..
The above content download method provided by the embodiment of the present invention and relevant device, system are described in detail,
Specific case used herein is set forth to the principle of the present invention and embodiment, and the explanation of above example is simply used
The method of the present invention and its core concept is understood in help;Simultaneously for one of ordinary skill in the art, according to the present invention's
Thought, will change in specific embodiments and applications, and in sum, this specification content should not be construed as
Limitation of the present invention.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy described with reference to the embodiment or example
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example must be directed to.And, the specific features of description, structure, material or feature can be with office
Combined in one or more embodiments or example in an appropriate manner.Additionally, in the case of not conflicting, the skill of this area
The feature of the different embodiments or example described in this specification and different embodiments or example can be tied by art personnel
Close and combine.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or
Implicitly include at least one this feature.In describing the invention, " multiple " are meant that at least two, such as two, three
Individual etc., unless otherwise expressly limited specifically.
In flow chart or here any process described otherwise above or method description are construed as, expression includes
One or more for realizing specific logical function or process the step of the module of code of executable instruction, fragment or portion
Point, and the scope of the preferred embodiment of the present invention includes other realization, can not wherein press the suitable of shown or discussion
Sequence, including according to involved function by basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Represent in flow charts or here logic described otherwise above and/or step, for example, it is possible to be considered as to use
In the order list of the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, include processor system or other can hold from instruction
Row system, device or equipment instruction fetch the system of execute instruction) use, or with reference to these instruction execution systems, device or set
Standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
The dress that defeated program is used for instruction execution system, device or equipment or with reference to these instruction execution systems, device or equipment
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:There is the electricity of one or more wirings
Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program thereon or other are suitable
Medium, because for example by carrying out optical scanning to paper or other media edlin, interpretation can then be entered or if necessary with which
His suitable method is processed to electronically obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, the software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realizing.For example, if realized with hardware, and in another embodiment, can be with well known in the art
Any one of row technology or their combination are realizing:There is the logic gates for being used for realizing logic function to data signal
Discrete logic, the special IC with suitable combinational logic gate circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried
Suddenly the hardware that can be by program to instruct correlation is completed, and described program can be stored in a kind of computer-readable storage medium
In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, each functional unit in each embodiment of the invention can be integrated in a processing module, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated mould
Block both can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as
Fruit using in the form of software function module realize and as independent production marketing or use when, it is also possible to be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read only memory, disk or CD etc..Although having shown that above and retouching
Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention
System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention
Type.
Claims (10)
1. a kind of screen color control method, it is characterised in that methods described is applied to electronic equipment, and methods described includes:
Obtain the light intensity that user is presently in environment;
According to the light intensity, according to the color value that preset rules determine each color in three kinds of colors of RGB;
According to the color value of each color, the brightness value after three kinds of color mixture of the RGB is determined, and by the electricity
The background color of sub- equipment is adjusted to the brightness value.
2. the method for claim 1, it is characterised in that described according to the light intensity, determines according to preset rules
In three kinds of colors of RGB, the color value of each color includes:
By the light intensity divided by default maximum light intensity, strength factor is calculated;
According to the strength factor, determine that the color value belonging to each color is interval;
Random number is taken as the color value of each color from the color value interval belonging to each color.
3. the method for claim 1, it is characterised in that described according to the strength factor, determines each color
Affiliated color value interval includes:
Calculate default maximum color value and be multiplied by the product of the strength factor and obtain the first numerical value;
Judge the strength factor whether more than predetermined threshold value;
According to judged result and first numerical value, determine that the color value belonging to each color is interval.
4. method as claimed in claim 3, it is characterised in that described according to judged result and first numerical value, determines institute
Stating the color value interval belonging to each color includes:
When the strength factor is not more than the predetermined threshold value, using first numerical value as in three kinds of colors of the RGB
The interval maximum of color value belonging to redness, using first numerical value as in three kinds of colors of the RGB belonging to blueness
The interval minima of color value;
When the strength factor is more than the predetermined threshold value, using first numerical value as red in three kinds of colors of the RGB
The minima in the color value interval belonging to color, using face of first numerical value as in three kinds of colors of the RGB belonging to blueness
The interval maximum of colour.
5. the method as described in claim 1-4 any one, it is characterised in that the color according to each color
Value, determines that the brightness value after three kinds of color mixture of the RGB includes:
Calculate the product in three kinds of colors of the RGB between the color value of each color and obtain second value, and by described
Two numerical value are used as the brightness value after three kinds of color mixture of the RGB.
6. a kind of screen color adjusting means, it is characterised in that described device includes:
Data obtaining module, is presently in the light intensity of environment for obtaining user;
Color determination module, for according to the light intensity, determining every kind of face in three kinds of colors of RGB according to preset rules
The color value of color;
Color adaptation module, for the color value according to each color, after determining three kinds of color mixture of the RGB
Brightness value, and the background color of the electronic equipment is adjusted to the brightness value.
7. device as claimed in claim 6, it is characterised in that the color determination module specifically for:
By the light intensity divided by default maximum light intensity, strength factor is calculated;
According to the strength factor, determine that the color value belonging to each color is interval;
Random number is taken as the color value of each color from the color value interval belonging to each color.
8. device as claimed in claim 6, it is characterised in that the color determination module specifically for:
Calculate default maximum color value and be multiplied by the product of the strength factor and obtain the first numerical value;
Judge the strength factor whether more than predetermined threshold value;
According to judged result and first numerical value, determine that the color value belonging to each color is interval.
9. device as claimed in claim 8, it is characterised in that the color determination module specifically for:
When the strength factor is not more than the predetermined threshold value, using first numerical value as in three kinds of colors of the RGB
The interval maximum of color value belonging to redness, using first numerical value as in three kinds of colors of the RGB belonging to blueness
The interval minima of color value;
When the strength factor is more than the predetermined threshold value, using first numerical value as red in three kinds of colors of the RGB
The minima in the color value interval belonging to color, using face of first numerical value as in three kinds of colors of the RGB belonging to blueness
The interval maximum of colour.
10. a kind of electronic equipment, it is characterised in that include:Processor, memorizer, communication interface and bus;
The processor, the memorizer and the communication interface are connected by the bus and complete mutual communication;
The memory storage executable program code;
The processor is run and the executable program by reading the executable program code stored in the memorizer
The corresponding program of code, for:
Obtain the light intensity that user is presently in environment;
According to the light intensity, according to the color value that preset rules determine each color in three kinds of colors of RGB;
According to the color value of each color, the brightness value after three kinds of color mixture of the RGB is determined, and by the electricity
The background color of sub- equipment is adjusted to the brightness value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610881161.5A CN106504723B (en) | 2016-10-09 | 2016-10-09 | Screen color adjusting method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610881161.5A CN106504723B (en) | 2016-10-09 | 2016-10-09 | Screen color adjusting method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106504723A true CN106504723A (en) | 2017-03-15 |
CN106504723B CN106504723B (en) | 2019-02-15 |
Family
ID=58294723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610881161.5A Active CN106504723B (en) | 2016-10-09 | 2016-10-09 | Screen color adjusting method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106504723B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107945754A (en) * | 2017-11-20 | 2018-04-20 | 上海与德科技有限公司 | Adjusting method, electronic equipment and the computer-readable recording medium of screen intensity |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201011418A (en) * | 2008-09-11 | 2010-03-16 | Samsung Electronics Co Ltd | Light source module and display apparatus having the same |
CN101676977A (en) * | 2008-09-19 | 2010-03-24 | 统宝光电股份有限公司 | Brightness regulation device, method and electronic system comprising same |
US20130083088A1 (en) * | 2010-03-09 | 2013-04-04 | Hdt Inc. | Color Display Device And Method |
CN204596390U (en) * | 2014-12-23 | 2015-08-26 | 苹果公司 | There is the ambient light adaptive display that class paper presents |
CN104902088A (en) * | 2015-05-25 | 2015-09-09 | 广东欧珀移动通信有限公司 | Method and device for adjusting screen brightness of mobile terminal |
CN105448248A (en) * | 2016-01-15 | 2016-03-30 | 深圳市华星光电技术有限公司 | A power conditioning circuit and a liquid crystal display apparatus |
-
2016
- 2016-10-09 CN CN201610881161.5A patent/CN106504723B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201011418A (en) * | 2008-09-11 | 2010-03-16 | Samsung Electronics Co Ltd | Light source module and display apparatus having the same |
CN101676977A (en) * | 2008-09-19 | 2010-03-24 | 统宝光电股份有限公司 | Brightness regulation device, method and electronic system comprising same |
US20130083088A1 (en) * | 2010-03-09 | 2013-04-04 | Hdt Inc. | Color Display Device And Method |
CN204596390U (en) * | 2014-12-23 | 2015-08-26 | 苹果公司 | There is the ambient light adaptive display that class paper presents |
CN104902088A (en) * | 2015-05-25 | 2015-09-09 | 广东欧珀移动通信有限公司 | Method and device for adjusting screen brightness of mobile terminal |
CN105448248A (en) * | 2016-01-15 | 2016-03-30 | 深圳市华星光电技术有限公司 | A power conditioning circuit and a liquid crystal display apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107945754A (en) * | 2017-11-20 | 2018-04-20 | 上海与德科技有限公司 | Adjusting method, electronic equipment and the computer-readable recording medium of screen intensity |
Also Published As
Publication number | Publication date |
---|---|
CN106504723B (en) | 2019-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106250012A (en) | Screen intensity and color temperature adjusting method, device and terminal unit | |
CN110198437B (en) | Image processing method and device, storage medium and electronic device | |
CN107704925A (en) | The visual analysis system and method for deep neural network training process | |
CN105761283B (en) | A kind of picture key color extraction method and device | |
CN104076928B (en) | A kind of method for adjusting text importing image | |
CN108320312B (en) | Image color matching method and device and computer terminal | |
CN104978186B (en) | A kind of rendering intent and device of interface skin | |
CN103677640A (en) | Virtual keyboard self-adaptation application theme method and system | |
CN104268152B (en) | A kind of webpage exhibiting method and device | |
US8577079B2 (en) | Image processing system providing selective arrangement and configuration for an image analysis sequence | |
CN108564526A (en) | Image processing method and device, electronic equipment and medium | |
CN107342066A (en) | Screen luminance adjustment method, device and its equipment | |
CN105955754B (en) | A kind of user interface character displaying method and device | |
CN107801013A (en) | White balancing treatment method and device, electronic installation and computer-readable recording medium | |
CN108198250A (en) | Virtual objects model colouring method and device, storage medium, electronic equipment | |
CN107301027A (en) | Screen color temp adjusting method, device and its equipment | |
CN107154247A (en) | Color temperature adjusting method, device and its equipment reconstructed based on rgb light spectrum energy | |
CN108108215A (en) | Skin generation method, device, terminal and computer readable storage medium | |
CN108052650B (en) | Information recommendation method and device and electronic equipment | |
CN104461545A (en) | Method and device of providing contents in mobile terminals to users | |
CN106504723A (en) | Screen color adjusting method and device and electronic equipment | |
CN107544903A (en) | Page specification detection method, device and computer equipment | |
CN106251827A (en) | Control method and control device | |
CN109215613A (en) | A kind of method, apparatus, electronic equipment and storage medium reducing blue light strength | |
CN108596999A (en) | Filling graph method, apparatus, storage medium, processor and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |