Color rendering index control method and device, lamp, storage medium and program product

By constructing an optical model based on magenta light and blue light and controlling the color rendering index of the lamp, the problem of the color rendering index of the lamp being lower than 90 is solved, a high color rendering index is achieved at all dimming ratios, and the color reproduction and performance are improved. performance effect.

CN118574264APending Publication Date: 2024-08-30GUANGZHOU CAIYI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410897172.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When the dimming ratio of existing lamps changes, the color rendering index RA and R9 may be lower than 90, affecting the performance and image quality in the field of view, resulting in color distortion and visual impact.

Method used

By constructing an optical model based on magenta light and blue light, the target current channel value is determined according to the target color rendering index and dimming ratio, and the color rendering index of the lamp is controlled to meet the color rendering within the range of 0%-100% dimming ratio. Index requirements.

Benefits of technology

It improves the color reproduction of the lamps and ensures that the color rendering index is higher than 90 at all dimming ratios, which improves the performance effect and the fun of the field of view. At the same time, no additional hardware is required, which reduces control costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574264A
    Figure CN118574264A
Patent Text Reader

Abstract

The invention relates to a color rendering index control method and device, a lamp, a storage medium and a program product. And obtaining the target color rendering index of each dimming proportion when the lamp outputs the required target light, determining the target current channel value of the to-be-regulated light in the lamp according to each target color rendering index and a pre-established optical model, and controlling the color rendering index of the lamp based on the target current channel value corresponding to each dimming proportion. The characteristic that the color rendering index of the white light can be changed by adding the magenta light or the blue light is utilized, the target current channel value of the magenta light or the blue light in the corresponding dimming proportion is determined based on the target color rendering index and the optical model in each dimming proportion, and therefore the color rendering index of the lamp is controlled based on the target current channel value; therefore, the color rendering index can meet the requirement when the dimming proportion changes within 0-100%, the color reducibility of the lamp is improved, additional hardware does not need to be added, and the control cost of the color rendering index is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of lamps, and in particular to a color rendering index control method, device, lamp, storage medium and program product. Background Art

[0002] At present, stage lighting is used to create atmosphere. If the lighting fixtures are unqualified, the optical effect will be greatly reduced and may even hurt people's eyes. Specifically, when the dimming ratio of the light source module in the lighting fixture changes from 0% to 100%, the general color rendering index RA and the special color rendering index R9 in the color rendering index will change. When the dimming ratio is in a certain period, Ra is lower than 90, and R9 may be lower than 90. For the color rendering index value below 90, the performance effect will be seriously affected, resulting in serious distortion of the color of the real objects in the performance, and it will also affect people's vision, causing the image in the field of vision to be dull and boring, and will also affect the quality of the lighting environment. Therefore, how to control the color rendering index so that the color rendering index meets the requirements at all dimming ratios has become an urgent problem to be solved. Summary of the invention

[0003] Based on this, it is necessary to provide a color rendering index control method, device, lamp, storage medium and program product that can improve the color rendering index in response to the above technical problems.

[0004] In a first aspect, the present application provides a color rendering index control method, comprising:

[0005] Obtain the target color rendering index at each dimming ratio when the lamp outputs the required target light;

[0006] Determine the target current channel value of the light to be regulated in the lamp at each dimming ratio according to each target color rendering index and a pre-established optical model, wherein the optical model is constructed based on the test current channel value of the light to be regulated at the test current control value, and the light to be regulated includes magenta light and / or blue light;

[0007] The color rendering index of the lamp is controlled based on the target current channel value corresponding to each of the dimming ratios.

[0008] In one embodiment, the test current channel value includes a first test current channel value corresponding to a high current channel and a second test current channel value corresponding to a low current channel, and the process of constructing the optical model includes:

[0009] Determining the bit information corresponding to the high current channel based on the processing capability of the processor in the lamp;

[0010] Determine a high-order current control value according to the first test current channel value and the number of bits information;

[0011] Determining a fine-tuning coefficient of the low current channel according to the high current control value, the second test current channel value and the test current control value;

[0012] The optical model is constructed according to the fine-tuning coefficient and the bit number information.

[0013] In one embodiment, determining the bit information corresponding to the high current channel based on the processing capability of the processor in the lamp includes:

[0014] Determining the total number of bits of the light to be regulated based on the processing capability of the processor in the lamp;

[0015] The total bit number information is evenly divided based on the high current channel and the low current channel to obtain the bit number information corresponding to the high current channel.

[0016] In one embodiment, determining the fine-tuning coefficient of the low current channel according to the high current control value, the second test current channel value and the test current control value includes:

[0017] Determining a low current control value according to a difference between the high current control value and the test current control value;

