A high-power LED color output control system and method

CN120472828BActive Publication Date: 2025-11-18GUANGZHOU JINGXIN PHOTOELECTRIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510958940.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-11
Publication Date
2025-11-18
Estimated Expiration
2045-07-11

AI Technical Summary

Technical Problem

In existing technologies, the color output control of LED lights in the illuminated area suffers from inaccurate actual results and cannot effectively account for the impact of environmental changes on color parameters.

Method used

By acquiring color data from LED light color rendering images and illumination area images, a clustering algorithm is used to filter out pixel clusters of the dominant color tone. Multiple corrections are performed to obtain accurate desired color data, and a deep learning model is used for drive current compensation to achieve color correction.

Benefits of technology

It improves the accuracy of LED color output, ensures the stability and consistency of color in the irradiated area, and reduces the impact of ambient light reflection and noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120472828B_ABST
    Figure CN120472828B_ABST
Patent Text Reader

Abstract

The application discloses a high-power LED color output control system and method, and belongs to the technical field of LED control. The first color data of an LED light color image and the second color data of an LED irradiation area image are acquired, the first color data is compared with first expected color data to obtain a first deviation result, the first color data is compared with second expected color data to obtain a second deviation result, the first color data is compared with the second color data to obtain a third deviation result, the first expected color data is once corrected according to the second deviation result and the third deviation result, and the first expected color data is twice corrected according to the first deviation result, so that the first expected color data after correction is obtained, and the corrected first expected color data is used as a setting parameter of an LED device, thereby improving the accuracy of color output effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of LED control technology, and in particular to a high-power LED color output control system and method. Background Technology

[0002] In LED lighting applications, it can be used directly as decorative lighting, such as decorative lighting displayed on the exterior walls of buildings at night. In this case, the color rendering of the light mainly focuses on the color of the LED light source itself. However, when LED lights are used to illuminate a desired area, the actual color of the illuminated area needs to be considered to control the color output of the LED. In existing technologies for LED color output control, only the color of the LED light source is analyzed to control the color. However, since the color parameters will change due to the environment when the LED light source illuminates the desired area, existing technologies have the problem that the actual color of the illuminated area does not match the desired color effect, resulting in inaccurate actual color output. Summary of the Invention

[0003] To address the technical problems existing in the prior art, this invention provides a high-power LED color output control method, characterized by comprising the following steps:

[0004] Acquire LED light color rendering images and LED illuminated area images;

[0005] Acquire the first color data of the LED light color rendering image and the second color data of the LED illumination area image;

[0006] The first color data is compared with the first desired color data to obtain a first deviation result, the first color data is compared with the second desired color data to obtain a second deviation result, and the first color data is compared with the second color data to obtain a third deviation result.

[0007] After correcting the first desired color data once based on the second and third deviation results, a second correction is made based on the first deviation results to obtain the corrected first desired color data. The corrected first desired color data is then used as the setting parameter for the LED device.

[0008] Furthermore, acquiring the first color data of the LED light color rendering image specifically includes the following steps:

[0009] Obtain the hue value of each pixel in the LED light color rendering image, and cluster each pixel according to the hue value to obtain multiple clusters. The cluster with the most pixels is taken as the first cluster.

[0010] The first hue value of the LED light color rendering image is obtained by averaging the hue values ​​of each pixel in the first cluster. The first saturation value of the LED light color rendering image is obtained by averaging the saturation values ​​of each pixel in the first cluster. The region of the pixels in the first cluster in the LED light color rendering image is taken as the first region, and the brightness value of the first region is taken as the first brightness value of the LED light color rendering image.

[0011] Furthermore, before clustering each pixel according to its hue value to obtain multiple clusters, and before selecting the cluster with the most pixels as the first cluster, the method further includes:

[0012] Obtain the coordinates of each pixel, and calculate the standard deviation of pixel coordinates and the variance of hue values ​​for each cluster based on the coordinates and hue values ​​of each pixel.

[0013] Clusters with hue value variance greater than a preset variance threshold and pixel coordinate standard deviation greater than a preset standard deviation threshold are considered as second clusters. The second clusters are then split into two clusters until no second clusters exist.

[0014] Furthermore, acquiring the second color data of the LED-illuminated area image specifically includes the following steps:

[0015] The hue value of each pixel in the LED illumination area image is obtained, and the difference is calculated with the first hue value and then converted to absolute value to obtain the difference result. In the LED illumination area image, the pixels corresponding to the difference result that are less than or equal to the preset threshold result are extracted as the second area.

