Dimming method and system, and electronic device and storage medium

By obtaining the initial color coordinates, white light ratio and color light mixed color coordinates, and calculating the PWM value in combination with the target strategy optimization model, the problem of poor brightness, color temperature or color dimming effect when the light beads are mixed with four colors and above is solved, and the optimized dimming effect of color rendering index, saturation and fidelity is achieved, improving the user experience.

WO2025180445A1PCT designated stage Publication Date: 2025-09-04SUZHOU OPPLE LIGHTING +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/079547
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-29
Filing Date
2025-02-27
Publication Date
2025-09-04

AI Technical Summary

Technical Problem

In the prior art, when the light beads of four colors and above are mixed with light, when the user intuitively adjusts the color temperature, color and brightness value of the lamp, the brightness, color temperature or color dimming effect is poor, especially the saturation or fidelity effect is poor.

Method used

A dimming method is provided, by obtaining the initial color coordinates, white light proportions and color light mixed color coordinates, combining the target strategy optimization model, calculating the PWM values ​​of each lamp bead, and dimming the four lamp beads, including the precise control of the white light and color light beads.

Benefits of technology

The lighting output of the lamp achieves the dimming effect that takes into account the color rendering index, saturation and fidelity, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025079547_04092025_PF_FP_ABST
    Figure CN2025079547_04092025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a dimming method and system, and an electronic device and a storage medium. The method comprises: acquiring initial color coordinates on the basis of dimming instruction parameters; on the basis of a target strategy optimization model and the dimming instruction parameters, acquiring a white-light proportion; on the basis of the initial color coordinates and the white-light proportion, acquiring the color coordinates of mixed light of colored light; on the basis of the color coordinates of the mixed light of the colored light, the white-light proportion and the dimming instruction parameters, acquiring a PWM value corresponding to each lamp bead among four lamp beads; and on the basis of the PWM value corresponding to each lamp bead among the four lamp beads, dimming each lamp bead among the four lamp beads.
Need to check novelty before this filing date? Find Prior Art

Description

Dimming method, system, electronic device and storage medium

[0001] Cross-references

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on February 29, 2024, with application number 202410232528.5 and invention name “Dimming method, system, electronic device and storage medium”. The entire contents of the application are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of intelligent lighting technology, and in particular to a dimming method, system, electronic device and storage medium. Background Art

[0004] When mixing lights with four or more colors, the mixing system is usually composed of red light, green light, blue light and white light. When the user intuitively adjusts the color temperature, color and brightness value of the lamp, the lamp will ultimately achieve the user's expected value through the mixed light output of the lamp beads of different colors. However, only ensuring the accurate dimming of brightness, color temperature or color is not good, for example, the saturation or realism effect is not good. Summary of the Invention

[0005] The present application provides a dimming method, system, electronic device and storage medium.

[0006] The present application provides a dimming method for a lamp, wherein the lamp includes four lamp beads, and the four lamp beads include one white light lamp bead and three colored light lamp beads with different colors. The dimming method includes: obtaining initial color coordinates based on dimming instruction parameters; obtaining white light proportion based on a target strategy optimization model and the dimming instruction parameters; obtaining color coordinates of mixed colored light based on the initial color coordinates and the white light proportion; obtaining PWM values ​​corresponding to each of the four lamp beads based on the colored light mixed color coordinates, the white light proportion and the dimming instruction parameters; and dimming each of the four lamp beads based on the PWM values ​​corresponding to each of the four lamp beads.

[0007] The present application also provides a dimming system that adopts the above-mentioned dimming method. The dimming system includes: a first acquisition module for acquiring initial color coordinates based on dimming instruction parameters; a second acquisition module for acquiring white light proportion based on a target strategy optimization model and the dimming instruction parameters; a third acquisition module for acquiring color coordinates of mixed color lights based on the initial color coordinates and the white light proportion; a fourth acquisition module for acquiring PWM values ​​corresponding to each of the four lamp beads based on the color coordinates of the mixed color lights, the white light proportion and the dimming instruction parameters; and a dimming module for dimming each of the four lamp beads based on the PWM values ​​corresponding to each of the four lamp beads.

