Lighting color control method, device, product and lamp

By calculating the color-to-tuning ratio coefficient and unit color-to-tuning value of each color-to-tuning element during the color-to-tuning process, the problem of gradient color during the color-to-tuning process is solved, and a smoother color transition and a better visual experience is achieved.

CN115278979BActive Publication Date: 2025-02-18SHENZHEN INTELLIROCKS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210945025.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-08
Publication Date
2025-02-18
Estimated Expiration
2042-08-08

AI Technical Summary

Technical Problem

During the color matching process of RGB lighting, due to the inconsistent proportions of the three RGB colors in different colors of light, various intermediate colors are prone to appear during the color matching process, affecting the user's visual experience.

Method used

By calculating the color difference value between the target color parameter and the current color parameter, the first color tone ratio coefficient of each color light element is determined, and the proportion coefficient and the preset color tone step matching weight of each color light element are calculated. Unit color tone value, each color light element is synchronously controlled to perform color tone with its respective corresponding unit color tone values.

Benefits of technology

Ensure that each color light element has the same number of color toning times during the color toning process, avoid one or more of the color light elements from completing color toning in advance, thereby preventing gradual color from appearing and improving visual effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115278979B_ABST
    Figure CN115278979B_ABST
Patent Text Reader

Abstract

The present invention provides a light color adjustment control method, device, product and lamp, the method comprising the following steps: responding to a light color adjustment instruction, determining a target color parameter corresponding to the instruction, the color parameter comprising color values ​​corresponding to a plurality of color light elements; determining a first color adjustment ratio coefficient of each color light element according to the target color parameter and the current color parameter corresponding to the plurality of color light elements; determining a unit color adjustment value of each color light element, the unit color adjustment value of each color light element being the result of a preset color adjustment step matching weight, the weight comprising the first color adjustment ratio coefficient of the color light element; synchronously controlling each color light element to perform at least one color adjustment with its corresponding unit color adjustment value, adjusting each color light element to emit a color light corresponding to the target color parameter. The method associates the unit color adjustment values ​​of the plurality of color light elements, so that the number of color adjustments is the same, avoiding the occurrence of gradient colors during the color adjustment process, and affecting the lighting effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lighting equipment control, and in particular to a light color adjustment control method, a light color adjustment control device, a computer program product and a lamp. Background Art

[0002] As is known to all, RGB (red, green, blue) three-color light can be combined to form any color of light. Therefore, in order to adjust the color of the light emitted, the lighting device usually sets three RGB light-emitting elements in the lighting device, such as LED lamps, so that the LED lamps can emit light of any color, thereby improving the user's visual experience.

[0003] In the process of adjusting the color of the light, that is, in the process of color gradient of the light, the three colors of RGB are adjusted with the same step length. However, due to the inconsistent proportions of the three colors of RGB in different colors of light, various intermediate colors are likely to appear in the color adjustment process, thus affecting the user's visual experience. For example, when the light emitted by the RGB lamp is adjusted from orange (255, 127, 0) to blue (0, 0, 255), the three colors of RGB are gradually adjusted with a step length of 1. In the color gradient process, the values ​​of the three primary colors of RGB are (255, 127, 0), (254, 126, 1), (253, 125, 2)... (1, 0, 254), (0, 0, 255). Because the three colors of RGB are adjusted with the same step length in the color adjustment process, the RGB lamp will produce a variety of gradient colors in sequence in the color adjustment process, which greatly affects the light effect during color adjustment and affects the visual experience.

[0004] In particular, when the values ​​of the three RGB colors that need to be changed are different, when the three RGB colors are adjusted with the same step length, it is easy for one of the colors to be adjusted, while the other one or two colors have not been adjusted, so that the RGB lamp will have multiple gradient colors during the adjustment process, affecting the user's visual experience. For example, when the RGB light gradually changes from orange (255, 127, 0) to black (0, 0, 0), and the three RGB colors are gradually changed with the same step length of 1, during the color gradient adjustment process, orange will gradually transition to red (128, 0, 0), and then from red (128, 0, 0) to black. Therefore, when the three RGB colors are gradually changed with the same step length, because the color values ​​that need to be adjusted for each color are different, the number of gradients of each color is inconsistent, so that the RGB lamp will have multiple colors of color light during the adjustment process, thereby affecting the user's visual experience and reducing visual perception. Summary of the invention

[0005] The primary purpose of the present invention is to solve at least one of the above problems and provide a light color adjustment control method, device, product and lamp.

[0006] In order to meet the various objectives of the present invention, the present invention adopts the following technical solutions:

[0007] One of the purposes of the present invention is to provide a light color adjustment control method, comprising the following steps:

[0008] In response to a light color adjustment instruction, determine a target color parameter corresponding to the instruction, where the color parameter includes color values ​​corresponding to a plurality of color light elements;