[0016] The hue values ​​of each pixel in the second region are obtained and averaged to obtain the second hue value of the LED-illuminated area image. The saturation values ​​of each pixel in the second region are obtained and averaged to obtain the second saturation value of the LED-illuminated area image. The brightness value of the second region is obtained as the second brightness value of the LED-illuminated area image.

[0017] Furthermore, a second deviation result is obtained by comparing the first color data with the second desired color data, and a third deviation result is obtained by comparing the first color data with the second color data, specifically as follows:

[0018] The differences between the first brightness value and the first desired brightness value, the differences between the first saturation value and the first desired saturation value, and the differences between the first hue value and the first desired hue value are calculated as the first brightness deviation value, the first saturation deviation value, and the first hue deviation value, respectively.

[0019] The differences between the first brightness value and the second desired brightness value, the differences between the first saturation value and the second desired saturation value, and the differences between the first hue value and the second desired hue value are calculated as the second brightness deviation value, the second saturation deviation value, and the second hue deviation value, respectively.

[0020] The differences between the first luminance value and the second luminance value, the first saturation value and the second saturation value, and the first hue value and the second hue value are calculated as the third luminance deviation value, the third saturation deviation value, and the third hue deviation value, respectively.

[0021] Furthermore, the step of correcting the first desired color data based on the second and third deviation results specifically involves:

[0022] LQ1=L1-(LP2-LP3), BQ1=B1-(BP2-BP2), SQ1=S1-(SP2-SP3);

[0023] Wherein, LQ1, BQ1 and SQ1 are the first expected brightness value, the first expected saturation value and the first expected hue value after one correction, respectively; L1, B1 and S1 are the first brightness value, the first saturation value and the first hue value, respectively; LP2, BP2 and SP2 are the second brightness deviation value, the second saturation deviation value and the second hue deviation value, respectively; and LP3, BP3 and SP3 are the third brightness deviation value, the third saturation deviation value and the third hue deviation value, respectively.

[0024] Furthermore, the second correction based on the first deviation result to obtain the corrected first desired color data specifically involves:

[0025] LQ2=LQ1-LP1, SQ2=SQ1-SP1, BQ2=BQ1-BP1;

[0026] Wherein, LQ2, SQ2 and BQ2 are the first expected brightness value, the first expected hue value and the first expected saturation value after secondary correction, respectively, and LP1, SP1 and BP1 are the first brightness deviation value, the first hue deviation value and the first saturation deviation value, respectively.

[0027] The present invention also provides a high-power LED color output control system, comprising:

[0028] The image acquisition module is used to acquire LED light color rendering images and LED illumination area images;

[0029] The first analysis module is used to acquire the first color data of the LED light color rendering image and the second color data of the LED illumination area image;

[0030] The second analysis module is used to compare the first color data with the first desired color data to obtain a first deviation result, compare the first color data with the second desired color data to obtain a second deviation result, and compare the first color data with the second color data to obtain a third deviation result.

[0031] The correction control module is used to correct the first desired color data once based on the second deviation result and the third deviation result, and then to correct it a second time based on the first deviation result to obtain the corrected first desired color data. The corrected first desired color data is then used as the setting parameter of the LED device.

[0032] Furthermore, acquiring the first color data of the LED light color rendering image specifically includes the following steps:

[0033] Obtain the hue value of each pixel in the LED light color rendering image, and cluster each pixel according to the hue value to obtain multiple clusters. The cluster with the most pixels is taken as the first cluster.

[0034] The first hue value of the LED light color rendering image is obtained by averaging the hue values ​​of each pixel in the first cluster. The first saturation value of the LED light color rendering image is obtained by averaging the saturation values ​​of each pixel in the first cluster. The region of the pixels in the first cluster in the LED light color rendering image is taken as the first region, and the brightness value of the first region is taken as the first brightness value of the LED light color rendering image.

[0035] Furthermore, acquiring the second color data of the LED-illuminated area image specifically includes the following steps:

[0036] The hue value of each pixel in the LED illumination area image is obtained, and the difference is calculated with the first hue value and then converted to absolute value to obtain the difference result. In the LED illumination area image, the pixels corresponding to the difference result that are less than or equal to the preset threshold result are extracted as the second area.

[0037] The second hue value of the LED-illuminated area image is obtained by averaging the hue values ​​of each pixel in the second region. Similarly, the second saturation value of the LED-illuminated area image is obtained by averaging the saturation values ​​of each pixel in the second region. Finally, the second luminance value of the LED-illuminated area image is obtained as the luminance value of the second region.