[0008] The present application also provides a lamp, comprising four lamp beads and a computer program, wherein the four lamp beads include one white light lamp bead and three colored light lamp beads with different colors. When the computer program is executed, any of the dimming methods described above is implemented.

[0009] The present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the dimming methods described above is implemented.

[0010] The present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, any of the dimming methods described above is implemented.

[0011] The present application also provides a computer program product, including a computer program, which implements any of the above-mentioned dimming methods when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0013] FIG1 is a schematic flow chart of a dimming method provided in the present application;

[0014] FIG2 is a schematic diagram of the white light ratio under the optimal color rendering index mixing strategy provided by this application;

[0015] FIG3 is a schematic structural diagram of a dimming system provided in the present application;

[0016] FIG4 is a schematic structural diagram of the electronic device provided in this application. DETAILED DESCRIPTION

[0017] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.

[0018] The dimming method provided in this application is described below with reference to FIG1-FIG2.

[0019] FIG1 is a flow chart of a dimming method provided by the present application. As shown in FIG1 , the method is applied to a lamp, wherein the lamp includes four lamp beads, each of which includes one white light lamp bead and three colored light lamp beads of different colors. The dimming method includes the following steps:

[0020] Step 100: Acquire initial color coordinates based on dimming instruction parameters.

[0021] Step 110 : Obtain the white light ratio based on the target strategy optimization model and the dimming instruction parameters.

[0022] Step 120 : Obtaining color coordinates of mixed colored light based on the initial color coordinates and the white light ratio.

[0023] Step 130 : Based on the color coordinates of the mixed colored lights, the white light ratio, and the dimming instruction parameters, obtain the PWM values ​​corresponding to the respective lamp beads in the four lamp beads.

[0024] Step 140 : dimming each of the four lamp beads based on the PWM value corresponding to each of the four lamp beads.

[0025] The dimming method provided in this application is based on a target strategy and input dimming command parameters. By obtaining the pulse width modulation (PWM) values ​​corresponding to multiple lamp beads in the lamp, the dimming of the lamp is achieved, so that the light output of the lamp meets the requirements of the dimming command parameters while taking into account the lighting efficiency requirements of the target strategy.

[0026] Specifically, the initial color coordinates may be obtained based on the dimming instruction parameters by converting through a color temperature and color coordinate conversion formula, or by converting through a conversion model, or by converting through other methods.

[0027] The dimming instruction parameters are used to make the light output of the lamp reach the dimming instruction parameters. The dimming instruction parameters may include color temperature and color deviation, and may also include target color coordinates, etc.

[0028] In some embodiments, the dimming instruction parameters may be obtained through user input, for example, the user may obtain the dimming instruction parameters by inputting the dimming instruction parameters in the target interface.

[0029] Among them, the target strategy optimization model is constructed based on the target strategy, and is used to obtain the corresponding white light ratio in combination with the dimming instruction parameters, so that the final light output of the lamp meets the target strategy while reaching the dimming instruction parameters.

[0030] Specifically, the target strategy may be an artificially set strategy related to the effect of light output, including but not limited to a color rendering index optimal strategy or a saturation optimal strategy.

[0031] In some embodiments, the target strategy includes: a color rendering index optimal strategy, a saturation optimal strategy, a fidelity optimal strategy, or a balance optimal strategy, wherein the balance optimal strategy is formed based on two or more of the color rendering index optimal strategy, the saturation optimal strategy, and the fidelity optimal strategy.

[0032] Specifically, the target policy can be any of the following:

[0033] 1. Optimal strategy for color rendering index; 2. Optimal strategy for saturation; 3. Optimal strategy for realism; 4. Balanced optimal strategy formed by the optimal strategy for color rendering index and the optimal strategy for saturation; 5. Balanced optimal strategy formed by the optimal strategy for color rendering index and the optimal strategy for realism; 6. Balanced optimal strategy formed by the optimal strategy for saturation and the optimal strategy for realism; 7. Balanced optimal strategy formed by the optimal strategy for color rendering index, the optimal strategy for saturation, and the optimal strategy for realism.