[0009] Determine a first color adjustment ratio coefficient of each color light element according to the target color parameter and the current color parameter corresponding to the plurality of color light elements;

[0010] Determine a unit color adjustment value of each color light element, where the unit color adjustment value of each color light element is a result of a preset color adjustment step matching weight, and the weight includes a first color adjustment ratio coefficient of the color light element;

[0011] Each color light element is synchronously controlled to perform at least one color adjustment with its corresponding unit color adjustment value, so that each color light element is adjusted to emit color light corresponding to the target color parameter.

[0012] Furthermore, the step of determining the first color adjustment ratio coefficient of each color light element according to the target color parameter and the current color parameter corresponding to the plurality of color light elements includes the following specific steps:

[0013] Based on the target color parameters and the current color parameters, the color adjustment difference values ​​required to change the color values ​​of each color light element are calculated, and the maximum color adjustment difference value is determined;

[0014] The color adjustment difference values ​​of each color light element are normalized according to the maximum color adjustment difference value to obtain a first color adjustment ratio coefficient corresponding to each color light element.

[0015] Furthermore, the step of determining the unit color adjustment value of each color light element includes the following specific steps:

[0016] Determine the largest of the maximum color adjustment difference values ​​of the various color light elements included in the plurality of light-emitting units as the unit maximum color adjustment difference value;

[0017] Normalizing the maximum color adjustment difference value of each light-emitting unit according to the unit maximum color adjustment difference value to obtain a second color adjustment ratio coefficient corresponding to each light-emitting unit;

[0018] The product of a preset color adjustment step and a weight of each color light element of each light-emitting unit is calculated as a unit color adjustment value of the corresponding color light element, wherein the weight includes a first color adjustment ratio system of the corresponding color light element and a second color adjustment ratio coefficient corresponding to the light-emitting unit to which the color light element belongs.

[0019] Further, the step of synchronously controlling each color light element to perform at least one color adjustment with each corresponding unit color adjustment value, and adjusting each color light element to emit color light corresponding to the target color parameter, includes the following specific steps:

[0020] Determine the color adjustment control times of all color light elements based on the ratio of the color adjustment difference value of any color light element to its unit color adjustment value;

[0021] Generating a color adjustment control signal corresponding to a unit color adjustment value of each color light element;

[0022] According to the color adjustment control times, the corresponding color adjustment control signals are synchronously and continuously sent to all color light elements, and each color light element is controlled to perform color adjustment according to the color adjustment control signals.

[0023] Furthermore, the step of normalizing the color adjustment difference values ​​of each color light element according to the maximum color adjustment difference value to obtain the first color adjustment proportional coefficient corresponding to each color light element includes the following specific steps:

[0024] The color adjustment difference value of each color light element is divided by the maximum color adjustment difference value to obtain a corresponding first color adjustment ratio coefficient, and all the first color adjustment ratio coefficients are normalized to a numerical space of [0, 1].

[0025] Specifically, every three of the plurality of color light elements constitute a light-emitting unit, and the three color light elements are used to emit red, green, and blue color lights, respectively.

[0026] Specifically, the unit color adjustment value belongs to an integer value space of 0 to 255, and the color adjustment step belongs to an integer value space of 1 to 20.

[0027] A lamp is provided to meet one of the purposes of the present invention, including a dimmer, a control unit and a plurality of light-emitting units, the dimmer is used to output light color adjustment instructions to the control unit, each light-emitting unit includes a plurality of color light elements, the control unit is electrically connected to each color light element of the light-emitting unit, a computer program is written into the control unit, and after the computer program is called by a control chip, the method described in any one of claims 1 to 6 is executed.

[0028] One of the purposes of the present invention is to provide a light color adjustment control device, comprising:

[0029] A response module, responding to a light color adjustment instruction, determines a target color parameter corresponding to the instruction, wherein the color parameter includes color values ​​corresponding to a plurality of color light elements;

[0030] A coefficient calculation module, which determines a first color adjustment ratio coefficient of each color light element according to a target color parameter and a current color parameter corresponding to the plurality of color light elements;

[0031] A color adjustment calculation module determines a unit color adjustment value of each color light element, wherein the unit color adjustment value of each color light element is a result of a preset color adjustment step matching weight, wherein the weight includes a first color adjustment ratio coefficient of the color light element;

[0032] The color adjustment module synchronously controls each color light element to perform at least one color adjustment with each corresponding unit color adjustment value, and adjusts each color light element to emit color light corresponding to the target color parameter.

[0033] A computer program product is provided to meet one of the purposes of the present invention, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

[0034] Compared with the prior art, the advantages of the present invention are as follows:

[0035] On the one hand, the light color adjustment control method of the present invention can calculate the color adjustment difference value that needs to be changed for the color light element through the current color parameter and the target color parameter, and the number of color adjustments of the color light element can be calculated based on the color adjustment difference value and the unit color adjustment value. Since the first color adjustment ratio coefficients of each color light element are the same or different, the unit color adjustment values ​​of each color light element are the same or different, that is, the amplitudes of each color light element during a single color adjustment are the same or different, so that multiple color light elements can be finally adjusted to the target color value after the same number of color adjustments, and the light emitted by the overall composition of the multiple color light elements during the color adjustment process will not have a gradient color, thereby improving the visual effect.

[0036] On the other hand, the lighting color adjustment control method of the present invention associates the first color adjustment ratio coefficients corresponding to each color light element, so that the unit color adjustment values ​​calculated based on the corresponding first color adjustment ratio coefficients of each color light element are the same or different, and each color light element has the same number of color adjustment times when adjusting to the target color value, so that during the color adjustment process, one or more color light elements will not complete the color adjustment in advance, thereby avoiding the occurrence of gradient colors due to one or more color light elements completing the color adjustment in advance during the color adjustment process, thereby improving the lighting effect.

[0037] Additional aspects and advantages of the present invention will be given in part in the following description, which will become obvious from the following description, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0039] Figure 1 A schematic diagram of the circuit principle of a lamp according to a typical embodiment of the present invention;

[0040] Figure 2 Schematic diagram of the flow of a lighting color adjustment control method according to a typical embodiment of the present invention;

[0041] Figure 3 Schematic diagram of the flow of step S12 of the light color adjustment control method according to a typical embodiment of the present invention;

[0042] Figure 4 Schematic diagram of the flow of step S13 of the light color adjustment control method according to a typical embodiment of the present invention;

[0043] Figure 5 Schematic diagram of the flow of step S14 of the light color adjustment control method according to a typical embodiment of the present invention;

[0044] Figure 6 The present invention is a structural schematic diagram of a lighting color adjustment control device according to a typical embodiment of the present invention. DETAILED DESCRIPTION

[0045] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention and cannot be interpreted as limiting the present invention.

[0046] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0047] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.

[0048] The present invention provides a light color adjustment control method, through which when a light-emitting unit adjusts the color of the light emitted, each color light element constituting the light-emitting unit determines a unit color adjustment value for each color adjustment according to a difference between a target color and a current color during the color adjustment process, so that each color light element completes the overall color adjustment after the same number of color adjustments, thereby avoiding the situation where one or more color light elements have completed the color adjustment while other color light elements have not completed the color adjustment, thereby causing the light-emitting unit to have a variety of gradient colors during the color adjustment process, affecting the visual effect.

[0049] In an exemplary embodiment of the present invention, the light color adjustment control method is implemented based on the lamp 10, combined with Figure 1 The lamp 10 includes a dimmer 11, a control unit 12 and a plurality of light emitting units 13. The dimmer 11 is electrically connected to the control unit 12, and the control unit 12 is electrically connected to the plurality of light emitting units 13 respectively.

[0050] Specifically, the light emitting unit 13 includes a plurality of color light elements 131, and the plurality of color light elements 131 respectively emit light of different colors. The color light emitted by the plurality of color light elements 131 can constitute light of any color, that is, the light emitting unit 13 can emit light of any color.

[0051] In a typical embodiment of the present invention, the light emitting unit 13 includes three color light elements 131, which are respectively a red light element 132, a green light element 133 and a blue light element 134. The red light element 132 is used to emit red light, the green light element 133 is used to emit green light, and the blue light element 134 is used to emit blue light. The color light emitted by each of the three color light elements 131 of the light emitting unit 13 adjusts the color value of each color light, and can form light of any color after combination. In one embodiment, the light emitting unit 13 is an LED lamp.

[0052] The dimmer 11 is used to output a light color adjustment instruction to the control unit 12. After receiving the light color adjustment instruction, the control unit 12 controls the corresponding light emitting unit 13 to emit light of the corresponding color. In one embodiment, the dimmer 11 is a computer, and the user can issue a light color adjustment instruction to the control unit 12 through the dimmer 11 to control the light emitting unit 13 to change the color of the light emitted.

[0053] Specifically, after receiving the light color adjustment instruction, the control unit 12 parses the target color parameter corresponding to the light emitting unit 13 from the light color adjustment instruction, obtains the current color parameter of the light emitting unit 13, determines the color value to be adjusted for each color light element 131 based on the target color parameter and the current color parameter, and calculates the unit color adjustment value of each color light element 131 of the light emitting unit 13 at each color adjustment. Afterwards, the control unit 12 controls each color light element 131 to perform color adjustment at least once based on the unit color adjustment value corresponding to each color light element 131, so that the color light element 131 adjusts its color value to the target color value, thereby allowing the light emitting unit 13 to adjust the color of the light it emits to the target color. In one embodiment, the control unit 12 is a control chip of the light emitting unit 13.

[0054] The specific color adjustment method of each color light element of the light-emitting unit can be found in the light color adjustment control method below, which will not be described in detail here.