[0018] Based on the ratio of the low current control value and the second test current channel value, a fine-tuning coefficient of the low current channel is determined.

[0019] In one embodiment, the target current channel value includes a target current channel value for magenta light and a target current channel value for blue light, and determining the target current channel value of the light to be modulated in the lamp at each dimming ratio according to each target color rendering index and a pre-established optical model includes:

[0020] For each dimming ratio, obtaining an initial color rendering index of the lamp at the dimming ratio;

[0021] When the initial color rendering index is less than the target color rendering index, determining a target current channel value of the magenta light according to the optical model;

[0022] According to the target color rendering index and the optical model, a target current channel value of the blue light is determined.

[0023] In one embodiment, determining the target current channel value of the magenta light according to the optical model includes:

[0024] Determining, according to the optical model, candidate current channel values ​​for the magenta light in increasing order;

[0025] For each round, obtaining the color rendering index of the lamp under the candidate current channel value;

[0026] In a case where the color rendering index is less than the color rendering index of the candidate current channel value in the previous round, the candidate current channel value is used as the target current channel value of the magenta light.

[0027] In a second aspect, the present application also provides a color rendering index control device, comprising:

[0028] A first determination module is used to determine a target current channel value of a light to be regulated in the lamp according to a pre-established optical model, wherein the optical model is constructed based on a test current channel value of the light to be regulated under a test current control value, and the light to be regulated includes magenta light and / or blue light;

[0029] A control module is used to control the color rendering index of the lamp based on the target current channel value.

[0030] In a third aspect, the present application further provides a lamp, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0031] Obtain the target color rendering index at each dimming ratio when the lamp outputs the required target light;

[0032] Determine the target current channel value of the light to be regulated in the lamp at each dimming ratio according to each target color rendering index and a pre-established optical model, wherein the optical model is constructed based on the test current channel value of the light to be regulated at the test current control value, and the light to be regulated includes magenta light and / or blue light;

[0033] The color rendering index of the lamp is controlled based on the target current channel value corresponding to each of the dimming ratios.

[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0035] Obtain the target color rendering index at each dimming ratio when the lamp outputs the required target light;

[0036] Determine the target current channel value of the light to be regulated in the lamp at each dimming ratio according to each target color rendering index and a pre-established optical model, wherein the optical model is constructed based on the test current channel value of the light to be regulated at the test current control value, and the light to be regulated includes magenta light and / or blue light;

[0037] The color rendering index of the lamp is controlled based on the target current channel value corresponding to each of the dimming ratios.

[0038] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0039] Obtain the target color rendering index at each dimming ratio when the lamp outputs the required target light;

[0040] Determine the target current channel value of the light to be regulated in the lamp at each dimming ratio according to each target color rendering index and a pre-established optical model, wherein the optical model is constructed based on the test current channel value of the light to be regulated at the test current control value, and the light to be regulated includes magenta light and / or blue light;

[0041] The color rendering index of the lamp is controlled based on the target current channel value corresponding to each of the dimming ratios.

[0042] The above-mentioned color rendering index control method, device, lamp, storage medium and program product obtain the target color rendering index of each dimming ratio when the lamp outputs the required target light, determine the target current channel value of the light to be adjusted in the lamp according to each target color rendering index and a pre-established optical model, and control the color rendering index of the lamp based on the target current channel value corresponding to each dimming ratio; wherein the optical model is constructed based on the test current channel value of the light to be adjusted under the test current control value, and the light to be adjusted includes magenta light and / or blue light. The present application utilizes the characteristic that the color rendering index of white light can be changed by adding magenta light or blue light, and constructs an optical model through the test current channel value of the light to be adjusted under the test current control value, and determines the target current channel value of magenta light or blue light under the corresponding dimming ratio based on the target color rendering index and the optical model under each dimming ratio, thereby controlling the color rendering index of the lamp based on the target current channel value, so that the color rendering index can meet the requirements when the dimming ratio changes from 0% to 100%, thereby improving the color reproduction of the lamp, and does not require the addition of additional hardware, thereby reducing the control cost of the color rendering index. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A diagram showing an application environment of a color rendering index control method in one embodiment;

[0045] Figure 2 Schematic diagram of a process of a color rendering index control method in one embodiment;

[0046] Figure 3 is a schematic flow chart of a color rendering index control method in another embodiment;

[0047] Figure 4 A schematic diagram of a process of constructing an optical model in one embodiment;

[0048] Figure 5 A schematic diagram of a flow chart of a method for determining median information according to an embodiment;

[0049] Figure 6 A schematic flow chart of a method for determining a fine-tuning coefficient in one embodiment;