[0034] Among them, the white light ratio is the luminous proportion of the white light beads in the 4-way lamp beads.

[0035] The color coordinates of the mixed light are the color coordinates of the three mixed light sources of the lamp. Specifically, based on the color coordinates CxCy_m, the white light ratio kw, and the brightness Bi, the PWM values ​​corresponding to the multiple lamp sources can be calculated, that is, PWM = f2(CxCy_m, kw, Bi).

[0036] Specifically, for step 140, the PWM value of the white light lamp bead is used to dim the white light lamp bead, and the PWM values ​​of the three color light lamp beads are used to dim the three color light lamp beads respectively.

[0037] Since the PWM value corresponding to each of the four lamp beads is finally obtained based on the dimming command parameters and the target strategy optimization model, it carries relevant information of the dimming command parameters and the target strategy.

[0038] In the dimming method provided in the embodiment of the present application, by obtaining the dimming instruction parameters, on the one hand, they can be converted into initial color coordinates that carry the dimming instruction parameter information, and on the other hand, they can be combined with a specific target strategy optimization model to obtain the white light ratio required to achieve the target strategy. On this basis, the color coordinates of the color mixed light can be obtained based on the initial color coordinates and the white light ratio, and the first power parameter values ​​corresponding to multiple lamp beads can be obtained based on the color mixed light color coordinates, the white light ratio and the dimming instruction parameters. Therefore, not only can accurate light control of the lamp be achieved in terms of brightness, color temperature or color according to the dimming instruction parameters, but the color rendering index or color saturation, realism, etc. can also be further adjusted according to the user's demand for light, so that the dimming effect is better and meets user needs, thereby improving the user experience.

[0039] In some embodiments, for the target policy optimization model in step 110, a method for obtaining the target policy optimization model includes:

[0040] Step S1 : Based on the target strategy, the white light proportions corresponding to different conditions are determined within a preset color temperature range and a preset color deviation range.

[0041] Step S2: fitting the white light proportions corresponding to the different conditions based on the target strategy to obtain a white light proportion function.

[0042] Step S3: obtaining the target strategy optimization model based on the white light ratio function.

[0043] The preset color temperature range and the preset color deviation range can be set according to actual needs or actual conditions.

[0044] Furthermore, different conditions can be composed of different color temperatures and different color deviations. For example, if the preset color temperature range is 1000K to 2000K and the preset color deviation range is -0.003 to 0.003, you can select a point at any interval within the preset color temperature range, such as 100K, and a point at any interval within the preset color deviation range, such as 0.001. You can then arbitrarily combine the color temperature points and color deviation points to obtain multiple different conditions, such as condition A: color temperature of 1100K and color deviation of 0.001, and condition B: color temperature of 1500K and color deviation of 0.002.

[0045] Specifically, based on the target strategy, the proportion of white light required for the light output of the lamp to achieve the target strategy under different conditions can be determined.

[0046] The white light ratio function is used to characterize the corresponding relationship between the white light ratio and different conditions.

[0047] In some embodiments, for step S1, based on the target strategy, determining the white light proportions corresponding to different conditions within a preset color temperature range and a preset color deviation range includes:

[0048] In step S11 , based on the target strategy, target strategy related parameters corresponding to different white light ratios under different conditions are measured within a preset color temperature range and a preset color deviation range.

[0049] Step S12 , obtaining the optimal target strategy related parameters corresponding to different white light ratios under different conditions from the target strategy related parameters corresponding to different white light ratios under different conditions.

[0050] Step S13 , based on the optimal target strategy related parameters corresponding to different white light ratios under different conditions, determining the white light ratios corresponding to the target strategies under different conditions.

[0051] Specifically, in order to determine the white light ratios corresponding to different conditions based on the target strategy, first, the target strategy related parameters corresponding to different white light ratios under different conditions can be measured.

[0052] Target policy related parameters are parameters related to the target policy.

