High-power LED color output control system and method

By obtaining the color data of the LED light color rendering image and the irradiated area image, using the clustering algorithm to filter the main tone pixel clusters and make multiple corrections, the problem of inaccurate color output of LED lights in the irradiated area is solved, and higher color output accuracy is achieved.

CN120472828AActive Publication Date: 2025-08-12GUANGZHOU JINGXIN PHOTOELECTRIC TECH CO LTD

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, the color output of LED lights in the irradiated area is inaccurate, and the color parameter deviation caused by environmental changes cannot be effectively considered.

Method used

By obtaining the color data of the LED light color-producing image and the LED irradiation area image, the main tone pixel cluster is filtered out using the clustering algorithm, the color deviation is calculated and multiple corrections are made to obtain appropriate color setting parameters.

Benefits of technology

Improve the accuracy of LED color output, eliminate ambient light reflection and noise interference, quantify the hue stability of the irradiated area, and ensure that the color output meets user expectations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120472828A_ABST
    Figure CN120472828A_ABST
Patent Text Reader

Abstract

The invention discloses a high-power LED color output control system and method, and belongs to the technical field of LED control. After first color data of an LED light color developing image and second color data of an LED irradiation area image are obtained, the first color data are compared with first expected color data to obtain a first deviation result; comparing the first color data with the second expected color data to obtain a second deviation result, comparing the first color data with the second color data to obtain a third deviation result, carrying out primary correction on the first expected color data according to the second deviation result and the third deviation result, and then carrying out secondary correction according to the first deviation result to obtain a correction result; the corrected first expected color data are obtained, the corrected first expected color data are used as setting parameters of the LED equipment, and the accuracy of the color output effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of LED control, and in particular to a high-power LED color output control system and method. Background Art

[0002] In the application of LED lights, they can be directly used as decorative lights, such as decorative lights displayed on the exterior walls of buildings at night. In this case, the light color rendering mainly focuses on the color of the LED light source itself. However, when LED lights are used to illuminate the desired illumination area, it is necessary to consider the actual color conditions of the illumination area to control the color output of the LED. In the existing technology of LED color output control, only the color conditions of the LED light source are analyzed to control the color. However, since the color parameters will change due to the environment when the LED light source illuminates the desired illumination area, there is a problem in the existing technology that the actual color conditions of the illumination area do not meet the desired color effect and the actual color output effect is not accurate. Summary of the Invention

[0003] The present invention aims to solve the technical problems existing in the prior art and provides a high-power LED color output control method, which is characterized by comprising the following steps: Acquire LED light color images and LED irradiation area images; Acquire first color data of the LED light color display image and second color data of the LED illumination area image; Comparing the first color data with first expected color data to obtain a first deviation result, comparing the first color data with second expected 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; After the first expected color data is corrected once according to the second deviation result and the third deviation result, a second correction is performed according to the first deviation result to obtain the corrected first expected color data, and the corrected first expected color data is used as the setting parameter of the LED device.

[0004] Furthermore, the obtaining of the first color data of the LED light color image specifically includes the following steps: Obtain the hue value of each pixel in the LED light color image, cluster each pixel according to the hue value to obtain multiple clusters, and take the cluster with the most pixels as the first cluster; The hue value of each pixel in the first cluster is obtained and the mean calculation is performed to obtain the first hue value of the LED light color image. The saturation value of each pixel in the first cluster is obtained and the mean calculation is performed to obtain the first saturation value of the LED light color image. The area of the pixels in the first cluster in the LED light color image is taken as the first area, and the brightness value of the first area is obtained as the first brightness value of the LED light color image.

[0005] Furthermore, after clustering the pixels according to the hue value to obtain a plurality of clusters, and before taking the cluster with the most pixels as the first cluster, the method further includes: Get the coordinates of each pixel, and calculate the standard deviation of pixel coordinates and variance of hue values of each cluster according to the coordinates and hue values of each pixel; A cluster whose hue value variance is greater than a preset variance threshold and whose pixel coordinate standard deviation is greater than a preset standard deviation threshold is regarded as a second cluster, and the second cluster is split into two clusters until no second cluster exists.