[0050] Figure 7 is a schematic flow chart of a color rendering index control method in another embodiment;

[0051] Figure 8 is a flow chart of a color rendering index control method in another embodiment;

[0052] Fig. 9 is a structural block diagram of a color rendering index control device in one embodiment;

[0053] Fig.10 FIG. 4 is a diagram showing the internal structure of a lamp in an embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] Among them, the color rendering index refers to the degree of color restoration of an object under artificial light and standard light. It is an important parameter to measure the color characteristics of artificial light sources. The maximum value is 100 and is widely used to evaluate artificial lighting sources. The color rendering index includes the general color rendering index Ra and the special color rendering index R9. Ra is the average color rendering index of the first 8 common colors (R1-R8). Its value represents the color rendering of the light source. The larger the value, the better the color restoration. R9 is the red display ability in the lamp display index, also called the comfort color rendering index. The higher the R9, the more it can display the true color of things.

[0056] The color rendering index control method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. The application environment includes a lamp, which includes a processor, a driver board, a light source module, etc. White PWM signal control is the white light that the lamp needs to output, but if the color rendering index of the lamp is not processed, its color rendering index may be lower than 90. Adding magenta light and / or blue light to white light based on optical characteristics can improve the color rendering index, so that the color rendering index Ra and R9 of the light source module of the lamp are higher than 90 when the dimming ratio of the light source module is 0%-100%. Therefore, the lamp can include three PWM signal controls, one white light PWM signal output, one blue light PWM signal output, and one magenta light PWM signal output. The processor determines the current size of magenta light and / or blue light, that is, the target low current channel value, according to the initial color rendering index and optical model of the light source module at different dimming ratios, and drives it using the driver board to improve the color rendering index of the light source module. Optionally, the lamp can be a light emitting diode lamp (Light Emitting Diode, LED).

[0057] In an exemplary embodiment, Figure 2 As shown, a color rendering index control method is provided, which is applied to Figure 1 The lamp in the embodiment is taken as an example to illustrate, including the following S201 to S203. Among them:

[0058] S201, obtaining a target color rendering index for each dimming ratio when the lamp outputs a required target light.

[0059] In this embodiment, the required target light is white light. As shown in Table 1, when the dimming ratio of the light source module of the lamp changes from 0% to 100%, the color rendering index Ra is lower than 90 when the dimming ratio is between 21% and 79%, and there is a certain variation pattern in the color rendering index in this dimming ratio interval. The color rendering index R9 is also lower than 90 when the dimming ratio is between 25% and 84%, and there is a certain variation pattern in the color rendering index in this power interval.

[0060] Table 1

[0061]

[0062] From the above, we can know that Ra and R9 are important factors to measure color reproduction. From the perspective of protecting eyesight and restoring basic color authenticity, the color rendering index Ra of the lamp needs to be greater than 90. However, if only Ra or R9 is high, the visual color rendering is not necessarily good. The two indexes Ra and R9 need to work together and have high values ​​to ensure high color rendering.

[0063] Therefore, the target color rendering indexes at various dimming ratios may all be the same, that is, when the dimming ratio changes from 0% to 100%, the target color rendering indexes Ra and R9 are 90.

[0064] Alternatively, at each dimming ratio, Ra and R9 may correspond to the same target color rendering index at the same dimming ratio. For example, when the dimming ratio is 20%, Ra is 90, R9 is 90, and when the dimming ratio is 30%, Ra is 92, R9 is 92.

[0065] Ra and R9 may also be two different color rendering indexes at the same dimming ratio. For example, the dimming ratio is 20%, Ra is 90, R9 is 92, and the dimming ratio is 30%, Ra is 90, R9 is 92; for another example, the dimming ratio is 20%, Ra is 90, R9 is 92, and the dimming ratio is 30%, Ra is 92, and R9 is 93.

[0066] In a possible implementation, the target color rendering index may not be a specifically set value, and the target color rendering index is any value greater than the color rendering index threshold. For example, when the dimming ratio changes from 0% to 100%, the target color rendering index is any value of Ra and R9 greater than 90.

[0067] S202, determining the target current channel value of the light to be controlled in the lamp at each dimming ratio according to each target color rendering index and a pre-established optical model, wherein the optical model is constructed based on the test current channel value of the light to be controlled at the test current control value, and the light to be controlled includes magenta light and / or blue light.

[0068] In this embodiment, if Figure 3 As shown, since the PWM signal of the light source in the lamp is controlled by constant voltage and changing current value, this design feature is used to control the current change of the light source by outputting the current value of the PWM signal, thereby outputting the power and color of the corresponding color control. Therefore, if the color rendering index Ra and R9 do not meet the requirements when the dimming ratio is from 0% to 100% when outputting white light, it is necessary to control the magenta light and blue light of the lamp to output a certain current, thereby producing a certain ratio of color. The color depth of the lamp is proportional to the current size. The greater the current, the greater the power and the darker the color.