[0055] The light color adjustment control method is implemented based on the above-mentioned lamp. Specifically, Figure 2 , the lighting color adjustment control method comprises the following steps:

[0056] Step S11, responding to the light color adjustment instruction, determining the target color parameters corresponding to the instruction, the color parameters including the color values ​​corresponding to the plurality of color light elements:

[0057] The dimmer outputs a light color adjustment instruction to the control unit. After receiving the light color adjustment instruction, the control unit parses the target color parameters of the corresponding light-emitting unit from the light color adjustment instruction, and the target color parameters include color values ​​corresponding to multiple color light elements of the light-emitting unit. In one embodiment, the target color parameters are expressed in the form of numerical values, specifically RGB numerical values. In the RGB numerical value, the R value is the target color value of the red light color light element of the light-emitting unit, the G value is the target color value of the green light color light element of the light-emitting unit, and the B value is the target color value of the blue light color light element of the color light element. When the three color light elements of the light-emitting unit are each adjusted to the target color, the color emitted by the light-emitting unit corresponds to the target color contained in the light color adjustment instruction.

[0058] Step S12, determining a first color adjustment ratio coefficient of each color light element according to the target color parameter and the current color parameter corresponding to the plurality of color light elements:

[0059] After the control unit obtains the color values ​​corresponding to each color light element of the light-emitting unit by parsing the light color adjustment instruction, the control unit obtains the current color value of each color light element of the light-emitting unit, and the current color value refers to the color value of the color light element when it is currently emitting light. The control unit obtains the color adjustment difference value based on the difference between the current color value of the color light element and the corresponding target color value. After the control unit obtains the color adjustment difference value corresponding to each color light element of the light-emitting unit, one of the color adjustment difference values ​​is extracted from the multiple color adjustment difference values ​​as the comparison difference value.

[0060] Afterwards, the color adjustment difference values ​​corresponding to each color light element are calculated respectively with the contrast difference value, and the first color adjustment ratio coefficients corresponding to each color light element are obtained respectively. The first color adjustment ratio coefficients are used to calculate the unit color adjustment value of the corresponding color light element during color adjustment, so that each color light element performs the same number of color adjustments during color adjustment, thereby avoiding one or more of the multiple color light elements from completing the color adjustment in advance, which causes the light-emitting unit to have a gradient color during the color adjustment process, affecting the visual effect of the light emitted by the light-emitting unit.

[0061] Specifically, combined Figure 3 , this step S12 includes the following specific steps:

[0062] Step S121, based on the target color parameter and the current color parameter, the color difference value required to change the color value of each color light element is calculated, and the maximum color difference value is determined:

[0063] After the control unit obtains the target color parameter corresponding to the light-emitting unit from the light color adjustment instruction, the target color parameter includes the target color value of each color light element of the light-emitting unit. For example, if the target color parameter of the light-emitting unit is the target color value Di(r1, g1, b1), then the target color value of the red light color light element of the light-emitting unit is r1, the target color value of the green light color light element is g1, and the target color value of the blue light color light element is b1.

[0064] The control unit then obtains the current color parameter of the light-emitting unit when it is currently emitting light. The current color parameter includes the current color value of each color light element of the light-emitting unit. For example, if the current color parameter of the light-emitting unit is the current color value Ci(r2, g2, b2), then the current color value of the red light color light element of the light-emitting unit is r2, the target color value of the green light color light element is g2, and the target color value of the blue light color light element is b2.

[0065] Afterwards, the control unit calculates the difference between the current color value and the target color value based on the target color value and the current color value of each color light element. The difference is called the color adjustment difference value, that is, the color value that needs to be changed for the color light element to adjust from the current color value to the target color value. For example, the color adjustment difference values ​​Ai (r1-r2, g1-g2, b1-b2) of the three color light elements of the light-emitting unit, where r1-r2 is the color adjustment difference value of the red light element, g1-g2 is the color adjustment difference value of the green light element, and b1-b2 is the color adjustment difference value of the blue light element.

[0066] The control unit converts the color difference values ​​corresponding to each color light element into absolute values, selects the color difference value with the largest value from the absolute valued color difference values, and calls the color difference value with the largest value the maximum color difference value. For example, if the target color parameter of the light-emitting unit is D1 (255, 180, 0), and the current color value is C1 (0, 255, 192), then the color difference value A1 is (|255-0|, |180-255|, |0-192|), that is, the color difference value is A1 (255, 75, 192), and the maximum color difference value is MAX1 = 255.

[0067] Step S122, normalizing the color adjustment difference value of each color light element according to the maximum color adjustment difference value, and obtaining a first color adjustment ratio coefficient corresponding to each color light element:

[0068] After obtaining the color adjustment difference value and the maximum color adjustment difference value corresponding to each color light element of the light emitting unit, the control unit calculates the color adjustment difference value corresponding to each color light element with the maximum color adjustment difference value to obtain the first color adjustment ratio coefficient corresponding to each color light element, and the first color adjustment ratio coefficients corresponding to each of the multiple color light elements are the same or different. Afterwards, the first color adjustment ratio coefficient is normalized so that the first color adjustment ratio coefficient is a readable value. In one embodiment, the first color adjustment ratio coefficient is a division calculation, a variance calculation, or a standard deviation calculation.

[0069] In one embodiment, step S12 further includes step S123, dividing the color adjustment difference value of each color light element by the maximum color adjustment difference value to obtain a corresponding first color adjustment ratio coefficient, and normalizing all the first color adjustment ratio coefficients to a numerical space of [0, 1]:

[0070] The color adjustment difference value corresponding to each color light element is divided by the maximum color adjustment difference value to obtain the first color adjustment ratio coefficient corresponding to each color light element. To facilitate understanding of the first color adjustment ratio coefficient, the first color adjustment ratio coefficient is normalized to the numerical space of [0, 1]. For example, the color adjustment difference value of the light-emitting unit is A1 (255, 75, 192), the maximum color adjustment difference value is MAX1 = 255, and the first color adjustment ratio coefficient corresponding to the light-emitting unit is (255 / 255, 75 / 255, 192 / 255). Then, the first color adjustment ratio coefficient of the red light element is 255 / 255, the first color adjustment ratio coefficient of the green light element is 75 / 255, and the first color adjustment ratio coefficient of the blue light element is 192 / 255.

[0071] Step S13, determining the unit color adjustment value of each color light element, the unit color adjustment value of each color light element is the result of a preset color adjustment step matching weight, and the weight includes a first color adjustment ratio coefficient of the color light element:

[0072] After obtaining the first color adjustment ratio coefficient corresponding to each color light element of the light emitting unit, the control unit determines the weight corresponding to each color light element, and the weight is used to match the preset color adjustment step to obtain the unit color adjustment value corresponding to each color light element. The unit color adjustment value of the color light element is associated with multiple color light elements of the same light emitting unit through the first color adjustment ratio coefficient, so that the color light elements of the light emitting unit can be associated with each other during the color adjustment process, so that the color adjustment times of each color light element are the same, so that each color light element can complete the color adjustment at the same time, avoiding the light emitting unit from producing gradient colors due to different color adjustment times of each color light element during the color adjustment process, affecting the visual experience.

[0073] The unit color adjustment value is the color adjustment value of the color light element each time the color is adjusted. The color light element needs to undergo one or more color adjustments to change from the current color value to the corresponding target color value, and the corresponding unit color adjustment value is adjusted each time the color is adjusted. The color adjustment step is the color adjustment step corresponding to each color light element allocated to the light-emitting unit. The color adjustment step is preset by the control unit, or the color adjustment step is sent to the control unit by the dimmer via the light color adjustment instruction. The unit color adjustment value belongs to the integer value space of 0 to 255, and the color adjustment step belongs to the integer value space of 1 to 20.

[0074] Specifically, the weight is multiplied by the color adjustment step to obtain the unit color adjustment value of the corresponding color light element.

[0075] In a typical embodiment of the present invention, the first color adjustment ratio coefficient is the weight value of the weight, and the unit color adjustment value of the color light element is obtained by multiplying the color adjustment step by the corresponding first color adjustment ratio coefficient. For example, the first color adjustment ratio coefficient corresponding to the light-emitting unit is (255 / 255, 75 / 255, 192 / 255), and the color adjustment step is preset to 10, then the unit color adjustment value of each color light element of the light-emitting unit is (255 / 255*10, 75 / 255*10, 192 / 255*10), that is, (10, 3, 7.5), specifically, the unit color adjustment value of the red light element is 10, the unit color adjustment value of the green light element is 3, and the unit color adjustment value of the blue light element is 7.5.

[0076] In one embodiment, the weight also includes a second color adjustment ratio coefficient, which is associated with the multiple light-emitting units of the lamp, so that the color adjustment process of a single light-emitting unit is associated with the color adjustment process of multiple light-emitting units of the lamp, so that multiple color light elements of multiple light-emitting units of the lamp perform the same number of color adjustments, thereby avoiding the occurrence of gradient color in the color adjustment process of the lamp, which affects the effect of the light emitted by the lamp. Figure 4 , by calculating the second color adjustment ratio coefficient, calculating the weight value of the weight based on the second color adjustment ratio coefficient and the first color adjustment ratio coefficient, and then calculating the unit color adjustment value, specifically, including the following specific steps:

[0077] Step S131, determining the maximum color difference value of each color light element included in the plurality of light-emitting units as the unit maximum color difference value:

[0078] The light-emitting unit includes multiple color light elements, and the difference between the target color value and the current color value of the color light element is the color difference value. The maximum value of the color difference values ​​corresponding to the multiple color light elements of the light-emitting unit is the maximum color difference value. That is to say, each light-emitting unit corresponds to a maximum color difference value. For the specific steps of determining the maximum color difference value, please refer to step S121. To save space, it will not be repeated here.