[0038] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0039] This invention acquires first color data of an LED light color rendering image and second color data of an LED illumination area image. It then compares the first color data with first desired color data to obtain a first deviation result, compares the first color data with second desired color data to obtain a second deviation result, and compares the first color data with the second color data to obtain a third deviation result. Based on the second and third deviation results, the first desired color data is corrected once, and then corrected a second time based on the first deviation result to obtain corrected first desired color data. This corrected first desired color data is then used as the setting parameter for the LED device, improving the accuracy of the color output effect.

[0040] The first cluster is obtained by clustering algorithm. The first color data of the LED light color rendering image is obtained by the corresponding pixels in the first cluster. The possible ambient light reflection, noise or other interfering colors are eliminated. By hue clustering, the pixel cluster belonging to the main color of the light source (i.e. the first cluster) can be screened out. The influence of secondary colors or noise is ignored. The cluster with the most pixels usually corresponds to the dominant color rendering area of ​​the LED light. Its hue, saturation and brightness average values ​​can better reflect the true characteristics of the light source, rather than the global average value interfered by the background or outliers.

[0041] By selecting pixels in the LED illumination area image whose hue is similar to the primary color of the light source (first hue value), and then selecting regions with similar hues (second region), the hue stability of LED light in the illumination area can be better quantified, and regions with large differences can be excluded to avoid their influence on the analysis results. Attached Figure Description