[0006] Furthermore, the obtaining of the second color data of the LED illumination area image specifically includes the following steps: Obtaining the hue value of each pixel in the LED-illuminated area image, performing difference calculations with the first hue value, and then performing absolute value conversion to obtain each difference result. In the LED-illuminated area image, pixels corresponding to the difference results less than or equal to a preset threshold value are extracted as the second area; The hue value of each pixel in the second area is obtained and the average calculation is performed to obtain the second hue value of the LED irradiation area image, the saturation value of each pixel in the second area is obtained and the average calculation is performed to obtain the second saturation value of the LED irradiation area image, and the brightness value of the second area is obtained as the second brightness value of the LED irradiation area image.

[0007] Furthermore, the first color data is compared with the second expected 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: Calculating a difference between the first brightness value and the first expected brightness value, a difference between the first saturation value and the first expected saturation value, and a difference between the first hue value and the first expected hue value as a first brightness deviation value, a first saturation deviation value, and a first hue deviation value, respectively; Calculate the difference between the first brightness value and the second expected brightness value, the difference between the first saturation value and the second expected saturation value, and the difference between the first hue value and the second expected hue value as the second brightness deviation value, the second saturation deviation value, and the second hue deviation value, respectively; The difference between the first brightness value and the second brightness value, the difference between the first saturation value and the second saturation value, and the difference between the first hue value and the second hue value are calculated as a third brightness deviation value, a third saturation deviation value, and a third hue deviation value, respectively.

[0008] Furthermore, the first expected color data is corrected once according to the second deviation result and the third deviation result, specifically: LQ1=L1-(LP2-LP3), BQ1=B1-(BP2-BP2), SQ1=S1-(SP2-SP3); Among them, 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; LP3, BP3 and SP3 are the third brightness deviation value, the third saturation deviation value and the third hue deviation value, respectively.

[0009] Furthermore, the second correction is performed according to the first deviation result to obtain the corrected first expected color data, specifically: LQ2=LQ1-LP1, SQ2=SQ1-SP1, BQ2=BQ1-BP1; Among them, 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.

[0010] The present invention also provides a high-power LED color output control system, comprising: An image acquisition module is used to acquire LED light color images and LED irradiation area images; A first analysis module is configured to obtain first color data of the LED light color image and second color data of the LED illumination area image; a second analysis module, configured to compare the first color data with first expected color data to obtain a first deviation result, compare the first color data with second expected 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 expected color data once according to the second deviation result and the third deviation result, and then correct it twice according to the first deviation result to obtain the corrected first expected color data, and use the corrected first expected color data as the setting parameter of the LED device.

[0011] Furthermore, the obtaining of the first color data of the LED light color image specifically includes the following steps: Obtain the hue value of each pixel in the LED light color image, cluster each pixel according to the hue value to obtain multiple clusters, and take the cluster with the most pixels as the first cluster; The hue value of each pixel in the first cluster is obtained and the mean calculation is performed to obtain the first hue value of the LED light color image. The saturation value of each pixel in the first cluster is obtained and the mean calculation is performed to obtain the first saturation value of the LED light color image. The area of the pixels in the first cluster in the LED light color image is taken as the first area, and the brightness value of the first area is obtained as the first brightness value of the LED light color image.

[0012] Furthermore, the obtaining of the second color data of the LED illumination area image specifically includes the following steps: Obtaining the hue value of each pixel in the LED-illuminated area image, performing difference calculations with the first hue value, and then performing absolute value conversion to obtain each difference result. In the LED-illuminated area image, pixels corresponding to the difference results less than or equal to a preset threshold value are extracted as the second area; The hue value of each pixel in the second area is obtained and the average value is calculated to obtain the second hue value of the LED irradiation area image. The saturation value of each pixel in the second area is obtained and the average value is calculated to obtain the second saturation value of the LED irradiation area image. The brightness value of the second area is obtained as the second brightness value of the LED irradiation area image. Compared with the prior art, the present invention has the following beneficial effects: The present invention obtains first color data of an LED light color display image and second color data of an LED irradiation area image, compares the first color data with first expected color data to obtain a first deviation result, compares the first color data with second expected 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. The first expected color data is corrected once according to the second deviation result and the third deviation result, and then corrected twice according to the first deviation result to obtain corrected first expected color data. The corrected first expected color data is used as a setting parameter of the LED device to improve the accuracy of the color output effect. A first cluster is obtained through a clustering algorithm. The first color data of the LED light color image is obtained using the corresponding pixels in the first cluster. This eliminates possible ambient light reflections, noise, or other interfering colors. Through hue clustering, the pixel cluster belonging to the main color of the light source (i.e., the first cluster) can be screened out, 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. The average hue, saturation, and brightness of the cluster better reflect the true characteristics of the light source, rather than the global average value interfered by background or outliers. By screening out pixels whose hue is similar to the main color of the light source (first hue value) in the image of the LED illumination area, and screening out areas with similar hue (second area), we can better quantify the hue stability of the LED light in the illumination area and exclude areas with large differences to avoid their influence on the analysis results. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0015] Figure 1 This is a flow chart of a high-power LED color output control method of the present invention. DETAILED DESCRIPTION