[0053] In some embodiments, the target strategy is a color rendering index optimization strategy, and the target strategy-related parameter is the color rendering index. Accordingly, the color rendering index corresponding to different white light ratios, such as 0% to 100%, can be measured.

[0054] In other embodiments, the target strategy is a saturation optimal strategy, and the target strategy related parameter is saturation.

[0055] After measuring the target strategy-related parameters corresponding to different white light ratios under different conditions, there may be multiple target strategy-related parameters corresponding to the same condition. Therefore, it is necessary to select the white light ratio corresponding to the optimal target strategy-related parameter as the white light ratio under that condition.

[0056] For example, if the target strategy is the optimal color rendering index strategy, under condition A, the color rendering index is 50 when the white light ratio is 20%, and the color rendering index is 100 when the white light ratio is 30%, then the white light ratio corresponding to condition A should be 30%.

[0057] The optimal target strategy related parameters are the parameters that best match the target strategy among the target strategy related parameters. For example, when the target strategy is the optimal color rendering index strategy, the optimal target strategy related parameters are the optimal color rendering index; when the target strategy is the optimal saturation strategy, the optimal target strategy related parameters are the optimal saturation.

[0058] In some embodiments, for step S11, target strategy related parameters corresponding to different white light ratios under different conditions are measured, including: based on the measured spectral information of each of the four lamp beads, measuring the target strategy related parameters corresponding to different white light ratios under the different conditions.

[0059] Specifically, based on the measured spectrum information corresponding to multiple lamp beads, the white light ratio can be adjusted when mixing the spectra corresponding to multiple lamp beads, and the target strategy related parameters corresponding to different white light ratios under different conditions can be measured.

[0060] In the embodiment of the present application, there is no limitation on the method for obtaining the measured spectral information corresponding to the multiple lamp beads, and it can be measured by optical measuring equipment, etc.

[0061] In one embodiment of the present application, optical measurement data, mainly including measured spectral information of each lamp bead, can be obtained by optical measurement equipment according to a specified test process in the early stage of lamp design.

[0062] By obtaining the measured spectral information corresponding to multiple lamp beads in the early stages of lamp design, early intervention can be made during the lamp design process to ensure the optimal lamp light output adjustment effect.

[0063] In one embodiment of the present application, the measured spectral information corresponding to multiple lamp beads can be shown in Table 1. The data in the table can be laboratory equipment measurement data, which is obtained by separately measuring each color lamp bead and is not displayed here.

[0064] Table 1 Spectral information of each lamp bead in a multi-channel lamp bead mixed light fixture

[0065] In some embodiments, with respect to step 110, obtaining the white light ratio based on the target strategy optimization model and the dimming instruction parameters includes:

[0066] Step 111 : Obtain K-order numbers corresponding to white light proportion function curves under different color deviations.

[0067] Step 112 : Calculate and obtain the white light proportion based on the dimming instruction parameters and the K-order numbers corresponding to the white light proportion function curves under different color deviations.

[0068] Specifically, based on the white light proportion function, the K-order numbers corresponding to the white light proportion function curves under different color deviations can be obtained first.

[0069] Figure 2 is a schematic diagram of the white light ratio under the optimal color rendering index mixing strategy provided by the present application. As shown in Figure 2, in one embodiment of the present application, the target strategy is the optimal color rendering index strategy, and the white light ratio corresponding to the target strategy under different conditions is fitted to obtain 17 white light ratio function curves corresponding to different color deviations in the color deviation range of -0.008-0.008.

[0070] In one embodiment of the present application, Table 2 shows the K-orders corresponding to the white light proportion function curves in FIG. 2 . The blank data in the table are the K-orders corresponding to different color deviations, which are not shown here.

[0071] Table 2 Format of performance optimization parameters

[0072] In some embodiments, if the color deviation adjustment range needs to be widened, the number of data parameters under different color deviations is increased. Meanwhile, if the parameter storage size limitation is considered, the span of 0.001 can be increased.