[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is a flowchart of a high-power LED color output control method according to the present invention. Detailed Implementation

[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0046] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.

[0047] Furthermore, the use of terms such as "first" and "second" in this invention is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" and "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed by this invention.

[0048] Example 1

[0049] See Figure 1 As shown, the present invention provides a high-power LED color output control method, which specifically includes the following steps:

[0050] S1. Acquire the color rendering image of the LED light and the image of the LED illuminated area;

[0051] S2. Obtain the first color data of the LED light color rendering image and the second color data of the LED irradiated area image;

[0052] S3. Compare the first color data with the first desired color data to obtain a first deviation result, compare the first color data with the second desired color data to obtain a second deviation result, and compare the first color data with the second color data to obtain a third deviation result;

[0053] S4. After correcting the first desired color data once based on the second deviation result and the third deviation result, make a second correction based on the first deviation result to obtain the corrected first desired color data. Use the corrected first desired color data as the setting parameter of the LED device.

[0054] S1. Obtain the LED light color rendering image and the LED illumination area image:

[0055] In LED lighting applications, it can be used directly as decorative lighting, such as decorative lighting on building exteriors at night or background or perimeter decorative lighting on a stage. In this case, the color rendering of the light mainly focuses on the color of the LED light source itself, without paying attention to the color rendering of the illuminated external area. Therefore, only the color directly displayed by the LED needs to be considered. However, when LED lights are used to illuminate certain areas, the actual color rendering of the illuminated area needs to be considered to control the color output of the LED. Therefore, this solution combines the color difference between the LED light color rendering image and the LED illuminated area image to improve the accuracy of LED color output control.

[0056] S2. Obtain the first color data of the LED light color rendering image and the second color data of the LED illumination area image:

[0057] The first color data includes a first brightness value, a first saturation value, and a first hue value; the second color data includes a second brightness value, a second saturation value, and a second hue value.

[0058] The process of obtaining the first color data of the LED light color rendering image specifically includes the following steps:

[0059] Sa21. Obtain the hue value of each pixel in the LED light color rendering image, and cluster each pixel according to the hue value to obtain multiple clusters. The cluster with the most pixels is taken as the first cluster.

[0060] Sa22. Obtain the hue value of each pixel in the first cluster and calculate the average to obtain the first hue value of the LED light color rendering image. Obtain the saturation value of each pixel in the first cluster and calculate the average to obtain the first saturation value of the LED light color rendering image. Take the area of ​​the pixel in the first cluster in the LED light color rendering image as the first area and obtain the brightness value of the first area as the first brightness value of the LED light color rendering image.

[0061] In some embodiments, the clustering of each pixel based on its hue value to obtain multiple clusters in step Sa21 can be performed using existing clustering algorithms.

[0062] In some embodiments, before clustering each pixel according to its hue value to obtain multiple clusters and selecting the cluster with the most pixels as the first cluster, the method further includes:

[0063] Obtain the coordinates of each pixel, and calculate the standard deviation of pixel coordinates and the variance of hue values ​​for each cluster based on the coordinates and hue values ​​of each pixel.

[0064] Clusters with hue value variance greater than a preset variance threshold and pixel coordinate standard deviation greater than a preset standard deviation threshold are considered as second clusters. The second clusters are then split into two clusters until no second clusters exist.

[0065] This scheme obtains the first cluster using a clustering algorithm. The first color data of the LED light color rendering image is obtained using the corresponding pixels in the first cluster. This eliminates the possibility of ambient light reflection, noise, or other interfering colors. Through hue clustering, the pixel clusters belonging to the main color tone of the light source (i.e., the first cluster) can be selected, ignoring the influence of secondary colors or noise. The cluster with the most pixels usually corresponds to the dominant color rendering area of ​​the LED light. Its hue, saturation, and brightness averages can better reflect the true characteristics of the light source, rather than the global average values ​​that are disturbed by the background or outliers.

[0066] The process of acquiring the second color data of the LED-illuminated area image specifically includes the following steps:

[0067] Sb21. Obtain the hue value of each pixel in the LED illumination area image, and calculate the difference with the first hue value respectively. Then, convert the difference to absolute value to obtain the difference results. In the LED illumination area image, extract the pixels corresponding to the difference results that are less than or equal to the preset threshold results as the second area.

[0068] Sb22. Obtain the hue value of each pixel in the second region and calculate the average to obtain the second hue value of the LED-illuminated area image. Obtain the saturation value of each pixel in the second region and calculate the average to obtain the second saturation value of the LED-illuminated area image. Obtain the brightness value of the second region as the second brightness value of the LED-illuminated area image.

[0069] In this scheme, by selecting pixels in the LED illumination area image whose hue is similar to the primary color of the light source (first hue value), and then selecting regions with similar hues (second region), the hue stability of LED light in the illumination area is better quantified, and regions with large differences are excluded to avoid their influence on the analysis results.

[0070] In the specific implementation of step S2 above, the hue value, brightness value and saturation value are extracted using existing technology, which will not be elaborated here.

[0071] In step S3, the first desired color data and the second desired color data are preset values. The first desired color data is the color data set by the user for the LED device, and the second desired color data is the color effect data that the user expects to present in the irradiated area.

[0072] The first desired color data includes a first desired brightness value, a first desired saturation value, and a first desired hue value; the second desired color data includes a second desired brightness value, a second desired saturation value, and a second desired hue value; the first deviation result includes a first brightness deviation value, a first saturation deviation value, and a first hue deviation value; the second deviation result includes a second brightness deviation value, a second saturation deviation value, and a second hue deviation value; and the third deviation result includes a third brightness deviation value, a third saturation deviation value, and a third hue deviation value.

[0073] S3. Compare the first color data with the first desired color data to obtain a first deviation result, compare the first color data with the second desired color data to obtain a second deviation result, and compare the first color data with the second color data to obtain a third deviation result, specifically:

[0074] The differences between the first brightness value and the first desired brightness value, the differences between the first saturation value and the first desired saturation value, and the differences between the first hue value and the first desired hue value are calculated as the first brightness deviation value, the first saturation deviation value, and the first hue deviation value, respectively.

[0075] The differences between the first brightness value and the second desired brightness value, the differences between the first saturation value and the second desired saturation value, and the differences between the first hue value and the second desired hue value are calculated as the second brightness deviation value, the second saturation deviation value, and the second hue deviation value, respectively.

[0076] The differences between the first luminance value and the second luminance value, the first saturation value and the second saturation value, and the first hue value and the second hue value are calculated as the third luminance deviation value, the third saturation deviation value, and the third hue deviation value, respectively.

[0077] S4. After correcting the first desired color data once based on the second and third deviation results, perform a second correction based on the first deviation results to obtain the corrected first desired color data. Use the corrected first desired color data as the setting parameter for the LED device.

[0078] The step of correcting the first desired color data based on the second and third deviation results is as follows:

[0079] LQ1=L1-(LP2-LP3), BQ1=B1-(BP2-BP2), SQ1=S1-(SP2-SP3);

[0080] Wherein, LQ1, BQ1 and SQ1 are the first expected brightness value, the first expected saturation value and the first expected hue value after one correction, respectively; L1, B1 and S1 are the first brightness value, the first saturation value and the first hue value, respectively; LP2, BP2 and SP2 are the second brightness deviation value, the second saturation deviation value and the second hue deviation value, respectively; and LP3, BP3 and SP3 are the third brightness deviation value, the third saturation deviation value and the third hue deviation value, respectively.

[0081] The second deviation result is obtained from the difference between the first color data and the second desired color data, which can reflect the expected color change value between the LED light source color data and the desired color data. The third deviation result is obtained from the difference between the first color data and the second color data, which reflects the actual color change value from the LED light source color data to the irradiated area. In this scheme, the difference between the second deviation result and the third deviation result is used to reflect the error in color change, and then the first color data after eliminating the error is used as the first desired brightness value after correction.

[0082] For example, taking brightness as an example, assuming the first brightness value L1 is 5, and the user expects the brightness of the illuminated area to be 3, that is, the second expected brightness value is 3, then the second brightness deviation value LP2 is 2. If the actual brightness is 4, that is, the second brightness value is 4, then the third brightness deviation value LP3 is 1. In the case where the first expected brightness value is set to the value of the first brightness value, the first expected brightness value needs to be adjusted to 4. Since the third brightness deviation value LP3 is 1, the actual brightness is 3 at this time, which is consistent with the user's expected brightness of the illuminated area being 3. It should be noted that the values ​​in the above example are only for the convenience of calculation and illustration.

[0083] The second correction based on the first deviation result yields the corrected first desired color data, specifically as follows:

[0084] LQ2=LQ1-LP1, SQ2=SQ1-SP1, BQ2=BQ1-BP1;

[0085] Wherein, LQ2, SQ2 and BQ2 are the first expected brightness value, the first expected hue value and the first expected saturation value after secondary correction, respectively, and LP1, SP1 and BP1 are the first brightness deviation value, the first hue deviation value and the first saturation deviation value, respectively.

[0086] After the user sets the first desired color data for the LED device, due to factors such as the quality of the device components, there will be some difference between the actual color data of the LED light, i.e., the first color data and the first desired color data, and it is not the same as the first desired color data. Therefore, the first deviation result is used as the correction amount to make a second correction to the first desired color data after the first correction. It should be noted that the first desired color data after the second correction is not the color data that the user actually expects, but rather to allow the set first desired color data to have an error margin so that the LED is closer to the actual expected color. That is, by setting the first desired color data after the second correction, the actual color data of the LED device is made closer to the LED light source color data that the user actually expects.

[0087] In another embodiment, after step S4, the method further includes:

[0088] After setting the first desired color difference data after secondary correction, the third color data of the second LED light color rendering image is obtained;

[0089] The fourth deviation result is obtained by comparing the third color data with the first expected color data before the first correction.

[0090] Based on the fourth deviation result and the first expected color data before the first correction, the PID controller parameters are obtained through the preset first deep learning model. Based on the PID controller parameters, the driving current compensation amount of the LED device is output, and the driving current of the LED device is compensated once to obtain the first driving current.

[0091] The first deep learning model is pre-trained using multiple sets of historical fourth deviation results of LED devices, historical first expected color data, and historical PID controller parameters that can be used to perform color correction as training samples.

[0092] The fourth deviation result includes the fourth brightness deviation value, the fourth saturation deviation value, and the fourth hue deviation value.

[0093] After setting the first desired color difference data after secondary correction, the obtained LED light color data may still deviate from the expectation due to factors such as the operating temperature of the LED device. Therefore, this embodiment achieves color correction by adjusting the PID controller parameters to compensate the drive current.

[0094] After completing the aforementioned color correction, in order to achieve continuous color stability, after obtaining the first driving current, the process further includes:

[0095] The current temperature and current operating time of the LED device are obtained, and the temperature change trend within a preset time period is predicted based on the current temperature, current operating time and first driving current through a preset second deep learning model.

[0096] The third deep learning model, based on the temperature change trend, predicts the trend of the fourth deviation result within the next preset time period.

[0097] Based on the trend of the fourth deviation result, the PID controller parameters at each time point within the future preset time period are obtained through the first deep learning model, and the drive current at the corresponding time point is compensated based on the PID controller parameters at each time point within the future preset time period.

[0098] The second deep learning model is pre-trained using multiple sets of historical temperatures, historical running times, and historical first driving currents as training samples; the third deep learning model is pre-trained using multiple sets of historical temperatures and historical fourth deviation results as training samples.

[0099] Example 2

[0100] This invention also provides a high-power LED color output control system, specifically comprising:

[0101] The image acquisition module is used to acquire LED light color rendering images and LED illumination area images;

[0102] The first analysis module is used to acquire the first color data of the LED light color rendering image and the second color data of the LED illumination area image;

[0103] The second analysis module is used to compare the first color data with the first desired color data to obtain a first deviation result, compare the first color data with the second desired color data to obtain a second deviation result, and compare the first color data with the second color data to obtain a third deviation result.

[0104] The correction control module is used to correct the first desired color data once based on the second deviation result and the third deviation result, and then to correct it a second time based on the first deviation result to obtain the corrected first desired color data. The corrected first desired color data is then used as the setting parameter of the LED device.

[0105] The first color data includes a first brightness value, a first saturation value, and a first hue value; the second color data includes a second brightness value, a second saturation value, and a second hue value.

[0106] In some embodiments, obtaining the first color data of the LED light color rendering image specifically includes the following steps:

[0107] Obtain the hue value of each pixel in the LED light color rendering image, and cluster each pixel according to the hue value to obtain multiple clusters. The cluster with the most pixels is taken as the first cluster.

[0108] The first hue value of the LED light color rendering image is obtained by averaging the hue values ​​of each pixel in the first cluster. The first saturation value of the LED light color rendering image is obtained by averaging the saturation values ​​of each pixel in the first cluster. The region of the pixels in the first cluster in the LED light color rendering image is taken as the first region, and the brightness value of the first region is taken as the first brightness value of the LED light color rendering image.

[0109] In some embodiments, clustering each pixel based on its hue value to obtain multiple clusters can be performed using existing clustering algorithms.

[0110] In some embodiments, before clustering each pixel according to its hue value to obtain multiple clusters and selecting the cluster with the most pixels as the first cluster, the method further includes:

[0111] Obtain the coordinates of each pixel, and calculate the standard deviation of pixel coordinates and the variance of hue value for each cluster based on the coordinates and hue value of each pixel. Clusters with hue value variance greater than a preset variance threshold and pixel coordinate standard deviation greater than a preset standard deviation threshold are regarded as second clusters. The second clusters are split into two clusters until there are no second clusters.

[0112] In some embodiments, acquiring the second color data of the LED-illuminated area image specifically includes the following steps:

[0113] The hue value of each pixel in the LED illumination area image is obtained, and the difference is calculated with the first hue value and then converted to absolute value to obtain the difference result. In the LED illumination area image, the pixels corresponding to the difference result that are less than or equal to the preset threshold result are extracted as the second area.

[0114] The hue values ​​of each pixel in the second region are obtained and averaged to obtain the second hue value of the LED-illuminated area image. The saturation values ​​of each pixel in the second region are obtained and averaged to obtain the second saturation value of the LED-illuminated area image. The brightness value of the second region is obtained as the second brightness value of the LED-illuminated area image.

[0115] In some embodiments, comparing the first color data with first desired color data to obtain a first deviation result, comparing the first color data with second desired color data to obtain a second deviation result, and comparing the first color data with the second color data to obtain a third deviation result, specifically:

[0116] The differences between the first brightness value and the first desired brightness value, the differences between the first saturation value and the first desired saturation value, and the differences between the first hue value and the first desired hue value are calculated as the first brightness deviation value, the first saturation deviation value, and the first hue deviation value, respectively.

[0117] The differences between the first brightness value and the second desired brightness value, the differences between the first saturation value and the second desired saturation value, and the differences between the first hue value and the second desired hue value are calculated as the second brightness deviation value, the second saturation deviation value, and the second hue deviation value, respectively.

[0118] The differences between the first luminance value and the second luminance value, the first saturation value and the second saturation value, and the first hue value and the second hue value are calculated as the third luminance deviation value, the third saturation deviation value, and the third hue deviation value, respectively.

[0119] The step of correcting the first desired color data based on the second and third deviation results is as follows:

[0120] LQ1=L1-(LP2-LP3), SQ1=S1-(SP2-SP3), BQ1=B1-(BP2-BP2);

[0121] Wherein, LQ1, SQ1 and BQ1 are the first expected brightness value, the first expected hue value and the first expected saturation value after one correction, respectively; L1, S1 and B1 are the first brightness value, the first hue value and the first saturation value, respectively; LP2, SP2 and BP2 are the second brightness deviation value, the second hue deviation value and the second saturation deviation value, respectively; and LP3, SP3 and BP3 are the third brightness deviation value, the third hue deviation value and the third saturation deviation value, respectively.

[0122] The second correction based on the first deviation result yields the corrected first desired color data, specifically as follows:

[0123] LQ2=LQ1-LP1, SQ2=SQ1-SP1, BQ2=BQ1-BP1;

[0124] Wherein, LQ2, SQ2 and BQ2 are the first expected brightness value, the first expected hue value and the first expected saturation value after secondary correction, respectively, and LP1, SP1 and BP1 are the first brightness deviation value, the first hue deviation value and the first saturation deviation value, respectively.

[0125] Example 3

[0126] The present invention also provides an electronic device, including: a processor, a transmitting device, an input device, an output device, and a memory. The processor may be implemented using a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit, or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory may be implemented using a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM), and is used to store computer program code. The computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes a method as described in any of the above possible implementation methods.

