CN106504723B - Screen color adjusting method and device and electronic equipment - Google Patents

Screen color adjusting method and device and electronic equipment Download PDF

Info

Publication number
CN106504723B
CN106504723B CN201610881161.5A CN201610881161A CN106504723B CN 106504723 B CN106504723 B CN 106504723B CN 201610881161 A CN201610881161 A CN 201610881161A CN 106504723 B CN106504723 B CN 106504723B
Authority
CN
China
Prior art keywords
color
value
kinds
rgb
colors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610881161.5A
Other languages
Chinese (zh)
Other versions
CN106504723A (en
Inventor
张苗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610881161.5A priority Critical patent/CN106504723B/en
Publication of CN106504723A publication Critical patent/CN106504723A/en
Application granted granted Critical
Publication of CN106504723B publication Critical patent/CN106504723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control 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

A kind of screen color adjusting method, device and electronic equipment
Technical field
The present invention relates to electronic technology field more particularly to a kind of screen color adjusting methods, device and electronic equipment.
Background technique
In recent years, as what the continuous development of development of Mobile Internet technology and electronic equipment were researched and developed is constantly progressive, electronic equipment Using more more and more universal and extensive.It is used however, electronic equipment also brings some harm while bringing great convenience The unfavorable factor of person's health, wherein a most commonly seen unfavorable factor is that the screen of electronic equipment brings 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 can also select different colors by being arranged, but the type of the color selected is also very limited.
Summary of the invention
The embodiment of the present invention provides a kind of screen color adjusting method, device and electronic equipment.It can solve the prior art In scheme the technical issues of adjustable screen color fixed single.
First aspect present invention provides a kind of screen color adjusting method, comprising:
Obtain the light intensity of user's current environment;
According to the light intensity, the color value of each color in three kinds of colors of RGB is determined according to preset rules;
According to the color value of each color, brightness value after determining three kinds of color mixing of the RGB, 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 preset maximum light intensity, strength factor is calculated;
According to the strength factor, color value section belonging to each color is determined;
Take random number as the color value of each color from color value section belonging to each color.
Wherein, described according to the strength factor, determine that color value section belonging to each color includes:
It calculates preset maximum color value and obtains the first numerical value multiplied by the product of the strength factor;
Judge whether the strength factor is greater than preset threshold;
According to judging result and first numerical value, color value section belonging to each color is determined.
Wherein, described according to judging result and first numerical value, determine color value section belonging to each color Include:
When the strength factor is not more than the preset threshold, using first numerical value as three kinds of face of the RGB The maximum value in color value section belonging to red in color, using first numerical value as institute blue in three kinds of colors of the RGB The minimum value in the color value section of category;
When the strength factor is greater than the preset threshold, using first numerical value as three kinds of colors of the RGB The minimum value in color value section belonging to middle red, using first numerical value as belonging to blue in three kinds of colors of the RGB Color value section maximum value.
Wherein, the color value according to each color, the brightness after determining three kinds of color mixing of the RGB Value includes:
It calculates the product in three kinds of colors of the RGB between the color value of each color and obtains second value, and by institute Second value is stated as the brightness value after three kinds of color mixing of the RGB.
Correspondingly, second aspect of the present invention provides a kind of screen color regulating device, comprising:
Data obtaining module, for obtaining the light intensity of user's current environment;
Color determination module, for being determined according to preset rules every in three kinds of colors of RGB according to the light intensity The color value of kind color;
Color adaptation module determines three kinds of color mixing of the RGB for the color value according to each color Brightness value afterwards, and the background color of the electronic equipment is adjusted to the brightness value.
Wherein, the color determination module is specifically used for:
By the light intensity divided by preset maximum light intensity, strength factor is calculated;
According to the strength factor, color value section belonging to each color is determined;
Take random number as the color value of each color from color value section belonging to each color.
Wherein, the color determination module is specifically used for:
It calculates preset maximum color value and obtains the first numerical value multiplied by the product of the strength factor;
Judge whether the strength factor is greater than preset threshold;
According to judging result and first numerical value, color value section belonging to each color is determined.
Wherein, the color determination module is specifically used for:
When the strength factor is not more than the preset threshold, using first numerical value as three kinds of face of the RGB The maximum value in color value section belonging to red in color, using first numerical value as institute blue in three kinds of colors of the RGB The minimum value in the color value section of category;
When the strength factor is greater than the preset threshold, using first numerical value as three kinds of colors of the RGB The minimum value in color value section belonging to middle red, using first numerical value as belonging to blue in three kinds of colors of the RGB Color value section maximum value.
Wherein, the color adaptation module is specifically used for:
It calculates the product in three kinds of colors of the RGB between the color value of each color and obtains second value, and by institute Second value is stated as the brightness value after three kinds of color mixing of the RGB.
Correspondingly, third aspect present invention provides a kind of electronic equipment, including processor, memory, communication interface and Bus;
The processor, the memory are connected by the bus with the communication interface and complete mutual lead to Letter;
The memory stores executable program code;
The processor is run by reading the executable program code stored in the memory can be performed with described The corresponding program of program code, to be used for:
Obtain the light intensity of user's current environment;
According to the light intensity, the color value of each color in three kinds of colors of RGB is determined according to preset rules;
According to the color value of each color, brightness value after determining three kinds of color mixing of the RGB, and by institute The background color for stating electronic equipment is adjusted to the brightness value.
Correspondingly, the embodiment of the invention provides a kind of storage mediums, wherein the storage medium applies journey for storing Sequence, the application program for executing a kind of screen color adjusting side disclosed in first aspect of the embodiment of the present invention at runtime Method.
Correspondingly, the embodiment of the invention provides a kind of application programs, wherein the application program for holding at runtime A kind of screen color adjusting method disclosed in row first aspect of the embodiment of the present invention.
Implement the embodiment of the present invention, obtains the light intensity of user's current environment first;Then according to the light Intensity determines the color value of each color in three kinds of colors of RGB according to preset rules;Finally according to each color Color value, the brightness value after determining three kinds of color mixing of the RGB, and the adjusting of the background color of the electronic equipment is arrived The brightness value.Since three kinds of colors of RGB take random number to obtain secondary colour, the model of the brightness value of secondary colour after mixing It encloses that value is bigger, therefore extends the adjustable range of screen color.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this field For those of ordinary skill, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram for screen color adjusting method that the embodiment of the present invention proposes;
Fig. 2 is a kind of structural schematic diagram for screen color regulating device that the embodiment of the present invention proposes;
Fig. 3 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of flow diagram for screen color adjusting method that the embodiment of the present invention proposes.Such as Shown in figure, the method in the embodiment of the present invention includes:
S101 obtains the light intensity of user's current environment.
In the specific implementation, the light intensity of user's current environment can be obtained by the lighting apparatus of electronic equipment, The light intensity of user's current environment can also be obtained according to predetermined period.
S102 determines the color of each color in three kinds of colors of RGB according to preset rules according to the light intensity Value;
In the specific implementation, strength factor can be calculated by the light intensity divided by preset maximum light intensity; According to the strength factor, color value section belonging to each color is determined;The color value belonging to each color Take random number as the color value of each color in section.
Further, preset maximum color value can be calculated and obtains the first numerical value multiplied by the product of the strength factor; Judge whether the strength factor is greater than preset threshold;According to judging result and first numerical value, each color is determined Affiliated color value section.Further, when the strength factor is not more than the preset threshold, first numerical value is made For the maximum value in color value section belonging to red in three kinds of colors of the RGB, using first numerical value as described red green The minimum value in color value section belonging to blue in blue three-color;It, will when the strength factor is greater than the preset threshold Minimum value of first numerical value as color value section belonging to red in three kinds of colors of the RGB, by first number It is worth the maximum value as color value section belonging to blue in three kinds of colors of the RGB.
It should be noted that the value range 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 formed after same color value mixing, if color value red in three kinds of colors is greater than the color of blue Value, the then secondary colour ultimately produced belong to warm colour, if color value red in three kinds of colors is less than the color value of blue, The secondary colour ultimately produced belongs to cool colour.Therefore it according to features above, determines in three kinds of colors of RGB belonging to each color Color value section.
Such as, it is first determined whether light intensity coefficient K is greater than 0.5, if light intensity coefficient K is greater than 0.5, illustrates that light is brighter, Therefore it is K*255~255 by red color value section definition, and takes a random number as red from the color value section Color value, be 0~255*K by the color value section definition of blue, and take random number as blue from the color value section The color value of color takes random number as the color value of green from color value section 0~255.If light intensity coefficient K is said less than 0.5 Bright dark, therefore be 0~255*K by red color value section definition, and from the color value section take one it is random The color value section definition of blue is K*255~255 as red color value by number, and takes one from the color value section Color value of the random number as blue takes random number as the color value of green from color value section 0~255.
Optionally, light intensity multiple strength grades be can be divided into advance, each strength grade and RGB established The corresponding relationship in the color value section of each color in three kinds of colors, for example, if light intensity is the first estate, it can will be red The color value section 220~255 of color, blue color value section 0~30, the color value section 100~200 of green and the last the first Degree grade establishes corresponding relationship, can be by red color value section 200~220, blue if light intensity is the second grade Color value section 30~80, green color value section 100~200 and the second strength grade establish corresponding relationship, and successively Establish multiple corresponding relationships.After the light intensity for getting user's current environment, first determine whether belonging to light intensity Strength grade, then determine three kinds of color each colors of RGB color value section, then from the color value of each color Take random number as the color value of each color in section.It should be noted that being not limited only to above-mentioned corresponding relationship.
S103, according to the color value of each color, brightness value after determining three kinds of color mixing of the RGB, and The background color of the electronic equipment is adjusted to the brightness value.
In the specific implementation, the product that can be calculated in three kinds of colors of the RGB between the color value of each color obtains Second value, and using the second value as the brightness value after three kinds of color mixing of the RGB, according to the brightness value tune Save screen color.After adjusting screen color every time, predetermined period and then secondary acquisition user's current environment can be waited Light intensity, and the light intensity according to reacquisition calculates to obtain brightness value to adjust screen color.
In embodiments of the present invention, the light intensity of user's current environment is obtained first;Then according to the light Intensity determines the color value of each color in three kinds of colors of RGB according to preset rules;Finally according to each color Color value, the brightness value after determining three kinds of color mixing of the RGB, and the adjusting of the background color of the electronic equipment is arrived The brightness value.Since three kinds of colors of RGB take random number to obtain secondary colour, the model of the brightness value of secondary colour after mixing It encloses that value is bigger, therefore extends the adjustable range of screen color.
Referring to FIG. 2, Fig. 2 is a kind of structural schematic diagram of screen color regulating device 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, for obtaining the light intensity of user's current environment.
In the specific implementation, the light intensity of user's current environment can be obtained by the lighting apparatus of electronic equipment, The light intensity of user's current environment can also be obtained according to predetermined period.
Color determination module 202, for being determined in three kinds of colors of RGB according to preset rules according to the light intensity The color value of each color.
In the specific implementation, strength factor can be calculated by the light intensity divided by preset maximum light intensity; According to the strength factor, color value section belonging to each color is determined;The color value belonging to each color Take random number as the color value of each color in section.
Further, preset maximum color value can be calculated and obtains the first numerical value multiplied by the product of the strength factor; Judge whether the strength factor is greater than preset threshold;According to judging result and first numerical value, each color is determined Affiliated color value section.Further, when the strength factor is not more than the preset threshold, first numerical value is made For the maximum value in color value section belonging to red in three kinds of colors of the RGB, using first numerical value as described red green The minimum value in color value section belonging to blue in blue three-color;It, will when the strength factor is greater than the preset threshold Minimum value of first numerical value as color value section belonging to red in three kinds of colors of the RGB, by first number It is worth the maximum value as color value section belonging to blue in three kinds of colors of the RGB.
It should be noted that the value range 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 formed after same color value mixing, if color value red in three kinds of colors is greater than the color of blue Value, the then secondary colour ultimately produced belong to warm colour, if color value red in three kinds of colors is less than the color value of blue, The secondary colour ultimately produced belongs to cool colour.Therefore it according to features above, determines in three kinds of colors of RGB belonging to each color Color value section.
Such as, it is first determined whether light intensity coefficient K is greater than 0.5, if light intensity coefficient K is greater than 0.5, illustrates that light is brighter, Therefore it is K*255~255 by red color value section definition, and takes a random number as red from the color value section Color value, be 0~255*K by the color value section definition of blue, and take random number as blue from the color value section The color value of color takes random number as the color value of green from color value section 0~255.If light intensity coefficient K is said less than 0.5 Bright dark, therefore be 0~255*K by red color value section definition, and from the color value section take one it is random The color value section definition of blue is K*255~255 as red color value by number, and takes one from the color value section Color value of the random number as blue takes random number as the color value of green from color value section 0~255.
Optionally, light intensity multiple strength grades be can be divided into advance, each strength grade and RGB established The corresponding relationship in the color value section of each color in three kinds of colors, for example, if light intensity is the first estate, it can will be red The color value section 220~255 of color, blue color value section 0~30, the color value section 100~200 of green and the last the first Degree grade establishes corresponding relationship, can be by red color value section 200~220, blue if light intensity is the second grade Color value section 30~80, green color value section 100~200 and the second strength grade establish corresponding relationship, and successively Establish multiple corresponding relationships.After the light intensity for getting user's current environment, first determine whether belonging to light intensity Strength grade, then determine three kinds of color each colors of RGB color value section, then from the color value of each color Take random number as the color value of each color in section.
Color adaptation module 203 determines that three kinds of colors of the RGB are mixed for the color value according to each color Brightness value after conjunction, and the background color of the electronic equipment is adjusted to the brightness value.
In the specific implementation, the product that can be calculated in three kinds of colors of the RGB between the color value of each color obtains Second value, and using the second value as the brightness value after three kinds of color mixing of the RGB, according to the brightness value tune Save screen color.After adjusting screen color every time, predetermined period and then secondary acquisition user's current environment can be waited Light intensity, and the light intensity according to reacquisition calculates to obtain brightness value to adjust screen color.
In embodiments of the present invention, the light intensity of user's current environment is obtained first;Then according to the light Intensity determines the color value of each color in three kinds of colors of RGB according to preset rules;Finally according to each color Color value, the brightness value after determining three kinds of color mixing of the RGB, and the adjusting of the background color of the electronic equipment is arrived The brightness value.Since three kinds of colors of RGB take random number to obtain secondary colour, the model of the brightness value of secondary colour after mixing It encloses that value is bigger, therefore extends the adjustable range of screen color.
Referring to FIG. 3, Fig. 3 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention proposes.As shown, should Electronic equipment may include: at least one processor 301, such as CPU, at least one communication interface 302, at least one processor 303, at least one bus 304.Wherein, bus 304 is 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 including antenna assembly, For carrying out the communication of signaling or data with other node devices.Memory 303 can be high speed RAM memory, be also possible to Non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.Memory 303 is optional It can also be that at least one is located remotely from the storage device of aforementioned processor 301.Batch processing code is stored in memory 303, And processor 301 is used to call the program code stored in memory, for performing the following operations:
Obtain the light intensity of user's current environment;
According to the light intensity, the color value of each color in three kinds of colors of RGB is determined according to preset rules;
According to the color value of each color, brightness value after determining three kinds of color mixing of the RGB, and by institute The background color for stating electronic equipment is adjusted to the brightness value.
Wherein, processor 301 is also used to perform the following operations step:
By the light intensity divided by preset maximum light intensity, strength factor is calculated;
According to the strength factor, color value section belonging to each color is determined;
Take random number as the color value of each color from color value section belonging to each color.
Wherein, processor 301 is also used to perform the following operations step:
It calculates preset maximum color value and obtains the first numerical value multiplied by the product of the strength factor;
Judge whether the strength factor is greater than preset threshold;
According to judging result and first numerical value, color value section belonging to each color is determined.
Wherein, processor 301 is also used to perform the following operations step:
When the strength factor is not more than the preset threshold, using first numerical value as three kinds of face of the RGB The maximum value in color value section belonging to red in color, using first numerical value as institute blue in three kinds of colors of the RGB The minimum value in the color value section of category;
When the strength factor is greater than the preset threshold, using first numerical value as three kinds of colors of the RGB The minimum value in color value section belonging to middle red, using first numerical value as belonging to blue in three kinds of colors of the RGB Color value section maximum value.
Wherein, processor 301 is also used to perform the following operations step:
It calculates the product in three kinds of colors of the RGB between the color value of each color and obtains second value, and by institute Second value is stated as the brightness value after three kinds of color mixing 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 for storing Application program, the application program for executing a kind of screen color adjusting method shown in FIG. 1 at runtime.
It should be noted that the embodiment of the present invention also provides a kind of application program simultaneously, the application program is for transporting It is executed when row and receives the operation that electronic equipment executes in a kind of screen color adjusting method shown in FIG. 1.
It should be noted that for simple description, therefore, it is stated as a systems for each embodiment of the method above-mentioned The combination of actions of column, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, because For according to the present invention, certain some step can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily this hair Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in some embodiment Part, reference can be made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: flash disk, read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English Text: Random Access Memory, referred to as: RAM), disk or CD etc..
It is provided for the embodiments of the invention content download method above and relevant device, system are described in detail, Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification 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 spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for 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, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), 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 on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (9)

1. a kind of screen color adjusting method, which is characterized in that the method is applied to electronic equipment, which comprises
Obtain the light intensity of user's current environment;
According to the light intensity, the color value of each color in three kinds of colors of RGB is determined according to preset rules, comprising: will Strength factor is calculated divided by preset maximum light intensity in the light intensity;According to the strength factor, determine described in Color value section belonging to each color;Take random number as every kind described from color value section belonging to each color The color value of color;
According to the color value of each color, brightness value after determining three kinds of color mixing of the RGB, and by the electricity The background color of sub- equipment is adjusted to the brightness value.
2. the method as described in claim 1, which is characterized in that it is described according to the strength factor, determine each color Affiliated color value section includes:
It calculates preset maximum color value and obtains the first numerical value multiplied by the product of the strength factor;
Judge whether the strength factor is greater than preset threshold;
According to judging result and first numerical value, color value section belonging to each color is determined.
3. method according to claim 2, which is characterized in that it is described according to judging result and first numerical value, determine institute Stating color value section belonging to each color includes:
When the strength factor is not more than the preset threshold, using first numerical value as in three kinds of colors of the RGB The maximum value in color value section belonging to red, using first numerical value as belonging to blue in three kinds of colors of the RGB The minimum value in color value section;
When the strength factor is greater than the preset threshold, using first numerical value as red in three kinds of colors of the RGB The minimum value in color value section belonging to color, using first numerical value as face belonging to blue in three kinds of colors of the RGB The maximum value in color value section.
4. method as claimed in any one of claims 1-3, which is characterized in that the color according to each color Value, the brightness value after determining three kinds of color mixing of the RGB include:
It calculates the product in three kinds of colors of the RGB between the color value of each color and obtains second value, and by described Two numerical value are as the brightness value after three kinds of color mixing of the RGB.
5. a kind of screen color regulating device, which is characterized in that described device includes:
Data obtaining module, for obtaining the light intensity of user's current environment;
Color determination module, for determining every kind of face in three kinds of colors of RGB according to preset rules according to the light intensity The color value of color, comprising: by the light intensity divided by preset maximum light intensity, strength factor is calculated;According to institute Strength factor is stated, determines color value section belonging to each color;From color value section belonging to each color Take random number as the color value of each color;
Color adaptation module, for the color value according to each color, after determining three kinds of color mixing of the RGB Brightness value, and the background color of electronic equipment is adjusted to the brightness value.
6. device as claimed in claim 5, which is characterized in that the color determination module is specifically used for:
It calculates preset maximum color value and obtains the first numerical value multiplied by the product of the strength factor;
Judge whether the strength factor is greater than preset threshold;
According to judging result and first numerical value, color value section belonging to each color is determined.
7. device as claimed in claim 6, which is characterized in that the color determination module is specifically used for:
When the strength factor is not more than the preset threshold, using first numerical value as in three kinds of colors of the RGB The maximum value in color value section belonging to red, using first numerical value as belonging to blue in three kinds of colors of the RGB The minimum value in color value section;
When the strength factor is greater than the preset threshold, using first numerical value as red in three kinds of colors of the RGB The minimum value in color value section belonging to color, using first numerical value as face belonging to blue in three kinds of colors of the RGB The maximum value in color value section.
8. the device as described in claim 5-7 any one, which is characterized in that the color adaptation module is specifically used for:
It calculates the product in three kinds of colors of the RGB between the color value of each color and obtains second value, and by described Two numerical value are as the brightness value after three kinds of color mixing of the RGB.
9. a kind of electronic equipment characterized by comprising processor, memory, communication interface and bus;
The processor, the memory are connected by the bus with the communication interface and complete mutual communication;
The memory stores executable program code;
The processor is run and the executable program by reading the executable program code stored in the memory The corresponding program of code, to be used for:
Obtain the light intensity of user's current environment;
According to the light intensity, the color value of each color in three kinds of colors of RGB is determined according to preset rules, comprising: will Strength factor is calculated divided by preset maximum light intensity in the light intensity;According to the strength factor, determine described in Color value section belonging to each color;Take random number as every kind described from color value section belonging to each color The color value of color;
According to the color value of each color, brightness value after determining three kinds of color mixing of the RGB, and by the electricity The background color of sub- equipment is adjusted to the brightness value.
CN201610881161.5A 2016-10-09 2016-10-09 Screen color adjusting method and device and electronic equipment Active CN106504723B (en)

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 CN106504723A (en) 2017-03-15
CN106504723B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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 (5)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2491538A (en) * 2010-03-09 2012-12-05 Hdt Inc Color display device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN106504723A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN104076928B (en) A kind of method for adjusting text importing image
CN106969507B (en) Electric heater bathing temperature intelligent control method and device
CN105957125B (en) A kind of processing method and mobile terminal of icon text
US20160246475A1 (en) Dynamic icon recoloring to improve contrast
CN108320312B (en) Image color matching method and device and computer terminal
CN105117464B (en) Application pushing method and device and service equipment
CN108376539A (en) A kind of color compensation method and equipment of image
CN107045416A (en) Color temperature adjusting method, device and display device
CN104268152B (en) A kind of webpage exhibiting method and device
CN105955754B (en) A kind of user interface character displaying method and device
CN108762939A (en) A kind of PCIe port resource allocation methods, system and equipment and storage medium
CN108564526A (en) Image processing method and device, electronic equipment and medium
CN107945754A (en) Adjusting method, electronic equipment and the computer-readable recording medium of screen intensity
CN107342066A (en) Screen luminance adjustment method, device and its equipment
CN107247537A (en) The processing method and relevant device of a kind of image information
CN106504723B (en) Screen color adjusting method and device and electronic equipment
CN108052650A (en) Information recommendation method, device and electronic equipment
US20090157609A1 (en) Analyzing images to derive supplemental web page layout characteristics
CN110444181A (en) Display methods, device, terminal and computer readable storage medium
CN109325497A (en) A kind of image binaryzation method, device, electronic equipment and storage medium
CN109215613A (en) A kind of method, apparatus, electronic equipment and storage medium reducing blue light strength
CN107977549A (en) A kind of skin care matching process and terminal based on multigroup of skin
CN108596999A (en) Filling graph method, apparatus, storage medium, processor and terminal
CN106648338B (en) Method and device for editing data
CN106934958A (en) The method to set up and device of POS printing

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