[0073] In some embodiments, if the color temperature needs to support a large range and the low-order curve cannot well cover the function characteristics, the K order needs to be increased.

[0074] After obtaining the K order, the white light proportion kw can be calculated based on the color deviation in the dimming command parameters and the K order corresponding to the white light proportion function curve corresponding to the color deviation through the formula kw = k3*cct^3+k2*cct^2+k1*cct+k0, where cct is the color temperature value in the dimming command parameters, and k3, k2, k1, and k0 are the K orders corresponding to the white light proportion function curve corresponding to the color deviation in the dimming command parameters.

[0075] In some embodiments, the preset color temperature range is 1800K to 12000K and / or the preset color deviation range is -0.008 to 0.008.

[0076] In some embodiments, the dimming instruction parameters include color temperature and color deviation.

[0077] Accordingly, with respect to step 100, obtaining the initial color coordinates based on the dimming instruction parameters further includes:

[0078] Step 101: Acquire initial color coordinates based on color temperature and color deviation.

[0079] In some embodiments, with respect to step 101, the method for obtaining initial color coordinates based on color temperature and color deviation further includes:

[0080] Step 1011 : Acquire the initial color coordinates based on a color coordinate conversion model, the color temperature, and the color deviation. The color coordinate conversion model includes a conversion relationship between color temperature, color deviation, and initial color coordinates.

[0081] Specifically, a color coordinate conversion model may be first obtained, where the color coordinate conversion model includes a conversion relationship between color temperature, color deviation, and initial color coordinates.

[0082] After obtaining the color coordinate conversion model, the color temperature and color deviation can be converted into initial color coordinates using the model.

[0083] In some embodiments, the method for obtaining the color coordinate conversion model in step 1011 includes:

[0084] Step S4 , determining color coordinate values ​​corresponding to different conditions within a preset color temperature range and a preset color deviation range, wherein the different conditions are composed of different color temperatures and different color deviation ranges.

[0085] Step S5: obtaining the color coordinate conversion model based on the color coordinate values ​​corresponding to the different conditions.

[0086] Different conditions are composed of different color temperatures and different color deviations. For example, if the preset color temperature range is 1000K to 2000K and the preset color deviation range is -0.003 to 0.003, you can take a point at every arbitrary interval of the preset color temperature range, such as 100K, and take a point at every arbitrary interval of the preset color deviation range, such as 0.001. You can also arbitrarily combine the color temperature points and color deviation points in pairs to obtain multiple different conditions, such as condition A: the color temperature is 1100K and the color deviation is 0.001, and condition B: the color temperature is 1500K and the color deviation is 0.002.

[0087] In order to convert the color coordinate model, we can first measure the corresponding color coordinate values ​​under different conditions, such as condition A: the color coordinates corresponding to the color temperature of 1100K and the color deviation of 0.001.

[0088] After obtaining the corresponding color coordinate values ​​under different conditions, the conversion relationship between color temperature, color deviation and initial color coordinates can be obtained, and the color coordinate conversion model can be obtained.

[0089] In other embodiments, the dimming instruction parameters include target color coordinates.

[0090] Accordingly, with respect to step 100, obtaining the initial color coordinates based on the dimming instruction parameters further includes:

[0091] Step 102: Using the target color coordinates as the initial color coordinates.

[0092] Specifically, the user may directly input the target color coordinates, and then the lamp may directly use the user-input color coordinates as the initial color coordinates.

[0093] In addition, the dimming instruction parameters also include brightness.

[0094] Accordingly, for step 130, based on the color coordinates of the mixed color light, the white light ratio and the dimming instruction parameters, obtaining the PWM value corresponding to each of the four lamp beads further includes:

[0095] Step 131 : Based on the color coordinates of the mixed colored lights, the proportion of white light, and the brightness, obtain the PWM value corresponding to each of the four lamp beads.