[0127] Example 4

[0128] The present invention also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor of an electronic device, cause the processor to perform a method as described in any of the above possible implementations.

[0129] The beneficial effects of this invention are as follows:

[0130] This invention acquires first color data of an LED light color rendering image and second color data of an LED illumination area image. It then compares the first color data with first desired color data to obtain a first deviation result, compares the first color data with second desired color data to obtain a second deviation result, and compares the first color data with the second color data to obtain a third deviation result. Based on the second and third deviation results, the first desired color data is corrected once, and then corrected a second time based on the first deviation result to obtain corrected first desired color data. This corrected first desired color data is then used as the setting parameter for the LED device, improving the accuracy of the color output effect.

[0131] The first cluster is obtained by clustering algorithm. The first color data of the LED light color rendering image is obtained by the corresponding pixels in the first cluster. The possible ambient light reflection, noise or other interfering colors are eliminated. By hue clustering, the pixel cluster belonging to the main color of the light source (i.e. the first cluster) can be screened out. The influence of secondary colors or noise is ignored. The cluster with the most pixels usually corresponds to the dominant color rendering area of ​​the LED light. Its hue, saturation and brightness average values ​​can better reflect the true characteristics of the light source, rather than the global average value interfered by the background or outliers.

[0132] By selecting pixels in the LED illumination area image whose hue is similar to the primary color of the light source (first hue value), and then selecting regions with similar hues (second region), the hue stability of LED light in the illumination area can be better quantified, and regions with large differences can be excluded to avoid their influence on the analysis results.