[0069] The optical model is constructed based on the test current channel value of the light to be regulated under the test current control value, and the test current channel value may include a high current test channel value and a low current test channel value. Figure 3 As shown, in the software main control system, an optical model is constructed according to the test current control value, the high current test channel value and the low current test channel value under each dimming ratio. For example, the optical model can be Sum = pH *256 + p*k, where k is the fine-tuning coefficient, p is the target low current channel value of the light to be regulated, and pH is the target high current channel value of the light to be regulated. The optical model can also be Sum = pH *256 + p. Optionally, the optical model of magenta light and the optical model of blue light can be the same or different.

[0070] According to the optical model, pH or p is determined as the target current channel value of the light to be regulated, including only a target high current channel value or a target low current channel value. Alternatively, according to the optical model, pH and p are determined as the target current channel value of the light to be regulated. At this time, the target current channel value includes a target high current channel value and a target low current channel value, which can be a target high current channel value pH and a target low current channel value p corresponding to magenta light or blue light, or a target high current channel value pH corresponding to magenta light and a target low current channel value p corresponding to blue light, or a target high current channel value pH corresponding to blue light and a target low current channel value p corresponding to magenta light.

[0071] When the color rendering index of the lamp is less than the target color rendering index, the target current channel value of magenta light can be determined based on the optical model. For example, the candidate magenta light current channel value can be 1, 2, 3, 4, 5, 6, 7... When the dimming ratio is 70%, the color rendering index of the lamp is 88.5% and 87.5%. The magenta light is gradually increased through the candidate magenta light current channel value. First, magenta light is added to the lamp based on the candidate magenta light current channel value 1 to obtain the color rendering index after the magenta light is added. If the display index is still less than the color rendering index threshold, the current is gradually increased based on the candidate magenta light current channel value 2, and magenta light is continued to be added to the lamp, and then the display index of the lamp is obtained. If the color rendering index is greater than or equal to the color rendering index threshold at this time, the candidate magenta light current channel value 2 is used as the target current channel value of magenta light.

[0072] Similarly, when the color rendering index of the lamp is less than the target color rendering index, the target current channel value of blue light can be determined based on the optical model. Alternatively, magenta light can be added first and then blue light, or blue light can be added first and then magenta light. For the above Table 1, the optical model is Sum = pH *256 + p*k, and the results of the target current channel values ​​of magenta light and / or blue light determined based on the optical model can be shown in Table 2.

[0073] Table 2

[0074]

[0075] S203: Control the color rendering index of the lamp based on the target current channel value corresponding to each dimming ratio.

[0076] In this embodiment, the color rendering index of the lamp is controlled according to the target current channel value of each dimming ratio determined above, so that the color rendering index of the lamp at each dimming ratio can meet the requirements. For example, the target current channel value corresponding to the dimming ratio of 35% is the target high current channel value 3 for magenta light and the target low current channel value 13 for blue light. When the dimming ratio of the lamp is 35%, the color rendering index of the lamp is controlled based on the target high current channel value 3 for magenta light and the target low current channel value 13 for blue light, so that the color rendering index of the lamp at the dimming ratio of 35% can be greater than 95%.

[0077] In the above color rendering index control method, the target color rendering index of each dimming ratio when the lamp outputs the required target light is obtained, and the target current channel value of the light to be adjusted in the lamp is determined according to each target color rendering index and a pre-established optical model, and the color rendering index of the lamp is controlled based on the target current channel value corresponding to each dimming ratio; wherein the optical model is constructed based on the test current channel value of the light to be adjusted under the test current control value, and the light to be adjusted includes magenta light and / or blue light. The present application utilizes the characteristic that the color rendering index of white light can be changed by adding magenta light or blue light, and constructs an optical model through the test current channel value of the light to be adjusted under the test current control value, and based on the target color rendering index under each dimming ratio and the optical model, the target current channel value of magenta light or blue light under the corresponding dimming ratio is determined, thereby controlling the color rendering index of the lamp based on the target current channel value, so that the color rendering index can meet the requirements when the dimming ratio changes from 0% to 100%, thereby improving the color reproduction of the lamp, and does not require the addition of additional hardware, thereby reducing the control cost of the color rendering index.

[0078] Figure 4 FIG. 1 is a flow chart of a method for constructing an optical model in one embodiment. Figure 4 As shown, the following steps are included:

[0079] S401, determining the bit number information of the high current channel based on the processing capability of the processor in the lamp.