[0079] The control unit sequentially obtains the maximum color difference value corresponding to each light-emitting unit, and selects the color difference value with the largest value from the multiple maximum color difference values ​​as the unit maximum color difference value. For example, if the maximum color difference value of the first light-emitting unit is 60, the maximum color difference value of the second light-emitting unit is 190, and the maximum color difference value of the third light-emitting unit is 120, then the maximum color difference value of the second light-emitting unit is greater than the maximum color difference value of the first light-emitting unit and the third light-emitting unit, and the maximum color difference value of the second light-emitting unit is the unit maximum color difference value.

[0080] Step S132, normalizing the maximum color adjustment difference value of each light-emitting unit according to the unit maximum color adjustment difference value, and obtaining a second color adjustment ratio coefficient corresponding to each light-emitting unit:

[0081] After obtaining the unit maximum color adjustment difference value and the maximum color adjustment difference value corresponding to each light-emitting unit, the control unit calculates the maximum color adjustment difference value corresponding to each light-emitting unit with the unit maximum color adjustment difference value to obtain the second color adjustment ratio coefficient corresponding to each light-emitting unit, and the second color adjustment ratio coefficient corresponding to each light-emitting unit is the same or different. Afterwards, the second color adjustment ratio coefficient is normalized so that the second color adjustment ratio coefficient is a readable value.

[0082] The second color adjustment ratio coefficient associates the unit color adjustment value of each color light element of the light-emitting unit with the color adjustment of multiple light-emitting units of the lamp, so that each color light element of the multiple light-emitting units of the lamp can be color adjusted the same number of times, avoiding the difference in the number of color adjustment of the color light elements of the multiple light-emitting units, which causes the lamp to have a gradient color during the color adjustment process, thereby affecting the lighting effect of the lamp. In one embodiment, the first color adjustment ratio coefficient is a division calculation, a variance calculation, or a standard deviation calculation.

[0083] In one embodiment, the maximum color adjustment difference value of each light-emitting unit is divided by the unit maximum color adjustment difference value to obtain the second color adjustment ratio coefficient corresponding to each light-emitting unit. To facilitate the calling of the second color adjustment ratio coefficient, the second color adjustment ratio coefficient is normalized to the numerical space of [0, 1]. For example, if the maximum color adjustment difference value of the light-emitting unit is 60 and the unit maximum color adjustment difference value is 190, then the second color adjustment ratio coefficient corresponding to the light-emitting unit is 60 / 190.

[0084] Step S133, calculating the product of the preset color adjustment step and the weight of each color light element of each light-emitting unit as the unit color adjustment value of the corresponding color light element, wherein the weight includes the first color adjustment ratio coefficient of the corresponding color light element and the second color adjustment ratio coefficient corresponding to the light-emitting unit to which the color light element belongs:

[0085] After the control unit obtains the first color adjustment ratio coefficient corresponding to the color light element and the second color adjustment ratio coefficient corresponding to the light-emitting unit described in the color light element, the weight of the corresponding color light element is calculated based on the first color adjustment ratio coefficient and the second color adjustment ratio coefficient, and the weight corresponding to the color light element is multiplied by the adjustment length to obtain the unit color adjustment value of the color light element. The unit color adjustment value is associated with each color light element of each light-emitting unit of the lamp through the second color adjustment ratio coefficient, so that each color light element of each light-emitting unit is associated with each other, so that each color light element of multiple light-emitting units is color adjusted the same number of times, thereby avoiding the occurrence of gradient colors in the multiple light-emitting units of the lamp during the color adjustment process, affecting the visual effect.

[0086] For example, when the first color adjustment ratio coefficient corresponding to the red light color element is 1 / 2, the second color adjustment ratio coefficient of the light-emitting unit to which the red light color element belongs is 1 / 3, and the preset color adjustment step is 10, the corresponding weight of the red light color element is 1 / 2*1 / 3=1 / 6, and the corresponding unit color adjustment value of the red light color element is 1 / 6*10=6, that is to say, the red light color element adjusts 6 values ​​each time it adjusts the color.

[0087] Step S14, synchronously controlling each color light element to perform at least one color adjustment with each corresponding unit color adjustment value, and adjusting each color light element to emit color light corresponding to the target color parameter:

[0088] After the control unit obtains the corresponding unit color adjustment value of each color light element of the light emitting unit, the multiple color light elements are synchronously controlled to adjust the color based on the corresponding unit color adjustment value of each color light element. Since the unit color adjustment value of the color light element is calculated and obtained by the first color adjustment ratio coefficient or the first color adjustment ratio coefficient and the second color adjustment ratio coefficient, when each color light element of the light emitting unit adjusts the color based on its own unit color adjustment value, it is necessary to adjust the color the same number of times to adjust the corresponding target color value from the current color value, so that one or more color light elements of the light emitting unit will not complete the color adjustment in advance during the color adjustment process, thereby avoiding the occurrence of gradient color in the light emitting unit during the color adjustment process, which affects the visual effect of the light emitted by the light emitting unit during the color adjustment process.

[0089] Specific, combined Figure 5 , step S14 includes the following specific steps:

[0090] Step S141, determining the color adjustment control times of all color light elements based on the ratio of the color adjustment difference value of any color light element to its unit color adjustment value:

[0091] After the control unit obtains the color adjustment difference value and the unit color adjustment value corresponding to the color light element, it divides the color adjustment difference value and the unit color adjustment value to obtain the number of color adjustment controls for adjusting the color light element from the current color value to its target color value. Because the first color adjustment ratio coefficient or the first color adjustment ratio coefficient and the second color adjustment ratio coefficient corresponding to each color light element of the light-emitting unit are associated, multiple color light elements of the light-emitting unit and even multiple color light elements of multiple light-emitting units of the lamp have the same number of color adjustment controls, so that the color adjustment of each color light element of the light-emitting unit is synchronously controlled until each color light element completes the color adjustment. In the process of color adjustment, one or more color light elements will not complete the color adjustment in advance, causing the light-emitting unit to have a gradient color during the color adjustment process, affecting the lighting effect.

[0092] Step S142, generating a color adjustment control signal corresponding to the unit color adjustment value of each color light element:

[0093] After the control unit obtains the corresponding unit color adjustment value of each color light element, the control unit synchronously outputs a color adjustment control signal containing the corresponding unit color adjustment value to each color light element. After each color light element receives the color adjustment control signal containing the corresponding unit color adjustment value, it changes the color value to perform color adjustment.

[0094] In one embodiment, the control unit is electrically connected to each color light element through different circuits, and the control unit controls the color light element to adjust the color by sending a pulse signal to each color light element. Preferably, the dimming method is PWM dimming, and multiple different circuits are used to achieve the switching of the forward LED track light current, and the dimming purpose is achieved by adjusting the pulse width of the dimming PWM signal to control the voltage of the dimming control pin of the power chip.

[0095] Step S143, according to the color adjustment control times, synchronously and continuously sending the corresponding color adjustment control signals to all color light elements, and controlling each color light element to perform color adjustment according to the color adjustment control signals:

[0096] The control unit obtains the number of color adjustment control times of one of the color light elements, that is, all the color adjustment control times, and synchronously sends corresponding color adjustment control signals to all the color light elements continuously, controls each color light element to adjust the color according to the unit color adjustment value corresponding to the color adjustment control signal, and then completes the color adjustment of all the color light elements after the color adjustment control times, so that one or more of the color light elements will not complete the color adjustment in advance during the color adjustment process of the light-emitting unit, and the unit color adjustment value of each color light element is associated with the first color adjustment ratio coefficient or the first color adjustment ratio coefficient and the second color adjustment ratio coefficient, so that the color adjustment amplitudes of each color light element are relatively associated, so as to avoid the color adjustment amplitude of a single color adjustment of one or more color light elements being too large, thereby affecting the color adjustment effect of the light-emitting unit.

[0097] The present invention also provides a light color adjustment control device, combined with Figure 6 , the device comprises:

[0098] The response module 100 responds to the light color adjustment instruction and determines the target color parameters corresponding to the instruction, where the color parameters include color values ​​corresponding to a plurality of color light elements;

[0099] A coefficient calculation module 200 determines a first color adjustment ratio coefficient of each color light element according to a target color parameter and a current color parameter corresponding to the plurality of color light elements;

[0100] The color adjustment calculation module 300 determines the unit color adjustment value of each color light element, where the unit color adjustment value of each color light element is the result of a preset color adjustment step matching weight, and the weight includes a first color adjustment ratio coefficient of the color light element;

[0101] The color adjustment module 400 synchronously controls each color light element to perform at least one color adjustment with each corresponding unit color adjustment value, and adjusts each color light element to emit color light corresponding to the target color parameter.

[0102] The present invention also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the light color adjustment control method of any embodiment of the present invention.

[0103] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the steps of the method described in any embodiment of the present invention when executed by one or more processors.

[0104] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present invention can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0105] In summary, the light color adjustment control method of the present invention associates the unit color adjustment values ​​of the multiple color light elements of the light-emitting unit based on the first color adjustment ratio coefficient, so that the color adjustment times of the multiple color light elements of the light-emitting unit are the same, thereby avoiding the situation in which one or more color light elements complete the color adjustment in advance during the color adjustment process of the light-emitting unit, resulting in a gradient color in the color adjustment process of the light-emitting unit, affecting the lighting effect.

[0106] Those skilled in the art will appreciate that the various operations, methods, steps, measures, and schemes in the processes discussed in this application may be alternated, altered, combined, or deleted. Further, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and schemes in the prior art that are similar to those disclosed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted.

[0107] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A lighting color control method, characterized in that: The steps include: In response to a light color adjustment instruction, determine a target color parameter corresponding to the instruction, where the color parameter includes color values ​​corresponding to a plurality of color light elements; Determine a first color adjustment ratio coefficient of each color light element according to the target color parameter and the current color parameter corresponding to the plurality of color light elements; Determine a unit color adjustment value of each color light element, where the unit color adjustment value of each color light element is a result of a preset color adjustment step matching weight, and the weight includes a first color adjustment ratio coefficient of the color light element; Synchronously controlling each color light element to perform at least one color adjustment with each corresponding unit color adjustment value, and adjusting each color light element to emit color light corresponding to the target color parameter; The step of determining the first color adjustment ratio coefficient of each color light element according to the target color parameter and the current color parameter corresponding to the plurality of color light elements comprises the following specific steps: Based on the target color parameters and the current color parameters, the color adjustment difference values ​​required to change the color values ​​of each color light element are calculated, and the maximum color adjustment difference value is determined; Normalizing the color adjustment difference value of each color light element according to the maximum color adjustment difference value to obtain a first color adjustment ratio coefficient corresponding to each color light element; The step of normalizing the color adjustment difference values ​​of each color light element according to the maximum color adjustment difference value to obtain the first color adjustment proportional coefficient corresponding to each color light element includes the following specific steps: The color adjustment difference value of each color light element is divided by the maximum color adjustment difference value to obtain a corresponding first color adjustment ratio coefficient, and all the first color adjustment ratio coefficients are normalized to a numerical space of [0, 1].

2. The method according to claim 1, characterized in that The step of determining the unit color adjustment value of each color light element includes the following specific steps: Determine the largest of the maximum color adjustment difference values ​​of the various color light elements included in the plurality of light-emitting units as the unit maximum color adjustment difference value; Normalizing the maximum color adjustment difference value of each light-emitting unit according to the unit maximum color adjustment difference value to obtain a second color adjustment ratio coefficient corresponding to each light-emitting unit; The product of a preset color adjustment step and a weight of each color light element of each light-emitting unit is calculated as a unit color adjustment value of the corresponding color light element, wherein the weight includes a first color adjustment ratio system of the corresponding color light element and a second color adjustment ratio coefficient corresponding to the light-emitting unit to which the color light element belongs.

3. The method according to claim 1 or 2, characterized in that The step of synchronously controlling each color light element to perform at least one color adjustment with each corresponding unit color adjustment value, and adjusting each color light element to emit color light corresponding to the target color parameter, includes the following specific steps: Determine the color adjustment control times of all color light elements based on the ratio of the color adjustment difference value of any color light element to its unit color adjustment value; Generating a color adjustment control signal corresponding to a unit color adjustment value of each color light element; According to the color adjustment control times, the corresponding color adjustment control signals are synchronously and continuously sent to all color light elements, and each color light element is controlled to perform color adjustment according to the color adjustment control signals.

4. The method according to claim 1, characterized in that Every three of the plurality of color light elements form a light-emitting unit, and the three color light elements are used for emitting red, green and blue color lights respectively.

5. The method according to claim 1, characterized in that The unit color adjustment value belongs to an integer value space of 0 to 255, and the color adjustment step belongs to an integer value space of 1 to 20.

6. A lamp, characterized in that: It includes a dimmer, a control unit and multiple light-emitting units, the dimmer is used to output light color adjustment instructions to the control unit, each light-emitting unit includes multiple color light elements, the control unit is electrically connected to each color light element of the light-emitting unit, the control unit is written with a computer program, and after the computer program is called by the control chip, the method described in any one of claims 1 to 5 is executed.

7. A lighting color adjustment control device, characterized in that: include: A response module, responding to a light color adjustment instruction, determines a target color parameter corresponding to the instruction, wherein the color parameter includes color values ​​corresponding to a plurality of color light elements; A coefficient calculation module, which determines a first color adjustment ratio coefficient of each color light element according to a target color parameter and a current color parameter corresponding to the plurality of color light elements; A color adjustment calculation module determines a unit color adjustment value of each color light element, wherein the unit color adjustment value of each color light element is a result of a preset color adjustment step matching weight, wherein the weight includes a first color adjustment ratio coefficient of the color light element; The color adjustment module synchronously controls each color light element to perform at least one color adjustment with each corresponding unit color adjustment value, and adjusts each color light element to emit color light corresponding to the target color parameter.

8. A computer program product, characterized in that The method comprises a computer program / instruction, which implements the steps of the method according to any one of claims 1 to 5 when executed by a processor.

Citation Information

Patent Citations

  • Exposure parameter adjusting method and device

    CN111064899A

  • Fixing apparatus and image formation apparatus using the same fixing apparatus

    CN1298127A