[0016] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0017] 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 position relationship, movement status, etc. between the various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0018] In addition, the descriptions of "first", "second", etc. in the present invention are for descriptive purposes only and should not be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0019] Example 1 See Figure 1 As shown, the present invention provides a high-power LED color output control method, which specifically includes the following steps: S1. Acquire LED light color image and LED irradiation area image; S2. Acquire first color data of the LED light color image and second color data of the LED illumination area image; S3. Compare the first color data with the first expected color data to obtain a first deviation result, compare the first color data with the second expected 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; S4. Correct the first expected color data once according to the second deviation result and the third deviation result, and then correct it again according to the first deviation result to obtain corrected first expected color data, and use the corrected first expected color data as the setting parameters of the LED device.

[0020] S1. Obtain LED light color image and LED irradiation area image: In the application of LED lights, they can be directly used as decorative lights, such as decorative lights displayed on the exterior walls of buildings at night, or decorative lights on the background or surrounding areas of the stage. In this case, the light color rendering mainly focuses on the color of the LED light source itself, and does not pay attention to the color rendering of the illuminated external area. Therefore, only the color directly displayed by the LED can 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 differences of the LED light color rendering image and the LED illuminated area image to improve the accuracy of LED color output control.

[0021] S2. Acquire first color data of the LED light color image and acquire second color data of the LED irradiation area image: 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.

[0022] The step of obtaining the first color data of the LED light color image specifically includes the following steps: Sa21. Obtain the hue value of each pixel in the LED light color image, cluster each pixel according to the hue value to obtain multiple clusters, and take the cluster with the most pixels as the first cluster; Sa22. Obtain the hue value of each pixel in the first cluster and perform mean calculation to obtain the first hue value of the LED light color image, obtain the saturation value of each pixel in the first cluster and perform mean calculation to obtain the first saturation value of the LED light color image, take the area of the pixels in the first cluster in the LED light color image as the first area, and obtain the brightness value of the first area as the first brightness value of the LED light color image.

[0023] In some embodiments, clustering pixels according to hue values in step Sa21 to obtain multiple clusters may be performed using an existing clustering algorithm.

[0024] In some embodiments, after clustering the pixels according to the hue value to obtain a plurality of clusters and before taking the cluster with the most pixels as the first cluster, the method further includes: Get the coordinates of each pixel, and calculate the standard deviation of pixel coordinates and variance of hue values of each cluster according to the coordinates and hue values of each pixel; A cluster whose hue value variance is greater than a preset variance threshold and whose pixel coordinate standard deviation is greater than a preset standard deviation threshold is regarded as a second cluster, and the second cluster is split into two clusters until no second cluster exists.

[0025] This solution obtains the first cluster through a clustering algorithm, and uses the corresponding pixels in the first cluster to obtain the first color data of the LED light color image, excluding possible ambient light reflection, noise or other interfering colors. Through hue clustering, the pixel cluster belonging to the main color of the light source (i.e., the first cluster) can be screened out, 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 mean values can better reflect the true characteristics of the light source, rather than the global average value interfered by background or outliers.

[0026] The step of obtaining the second color data of the LED illumination area image specifically includes the following steps: Sb21. Obtain the hue value of each pixel in the LED-illuminated area image, perform difference calculations on each pixel with the first hue value, and then perform absolute value conversion to obtain each difference result. In the LED-illuminated area image, extract pixels corresponding to the difference results less than or equal to a preset threshold value as the second area; Sb22. Obtain the hue value of each pixel in the second area and perform mean calculation to obtain the second hue value of the LED irradiation area image, obtain the saturation value of each pixel in the second area and perform mean calculation to obtain the second saturation value of the LED irradiation area image, and obtain the brightness value of the second area as the second brightness value of the LED irradiation area image.