[0080] In this embodiment, it is assumed that the maximum precision of the processor supports 16-bit binary data, and the precision of 16-bit data is sufficient to meet the requirements. The high 8-bit data in the 16-bit binary data can be divided into a high current channel, and the range of the high 8-bit data is 0-255. The low 8-bit data in the binary is the low current channel, and the range of the low 8-bit data is 0-255. Then the range of the high current channel and the low current channel is 255, which just constitutes the 16-bit binary data.

[0081] Assume that the maximum power of the light source of the lamp when outputting white light is 1200W, and the maximum output current is 4A, while the maximum power of the blue light output is 50W, and its control current is 4A, and the maximum power of the magenta light output is 80W, and its control current is 4A. The voltages of white light, blue light and magenta light are different, and the maximum current is 4A.

[0082] Use 2 channels to control magenta light, channel 1 is the high current channel of magenta light, channel 2 is the low current channel of magenta light. The range of channels 1 and 2 is 0-255, and the channels of channels 1 and 2 form binary 16-bit data. Use channels 1 and 2 to control magenta light, and divide the maximum current of magenta light 4A into 255 equal parts, that is, the upper 8 bits control the 4A current into 255 equal parts, and the current of each equal part is 16mA. Assuming that the lower 8 bits control 800mA current, the current of each equal part is 3mA. Among them, the upper 8-bit value 255 *256 in channel 1 plus the lower 8-bit value 255 of channel 2, the total is 65535. If the upper 8 bits are 255 and the lower 8 bits are 0, the total is 255*256+0 = 65280.

[0083] Similarly, use 2 channels to control blue light, channel 3 is the high current channel of blue light, channel 4 is the low current channel of blue light, and similarly, divide the maximum current of blue light 4A into 255 equal parts, that is, the upper 8 bits control the 4A current into 255 equal parts, and the current of each equal part is 16mA. Assuming that the lower 8 bits control the 800mA current, the current of each equal part is 3mA.

[0084] In one possible implementation, it is assumed that the maximum precision of the processor supports 32-bit binary data, and the precision of 32-bit data is sufficient to meet the demand. It is also possible to use part of the bit information in the high 16-bit data of the binary 32-bit data as the bit information of the high current channel. For example, the range of 0-255 of the low 8 bits (the low 8 bits are only for the high 16-bit data, and the basis for the low 16-bit data is the high 8 bits) in the high 16-bit data is used as the range of the high current channel. The low 16 bits of the binary 32-bit data are divided into low current channels, and the range of 0-65535 of the low 16 bits is used as the range of the low current channel. That is, the low 8 bits of the high 16-bit data control the maximum current of 4A, and the low 16 bits control the current of 800mA.

[0085] It should be noted that the maximum currents of magenta light and blue light may be the same or different, depending on the actual situation of the lamp. The low-current channel control current is determined according to the actual situation of the lamp. The 800mA current is just an example.

[0086] S402, determining a high-order current control value according to the first test current channel value and the bit number information.

[0087] In this embodiment, the high-order current control value is determined based on the first test current channel value and the bit number information. For example, the bit number information is 8, that is, the maximum current is controlled by the high 8 bits of binary data. Then, the first test current channel value is multiplied by 256, and the high 8 bits of the first test current channel value can be converted into binary to obtain the high-order current control value.

[0088] S403, determining a fine-tuning coefficient of a low current channel according to the high current control value, the second test current channel value and the test current control value.

[0089] In this embodiment, the low-level current control value can be determined according to the difference between the high-level current control value and the test current control value, and the fine-tuning coefficient of the low-current channel is obtained based on the low-level current control value.

[0090] S404, constructing an optical model according to the fine-tuning coefficient and the bit number information.

[0091] In this embodiment, an optical model is constructed according to the fine-tuning coefficient and the bit number information corresponding to the high current channel. For example, the bit number information corresponding to the high current channel is 8, then the optical model Sum = pH *256 + p*k, k is the fine-tuning coefficient, p is the current channel value of the low current channel, and pH is the current channel value of the high current channel; if the bit number information corresponding to the high current channel is 16, then the optical model Sum = pH *65536 + p*k.

[0092] In the embodiment of the present application, based on the processing power of the processor in the lamp, the bit information corresponding to the high current channel is determined, and the high current control value is determined according to the first test current channel value and the bit information, and the fine-tuning coefficient of the low current channel is determined according to the high current control value, the second test current channel value and the test current control value, and the optical model is constructed according to the fine-tuning coefficient and the bit information. In the embodiment of the present application, the optical model is constructed based on the fine-tuning coefficient and the bit information, and the magenta light and the blue light can be controlled respectively for the same type of light sources of different lamps through the fine-tuning function of the low current channel, so as to correct the differences between different light sources, thereby better controlling the color rendering index.