[0133] In the description of this specification, the references to terms such as "an embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0134] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0135] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for controlling the color output of a high-power LED, characterized in that, Includes the following steps: Acquire LED light color rendering images and LED illuminated area images; Acquire the first color data of the LED light color rendering image and the second color data of the LED illumination area image; The first color data is compared with the first desired color data to obtain a first deviation result, the first color data is compared with the second desired color data to obtain a second deviation result, and the first color data is compared with the second color data to obtain a third deviation result. After correcting the first desired color data once based on the second and third deviation results, a second correction is made based on the first deviation results to obtain the corrected first desired color data. The corrected first desired color data is then used as the setting parameter for the LED device. The acquisition of the first color data of the LED light color rendering image specifically includes the following steps: Obtain the hue value of each pixel in the LED light color rendering image, and cluster each pixel according to the hue value to obtain multiple clusters. The cluster with the most pixels is taken as the first cluster. The first hue value of the LED light color rendering image is obtained by averaging the hue values ​​of each pixel in the first cluster, and the first saturation value of the LED light color rendering image is obtained by averaging the saturation values ​​of each pixel in the first cluster, and the first saturation value of the LED light color rendering image is obtained by taking the region of the pixels in the first cluster in the LED light color rendering image as the first region, and the brightness value of the first region is obtained as the first brightness value of the LED light color rendering image. The step of clustering pixels based on hue values ​​to obtain multiple clusters, and then selecting the cluster with the most pixels as the first cluster, further includes: Obtain the coordinates of each pixel, and calculate the standard deviation of pixel coordinates and the variance of hue values ​​for each cluster based on the coordinates and hue values ​​of each pixel. Clusters with hue value variance greater than a preset variance threshold and pixel coordinate standard deviation greater than a preset standard deviation threshold are considered as second clusters. The second clusters are split into two clusters until no second clusters exist. The acquisition of the second color data of the LED-illuminated area image specifically includes the following steps: The hue value of each pixel in the LED illumination area image is obtained, and the difference is calculated with the first hue value and then converted to absolute value to obtain the difference result. In the LED illumination area image, the pixels corresponding to the difference result that are less than or equal to the preset threshold result are extracted as the second area. The hue values ​​of each pixel in the second region are obtained and averaged to obtain the second hue value of the LED-illuminated area image. The saturation values ​​of each pixel in the second region are obtained and averaged to obtain the second saturation value of the LED-illuminated area image. The brightness value of the second region is obtained as the second brightness value of the LED-illuminated area image.