[0027] In this scheme, by screening out pixels with hues similar to the main color of the light source (first hue value) in the image of the LED illumination area, and screening out areas with similar hues (second areas), the hue stability of the LED light in the illumination area can be better quantified, and areas with large differences can be excluded to avoid their influence on the analysis results.

[0028] In the specific implementation steps of the above step S2, the extraction of hue value, brightness value and saturation value is achieved through existing technology, which will not be repeated here.

[0029] In step S3, the first expected color data and the second expected color data are preset values, the first expected color data is the color data set by the user for the LED device, and the second expected color data is the color effect data that the user expects the irradiation area to present.

[0030] The first expected color data includes a first expected brightness value, a first expected saturation value, and a first expected hue value; the second expected color data includes a second expected brightness value, a second expected saturation value, and a second expected 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; the third deviation result includes a third brightness deviation value, a third saturation deviation value, and a third hue deviation value.

[0031] S3. Compare the first color data with the first expected color data to obtain a first deviation result, compare the first color data with the second expected 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: Calculating a difference between the first brightness value and the first expected brightness value, a difference between the first saturation value and the first expected saturation value, and a difference between the first hue value and the first expected hue value as a first brightness deviation value, a first saturation deviation value, and a first hue deviation value, respectively; Calculate the difference between the first brightness value and the second expected brightness value, the difference between the first saturation value and the second expected saturation value, and the difference between the first hue value and the second expected hue value as the second brightness deviation value, the second saturation deviation value, and the second hue deviation value, respectively; The difference between the first brightness value and the second brightness value, the difference between the first saturation value and the second saturation value, and the difference between the first hue value and the second hue value are calculated as a third brightness deviation value, a third saturation deviation value, and a third hue deviation value, respectively.

[0032] S4. After performing a primary correction on the first desired color data based on the second deviation result and the third deviation result, a secondary correction is performed based on the first deviation result to obtain the corrected first desired color data. The corrected first desired color data is used as the setting parameter of the LED device. The first expected color data is corrected once according to the second deviation result and the third deviation result, specifically: LQ1=L1-(LP2-LP3), BQ1=B1-(BP2-BP2), SQ1=S1-(SP2-SP3); Among them, 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; LP3, BP3 and SP3 are the third brightness deviation value, the third saturation deviation value and the third hue deviation value, respectively.

[0033] The second deviation result is obtained by the difference between the first color data and the second expected color data, which can reflect the expected color change value between the LED light source color data and the expected color data. The third deviation result is obtained by 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 error in color change is reflected by the difference between the second deviation result and the third deviation result, and the first color data after eliminating the error is used as the first expected brightness value after one correction.

[0034] For example, taking brightness as an example, assuming that the first brightness value L1 is 5, and the brightness of the user's expected illumination area is 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. Then, when the value of 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 meets the brightness of the user's expected illumination area of 3. It should be noted that the numerical values in the above examples are only for convenience of calculation and explanation.

[0035] The second correction is performed based on the first deviation result to obtain the corrected first expected color data, specifically: LQ2=LQ1-LP1, SQ2=SQ1-SP1, BQ2=BQ1-BP1; Among them, 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.

[0036] 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 differences between the actual color data of the LED light, that is, 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 perform a second correction on 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 actually expected by the user, but rather an error margin is provided for the set first desired color data to allow the LED to be close to the actual desired 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 color data of the LED light source actually expected by the user.

[0037] In another embodiment, after step S4, the method further includes: After setting the second corrected first desired color difference data, obtaining third color data of the second LED light color image; Obtaining a fourth deviation result according to the comparison between the third color data and the first expected color data before the first correction; According to the fourth deviation result and the first expected color data before the first correction, the PID controller parameters are obtained through a preset first deep learning model. The driving current compensation amount of the LED device is output according to the PID controller parameters, and the driving current of the LED device is compensated once to obtain the first driving current.

[0038] The first deep learning model is pre-trained using multiple groups of historical fourth deviation results of LED devices, historical first expected color data, and historical PID controller parameters that can correspondingly complete color correction as training samples.

[0039] The fourth deviation result includes a fourth brightness deviation value, a fourth saturation deviation value, and a fourth hue deviation value. After setting the first desired color difference data after the second correction, the obtained LED light color data may still deviate from the desired value due to factors such as the operating temperature of the LED device. Therefore, this embodiment adjusts the PID controller parameters to compensate the driving current to achieve color correction.