[0093] Figure 5 FIG. 1 is a flow chart of a method for determining median information according to an embodiment of the present invention. Figure 5 As shown, the embodiment of the present application relates to a possible implementation method of how to determine the bit information of the high current channel based on the processing capability of the processor in the lamp, including the following steps:

[0094] S501, determining the total number of bits of light to be regulated based on the processing capability of the processor in the lamp;

[0095] S502 , evenly divide the total bit number information based on the high current channel and the low current channel to obtain the bit number information corresponding to the high current channel.

[0096] In this embodiment, assuming that the processing capability of the processor in the lamp is 16-bit binary data, the total bit information is 16 bits, and the bit information corresponding to the high current channel is 8 bits. If the processing capability of the processor in the lamp is 32-bit binary data, the total bit information is 32 bits, and the bit information corresponding to the high current channel is 16 bits.

[0097] In an embodiment of the present application, based on the processing capability of the processor in the lamp, the total bit number information of the light to be controlled is determined, and the total bit number information is evenly divided based on the high current channel and the low current channel to obtain the bit number information corresponding to the high current channel, which is more in line with the processor's processing rules for binary data and improves the flexibility of determining the bit number information.

[0098] Figure 6 FIG. 1 is a flow chart of a method for determining a fine-tuning coefficient in an embodiment. Figure 6 As shown, the embodiment of the present application relates to a possible implementation method of how to determine the fine-tuning coefficient of the low current channel according to the high current control value, the second test current channel value and the test current control value, including the following steps:

[0099] S601, determining a low current control value according to a difference between a high current control value and a test current control value.

[0100] S602, determining a fine-tuning coefficient of a low current channel based on a ratio of a low current control value to a second test current channel value.

[0101] In an embodiment of the present application, the low-level current control value is determined based on the difference between the high-level current control value and the test current control value, and the fine-tuning coefficient of the low-level current channel is determined based on the ratio of the low-level current control value to the second test current channel value, thereby laying the foundation for subsequently determining the optical model based on the fine-tuning coefficient.

[0102] Figure 7 FIG. 1 is a flow chart of a color rendering index control method in another embodiment. Figure 7 As shown, the embodiment of the present application relates to a possible implementation method of how to determine the target current channel value of the light to be adjusted in the lamp at each dimming ratio according to each target color rendering index and a pre-established optical model, including the following steps:

[0103] S701, for each dimming ratio, obtaining an initial color rendering index of the lamp under the dimming ratio;

[0104] S702, when the initial color rendering index is less than the target color rendering index, determining a target current channel value of magenta light according to an optical model;

[0105] S703, determining a target current channel value of blue light according to the target color rendering index and the optical model.

[0106] In this embodiment, at each dimming ratio, the initial color rendering index of the lamp is obtained by using C800, a power meter, and a rangefinder. If the color rendering index is less than the target color rendering index corresponding to the dimming ratio, the candidate current channel values ​​of magenta light that are successively increased are determined according to the optical model, and the current of magenta light is increased by the candidate current channel values ​​of magenta light in sequence. After each increase in the current of magenta light, the color rendering index of the lamp is obtained. If the color rendering index is less than the color rendering index corresponding to the previous candidate current channel value, the candidate current channel value is used as the target current channel value of magenta light. The candidate current channel values ​​of blue light that are successively increased are determined by the optical model, and the blue light current is gradually increased in the lamp. After each increase in the blue light current, the color rendering index of the lamp is obtained. If the color rendering index is equal to the target color rendering index, the candidate current channel value of blue light corresponding to this color rendering index is used as the target current channel value of blue light.

[0107] In a possible implementation, when the color rendering index is less than the target color rendering index, the current of the magenta light can be increased sequentially through the candidate current channel values ​​of the magenta light, and any candidate current channel value of the magenta light in the process can be used as the target current channel value of the magenta light, that is, it is not necessary to satisfy the situation where the color rendering index is less than the color rendering index of the previous round of candidate current channel values. For example, the color rendering index when the candidate current channel value of the magenta light is 7 is less than the color rendering index when the candidate current channel value of the magenta light is 6, but when the candidate current channel value of the magenta light is 4, the magenta current is not further added to the light source module, and blue light is directly added to the light source module, that is, the target current channel value of the magenta light is 4.

[0108] Furthermore, "determining the target current channel value of magenta light according to the optical model" includes: determining candidate current channel values ​​of magenta light in ascending order according to the optical model; for each round, obtaining the color rendering index of the lamp under the candidate current channel value; when the color rendering index is less than the color rendering index of the candidate current channel value in the previous round, using the candidate current channel value as the target current channel value of magenta light.