[0096] Specifically, the initial color coordinates can be obtained based on the specific values ​​of the color temperature, color deviation and brightness input by the user, and the remaining color temperatures and color deviations. Then, based on the target strategy optimization model and the dimming instruction parameters, the white light ratio is obtained. Then, based on the initial color coordinates and the white light ratio, the color coordinates of the color mixed light are obtained. Finally, based on the color mixed light color coordinates, the white light ratio and the brightness input by the user, the PWM values ​​corresponding to each of the four lamp beads are obtained.

[0097] In some embodiments, the four-way lamp beads include red light beads, green light beads, blue light beads and white light beads.

[0098] Accordingly, for step 120, obtaining the color coordinates of the color light mixture based on the initial color coordinates and the white light ratio further includes: step 121, obtaining the RGB mixed light color coordinates based on the initial color coordinates and the white light ratio.

[0099] Specifically, when the four lamp beads include red lamp beads, green lamp beads, blue lamp beads and white light lamp beads, after obtaining the initial color coordinates and the white light ratio, the RGB mixed light color coordinates can be calculated based on the initial color coordinates and the white light ratio.

[0100] Specifically, the RGB mixed light color coordinates can be calculated using the formula CxCy_rgb=f1(kw, Cxcyi), where CxCy_rgb is the RGB mixed light color coordinates, kw is the white light ratio, and Cxcyi is the initial color coordinates.

[0101] In some other embodiments, the three-way color light bead group can also be an orange light bead group, a yellow light bead group, and a blue light bead group or a purple light bead group. In this case, the color light mixing coordinates can also be obtained based on step 120.

[0102] The dimming system provided in the present application is described below. The dimming system described below and the dimming method described above can be referenced to each other.

[0103] FIG3 is a schematic structural diagram of a dimming system provided in the present application. As shown in FIG3 , the system includes a first acquisition module 310, a second acquisition module 320, a third acquisition module 330, and a fourth acquisition module 340, wherein:

[0104] The first acquisition module 310 is used to obtain the initial color coordinates based on the dimming instruction parameters; the second acquisition module 320 is used to obtain the white light ratio based on the target strategy optimization model and the dimming instruction parameters; the third acquisition module 330 is used to obtain the color coordinates of the mixed light based on the initial color coordinates and the white light ratio; the fourth acquisition module 340 is used to dim each of the four lamp beads based on the PWM value corresponding to each of the four lamp beads.

[0105] In one embodiment, the modules of the dimming system are installed in the same device to form a dimming device. For example, all the modules of the dimming system are installed in a lamp.

[0106] In other embodiments, the modules of the dimming system can be installed in different devices according to needs, for example, some modules can be installed in lamps and some modules can be installed in control devices.

[0107] It can be understood that the dimming system provided in the present application corresponds to the dimming method provided in the above embodiments. The relevant technical features of the dimming system provided in the present application can refer to the relevant technical features of the dimming method provided in the above embodiments, and will not be repeated here.

[0108] The dimming system provided in the present application can, by obtaining dimming instruction parameters, on the one hand, convert them into initial color coordinates that carry dimming instruction parameter information, and on the other hand, can be combined with a specific target strategy optimization model to obtain the white light ratio required to achieve the target strategy. On this basis, the color coordinates of the color mixed light can be obtained based on the initial color coordinates and the white light ratio, and the first power parameter values ​​corresponding to multiple lamp beads can be obtained based on the color mixed light color coordinates, the white light ratio and the dimming instruction parameters. Therefore, not only can accurate light control of the lamps be achieved in terms of brightness, color temperature or color according to the dimming instruction parameters, but the color rendering index or color saturation, realism, etc. can also be further adjusted according to the user's demand for lighting, so that the dimming effect is better and meets user needs, thereby improving the user experience.

[0109] The present application also provides a lamp, which includes 4 lamp beads and a computer program, wherein the 4 lamp beads include 1 white light lamp bead and 3 colored light lamp beads with different colors. When the computer program is executed by the processor, the lamp can execute the dimming method provided by the above methods, which includes: obtaining initial color coordinates based on dimming instruction parameters; obtaining white light proportion based on a target strategy optimization model and the dimming instruction parameters; obtaining color coordinates of mixed color lights based on the initial color coordinates and the white light proportion; obtaining PWM values ​​corresponding to each of the 4 lamp beads based on the colored light mixed color coordinates, the white light proportion and the dimming instruction parameters; and dimming each of the 4 lamp beads based on the PWM values ​​corresponding to each of the 4 lamp beads.

[0110] FIG4 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG4 , the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other via the communication bus 440. The processor 410 may call logic instructions in the memory 430 to execute a dimming method, which includes: obtaining initial color coordinates based on dimming instruction parameters; obtaining a white light ratio based on a target strategy optimization model and the dimming instruction parameters; obtaining color coordinates of mixed color lights based on the initial color coordinates and the white light ratio; obtaining PWM values ​​corresponding to each of the four lamp beads based on the mixed color coordinates, the white light ratio, and the dimming instruction parameters; and dimming each of the four lamp beads based on the PWM values ​​corresponding to each of the four lamp beads.

[0111] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0112] On the other hand, the present application also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the dimming method provided by the above methods, which includes: obtaining initial color coordinates based on dimming instruction parameters; obtaining white light proportion based on a target strategy optimization model and the dimming instruction parameters; obtaining color coordinates of mixed light based on the initial color coordinates and the white light proportion; obtaining PWM values ​​corresponding to each of the four lamp beads based on the color coordinates of the mixed light, the white light proportion and the dimming instruction parameters; and dimming each of the four lamp beads based on the PWM values ​​corresponding to each of the four lamp beads.

[0113] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the dimming method provided by the above-mentioned methods, the method including: obtaining initial color coordinates based on dimming instruction parameters; obtaining white light proportion based on a target strategy optimization model and the dimming instruction parameters; obtaining color coordinates of mixed color light based on the initial color coordinates and the white light proportion; obtaining PWM values ​​corresponding to each of the four lamp beads based on the color coordinates of the mixed color light, the white light proportion and the dimming instruction parameters; and dimming each of the four lamp beads based on the PWM values ​​corresponding to each of the four lamp beads.

[0114] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0115] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A dimming method for a lamp, wherein: The lamp includes four lamp beads, the four lamp beads include one white light lamp bead and three colored light lamp beads of different colors. The dimming method includes: Based on the dimming instruction parameters, the initial color coordinates are obtained; Obtaining a white light ratio based on a target strategy optimization model and the dimming instruction parameters; Based on the initial color coordinates and the white light ratio, obtaining the color coordinates of the color light mixture; Based on the color coordinates of the mixed color light, the white light ratio and the dimming instruction parameters, obtaining the PWM value corresponding to each of the four lamp beads; Based on the PWM value corresponding to each of the four lamp beads, each of the four lamp beads is dimmed.

2. The dimming method according to claim 1, wherein: The method for obtaining the target strategy optimization model includes: Based on the target strategy, determining the white light proportions corresponding to different conditions within a preset color temperature range and a preset color deviation range, wherein the different conditions are composed of different color temperatures and different color deviations; Fitting the white light proportions corresponding to the different conditions based on the target strategy to obtain a white light proportion function; Based on the white light proportion function, the target strategy optimization model is obtained.

3. The dimming method according to claim 2, wherein: The target-based strategy determines the white light ratio corresponding to different conditions within a preset color temperature range and a preset color deviation range, including: Based on the target strategy, within a preset color temperature range and a preset color deviation range, measuring target strategy related parameters corresponding to different white light ratios under the different conditions; Obtaining the optimal target strategy related parameters corresponding to the different white light ratios under the different conditions from the target strategy related parameters corresponding to the different white light ratios under the different conditions; Based on the optimal target strategy related parameters corresponding to the different white light ratios under the different conditions, the white light ratios corresponding to the target strategies under the different conditions are determined.

4. The dimming method according to claim 3, wherein: The target strategy related parameters corresponding to different white light ratios under the different conditions are measured, including: Based on the measured spectrum information of each of the four lamp beads, target strategy related parameters corresponding to different white light proportions under the different conditions are measured.

5. The dimming method according to any one of claims 2 to 4, wherein: The obtaining of the white light ratio based on the target strategy optimization model and the dimming instruction parameter includes: Obtain K orders corresponding to the white light proportion function curves under different color deviations; The white light proportion is obtained by calculation based on the dimming instruction parameters and the K orders respectively corresponding to the white light proportion function curves under different color deviations.

6. The dimming method according to claim 2, wherein: The preset color temperature range is 1800K to 12000K and / or the preset color deviation range is -0.008 to 0.

008.

7. The dimming method according to claim 1, wherein: The dimming instruction parameters include color temperature, color deviation and brightness; The acquiring of initial color coordinates based on the dimming instruction parameters further comprises: acquiring the initial color coordinates based on the color temperature and the color deviation; The obtaining of the PWM value corresponding to each of the four lamp beads based on the color coordinates of the color mixed light, the white light ratio and the dimming instruction parameters further includes: obtaining the PWM value corresponding to each of the four lamp beads based on the color coordinates of the color mixed light, the white light ratio and the brightness.

8. The dimming method according to claim 7, wherein: The method for obtaining the initial color coordinates based on the color temperature and the color deviation further includes: obtaining the initial color coordinates based on a color coordinate conversion model, the color temperature and the color deviation, wherein the color coordinate conversion model includes a conversion relationship between color temperature, color deviation and initial color coordinates.

9. The dimming method according to claim 8, wherein: The method for obtaining the color coordinate conversion model includes: Determining color coordinate values ​​corresponding to different conditions within a preset color temperature range and a preset color deviation range, wherein the different conditions are composed of different color temperatures and different color deviation ranges; The color coordinate conversion model is obtained based on the color coordinate values ​​corresponding to the different conditions.

10. The dimming method according to claim 1, wherein: The dimming instruction parameters include target color coordinates and brightness; The acquiring of initial color coordinates based on the dimming instruction parameters further includes: using the target color coordinates as the initial color coordinates.

11. The dimming method according to claim 1, wherein: The target strategy includes: a color rendering index optimal strategy, a saturation optimal strategy, a fidelity optimal strategy or a balance optimal strategy, and the balance optimal strategy is formed based on two or more of the color rendering index optimal strategy, the saturation optimal strategy and the fidelity optimal strategy.

12. The dimming method according to claim 1, wherein: The four lamp beads include red light beads, green light beads, blue light beads and white light beads, and based on the initial color coordinates and the white light ratio, obtaining the color light mixed color coordinates further includes: based on the initial color coordinates and the white light ratio, obtaining the RGB mixed light color coordinates.

13. A dimming system, wherein: According to the dimming method according to claims 1 to 12, the dimming system includes: A first acquisition module is used to acquire initial color coordinates based on dimming instruction parameters; A second acquisition module is used to acquire the white light ratio based on the target strategy optimization model and the dimming instruction parameters; A third acquisition module is used to acquire the color coordinates of the color light mixture based on the initial color coordinates and the white light ratio; A fourth acquisition module is used to obtain the PWM value corresponding to each of the four lamp beads based on the color coordinates of the mixed color light, the white light ratio and the dimming instruction parameters; The dimming module is used to dim each of the four lamp beads based on the PWM value corresponding to each of the four lamp beads.

14. A lamp comprising four lamp beads and a computer program, wherein: The four lamp beads include one white light lamp bead and three colored light lamp beads with different colors. When the computer program is executed, the dimming method according to any one of claims 1 to 12 is implemented.

15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the dimming method according to any one of claims 1 to 12 is implemented.

16. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the dimming method according to any one of claims 1 to 12 is implemented.

Citation Information

Patent Citations

  • Method for achieving light distribution in full color gamut scope based on PWM four primary color LEDs

    CN106817811A

  • Four-channel LED dimming system synthesizing high color rendering index white light

    CN107809814A

  • White balance adjustment method and device, laser projection equipment and storage medium

    CN117119158A

  • Methods of controlling RGBW lamps, RGBW lamps and controller therefor

    US20170027037A1