2. The high-power LED color output control method according to claim 1, characterized in that, The first color data is compared with the second desired color data to obtain a second deviation result, and the first color data is compared with the second color data to obtain a third deviation result, specifically as follows: The differences between the first brightness value and the first desired brightness value, the differences between the first saturation value and the first desired saturation value, and the differences between the first hue value and the first desired hue value are calculated as the first brightness deviation value, the first saturation deviation value, and the first hue deviation value, respectively. The differences between the first brightness value and the second desired brightness value, the differences between the first saturation value and the second desired saturation value, and the differences between the first hue value and the second desired hue value are calculated as the second brightness deviation value, the second saturation deviation value, and the second hue deviation value, respectively. The differences between the first luminance value and the second luminance value, the first saturation value and the second saturation value, and the first hue value and the second hue value are calculated as the third luminance deviation value, the third saturation deviation value, and the third hue deviation value, respectively.

3. The high-power LED color output control method according to claim 2, characterized in that, The step of correcting the first desired color data based on the second and third deviation results is as follows: LQ1=L1-(LP2-LP3), BQ1=B1-(BP2-BP2), SQ1=S1-(SP2-SP3); Wherein, LQ1, BQ1 and SQ1 are the first expected brightness value, the first expected saturation value and the first expected hue value after one correction, respectively; L1, B1 and S1 are the first brightness value, the first saturation value and the first hue value, respectively; LP2, BP2 and SP2 are the second brightness deviation value, the second saturation deviation value and the second hue deviation value, respectively; and LP3, BP3 and SP3 are the third brightness deviation value, the third saturation deviation value and the third hue deviation value, respectively.

4. The high-power LED color output control method according to claim 3, characterized in that, The second correction based on the first deviation result yields the corrected first desired color data, specifically as follows: LQ2=LQ1-LP1, SQ2=SQ1-SP1, BQ2=BQ1-BP1; Wherein, LQ2, SQ2 and BQ2 are the first expected brightness value, the first expected hue value and the first expected saturation value after secondary correction, respectively, and LP1, SP1 and BP1 are the first brightness deviation value, the first hue deviation value and the first saturation deviation value, respectively.

5. A high-power LED color output control system, employing the high-power LED color output control method as described in any one of claims 1 to 4, characterized in that, include: The image acquisition module is used to acquire LED light color rendering images and LED illumination area images; The first analysis module is used to acquire the first color data of the LED light color rendering image and the second color data of the LED illumination area image; The second analysis module is used to compare the first color data with the first desired color data to obtain a first deviation result, compare the first color data with the second desired color data to obtain a second deviation result, and compare the first color data with the second color data to obtain a third deviation result. The correction control module is used to correct the first desired color data once based on the second deviation result and the third deviation result, and then to correct it a second time based on the first deviation result to obtain the corrected first desired color data. The corrected first desired color data is then used as the setting parameter of the LED device.

6. The high-power LED color output control system according to claim 5, characterized in that, The process of obtaining the first color data of the LED light color rendering image specifically includes the following steps: Obtain the hue value of each pixel in the LED light color rendering image, and cluster each pixel according to the hue value to obtain multiple clusters. The cluster with the most pixels is taken as the first cluster. The first hue value of the LED light color rendering image is obtained by averaging the hue values ​​of each pixel in the first cluster. The first saturation value of the LED light color rendering image is obtained by averaging the saturation values ​​of each pixel in the first cluster. The region of the pixels in the first cluster in the LED light color rendering image is taken as the first region, and the brightness value of the first region is taken as the first brightness value of the LED light color rendering image.

7. The high-power LED color output control system according to claim 6, characterized in that, The process of acquiring the second color data of the LED-illuminated area image specifically includes the following steps: The hue value of each pixel in the LED illumination area image is obtained, and the difference is calculated with the first hue value and then converted to absolute value to obtain the difference result. In the LED illumination area image, the pixels corresponding to the difference result that are less than or equal to the preset threshold result are extracted as the second area. The hue values ​​of each pixel in the second region are obtained and averaged to obtain the second hue value of the LED-illuminated area image. The saturation values ​​of each pixel in the second region are obtained and averaged to obtain the second saturation value of the LED-illuminated area image. The brightness value of the second region is obtained as the second brightness value of the LED-illuminated area image.

Citation Information

Patent Citations

  • Intelligent color matching system and method for LED display screen

    CN119091794A

  • Color evaluation-based image color enhancement method and apparatus, and device

    WO2025140457A1