[0109] For specific implementation methods, please refer to the above embodiments.

[0110] In the embodiment of the present application, for each dimming ratio, the initial color rendering index of the lamp under the dimming ratio is obtained. When the initial color rendering index is less than the target color rendering index, the target current channel value of magenta light is determined according to the optical model. According to the target color rendering index and the optical model, the target current channel value of blue light is determined. Magenta light is first added to the lamp to improve the color rendering index of the light source module. It is more in line with the optical characteristics and the control efficiency of the color rendering index is higher.

[0111] Figure 8 FIG. 1 is a flow chart of a color rendering index control method in another embodiment. Figure 8 As shown, the following steps are included:

[0112] S801, determining the total number of bits of light to be regulated based on the processing capability of the processor in the lamp;

[0113] S802, evenly divide the total number of bits information based on the high current channel and the low current channel to obtain the number of bits information corresponding to the high current channel;

[0114] S803, determining a high-order current control value according to the first test current channel value and the bit information;

[0115] S804, determining a low current control value according to a difference between the high current control value and the test current control value;

[0116] S805, determining a fine-tuning coefficient of the low current channel based on a ratio between the low current control value and the second test current channel value;

[0117] S806, constructing an optical model according to the fine-tuning coefficient and the bit information;

[0118] S807, obtaining a target color rendering index for each dimming ratio when the lamp outputs the required target light;

[0119] S808, for each dimming ratio, obtaining an initial color rendering index of the lamp under the dimming ratio;

[0120] S809, when the initial color rendering index is less than the target color rendering index, determining candidate current channel values ​​for magenta light in ascending order according to the optical model;

[0121] S810, for each round, obtaining a color rendering index of the lamp under a candidate current channel value of magenta light;

[0122] S811, when the color rendering index is less than the color rendering index of the candidate current channel value of the previous round of magenta light, using the candidate current channel value as the target current channel value of the magenta light;

[0123] S812, determining a target current channel value for blue light according to a target color rendering index and an optical model;

[0124] S813, controlling the color rendering index of the lamp based on the target current channel values ​​corresponding to the dimming ratios; the target current channel values ​​include a target current channel value for magenta light and a target current channel value for blue light.

[0125] The present application utilizes the characteristic that adding magenta light or blue light can change the color rendering index of white light. An optical model is constructed through the test current channel value of the light to be controlled under the test current control value. Based on the target color rendering index and the optical model under each dimming ratio, the target current channel value of magenta light or blue light under the corresponding dimming ratio is determined. The color rendering index of the lamp is controlled based on the target current channel value, so that the color rendering index can meet the requirements when the dimming ratio changes from 0% to 100%, thereby improving the color reproduction of the lamp, and does not require the addition of additional hardware, thereby reducing the control cost of the color rendering index.

[0126] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0127] Based on the same inventive concept, the embodiment of the present application also provides a color rendering index control device for implementing the color rendering index control method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more color rendering index control device embodiments provided below can refer to the limitations of the color rendering index control method above, and will not be repeated here.

[0128] In an exemplary embodiment, Fig. 9 As shown, a color rendering index control device is provided, comprising: an acquisition module 11, a first determination module 12 and a control module 13, wherein:

[0129] An acquisition module 11 is used to acquire a target color rendering index at each dimming ratio when the lamp outputs the required target light;

[0130] A first determination module 12 is used to determine a target current channel value of the light to be regulated in the lamp according to each target color rendering index and a pre-established optical model, wherein the optical model is constructed based on a test current channel value of the light to be regulated under a test current control value, and the light to be regulated includes magenta light and / or blue light;

[0131] The control module 13 is used to control the color rendering index of the lamp based on the target current channel value corresponding to each dimming ratio.

[0132] In one embodiment, the color rendering index control device further comprises:

[0133] A second determination module, used to determine the bit information corresponding to the high current channel based on the processing capability of the processor in the lamp;

[0134] A third determination module, used to determine a high-order current control value according to the first test current channel value and the bit number information;

[0135] A fourth determination module, used to determine a fine-tuning coefficient of a low current channel according to the high current control value, the second test current channel value and the test current control value;

[0136] A building block is used to build an optical model based on the fine-tuning coefficients and the number of bits information.

[0137] In one embodiment, the second determination module is specifically used to determine the total bit number information of the light to be controlled based on the processing capability of the processor in the lamp; and to evenly divide the total bit number information based on the high current channel and the low current channel to obtain the bit number information corresponding to the high current channel.