[0040] After the color correction is completed, in order to achieve continuous color stability, after obtaining the first driving current, the following steps are further included: Obtaining a current temperature and a current operating time of the LED device, and predicting a temperature change trend within a future preset time period using a preset second deep learning model based on the current temperature, the current operating time, and the first drive current; Predicting a fourth deviation result change trend within the future preset time period based on the temperature change trend using a preset third deep learning model; According to the changing trend of the fourth deviation result, the PID controller parameters of each time point within the future preset time length are obtained through the first deep learning model, and the driving current of the corresponding time point is compensated according to the PID controller parameters of each time point within the future preset time length.

[0041] The second deep learning model is pre-trained using multiple sets of historical temperatures, historical operating times, and historical first drive 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.

[0042] Example 2 The present invention also provides a high-power LED color output control system provided by the present invention, specifically comprising: An image acquisition module is used to acquire LED light color images and LED irradiation area images; A first analysis module is configured to obtain first color data of the LED light color image and second color data of the LED illumination area image; a second analysis module, configured to compare the first color data with first expected color data to obtain a first deviation result, compare the first color data with second expected 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 expected color data once according to the second deviation result and the third deviation result, and then correct it twice according to the first deviation result to obtain the corrected first expected color data, and use the corrected first expected color data as the setting parameter of the LED device.

[0043] 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.

[0044] In some embodiments, obtaining the first color data of the LED light color image specifically includes the following steps: Obtain the hue value of each pixel in the LED light color image, cluster each pixel according to the hue value to obtain multiple clusters, and take the cluster with the most pixels as the first cluster; The hue value of each pixel in the first cluster is obtained and the mean calculation is performed to obtain the first hue value of the LED light color image. The saturation value of each pixel in the first cluster is obtained and the mean calculation is performed to obtain the first saturation value of the LED light color image. The area of the pixels in the first cluster in the LED light color image is taken as the first area, and the brightness value of the first area is obtained as the first brightness value of the LED light color image.

[0045] In some embodiments, clustering pixels according to hue values to obtain multiple clusters may be performed using an existing clustering algorithm.

[0046] In some embodiments, after clustering the pixels according to the hue value to obtain a plurality of clusters and before taking the cluster with the most pixels as the first cluster, the method further includes: Obtain the coordinates of each pixel, and calculate the pixel coordinate standard deviation and hue value variance of each cluster according to the coordinates and hue values of each pixel; consider the cluster whose hue value variance is greater than the preset variance threshold and the pixel coordinate standard deviation is greater than the preset standard deviation threshold as the second cluster, and split the second cluster into two clusters until no second cluster exists.

[0047] In some embodiments, obtaining the second color data of the LED illumination area image specifically includes the following steps: Obtaining the hue value of each pixel in the LED-illuminated area image, performing difference calculations with the first hue value, and then performing absolute value conversion to obtain each difference result. In the LED-illuminated area image, pixels corresponding to the difference results less than or equal to a preset threshold value are extracted as the second area; The hue value of each pixel in the second area is obtained and the average calculation is performed to obtain the second hue value of the LED irradiation area image, the saturation value of each pixel in the second area is obtained and the average calculation is performed to obtain the second saturation value of the LED irradiation area image, and the brightness value of the second area is obtained as the second brightness value of the LED irradiation area image.

[0048] In some embodiments, the first color data is compared with the first expected color data to obtain a first deviation result, the first color data is compared with the second expected 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: Calculating a difference between the first brightness value and the first expected brightness value, a difference between the first saturation value and the first expected saturation value, and a difference between the first hue value and the first expected hue value as a first brightness deviation value, a first saturation deviation value, and a first hue deviation value, respectively; Calculate the difference between the first brightness value and the second expected brightness value, the difference between the first saturation value and the second expected saturation value, and the difference between the first hue value and the second expected hue value as the second brightness deviation value, the second saturation deviation value, and the second hue deviation value, respectively; The difference between the first brightness value and the second brightness value, the difference between the first saturation value and the second saturation value, and the difference between the first hue value and the second hue value are calculated as a third brightness deviation value, a third saturation deviation value, and a third hue deviation value, respectively.

[0049] The first expected color data is corrected once according to the second deviation result and the third deviation result, specifically: LQ1=L1-(LP2-LP3), SQ1=S1-(SP2-SP3), BQ1=B1-(BP2-BP2); Among them, 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; LP3, SP3 and BP3 are the third brightness deviation value, the third hue deviation value and the third saturation deviation value, respectively.

[0050] The second correction is performed based on the first deviation result to obtain the corrected first expected color data, specifically: LQ2=LQ1-LP1, SQ2=SQ1-SP1, BQ2=BQ1-BP1; Among them, 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.

[0051] Example 3 The present invention also provides an electronic device, comprising: a processor, a sending device, an input device, an output device and a memory. The processor can be implemented as 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 solution provided in the embodiments of the present application. The memory can be implemented in the form of 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.

[0052] Example 4 The present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes a method as described in any one of the possible implementation methods described above.

[0053] The beneficial effects of the present invention are: The present invention obtains first color data of an LED light color display image and second color data of an LED irradiation area image, compares the first color data with first expected color data to obtain a first deviation result, compares the first color data with second expected 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. The first expected color data is corrected once according to the second deviation result and the third deviation result, and then corrected twice according to the first deviation result to obtain corrected first expected color data. The corrected first expected color data is used as a setting parameter of the LED device to improve the accuracy of the color output effect. A first cluster is obtained through a clustering algorithm. The first color data of the LED light color image is obtained using the corresponding pixels in the first cluster. This eliminates possible ambient light reflections, noise, or other interfering colors. Through hue clustering, the pixel cluster belonging to the main color of the light source (i.e., the first cluster) can be screened out, 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. The average hue, saturation, and brightness of the cluster better reflect the true characteristics of the light source, rather than the global average value interfered by background or outliers. By screening out pixels whose hue is similar to the main color of the light source (first hue value) in the image of the LED illumination area, and screening out areas with similar hue (second area), we can better quantify the hue stability of the LED light in the illumination area and exclude areas with large differences to avoid their influence on the analysis results.

[0054] Throughout the specification, references to terms such as "one embodiment," "example," or "specific example" indicate that the specific features, structures, materials, or characteristics described in conjunction with that embodiment or example are included in at least one embodiment or example of the present invention. In this specification, schematic representations of these 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 any one or more embodiments or examples.

[0055] In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of 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 the present application is essentially 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, which is stored in a storage medium and includes multiple instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes various media that can store programs, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0056] The foregoing description is intended only to provide specific embodiments of the present invention, which will enable those skilled in the art to understand and implement the present 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 present invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but is intended to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A high-power LED color output control method, characterized in that: The following steps are involved: Acquire LED light color images and LED irradiation area images; Acquire first color data of the LED light color display image and second color data of the LED illumination area image; Comparing the first color data with first expected color data to obtain a first deviation result, comparing the first color data with second expected 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; After the first expected color data is corrected once according to the second deviation result and the third deviation result, a second correction is performed according to the first deviation result to obtain the corrected first expected color data, and the corrected first expected color data is used as the setting parameter of the LED device.

2. The high-power LED color output control method according to claim 1, characterized in that: The step of obtaining the first color data of the LED light color image specifically includes the following steps: Obtain the hue value of each pixel in the LED light color image, cluster each pixel according to the hue value to obtain multiple clusters, and take the cluster with the most pixels as the first cluster; The hue value of each pixel in the first cluster is obtained and the mean calculation is performed to obtain the first hue value of the LED light color image. The saturation value of each pixel in the first cluster is obtained and the mean calculation is performed to obtain the first saturation value of the LED light color image. The area of the pixels in the first cluster in the LED light color image is taken as the first area, and the brightness value of the first area is obtained as the first brightness value of the LED light color image.

3. The high-power LED color output control method according to claim 2, characterized in that: After clustering the pixels according to the hue value to obtain a plurality of clusters, and before taking the cluster with the most pixels as the first cluster, the method further includes: Get the coordinates of each pixel, and calculate the standard deviation of pixel coordinates and variance of hue values of each cluster according to the coordinates and hue values of each pixel; A cluster whose hue value variance is greater than a preset variance threshold and whose pixel coordinate standard deviation is greater than a preset standard deviation threshold is regarded as a second cluster, and the second cluster is split into two clusters until no second cluster exists.

4. The high-power LED color output control method according to claim 2, characterized in that: The step of obtaining the second color data of the LED illumination area image specifically includes the following steps: Obtaining the hue value of each pixel in the LED-illuminated area image, performing difference calculations with the first hue value, and then performing absolute value conversion to obtain each difference result. In the LED-illuminated area image, pixels corresponding to the difference results less than or equal to a preset threshold value are extracted as the second area; The hue value of each pixel in the second area is obtained and the average calculation is performed to obtain the second hue value of the LED irradiation area image, the saturation value of each pixel in the second area is obtained and the average calculation is performed to obtain the second saturation value of the LED irradiation area image, and the brightness value of the second area is obtained as the second brightness value of the LED irradiation area image.

5. The high-power LED color output control method according to claim 1, characterized in that: The first color data is compared with the second expected 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: Calculating a difference between the first brightness value and the first expected brightness value, a difference between the first saturation value and the first expected saturation value, and a difference between the first hue value and the first expected hue value as a first brightness deviation value, a first saturation deviation value, and a first hue deviation value, respectively; Calculate the difference between the first brightness value and the second expected brightness value, the difference between the first saturation value and the second expected saturation value, and the difference between the first hue value and the second expected hue value as the second brightness deviation value, the second saturation deviation value, and the second hue deviation value, respectively; The difference between the first brightness value and the second brightness value, the difference between the first saturation value and the second saturation value, and the difference between the first hue value and the second hue value are calculated as a third brightness deviation value, a third saturation deviation value, and a third hue deviation value, respectively.

6. The high-power LED color output control method according to claim 5, characterized in that: The first expected color data is corrected once according to the second deviation result and the third deviation result, specifically: LQ1=L1-(LP2-LP3), BQ1=B1-(BP2-BP2), SQ1=S1-(SP2-SP3); Among them, 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; LP3, BP3 and SP3 are the third brightness deviation value, the third saturation deviation value and the third hue deviation value, respectively.

7. The high-power LED color output control method according to claim 6, characterized in that: The second correction is performed based on the first deviation result to obtain the corrected first expected color data, specifically: LQ2=LQ1-LP1, SQ2=SQ1-SP1, BQ2=BQ1-BP1; Among them, 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.

8. A high-power LED color output control system, applying the high-power LED color output control method according to any one of claims 1 to 9, characterized in that: include: An image acquisition module is used to acquire LED light color images and LED irradiation area images; A first analysis module is configured to obtain first color data of the LED light color image and second color data of the LED illumination area image; a second analysis module, configured to compare the first color data with first expected color data to obtain a first deviation result, compare the first color data with second expected 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 expected color data once according to the second deviation result and the third deviation result, and then correct it twice according to the first deviation result to obtain the corrected first expected color data, and use the corrected first expected color data as the setting parameter of the LED device.

9. The high-power LED color output control system according to claim 8, characterized in that: The step of obtaining the first color data of the LED light color image specifically includes the following steps: Obtain the hue value of each pixel in the LED light color image, cluster each pixel according to the hue value to obtain multiple clusters, and take the cluster with the most pixels as the first cluster; The hue value of each pixel in the first cluster is obtained and the mean calculation is performed to obtain the first hue value of the LED light color image. The saturation value of each pixel in the first cluster is obtained and the mean calculation is performed to obtain the first saturation value of the LED light color image. The area of the pixels in the first cluster in the LED light color image is taken as the first area, and the brightness value of the first area is obtained as the first brightness value of the LED light color image.

10. The high-power LED color output control system according to claim 9, characterized in that: The step of obtaining the second color data of the LED illumination area image specifically includes the following steps: Obtaining the hue value of each pixel in the LED-illuminated area image, performing difference calculations with the first hue value, and then performing absolute value conversion to obtain each difference result. In the LED-illuminated area image, pixels corresponding to the difference results less than or equal to a preset threshold value are extracted as the second area; The hue value of each pixel in the second area is obtained and the average calculation is performed to obtain the second hue value of the LED irradiation area image, the saturation value of each pixel in the second area is obtained and the average calculation is performed to obtain the second saturation value of the LED irradiation area image, and the brightness value of the second area is obtained as the second brightness value of the LED irradiation area image.

Citation Information

Patent Citations

  • White balance correcting method, device and electronic device

    CN107105211A

  • Color compensation method for WOLED display device and display device

    CN107146574A

  • Light source color compensation method and projector device using same

    CN107167995A

  • Image color enhancement method and device

    CN108876742A

  • Image color adjusting method and device

    CN110248170A

Cited By

  • Pixel compensation method and system of AMOLED special-shaped display screen

    CN121661973A