Color Temperature Optimization Method, Device, Terminal Device and Storage Medium
By determining the space to be optimized for the color temperature dimmable light source, fitting the function of the brightness adjustment parameters and calculating the inverse function, the color temperature error and fluctuation problems of the color temperature dimmable light source under constant voltage driving are solved, and the stable optimization of the light output effect of the light source is achieved.
Patent Information
- Application Number
- CN202011573023.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-24
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2040-12-24
AI Technical Summary
The color temperature dimmable light source driven by constant voltage has a large color temperature error at low brightness levels, and the color temperature fluctuates significantly at high brightness levels, making the color temperature curve unable to stabilize.
By determining the space to be optimized for the color temperature adjustable light source, fit the light source brightness function represented by the brightness adjustment parameters, calculate the inverse function of the light source brightness, and calculate the optimized brightness adjustment parameters based on the inverse function, and store and output to control the light source emission.
The optimized light source light output effect is close to the ideal curve, which improves the color temperature error at low brightness and the color temperature fluctuations at high brightness, and achieves stable optimization of color temperature.
Smart Images

Figure CN112612992B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of color temperature adjustable light sources, and particularly relates to a color temperature optimization method, device, terminal device and storage medium. Background Art
[0002] Compared with traditional light sources, LED light sources have the characteristics of high luminous efficiency, long lifespan, low energy consumption and good stability, and have become the preferred light sources for many application scenarios (such as machine vision systems). An important characteristic of LED light sources is the narrowband nature of their emission spectra. By mixing different colored LED lights, the emission spectrum can be changed, thereby changing the overall color temperature, color and brightness of the mixed light source to achieve different lighting functions. Color temperature adjustable light sources adopt constant voltage drive, and currently most of them use the RGBW four-color LED mixing scheme or the cold white (positive white) and warm white LED mixing scheme.
[0003] Adopting the mixing scheme of cold white and warm white color temperature LEDs can obtain synthetic light with accurate color temperature, and the color temperature basically does not fluctuate when adjusting the output brightness. However, this dimming method has a narrow adjustable color temperature range and can only achieve synthetic light on the connection line of the two lamp color coordinates. At the same time, it deviates from the blackbody locus line and cannot simulate the effect of sunlight well. The RGBW four-color LED mixing scheme can adjust the mixing ratio through algorithms, thereby achieving a wide range of color temperature changes, a wide dimming range and a high color rendering index.
[0004] Due to the use of constant voltage drive, the actual light output effect will be affected by the luminous characteristics of the lamp beads and controller components, etc., resulting in a large error in the corresponding color temperature at low brightness levels and obvious fluctuations in the corresponding color temperature at high brightness levels. Therefore, it is necessary to introduce a compensation algorithm to optimize the light output effect of the lamp beads, so that the curve of the light output effect is close to the ideal curve, thereby stabilizing the color temperature curve. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a color temperature optimization method, device, terminal device and storage medium to solve the problem that the color temperature adjustable light source driven by constant voltage has a large error in the corresponding color temperature at low brightness levels and obvious fluctuations in the corresponding color temperature at high brightness levels.
[0006] The first aspect of the embodiments of the present invention provides a color temperature optimization method for optimizing the color temperature of a color temperature adjustable light source, and the method includes:
[0007] Determine the space to be optimized of the color temperature adjustable light source;
[0008] Fit a function of the light source brightness represented by a brightness adjustment parameter in the space to be optimized;
[0009] Calculate the inverse function of the function of the light source brightness;
[0010] Calculate the optimized brightness adjustment parameter according to the inverse function;
[0011] 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.
[0012] The second aspect of the embodiments of the present invention provides a color temperature optimization device for optimizing the color temperature of a color temperature adjustable light source. The device includes:
[0013] A determination unit for determining the space to be optimized of the color temperature adjustable light source;
[0014] A function fitting unit for fitting a function of the light source brightness represented by the brightness adjustment parameter in the space to be optimized;
[0015] An inverse function calculation unit for calculating the inverse function of the function of the light source brightness;
[0016] A parameter calculation unit for calculating the optimized brightness adjustment parameter according to the inverse function;
[0017] A processing unit for storing and / or outputting the optimized brightness adjustment parameter, where the optimized brightness adjustment parameter is used to control the color temperature adjustable light source to emit light.
[0018] The 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. The processor, when executing the computer program, implements the steps of the above method.
[0019] The fourth aspect of the embodiments of the present invention provides a storage medium storing a computer program, and the computer program, when executed by a processor, implements the steps of the above method.
[0020] The beneficial effects of the embodiments of the present invention compared with the prior art are:
[0021] In this technical solution, the curve of the light output effect of the color temperature adjustable light source that emits light according to the optimized brightness adjustment parameter is close to the ideal curve, significantly improving the error of the corresponding color temperature when the brightness of the color temperature adjustable light source is low, and stabilizing the fluctuation of the corresponding color temperature when the brightness of the color temperature adjustable light source is high, realizing the optimization of the color temperature. Description of the Drawings
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0023] Figure 1 is a flowchart of the first embodiment of the color temperature optimization method of the present invention;
[0024] Figure 2 is a relationship diagram of the brightness levels of the respective sub-light sources of a color temperature adjustable light source composed of RGBW four-color sub-light sources and the brightness of the light source;
[0025] Figure 3 is a flowchart of the second embodiment of the color temperature optimization method of the present invention;
[0026] Figure 4 is a curve comparison diagram of the color temperature of the color temperature adjustable light source before and after optimization with respect to the change in the brightness level;
[0027] Figure 5 is a schematic structural diagram of the first embodiment of the color temperature optimization device of the present invention;
[0028] Figure 6 is a schematic structural diagram of the second embodiment of the color temperature optimization device of the present invention;
[0029] Figure 7 is a schematic structural diagram of the first embodiment of the terminal device of the present invention. Detailed implementation manners
[0030] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. However, those skilled in the art should clearly understand that the present invention can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present invention.
[0031] To illustrate the technical solutions described in the present invention, the following will be described through specific embodiments.
[0032] The color temperature optimization method of the present invention is used to optimize the color temperature of a color temperature adjustable light source. The color temperature adjustable light source uses constant voltage drive and can be composed of at least two sub-light sources, such as being composed of a cold white and a warm white sub-light source, or being composed of an RGBW four-color sub-light source. In its embodiment, by determining the space to be optimized of the color temperature adjustable light source, then fitting a function of the light source brightness represented by the brightness adjustment parameter in the space to be optimized, calculating the inverse function of the function of the light source brightness, calculating the optimized brightness adjustment parameter according to the inverse function, storing and / or outputting the optimized brightness adjustment parameter, and the optimized brightness adjustment parameter is used to control the color temperature adjustable light source to emit light. So that the curve of the light output effect of the color temperature adjustable light source emitting light according to the optimized brightness adjustment parameter is close to the ideal curve, thereby stabilizing the color temperature curve.
[0033] Figure 1 As shown in the flowchart of the first embodiment of the color temperature optimization method of the present invention, Figure 1 the color temperature optimization method includes the following steps:
[0034] S11: Determine the space to be optimized of the color temperature adjustable light source.
[0035] In this embodiment, the space to be optimized is represented with the brightness control parameter as the abscissa and the light source brightness as the 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 a pulse. As the value of the brightness level increases, the corresponding duty cycle value also increases. It can also be said that the brightness level is the ordinal number corresponding to the duty cycle, and in the optimization calculation, it is more convenient to use the brightness level for expression and calculation. In other embodiments, the brightness control parameter can also be the duty cycle.
[0036] The color temperature adjustable light source has multiple color temperatures, and each color temperature has an adjustable brightness level from 1% to 100%. At each brightness level, each sub-light source has a different brightness level, and the value range of the brightness level 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. At the color temperature T, the current brightness level of the color temperature adjustable light source is 40%, and the corresponding brightness levels of the RGBW four sub-light sources are 300, 600, 900, and 1200 respectively. The light source controller of the LED controls the corresponding LED lights to emit light according to the duty cycle corresponding to the brightness level.
[0037] The following will take the color temperature adjustable light source composed of RGBW four-color sub-light sources as an example to make a detailed explanation of the solution of the present invention. Those skilled in the art can understand that the technical solution of the present invention is also applicable to other color mixing schemes, such as the cold white and warm white color mixing scheme, etc. There are red, green, blue, and white four kinds of lamp beads on the LED lamp board. Under the condition of constant temperature, the relationship between the brightness level (x-axis) and the light source brightness nit (y-axis) of each sub-light source is as Figure 2 shown.Figure 2 Among them, curve G is the relationship curve between the light source brightness and the brightness level of the green sub-light source, curve W is the relationship curve between the light source brightness and the brightness level of the white sub-light source, curve R is the relationship curve between the light source brightness and the brightness level of the red sub-light source, and curve B is the relationship curve between the light source brightness and the brightness level of the blue sub-light source.
[0038] From Figure 2 It can be seen that the slopes of the four curves gradually increase, indicating that as the brightness level increases, the corresponding light source brightness does not increase uniformly. At the same time, for sub-light sources of different colors, the amplitude of the increase in light source brightness with the increase in brightness level is also different. Therefore, it is necessary to establish four different function models to optimize the output respectively.
[0039] The following will take the green sub-light source as an example, and the situations of other sub-light sources can be inferred by analogy. Refer to Figure 2 , the original brightness level of the green sub-light source is a total of 2000 levels, and [0, X low is the interval where the brightness level and the light source brightness satisfy a linear relationship, and [X up , 2000] is the interval where the brightness level and the light source brightness satisfy a steep increase relationship.
[0040] In step S11 of this embodiment, specifically, the space other than the linear relationship and the steep increase relationship between the brightness level and the light source brightness is determined as the space to be optimized, that is, [X low , X up and the corresponding [Y low , Y up constitute the space to be optimized (the values of the endpoints do not affect the optimization calculation, and the endpoints can be taken or not taken).
[0041] S12: Fit a function of the light source brightness represented by the brightness adjustment parameter in the space to be optimized.
[0042] In step S12 of this embodiment, in the space to be optimized, a function y = f(x) of the light source brightness y represented by the brightness level x is fitted by using a mathematical tool, and the fitting result is a cubic equation of one variable.
[0043] S13: Calculate the inverse function of the function of the light source brightness.
[0044] In step S13 of this embodiment, the inverse function x = f -1 (y) of the function y = f(x) of the light source brightness is calculated by using a mathematical tool, and the obtained inverse function is the function of the optimized brightness level.
[0045] S14: Calculate the optimized brightness adjustment parameter according to the inverse function.
[0046] In step S14 of this embodiment, substituting the value of the light source brightness in the space to be optimized into the inverse function can obtain the optimized brightness level.
[0047] S15: Store and / or output the optimized brightness adjustment parameters, and the optimized brightness adjustment parameters are used to control the color temperature adjustable light source to emit light.
[0048] In step S15 of this embodiment, the calculated optimized brightness adjustment parameters can be stored in various forms, such as in the form of a table, for subsequent light emission control of the sub-light sources.
[0049] And / or, output the calculated optimized brightness level to the LED controller, so that the LED controller controls the sub-light source to emit light according to the duty cycle corresponding to the optimized brightness level, thereby optimizing the light output 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 can also be directly output to the LED controller out The corresponding duty cycle.
[0050] Figure 3 is a flowchart of the second embodiment of the color temperature optimization method of the present invention, as Figure 2 shown, the color temperature optimization method includes the following steps:
[0051] S31: Determine the space to be optimized of the color temperature adjustable light source;
[0052] S32: Map the original brightness adjustment parameters and the original light source brightness of the color temperature adjustable light source to the space to be optimized;
[0053] S33: Fit a function of the light source brightness represented by the brightness adjustment parameters in the space to be optimized;
[0054] S34: Calculate the inverse function of the function of the light source brightness;
[0055] S35: Calculate the optimized brightness adjustment parameters according to the inverse function;
[0056] S36: Store and / or output the optimized brightness adjustment parameters, and the optimized brightness adjustment parameters are used to control the color temperature adjustable light source to emit light.
[0057] Step S31 of this embodiment corresponds to and is the same as step S11 of the first embodiment of the method of the present invention, and will not be elaborated here.
[0058] The following will take a color temperature adjustable light source composed of RGBW four-color sub-light sources as an example to make a detailed explanation of the solution of the present invention. Those skilled in the art can understand that the technical solution of the present invention is also applicable to other color mixing schemes, such as cold white and warm white color mixing schemes, etc.
[0059] In step S32 of this embodiment, the data in the space to be optimized needs to be optimized. Therefore, mapping the original brightness level and the original light source brightness into the space to be optimized can simplify the optimization calculation. Specifically, a new coordinate system is established in the space to be optimized. The new coordinate system takes (X low , Y low ) as the origin, with the brightness level as the X-axis and the light source brightness as the Y-axis.
[0060] In the new coordinate system (i.e., in the space to be optimized), the maximum value of the brightness level is X up -X low . Since the proportion of the brightness level X in ’ in the space to be optimized to the maximum value of the brightness level is the same as the proportion of the original brightness level X in to the maximum value of the brightness level of 2000. Therefore, the expression for the brightness level X in ’ in the space to be optimized is obtained:
[0061] X in ’ = (X up -X low ) * X in / 2000
[0062] where X in represents the original brightness level.
[0063] For example, given that X up = 1800, X low = 200, and the original brightness level X in is 1500, then the proportion of the original brightness level to the maximum value is 1500 / 2000 = 3 / 4. According to the above formula, the brightness level X in mapped to the space to be optimized is calculated as X in ’ = (1800 - 200) * 3 / 4 = 1200, that is, the original brightness level 1500 is 1200 in the new coordinate system.
[0064] Similarly, the expression for the light source brightness Y in mapped to the light source brightness Y in ’ in the space to be optimized is:
[0065] Y in ’ = (Y up -Y low ) * Y in / Y max .
[0066] Among them, Ymax is the value of the light source brightness corresponding to the maximum value 2000 of the brightness level. Since different LED lights may have different values of the light source brightness corresponding to the maximum value 2000 of the brightness level.
[0067] S33: Fit a function of the light source brightness expressed by the brightness adjustment parameter in the space to be optimized.
[0068] In step S23 of this embodiment, a function of the light source brightness y expressed by the brightness level x in the space to be optimized is fitted using a mathematical tool as y = f(x), and the fitting result is a cubic equation, that is:
[0069] Y in ’ = aX in ’ 3 + bX in ’ 2 + cX in ’ + d, where a, b, c, and d are the coefficients of the function.
[0070] S34: Calculate the inverse function of the function of the light source brightness.
[0071] In step S24 of this embodiment, the inverse function of the function of the light source brightness y = f(x) is calculated using a mathematical tool, so as to obtain the optimized brightness level X out ’ of the new coordinate: X out ’ = f -1 (y), that is:
[0072] X out ’ = {f -1 (Y in ’), X in ’ > X low}.
[0073] S35: Calculate the optimized brightness adjustment parameter according to the inverse function.
[0074] In step S25 of this embodiment, the calculated X in ’ and Y max and the known Y up and Y low are substituted into the function of x out , and the optimized brightness level X out ’ in the new coordinate system can be calculated. Then, the optimized brightness level X out ’ in the new coordinate system is mapped back to the original coordinate system, and the optimized brightness level X out for controlling the light emission of the light source can be obtained, that is, X out = X out ’ + X low ’, where X low ’ is Xlow The value after mapping to the new coordinate system is obtained by substituting the known value of X low into X in ’=(X up -X low )*X in / 2000 for calculation.
[0075] S36: Store and / or output the optimized brightness adjustment parameter, where the optimized brightness adjustment parameter is used to control the emission of the color temperature adjustable light source.
[0076] In step S36 of this embodiment, the calculated optimized brightness level X out can be stored in various forms, such as in the form of a table, for subsequent emission control of the sub-light sources.
[0077] And / or, output the calculated optimized brightness level X out to the LED controller, so that the LED controller controls the emission of the sub-light source according to the duty cycle corresponding to the optimized brightness level X out , thereby optimizing the light output effect of the sub-light source, and further stabilizing the color temperature of the color temperature adjustable light source. In other embodiments, the duty cycle corresponding to the optimized brightness level X out can also be directly output to the LED controller.
[0078] Figure 4 shows a curve comparison of the color temperature of the color temperature adjustable light source before and after optimization with respect to the brightness level of the light source, where the solid line is the curve before optimization and the dashed line is the curve after optimization. As Figure 4 shown, after optimization, the error of the color temperature of the color temperature adjustable light source at low brightness levels (such as below 20%) has been significantly improved, and at high brightness levels (such as above 80%), the color temperature also tends to be stable.
[0079] In the second embodiment of the color temperature optimization method of the present invention, the optimized brightness levels of the respective color sub-light sources are calculated according to the above method, and the emission of the corresponding color sub-light sources is controlled according to the optimized brightness levels, so that the curve of the light output effect of the color temperature adjustable light source composed of these color sub-light sources approaches the ideal curve, significantly improving the error of the corresponding color temperature of the color temperature adjustable light source at low brightness levels, and stabilizing the fluctuation of the corresponding color temperature of the color temperature adjustable light source at high brightness levels, achieving the optimization of the color temperature.
[0080] The present invention also provides a color temperature optimization device for optimizing the color temperature of a color temperature adjustable light source. Among them, the color temperature adjustable light source is driven by constant voltage and includes at least two colors of sub-light sources. Figure 5It is a functional block diagram of the first embodiment of the color temperature optimization device 500 of the present invention. Each unit / module included in the color temperature optimization device 500 is used to execute Figure 1 each step in the corresponding embodiment. For details, please refer to Figure 1 the relevant descriptions in the corresponding embodiment. As Figure 5 shown, the color temperature optimization device 500 includes:
[0081] A determination unit 510, configured to determine the space to be optimized of the color temperature adjustable light source;
[0082] 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;
[0083] An inverse function calculation unit 530, configured to calculate the inverse function of the function of the light source brightness;
[0084] A parameter calculation unit 540, configured to calculate the optimized brightness adjustment parameter according to the inverse function;
[0085] A processing unit 550, configured to store and / or output the optimized brightness adjustment parameter, and the optimized brightness adjustment parameter is used to control the color temperature adjustable light source to emit light.
[0086] Among them, the determination unit 510 includes:
[0087] A space-to-be-optimized determination module 511, configured to determine the space other than the space where the original brightness adjustment parameter and the original light source brightness satisfy a linear relationship and a steep increase relationship as the space to be optimized.
[0088] Figure 6 It is a functional block diagram of the second embodiment of the color temperature optimization device 600 of the present invention. Each unit / module included in the color temperature optimization device 600 is used to execute Figure 3 each step in the corresponding embodiment. For details, please refer to Figure 1 the relevant descriptions in the corresponding embodiment. As Figure 6 shown, the color temperature optimization device 600 includes:
[0089] A determination unit 610, configured to determine the space to be optimized of the color temperature adjustable light source;
[0090] A mapping unit 620, configured to map the original brightness adjustment parameter and the original light source brightness of the color temperature adjustable light source to the space to be optimized;
[0091] 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;
[0092] An inverse function calculation unit 640, configured to calculate the inverse function of the function of the light source brightness;
[0093] A parameter calculation unit 650, configured to calculate an optimized brightness adjustment parameter according to an inverse function;
[0094] A processing unit 660, configured to store and / or output the optimized brightness adjustment parameter, and the optimized brightness adjustment parameter is used to control the color temperature adjustable light source to emit light.
[0095] The present invention further provides a terminal device, such as Figure 7 As shown, the terminal device 100 includes: a processor 101, a memory 102, and a computer program 103 stored in the memory 102 and executable on the processor 101. When the processor 101 executes the computer program 103, the steps in the embodiments of the above color temperature optimization method are implemented. Alternatively, when the processor 101 executes the computer program 103, the functions of each unit / module in the above device embodiments are implemented.
[0096] Exemplarily, the computer program 103 may be divided into one or more units / modules, and the one or more units / modules / sub-modules are stored in the memory 102 and executed by the processor 101 to complete the present invention. The one or more units / modules / sub-modules may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 103 in the above traffic information processing device / terminal 100. For example, the computer program 103 may be divided into an acquisition module, an execution module, and a generation module (modules in the virtual device), and the specific functions of each module are as follows:
[0097] Determine the space to be optimized of the color temperature adjustable light source, where the space to be optimized is represented with the brightness level as the abscissa and the light source brightness as the ordinate; map the original brightness level and the original light source brightness of the color temperature adjustable light source to the space to be optimized; calculate the optimized brightness level according to the functional relationship between the brightness level and the light source brightness in the space to be optimized; output the optimized brightness level to control the color temperature adjustable light source to emit light.
[0098] The terminal device 100 may be a desktop computer, such as a host computer. After obtaining X out , through a serial port or a network port, the computer program on the host computer sends the instruction and X out to the LED controller according to the communication protocol, and the LED controller switches the brightness of the corresponding LED lamp to the brightness corresponding to X out . 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 and a memory 102. Those skilled in the art can understand, Figure 5This is only an example of the terminal device 100, and does not constitute a limitation on the terminal device 100. The terminal device 100 may include more or fewer components than those shown in the figure, or combine some components, or different components. For example, the terminal device 100 may further include input / output devices, network access devices, buses, etc.
[0099] The processor 101 may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may also be any conventional processor, etc.
[0100] The memory 102 may be an internal storage unit of the terminal 100, such as the hard disk or 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 equipped on the terminal 100, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 102 may also include both the internal storage unit of the terminal 100 and the external storage device. The memory 102 is used to store the computer program 103 and other programs and data required by the terminal 100. The memory 102 may also be used to temporarily store the data that has been output or will be output.
[0101] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps in any embodiment of the traffic information processing method.
[0102] Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules according to needs, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of mutual distinction and do not limit the protection scope of this application. The specific working processes of the units and modules in the above system can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.
[0103] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not described or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0104] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0105] In the embodiments provided by the present invention, it should be understood that the disclosed device / terminal device and method can be implemented in other ways. For example, the device / terminal device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.
[0106] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0107] In addition, in each embodiment of the present invention, each functional unit may be integrated into a processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0108] If the above-mentioned integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a storage medium (a computer-readable storage medium). Based on such an understanding, to implement all or part of the processes in the above-mentioned embodiment methods of the present invention, it may also be completed by instructing relevant hardware through a computer program. The computer program may be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned various method embodiments may be implemented. Among them, the computer program includes computer program code, and the computer program code 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, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disc, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0109] The above-mentioned embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for optimizing color temperature, which is used to optimize the color temperature of a color temperature adjustable light source, characterized in that, The method includes: Determine the space to be optimized for the color temperature adjustable light source; Map the original brightness adjustment parameter and the original light source brightness of the color temperature adjustable light source to the space to be optimized, and obtain the corresponding brightness adjustment parameter and light source brightness in the space to be optimized; the brightness adjustment parameter includes a duty cycle, and the expression of the corresponding brightness adjustment parameter in the space to be optimized is: X in ’ = (X up - X low ) * X in / 2000, where X in ’ represents the corresponding brightness adjustment parameter in the space to be optimized, X up is the maximum value of the brightness adjustment parameter, X low is the minimum value of the brightness adjustment parameter, X in is the original light source brightness; the expression of the light source brightness in the space to be optimized is: Y in ’ = (Y up - Y low ) * Y in / Y max , where Y in ’ is the light source brightness in the space to be optimized, Y max is the value of the light source brightness corresponding to the maximum value 2000 of the brightness level, Y up is the maximum value of the light source brightness, Y low is the minimum value of the light source brightness, Y in is the original light source brightness; Fit a function of the light source brightness represented by the brightness adjustment parameter in the space to be optimized. The function of the light source brightness represented by the brightness adjustment parameter is: Y in ’ = aX in ’ 3 + bX in ’ 2 + cX in ’ + d, where a, b, c, and d are the coefficients of the function; The inverse function of the function for calculating the brightness of the light source, and the inverse function is: X out ’ = {f-1(Y in ’), X in ’ > X low}, where X out ’ is the optimized brightness adjustment parameter output by the inverse function; Calculate the optimized brightness adjustment parameter according to the inverse function, the corresponding brightness adjustment parameter in the space to be optimized, and the light source brightness; Store and / or output the optimized brightness adjustment parameter, and the optimized brightness adjustment parameter is used to control the color temperature adjustable light source to emit light.
2. The method according to claim 1, characterized in that, The space to be optimized is represented with the brightness adjustment parameter as the abscissa and the light source brightness as the ordinate.
3. The method according to claim 1, wherein The determination of the space to be optimized for the color temperature adjustable light source includes: Determine the space other than the space where the original brightness adjustment parameter and the original light source brightness satisfy the linear relationship and the steep increase relationship as the space to be optimized.
4. The method according to claim 1, characterized in that The color temperature adjustable light source includes sub-light sources of at least two colors.
5. A color temperature adjustment device for optimizing the color temperature of a color temperature adjustable light source, characterized in that, The device includes: A determination unit for determining the space to be optimized for the color temperature adjustable light source; A mapping unit for mapping the original brightness adjustment parameter and the original light source brightness of the color temperature adjustable light source to the space to be optimized, so as to obtain the corresponding brightness adjustment parameter and light source brightness in the space to be optimized; the brightness adjustment parameter includes the duty cycle of a pulse, and the expression of the corresponding brightness adjustment parameter in the space to be optimized is: X in ’ = (X up - X low ) * X in / 2000, where X in ’ represents the corresponding brightness adjustment parameter in the space to be optimized, X up is the maximum value of the brightness adjustment parameter, X low is the minimum value of the brightness adjustment parameter, and X in is the original light source brightness; the expression of the light source brightness in the space to be optimized is: Y in ’ = (Y up - Y low ) * Y in / Y max , where Y in ’ is the light source brightness in the space to be optimized, Y max is the value of the light source brightness corresponding to the maximum value 2000 of the brightness level, Y up is the maximum value of the light source brightness, Y low is the minimum value of the light source brightness, and Y in is the original light source brightness; A function fitting unit for fitting a function of the light source brightness represented by the brightness adjustment parameter in the space to be optimized, wherein the function of the light source brightness represented by the brightness adjustment parameter is: Y in ’ = aX in ’ 3 + bX in ’ 2 + cX in ’ + d, where a, b, c, and d are the coefficients of the function; An inverse function calculation unit for calculating the inverse function of the function of the light source brightness, where the inverse function is: X out ’ = {f-1(Y in ’), X in ’ > X low}, where X out ’ is the optimized brightness adjustment parameter output by the inverse function; A parameter calculation unit for calculating the optimized brightness adjustment parameter according to the inverse function, the corresponding brightness adjustment parameter in the space to be optimized, and the light source brightness; A processing unit for storing and / or outputting the optimized brightness adjustment parameter, and the optimized brightness adjustment parameter is used to control the color temperature adjustable light source to emit light.
6. The device according to claim 5, characterized in that, The space to be optimized is represented with the brightness adjustment parameter as the abscissa and the light source brightness as the ordinate.
7. The device according to claim 5, characterized in that, The determination unit includes: A space-to-be-optimized determination module for determining the space other than the space where the original brightness adjustment parameter and the original light source brightness satisfy the linear relationship and the steep increase relationship as the space to be optimized; The color temperature adjustable light source includes sub-light sources of at least two colors.
8. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
9. A storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 4 are implemented.