[0138] In one embodiment, the fourth determination module is specifically used to determine the low current control value according to the difference between the high current control value and the test current control value; and determine the fine-tuning coefficient of the low current channel based on the ratio of the low current control value to the second test current channel value.

[0139] In one embodiment, the first determination module 12 is specifically used to obtain the initial color rendering index of the lamp under each dimming ratio; when the initial color rendering index is less than the target color rendering index, determine the target current channel value of magenta light according to the optical model; determine the target current channel value of blue light according to the target color rendering index and the optical model.

[0140] In one embodiment, the first determination module 13 is specifically used to determine the candidate current channel values ​​of magenta light in increasing order according to the optical model; for each round, the color rendering index of the lamp under the candidate current channel value is obtained; when the color rendering index is less than the color rendering index of the candidate current channel value in the previous round, the candidate current channel value is used as the target current channel value of magenta light.

[0141] Each module in the color rendering index control device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor in the lamp in the form of hardware, or can be stored in the memory in the lamp in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0142] In one embodiment, a lamp is provided, the internal structure of which can be as shown in FIG. Fig.10As shown. The lamp includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the lamp is used to provide computing and control capabilities. The memory of the lamp includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the lamp is used to store lamp control related data. The network interface of the lamp is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a color rendering index control method is implemented.

[0143] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0144] In an exemplary embodiment, a lamp is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of any of the above method embodiments when executing the computer program.

[0145] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above method embodiments are implemented.

[0146] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of any of the above method embodiments when executed by a processor.

[0147] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0148] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0149] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0150] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A color rendering index control method, characterized in that: The method comprises: Obtain the target color rendering index of each dimming ratio when the lamp outputs the required target light; Determine the target current channel value of the light to be regulated in the lamp at each dimming ratio according to each target color rendering index and a pre-established optical model, wherein the optical model is constructed based on the test current channel value of the light to be regulated at the test current control value, and the light to be regulated includes magenta light and / or blue light; The color rendering index of the lamp is controlled based on the target current channel value corresponding to each of the dimming ratios.

2. The method according to claim 1, characterized in that The test current channel value includes a first test current channel value corresponding to a high current channel and a second test current channel value corresponding to a low current channel. The construction process of the optical model includes: Determining the bit information corresponding to the high current channel based on the processing capability of the processor in the lamp; Determine a high-order current control value according to the first test current channel value and the number of bits information; Determining a fine-tuning coefficient of the low current channel according to the high current control value, the second test current channel value and the test current control value; The optical model is constructed according to the fine-tuning coefficient and the bit number information.

3. The method according to claim 2, characterized in that The determining, based on the processing capability of the processor in the lamp, the bit information corresponding to the high current channel includes: Determining the total number of bits of the light to be regulated based on the processing capability of the processor in the lamp; The total bit number information is evenly divided based on the high current channel and the low current channel to obtain the bit number information corresponding to the high current channel.

4. The method according to claim 2, characterized in that: The step of determining the fine-tuning coefficient of the low current channel according to the high current control value, the second test current channel value and the test current control value comprises: Determining a low current control value according to a difference between the high current control value and the test current control value; Based on the ratio of the low current control value and the second test current channel value, a fine-tuning coefficient of the low current channel is determined.

5. The method according to claim 1, characterized in that The target current channel value includes a target current channel value for magenta light and a target current channel value for blue light, and determining the target current channel value for the light to be modulated in the lamp at each dimming ratio according to each target color rendering index and a pre-established optical model includes: For each dimming ratio, obtaining an initial color rendering index of the lamp at the dimming ratio; When the initial color rendering index is less than the target color rendering index, determining a target current channel value of the magenta light according to the optical model; According to the target color rendering index and the optical model, a target current channel value of the blue light is determined.

6. The method according to claim 5, characterized in that The determining the target current channel value of the magenta light according to the optical model includes: Determining, according to the optical model, candidate current channel values ​​for the magenta light in increasing order; For each round, obtaining the color rendering index of the lamp under the candidate current channel value; In a case where the color rendering index is less than the color rendering index of the candidate current channel value in the previous round, the candidate current channel value is used as the target current channel value of the magenta light.

7. A color rendering index control device, characterized in that: The device comprises: An acquisition module, used to acquire the target color rendering index at each dimming ratio when the lamp outputs the required target light; A first determination module is used to determine a target current channel value of the light to be regulated in the lamp according to each of the target color rendering indexes and a pre-established optical model, wherein the optical model is constructed based on a test current channel value of the light to be regulated under a test current control value, and the light to be regulated includes magenta light and / or blue light; A control module is used to control the color rendering index of the lamp based on the target current channel value corresponding to each dimming ratio.

8. A lamp, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.