CN112612992A - Color temperature optimization method and device, terminal equipment and storage medium - Google Patents
Color temperature optimization method and device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN112612992A CN112612992A CN202011573023.3A CN202011573023A CN112612992A CN 112612992 A CN112612992 A CN 112612992A CN 202011573023 A CN202011573023 A CN 202011573023A CN 112612992 A CN112612992 A CN 112612992A
- Authority
- CN
- China
- Prior art keywords
- light source
- color temperature
- brightness
- optimized
- space
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000005457 optimization Methods 0.000 title claims abstract description 36
- 230000006870 function Effects 0.000 claims description 57
- 238000004590 computer program Methods 0.000 claims description 22
- 238000013507 mapping Methods 0.000 claims description 10
- 238000004364 calculation method Methods 0.000 claims description 9
- 239000003086 colorant Substances 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 7
- 230000000694 effects Effects 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 5
- 239000011324 bead Substances 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 3
- 230000010365 information processing Effects 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000000087 stabilizing effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/20—Controlling the colour of the light
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Computational Mathematics (AREA)
- Pure & Applied Mathematics (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Algebra (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention is suitable for the technical field of color temperature adjustable light sources, and provides a color temperature optimization method, a color temperature optimization device, terminal equipment and a storage medium, wherein the method comprises the following steps: determining a space to be optimized of the color temperature adjustable light source; fitting a function of the brightness of the light source represented by the brightness adjusting parameter in a space to be optimized; calculating an inverse function of the light source brightness; calculating the optimized brightness adjusting parameter according to the inverse function; and storing and/or outputting the optimized brightness adjusting parameters, wherein the optimized brightness adjusting parameters are used for controlling the light emission of the color temperature adjustable light source. In the technical scheme, the curve of the light emitting effect of the color temperature adjustable light source emitting light according to the optimized brightness adjusting parameter is close to an ideal curve, so that the error of the corresponding color temperature of the color temperature adjustable light source when the brightness is low is obviously improved, the fluctuation of the corresponding color temperature of the color temperature adjustable light source when the brightness is high is stabilized, and the optimization of the color temperature is realized.
Description
Technical Field
The invention belongs to the technical field of color temperature adjustable light sources, and particularly relates to a color temperature optimization method and device, terminal equipment and a storage medium.
Background
Compared with the traditional light source, the LED light source has the characteristics of high luminous efficiency, long service life, low energy consumption, good stability and the like, and becomes the preferred light source for a plurality of application scenes (such as a machine vision system). The LED light source has the important characteristic that the light spectrum of the LED light source is narrow-band, and the light spectrum can be changed by mixing the LED lamps with different colors, so that the integral color temperature, color and brightness of the mixed light source are changed, and different lighting functions are realized. The color temperature adjustable light source adopts constant voltage drive, and most of the prior art adopts RGBW four-color LED mixed light scheme or cold white (positive white) and warm white LED mixed light scheme.
By adopting the scheme of mixing cold white and warm white LEDs, the synthesized light with accurate color temperature can be obtained, and the color temperature basically does not float when the output brightness is adjusted. However, the color temperature adjustable range of the dimming mode is narrow, and the effect of simulating sunlight cannot be well realized only by realizing synthetic light on the connection line of the color coordinates of two lamps and deviating from the black body trajectory line. The RGBW four-color LED light mixing scheme can adjust the mixing proportion through an algorithm, thereby realizing the change of wide color temperature, wide dimming range and high color rendering index.
Due to the fact that constant voltage driving is adopted, the actual light emitting effect can be affected by the light emitting characteristics of the lamp beads, the controller components and the like, the error of the corresponding color temperature of the light source is large when the light source is in a low brightness level, and the fluctuation of the corresponding color temperature is obvious when the light source is in a high brightness level. Therefore, a compensation algorithm needs to be introduced to optimize the light-emitting effect of the lamp bead, so that the output of the curve of the light-emitting effect is close to an ideal curve, and the color temperature curve is stabilized.
Disclosure of Invention
In view of this, embodiments of the present invention provide a color temperature optimization method, an apparatus, a terminal device, and a storage medium, so as to solve the problems that an error of a corresponding color temperature of a constant-voltage-driven color temperature tunable light source is large at a low luminance level, and a fluctuation of the corresponding color temperature is significant at a high luminance level.
A first aspect of an embodiment of the present invention provides a color temperature optimization method for optimizing a color temperature of a color temperature tunable light source, where the method includes:
determining a space to be optimized of the color temperature adjustable light source;
fitting a function of the brightness of the light source represented by the brightness adjusting parameter in the space to be optimized;
calculating an inverse function of the light source brightness;
calculating an optimized brightness adjusting parameter according to the inverse function;
and storing and/or outputting the optimized brightness adjusting parameter, wherein the optimized brightness adjusting parameter is used for controlling the light emission of the color temperature adjustable light source.
A second aspect of an embodiment of the present invention provides a color temperature optimization apparatus for optimizing a color temperature of a color temperature tunable light source, the apparatus including:
the determining unit is used for determining a space to be optimized of the color temperature adjustable light source;
the function fitting unit is used for fitting a function of the light source brightness represented by the brightness adjusting parameter in the space to be optimized;
an inverse function calculation unit for calculating an inverse function of the light source luminance;
the parameter calculation unit is used for calculating the optimized brightness adjustment parameter according to the inverse function;
and the processing unit is used for storing and/or outputting the optimized brightness adjusting parameter, and the optimized brightness adjusting parameter is used for controlling the light emission of the color temperature adjustable light source.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method when executing the computer program.
A fourth aspect of embodiments of the present invention provides a storage medium storing a computer program which, when executed by a processor, performs the steps of the method as described above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the technical scheme, the curve of the light emitting effect of the color temperature adjustable light source emitting light according to the optimized brightness adjusting parameter is close to an ideal curve, so that the error of the corresponding color temperature of the color temperature adjustable light source when the brightness is low is obviously improved, the fluctuation of the corresponding color temperature of the color temperature adjustable light source when the brightness is high is stabilized, and the optimization of the color temperature is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart of a first embodiment of a color temperature optimization method of the present invention;
FIG. 2 is a graph of luminance levels of sub-light sources of respective colors of a color temperature tunable light source composed of sub-light sources of RGBW four colors;
FIG. 3 is a flow chart of a second embodiment of the color temperature optimization method of the present invention;
FIG. 4 is a graph comparing the color temperature of a color temperature tunable light source before and after optimization with the variation of brightness level;
FIG. 5 is a schematic structural diagram of a first embodiment of the color temperature optimization apparatus according to the present invention;
FIG. 6 is a schematic structural diagram of a second embodiment of the color temperature optimization apparatus according to the present invention;
fig. 7 is a schematic structural diagram of a first embodiment of the terminal device of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
The color temperature optimization method of the invention is used for optimizing the color temperature of a color temperature adjustable light source, the color temperature adjustable light source uses constant voltage drive, and the color temperature adjustable light source can be composed of at least two sub light sources, such as a cold white sub light source and a warm white sub light source, and also such as RGBW four-color sub light sources. In the embodiment of the method, the space to be optimized of the color temperature adjustable light source is determined, then the function of the light source brightness represented by the brightness adjusting parameter is fitted in the space to be optimized, the inverse function of the light source brightness is calculated, the optimized brightness adjusting parameter is calculated according to the inverse function, the optimized brightness adjusting parameter is stored and/or output, and the optimized brightness adjusting parameter is used for controlling the light emission of the color temperature adjustable light source. The curve of the light emitting effect of the color temperature adjustable light source emitting light according to the optimized brightness adjusting parameter is close to an ideal curve, and therefore the color temperature curve is stabilized.
Fig. 1 is a flowchart of a first embodiment of a color temperature optimization method of the present invention, as shown in fig. 1, the color temperature optimization method includes the following steps:
s11: and determining a space to be optimized of the color temperature adjustable light source.
In this embodiment, the space to be optimized is represented by using the luminance control parameter as an abscissa and using the luminance of the light source as an ordinate. The brightness control parameter is the brightness level, and the value range of the brightness level is 0-2000. Each brightness level corresponds to the duty cycle of one pulse. As the value of the brightness level increases, the value of the duty ratio corresponding thereto also increases. The brightness level is an ordinal number corresponding to the duty ratio, and the brightness level is used for more convenient expression and calculation in the optimization calculation. In other embodiments, the brightness control parameter may also be a duty cycle.
The color temperature adjustable light source has multiple color temperature ranges, each color temperature range has 1-100% adjustable brightness level, each color sub-light source has different brightness levels under each brightness level, and the brightness level range of each color sub-light source is 0-2000. For example, the color temperature adjustable light source is composed of RGBW four-color sub-light sources, a current brightness level of the color temperature adjustable light source at the color temperature T is 40%, brightness levels corresponding to the RGBW four sub-light sources are 300, 600, 900 and 1200 respectively, and the light source controller of the LED controls the corresponding LED lamp to emit light according to the duty ratio corresponding to the brightness levels.
The following is a detailed explanation of the solution of the present invention by taking a color temperature tunable light source composed of RGBW four-color sub-light sources as an example, and those skilled in the art will understand that the solution of the present invention is also applicable to other color mixing solutions, such as cool-white and warm-white color mixing solutions. The LED lamp panel has four kinds of beads, namely red, green, blue and white beads, and under the condition of constant temperature, the relationship between the brightness level (x axis) of each sub-light source and the brightness nit (y axis) of the light source is shown in fig. 2, a curve G is a relationship curve between the brightness level and the light source brightness of the green sub-light source, a curve W is a relationship curve between the brightness level and the light source brightness of the white sub-light source, a curve R is a relationship curve between the brightness level and the light source brightness of the red sub-light source, and a curve B is a relationship curve between the brightness level and the light source brightness of the blue sub-light source.
As can be seen from fig. 2, the slopes of the four curves gradually increase, indicating that as the brightness level increases, the corresponding light source brightness does not increase uniformly. Meanwhile, the sub-light sources with different colors have different light source brightness rising amplitudes along with the improvement of the brightness level, so that four different function models need to be established to optimize the output respectively.
In the following, the green sub-light source will be taken as an example, and the other sub-light sources will be analogized. Referring to FIG. 2, the original brightness levels of the green sub-light sources are 2000 levels, [0, X ]low]The interval in which the brightness level and the brightness of the light source satisfy a linear relationship, [ X ]up,2000]The brightness level and the brightness of the light source satisfy the interval of the steep increasing relation.
In step S11 of the present embodiment, specifically, a space other than the space where the luminance level and the light source luminance satisfy the linear relationship and the steep increase relationship is determined as the space to be optimized, that is, [ Xlow,Xup]And corresponding [ Ylow,Yup]The formed space is determined as the space to be optimized (the value of the endpoint does not influence the optimization calculation, and the endpoint can be taken or not taken).
S12: a function of the brightness of the light source, expressed in terms of a brightness adjustment parameter, is fitted in the space to be optimized.
In step S12 of the present embodiment, a function y of the luminance y of the light source expressed by the luminance level x is fitted with a mathematical tool as f (x) in the space to be optimized, and the fitting result is a one-dimensional cubic equation.
S13: an inverse function of the brightness of the light source is calculated.
In step S13 of the present embodiment, the inverse function x ═ f of the function y ═ f (x) of the luminance of the light source is calculated by a mathematical tool-1And (y) the obtained inverse function is the function of the optimized brightness level.
S14: and calculating the optimized brightness adjusting parameter according to the inverse function.
In step S14 of this embodiment, the optimized brightness level can be obtained by substituting the value of the light source brightness in the space to be optimized into the inverse function.
S15: and storing and/or outputting the optimized brightness adjusting parameters, wherein the optimized brightness adjusting parameters are used for controlling the light emission of the color temperature adjustable light source.
In step S15 of the present embodiment, the calculated optimized brightness adjustment parameter may be stored in various forms, for example, in a table form, for use in the light emission control of the subsequent sub-light sources.
And/or outputting the calculated optimized brightness level to an LED controller, so that the LED controller controls the sub-light source to emit light according to the duty ratio corresponding to the optimized brightness level, thereby optimizing the light emitting effect of the sub-light source and further stabilizing the color temperature of the color temperature adjustable light source. In other embodiments, the optimized brightness level X may also be directly output to the LED controlleroutThe corresponding duty cycle.
Fig. 3 is a flowchart of a color temperature optimization method according to a second embodiment of the present invention, as shown in fig. 2, the color temperature optimization method includes the following steps:
s31, determining a space to be optimized of the color temperature adjustable light source;
s32: mapping the original brightness adjusting parameters of the color temperature adjustable light source and the original light source brightness to a space to be optimized;
s33: fitting a function of the brightness of the light source represented by the brightness adjusting parameter in a space to be optimized;
s34: calculating an inverse function of the light source brightness;
s35: calculating the optimized brightness adjusting parameter according to the inverse function;
s36: and storing and/or outputting the optimized brightness adjusting parameters, wherein the optimized brightness adjusting parameters are used for controlling the light emission of the color temperature adjustable light source.
Step S31 of this embodiment is the same as step S11 of the first embodiment of the method of the present invention, and will not be described herein again.
The following is a detailed explanation of the solution of the present invention by taking a color temperature tunable light source composed of RGBW four-color sub-light sources as an example, and those skilled in the art will understand that the solution of the present invention is also applicable to other color mixing solutions, such as cool-white and warm-white color mixing solutions.
In step S32 of the present embodiment, it is the data in the space to be optimized that needs to be optimized, so the original brightness level and the original light source brightness are mapped into the space to be optimized, and the optimization calculation can be simplified. Specifically, a new coordinate system is established in the space to be optimized, the new coordinate system is expressed by (X)low,Ylow) As the origin, the brightness level is on the X-axis and the source brightness is on the Y-axis.
In the new coordinate system (i.e. in the space to be optimized), the maximum value of the brightness level is Xup-Xlow. Due to the brightness level X in the space to be optimizedin' ratio of maximum value of brightness level to original brightness level XinThe same ratio is used for the maximum value 2000 of the brightness level. Thus obtaining the brightness level X in the space to be optimizedinThe expression of `:
Xin’=(Xup-Xlow)*Xin/2000
wherein XinRepresenting the original brightness level.
For example, X is knownup=1800,Xlow200, and original brightness level Xin1500, the ratio of the original luminance level to the maximum value is 1500/2000-3/4. According to the above formula, the original brightness level X is calculatedinIntensity level X after mapping to the space to be optimizedin' (1800-.
Similarly, the original light source brightness YinLight source luminance Y mapped into a space to be optimizedinThe expression of' is:
Yin’=(Yup-Ylow)*Yin/Ymax。
where Ymax is the value of the light source luminance corresponding to the maximum value 2000 of the luminance level, and the values of the light source luminance corresponding to the maximum values 2000 of the luminance level may be different depending on the LED lamps.
S33: a function of the brightness of the light source, expressed in terms of a brightness adjustment parameter, is fitted in the space to be optimized.
In step S23 of this embodiment, a mathematical tool is used to fit a function y of the luminance y of the light source represented by the luminance level x in the space to be optimized as y ═ f (x), and the fitting result is a one-dimensional cubic equation, that is:
Yin’=aXin’3+bXin’2+cXin' + d, where a, b, c and d are coefficients of a function.
S34: an inverse function of the brightness of the light source is calculated.
In step S24 of the present embodiment, the inverse function of the function y ═ f (X) of the luminance of the light source is calculated by a mathematical tool, so as to obtain the optimized luminance level X in the new coordinatesoutThe function of' is: xout’=f-1(y) is:
Xout’={f-1(Yin’),Xin’>Xlow}。
s35: and calculating the optimized brightness adjusting parameter according to the inverse function.
In step S25 of the present embodiment, X to be calculatedin' and YmaxAnd known YupAnd YlowSubstitution of xoutCan calculate the optimized brightness level X in the new coordinate systemout'. The optimized brightness level X in the new coordinate system is then comparedout' mapping back to the original coordinate System yields an optimized luminance level X for controlling the light emission of the light sourceoutI.e. Xout=Xout’+Xlow', wherein Xlow' is XlowValues after mapping to a new coordinate system by mapping known X' slowSubstitution of value of (A) into Xin’=(Xup-Xlow)*XinCalculated as/2000.
S36: and storing and/or outputting the optimized brightness adjusting parameters, wherein the optimized brightness adjusting parameters are used for controlling the light emission of the color temperature adjustable light source.
In step S36 of the present embodiment, the calculated optimized brightness level X may be usedoutThe storage is performed in various forms, for example, in the form of a table, for light emission control of the subsequent sub-light sources.
And/or calculating the optimized brightness level XoutOutputting the LED controller so that the LED controller is in accordance with the optimized brightness level XoutThe corresponding duty ratio controls the light emission of the sub-light source, so that the light emitting effect of the sub-light source is optimized, and the color temperature of the color temperature adjustable light source is stabilized. In other embodiments, the optimized brightness level X may also be directly output to the LED controlleroutThe corresponding duty cycle.
The comparison of the curves of the color temperature tunable light source before and after optimization as a function of the brightness level of the light source is shown in fig. 4, where the solid line is the curve before optimization and the dashed line is the curve after optimization. As shown in fig. 4, after optimization, the color temperature of the color temperature adjustable light source is improved significantly when the brightness level is low (e.g. below 20%), and the color temperature is stable when the brightness level is high (e.g. above 80%).
In the second embodiment of the color temperature optimization method, the optimized brightness level of each color sub-light source is calculated according to the method, and the sub-light sources of corresponding colors are controlled to emit light according to the optimized brightness level, so that the curve of the light emitting effect of the color temperature adjustable light source consisting of the color sub-light sources is close to an ideal curve, the error of the corresponding color temperature of the color temperature adjustable light source at a low brightness level is obviously improved, the fluctuation of the corresponding color temperature of the color temperature adjustable light source at a high brightness level is stabilized, and the optimization of the color temperature is realized.
The invention also provides a color temperature optimization device which is used for optimizing the color temperature of the color temperature adjustable light source. The color temperature adjustable light source is driven by a constant voltage and comprises sub light sources of at least two colors. Fig. 5 is a functional block diagram of a first embodiment of a color temperature optimization apparatus 500 according to the present invention, where each unit/module included in the color temperature optimization apparatus 500 is used to execute each step in the embodiment corresponding to fig. 1, and please refer to the related description in the embodiment corresponding to fig. 1 specifically. As shown in fig. 5, the color temperature optimizing apparatus 500 includes:
a determining unit 510, configured to determine a space to be optimized for a color temperature adjustable light source;
a function fitting unit 520, configured to fit a function of the light source brightness represented by the brightness adjustment parameter in the space to be optimized;
an inverse function calculation unit 530 for calculating an inverse function of the light source luminance;
a parameter calculating unit 540, configured to calculate an optimized brightness adjusting parameter according to the inverse function;
and the processing unit 550 is configured to store and/or output the optimized brightness adjustment parameter, where the optimized brightness adjustment parameter is used to control the color temperature adjustable light source to emit light.
Wherein the determining unit 510 includes:
and the space to be optimized determining module 511 is configured to determine, as the space to be optimized, a space outside a linear relationship and a steep increase relationship between the original brightness adjustment parameter and the original light source brightness.
Fig. 6 is a functional block diagram of a color temperature optimization apparatus 600 according to a second embodiment of the present invention, wherein each unit/module included in the color temperature optimization apparatus 600 is used for executing each step in the embodiment corresponding to fig. 3, and please refer to the related description in the embodiment corresponding to fig. 1. As shown in fig. 6, the color temperature optimizing apparatus 600 includes:
a determining unit 610, configured to determine a space to be optimized for a color temperature adjustable light source;
a mapping unit 620, configured to map an original brightness adjustment parameter of the color temperature adjustable light source and an original brightness of the light source to a space to be optimized;
a function fitting unit 630, configured to fit a function of the light source brightness represented by the brightness adjustment parameter in the space to be optimized;
an inverse function calculating unit 640 for calculating an inverse function of the light source luminance;
a parameter calculating unit 650 for calculating the optimized brightness adjusting parameter according to the inverse function;
and the processing unit 660 is configured to store and/or output the optimized brightness adjustment parameter, where the optimized brightness adjustment parameter is used to control the color temperature adjustable light source to emit light.
The present invention also provides a terminal device, as shown in fig. 7, the terminal device 100 includes: a processor 101, a memory 102, and a computer program 103 stored in the memory 102 and operable on the processor 101. The steps in the embodiments of the color temperature optimization method described above are implemented when the processor 101 executes the computer program 103. Alternatively, the processor 101 implements the functions of the units/modules in the above-described apparatus embodiments when executing the computer program 103.
Illustratively, the computer program 103 may be partitioned into one or more units/modules, which are stored in the memory 102 and executed by the processor 101 to carry out the invention. The one or more units/modules/sub-modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 103 in the traffic information processing apparatus/terminal 100. For example, the computer program 103 may be divided into an acquisition module, an execution module, and a generation module (module in a virtual device), and the specific functions of each module are as follows:
determining a space to be optimized of the color temperature adjustable light source, wherein the space to be optimized is represented by taking the brightness level as an abscissa and the brightness of the light source as an ordinate; mapping the original brightness level of the color temperature adjustable light source and the original light source brightness to a space to be optimized; calculating the optimized brightness level according to the functional relation between the brightness level in the space to be optimized and the brightness of the light source; and outputting the optimized brightness level to control the light emission of the color temperature adjustable light source.
The terminal device 100 may be a desktop computer, such as an upper computer, which is obtaining XoutThen, through serial port or network port, computer program on upper computer can make instruction and X be transferred according to communication protocoloutSent to the LED controller, and the LED controller switches the brightness of the corresponding LED lamp to XoutThe corresponding brightness. The terminal device 100 may also be a computing device such as a notebook, a palm computer, and a cloud server. The terminal device 100 may include, but is not limited to, a processor 101, a memory 102. Those skilled in the art will appreciate that fig. 5 is merely an example of the terminal device 100 and does not constitute a limitation of the terminal device 100, that the terminal device 100 may include more or less components than those shown, or some components may be combined, or different components, for example, the terminal device 100 may further include input and output devices, network access devices, buses, etc.
The Processor 101 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 102 may be an internal storage unit of the terminal 100, such as a hard disk or a memory of the terminal 100. The memory 102 may also be an external storage device of the terminal 100, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the terminal 100. Further, the memory 102 may also include both internal storage units of the terminal 100 and external storage devices. The memory 102 is used for storing the computer program 103 and other programs and data required by the terminal 100. The memory 102 may also be used to temporarily store data that has been output or is to be output.
The invention also provides a computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of any of the embodiments of the traffic information processing method, for example.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a storage medium (computer-readable storage medium). Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (10)
1. A color temperature optimization method for optimizing a color temperature of a color temperature tunable light source, the method comprising:
determining a space to be optimized of the color temperature adjustable light source;
fitting a function of the brightness of the light source represented by the brightness adjusting parameter in the space to be optimized;
calculating an inverse function of the light source brightness;
calculating an optimized brightness adjusting parameter according to the inverse function;
and storing and/or outputting the optimized brightness adjusting parameter, wherein the optimized brightness adjusting parameter is used for controlling the light emission of the color temperature adjustable light source.
2. The method according to claim 1, wherein the space to be optimized is represented by a brightness adjustment parameter as abscissa and a light source brightness as ordinate; the method further comprises the following steps:
and mapping the original brightness adjusting parameters of the color temperature adjustable light source and the original light source brightness to the space to be optimized.
3. The method of claim 1, wherein the determining the space to be optimized for the color temperature tunable light source comprises:
and determining the space beyond the linear relation and the steep increasing relation of the original brightness adjusting parameter and the original light source brightness as the space to be optimized.
4. The method of claim 1, wherein the brightness adjustment parameter comprises a brightness level or a duty cycle.
5. The method of claim 1, wherein the color temperature tunable light source comprises at least two color sub-light sources.
6. A color temperature adjustment apparatus for optimizing a color temperature of a color temperature tunable light source, the apparatus comprising:
the determining unit is used for determining a space to be optimized of the color temperature adjustable light source;
the function fitting unit is used for fitting a function of the light source brightness represented by the brightness adjusting parameter in the space to be optimized;
an inverse function calculation unit for calculating an inverse function of the light source luminance;
the parameter calculation unit is used for calculating the optimized brightness adjustment parameter according to the inverse function;
and the processing unit is used for storing and/or outputting the optimized brightness adjusting parameter, and the optimized brightness adjusting parameter is used for controlling the light emission of the color temperature adjustable light source.
7. The apparatus of claim 6, wherein the space to be optimized is represented by a brightness adjustment parameter as abscissa and a light source brightness as ordinate; the device further comprises:
and the mapping unit is used for mapping the original brightness adjusting parameters of the color temperature adjustable light source and the original light source brightness to the space to be optimized.
8. The apparatus of claim 6, wherein the determining unit comprises:
a space to be optimized determining module, configured to determine, as the space to be optimized, a space outside a linear relationship and a steep increase relationship between the original brightness adjustment parameter and the original light source brightness;
the brightness adjusting parameter comprises a brightness level or a duty ratio;
the color temperature adjustable light source comprises sub light sources of at least two colors.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
10. A storage medium storing a computer program, characterized in that the computer program realizes the steps of the method according to any one of claims 1 to 5 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011573023.3A CN112612992A (en) | 2020-12-24 | 2020-12-24 | Color temperature optimization method and device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011573023.3A CN112612992A (en) | 2020-12-24 | 2020-12-24 | Color temperature optimization method and device, terminal equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112612992A true CN112612992A (en) | 2021-04-06 |
Family
ID=75248042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011573023.3A Pending CN112612992A (en) | 2020-12-24 | 2020-12-24 | Color temperature optimization method and device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112612992A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115315038A (en) * | 2022-10-10 | 2022-11-08 | 东莞锐视光电科技有限公司 | Method and device for adjusting color temperature and color rendering of LED device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1991956A (en) * | 2005-12-29 | 2007-07-04 | 采亦国际顾问有限公司 | Non-linear mixed color error correction method and device |
CN102332242A (en) * | 2011-04-29 | 2012-01-25 | Geo半导体有限公司 | Be used to improve the color of backlight LCD display and the system and method for brightness uniformity |
CN110163371A (en) * | 2019-05-26 | 2019-08-23 | 中国计量大学上虞高等研究院有限公司 | Sleep environment dims optimization method and lamps and lanterns regulate and control method |
CN110545600A (en) * | 2019-08-29 | 2019-12-06 | 东莞锐视光电科技有限公司 | setting system of color temperature adjustable light source device |
CN110553178A (en) * | 2019-08-30 | 2019-12-10 | 东莞锐视光电科技有限公司 | Device capable of adjusting and outputting wide color temperature and high color rendering index light |
CN210319888U (en) * | 2019-09-20 | 2020-04-14 | 东莞锐视光电科技有限公司 | Intelligent light-emitting device with adjustable color temperature |
GB202004229D0 (en) * | 2019-03-29 | 2020-05-06 | Electronic Theatre Controls Inc | Systems, devices, and methods for controlling an led light source based on a color temperatre scale factor |
CN111207826A (en) * | 2020-01-12 | 2020-05-29 | 东莞锐视光电科技有限公司 | Light source system with adjustable color temperature and illumination and adjusting method thereof |
US20200314974A1 (en) * | 2019-03-29 | 2020-10-01 | Electronic Theatre Controls, Inc. | Systems, devices, and methods for controlling an led light source based on a color temperature scale factor |
CN111833823A (en) * | 2020-08-05 | 2020-10-27 | 北京显芯科技有限公司 | Control method of backlight circuit, backlight circuit and LCD display screen |
-
2020
- 2020-12-24 CN CN202011573023.3A patent/CN112612992A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1991956A (en) * | 2005-12-29 | 2007-07-04 | 采亦国际顾问有限公司 | Non-linear mixed color error correction method and device |
CN102332242A (en) * | 2011-04-29 | 2012-01-25 | Geo半导体有限公司 | Be used to improve the color of backlight LCD display and the system and method for brightness uniformity |
GB202004229D0 (en) * | 2019-03-29 | 2020-05-06 | Electronic Theatre Controls Inc | Systems, devices, and methods for controlling an led light source based on a color temperatre scale factor |
US20200314974A1 (en) * | 2019-03-29 | 2020-10-01 | Electronic Theatre Controls, Inc. | Systems, devices, and methods for controlling an led light source based on a color temperature scale factor |
CN110163371A (en) * | 2019-05-26 | 2019-08-23 | 中国计量大学上虞高等研究院有限公司 | Sleep environment dims optimization method and lamps and lanterns regulate and control method |
CN110545600A (en) * | 2019-08-29 | 2019-12-06 | 东莞锐视光电科技有限公司 | setting system of color temperature adjustable light source device |
CN110553178A (en) * | 2019-08-30 | 2019-12-10 | 东莞锐视光电科技有限公司 | Device capable of adjusting and outputting wide color temperature and high color rendering index light |
CN210319888U (en) * | 2019-09-20 | 2020-04-14 | 东莞锐视光电科技有限公司 | Intelligent light-emitting device with adjustable color temperature |
CN111207826A (en) * | 2020-01-12 | 2020-05-29 | 东莞锐视光电科技有限公司 | Light source system with adjustable color temperature and illumination and adjusting method thereof |
CN111833823A (en) * | 2020-08-05 | 2020-10-27 | 北京显芯科技有限公司 | Control method of backlight circuit, backlight circuit and LCD display screen |
Non-Patent Citations (1)
Title |
---|
陈冬灵等: "三基色光源连续色温调控方法的研究", 计算机与现代化, no. 06, 30 June 2012 (2012-06-30), pages 179 - 182 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115315038A (en) * | 2022-10-10 | 2022-11-08 | 东莞锐视光电科技有限公司 | Method and device for adjusting color temperature and color rendering of LED device |
CN115315038B (en) * | 2022-10-10 | 2023-06-23 | 东莞锐视光电科技有限公司 | Method and device for adjusting color temperature and color rendering of LED device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11004904B2 (en) | Display apparatus and driving method of display panel | |
CN105430790B (en) | Light mixing method for LED light source and linear lighting lamp | |
US9332612B1 (en) | System and method for rapidly generating color models for LED-based lamps | |
US20120126707A1 (en) | Deterministically calculating dimming values for four or more light sources | |
JP2012506614A (en) | Color generation using multiple light source types | |
CN106297731A (en) | Strengthen the method and device of picture contrast, display screen and intelligent terminal | |
CN108495406A (en) | Mix light source color temperature adjusting method, system, storage medium and human-computer interaction terminal | |
CN105788539A (en) | Backlight adjusting method and system, backlight modules and display device | |
EP2377370A2 (en) | Method for maximizing the performance of a luminaire | |
CN114466477A (en) | Constant-current dimming method of multichannel light source, computer device and computer readable storage medium | |
CN103391412A (en) | Method and device for displaying image provided with brightness self-adaptive and adjustable light source | |
GB2457816A (en) | Colour control of backlighting system | |
CN112616225A (en) | Color light lamp illumination control method and terminal equipment | |
US20150342002A1 (en) | Color control system with variable calibration | |
CN112612992A (en) | Color temperature optimization method and device, terminal equipment and storage medium | |
US20140239841A1 (en) | Led lamp with adjustable color | |
CN114126145B (en) | Method for adjusting linear perception of color temperature of lamp and application thereof | |
CN116867138A (en) | Lighting device and brightness adjusting method thereof | |
CN109673078A (en) | A kind of color temperature adjusting method, device and white light LEDs | |
CN108282935B (en) | LED dimming method, device, equipment and storage medium | |
CN111867198B (en) | Control method of underwater lighting equipment, underwater lighting equipment and device | |
CN117395826B (en) | Multi-primary-color light mixing method and system | |
CN114828337B (en) | Control method and application of outdoor LED dyeing lamp | |
CN113766695B (en) | LED lamp brightness control method, chip and system | |
US11869407B2 (en) | Methods for compensating colors based on luminance adjustment parameters and the related display devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |