Lamp bead luminescence calibration method and device, computer equipment and storage medium
By using the lamp bead luminescence calibration method, the duty cycle is calculated using color coordinates and luminous flux, and the pulse width modulation value is set, which solves the problem of color deviation in drone light shows, improves the lighting effect and viewing experience, and reduces costs.
Patent Information
- Application Number
- CN202511138802.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-14
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2045-08-14
AI Technical Summary
Traditional lighting design is difficult to adapt to the perspectives of different audiences and diverse viewing environments, resulting in deviations in the color performance of drone light shows. In addition, expensive hardware upgrades make it difficult to achieve the desired effect while saving costs.
By obtaining the first color coordinates and maximum luminous flux of the lamp bead, linear correction is performed and converted to the XYZ color coordinate system, and then converted to the Yxy coordinate system. The duty cycle is calculated based on the color coordinates and luminous flux, and the pulse width modulation value is set for luminous calibration.
The lighting effects are more in line with human visual perception, which improves the visual effects and viewing experience of drone light shows and reduces hardware costs.
Smart Images

Figure CN120640474A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of light processing technology, and in particular to a lamp bead luminescence calibration method, device, computer equipment and storage medium. Background Art
[0002] As the low-altitude airspace gradually opens up to more scenarios, drone light shows are becoming increasingly popular, and the scale of their cluster performances has continued to expand, from the initial participation of more than a hundred drones to today's clusters of tens of thousands of drones on the same stage. Currently, the bottleneck for such performances is no longer quantity, but rather a breakthrough in creative design. Traditional lighting design often has difficulty adapting to the perspectives of different audiences and diverse viewing environments. Typically, performance scripts are designed on computers, but the colors presented in computer designs often have a wider color gamut, while the hardware actually used cannot meet such color gamut standards, and color performance also has deviations. In this case, if you want to meet the design effect, you often need to replace the hardware with better quality. However, if you want to save costs while getting as close to the expected effect as possible, you need a new calibration solution. Therefore, how to implement this calibration solution to improve the effect of drone light shows is a problem that those skilled in the art need to solve. Summary of the Invention
[0003] The embodiments of the present invention provide a lamp bead illumination calibration method, device, computer equipment and storage medium, aiming to improve the lighting performance effect of unmanned aerial vehicle (UAV) lights.
[0004] In a first aspect, an embodiment of the present invention provides a lamp bead light emission calibration method, comprising: Get the tested lamp bead and its first color coordinate and maximum luminous flux; Obtain the RGB color value of the lamp bead under test in the SRGB color gamut; Performing linear correction on the RGB color values, and converting the linearly corrected RGB color values into XYZ color coordinates; Convert the RGB color value of the XYZ color system coordinate to the Yxy coordinate system to obtain the second color coordinate corresponding to the RGB color value; The duty cycle of the lamp bead under test is obtained in combination with the first color coordinate, the second color coordinate and the maximum luminous flux, and the pulse width modulation value of the lamp bead under test is set based on the duty cycle, and then the pulse width modulation value is used to calibrate the luminescence of the lamp bead under test.
[0005] In a second aspect, an embodiment of the present invention provides a lamp bead light emission calibration device, comprising: A parameter acquisition unit, used to obtain the lamp bead under test, its first color coordinates and maximum luminous flux; A color value acquisition unit, configured to acquire the RGB color value of the lamp bead under test in the SRGB color gamut; A color value correction unit, configured to perform linearization correction on the RGB color values and convert the linearized RGB color values into XYZ color coordinates; A coordinate conversion unit, configured to convert the RGB color value of the XYZ color system coordinate into a Yxy coordinate system to obtain a second color coordinate corresponding to the RGB color value; A modulation calibration unit is used to obtain the duty cycle of the lamp bead under test in combination with the first color coordinate, the second color coordinate and the maximum luminous flux, and to set the pulse width modulation value of the lamp bead under test based on the duty cycle, and then use the pulse width modulation value to perform luminescence calibration on the lamp bead under test.
[0006] In a third aspect, an embodiment of the present invention provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the lamp bead luminescence calibration method as described in the first aspect is implemented.
[0007] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the lamp bead luminescence calibration method as described in the first aspect is implemented.
[0008] An embodiment of the present invention provides a lamp bead luminescence calibration method, device, computer equipment and storage medium, the method comprising: obtaining a lamp bead under test and its first color coordinates and maximum luminous flux; obtaining the RGB color value of the lamp bead under test in the SRGB color gamut; performing linear correction on the RGB color value, and converting the linearly corrected RGB color value to an XYZ color system coordinate; converting the RGB color value of the XYZ color system coordinate to a Yxy coordinate system to obtain a second color coordinate corresponding to the RGB color value; obtaining the duty cycle of the lamp bead under test in combination with the first color coordinate, the second color coordinate and the maximum luminous flux, and setting a pulse width modulation value of the lamp bead under test based on the duty cycle, and then performing luminescence calibration on the lamp bead under test using the pulse width modulation value. The embodiment of the present invention first obtains the lamp bead under test, its first color coordinate, maximum luminous flux, and its RGB color value in the SRGB color gamut; then linearizes and corrects the RGB color value and converts it to the XYZ color coordinate system, and then converts the RGB color value of this coordinate to the Yxy coordinate system to obtain the second color coordinate; finally, the duty cycle of the lamp bead under test is obtained by combining the first color coordinate, the second color coordinate, and the maximum luminous flux, and the pulse width modulation value is set according to the duty cycle, and the luminescence of the lamp bead under test is calibrated using this value. The lamp bead luminescence calibration method provided by the embodiment of the present invention can sense and adjust the brightness, color temperature, and spectral distribution of the drone light in real time, so that the lighting effect is more in line with the visual perception characteristics of the human eye, thereby improving the visual effect and viewing experience of the drone light show. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0010] Figure 1 A schematic diagram of a flow chart of a lamp bead illumination calibration method provided in an embodiment of the present invention; Figure 2 A schematic diagram of a sub-process of a lamp bead illumination calibration method provided in an embodiment of the present invention; Figure 3 A schematic diagram of a lamp bead illumination calibration method provided by an embodiment of the present invention; Figure 4 A schematic block diagram of a lamp bead illumination calibration device provided in an embodiment of the present invention; Figure 5 This is a sub-schematic block diagram of a lamp bead luminescence calibration device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0011] 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 them. 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.
[0012] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0013] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0014] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0015] See below Figure 1 The embodiment of the present invention provides a lamp bead light emission calibration method, which specifically includes: steps S101 to S105.
[0016] Step S101, obtaining the lamp bead to be tested and its first color coordinate and maximum luminous flux; Step S102: Obtain the RGB color value of the lamp bead under test in the SRGB color gamut; Step S103: performing linear correction on the RGB color values, and converting the linearly corrected RGB color values into XYZ color coordinates; Step S104: Convert the RGB color value of the XYZ color coordinate system into the Yxy coordinate system to obtain a second color coordinate corresponding to the RGB color value; Step S105: obtain the duty cycle of the lamp bead under test by combining the first color coordinate, the second color coordinate and the maximum luminous flux, set the pulse width modulation value of the lamp bead under test based on the duty cycle, and then use the pulse width modulation value to calibrate the luminescence of the lamp bead under test.
[0017] This embodiment first obtains the lamp bead under test, its first color coordinate, maximum luminous flux, and its RGB color value in the SRGB color gamut; then linearizes and corrects the RGB color value and converts it to an XYZ color coordinate system; then converts the RGB color value of this coordinate to a Yxy coordinate system to obtain a second color coordinate; finally, the duty cycle of the lamp bead under test is calculated by combining the first color coordinate, the second color coordinate, and the maximum luminous flux; the pulse width modulation value is set according to the duty cycle, and the luminescence calibration of the lamp bead under test is performed using this value. The lamp bead luminescence calibration method provided by the embodiment of the present invention can sense and adjust the brightness, color temperature, and spectral distribution of the drone light in real time, making the lighting effect more consistent with the visual perception characteristics of the human eye, thereby improving the visual effect and viewing experience of the drone light show.
[0018] It should be noted that in traditional dimming solutions, since the corresponding values of RGB are 0-255, the PWM duty cycle also corresponds to 0-255, thus achieving a one-to-one correspondence. However, in reality, the currents required by the RGB lights are different. If the same PWM duty cycle is used under different currents, the final effect will be different. For example, since the current has the greatest impact on red light, when the current decreases, the red light decays the fastest. In addition, under normal circumstances, the brightness of the light is evenly distributed in geometric proportions, but this is not the case for the human eye. Figure 3 As shown, Figure 3The upper half represents the brightness that the human eye is adapted to, and the lower half represents the brightness that is evenly distributed in the real world. Therefore, in order to better fit the visual perception characteristics of the human eye, it is necessary to calibrate the light emission of the lamp beads more accurately. In this embodiment, by obtaining the RGB color values of the lamp beads under test in the SRGB color gamut and performing linear correction, the color deviation caused by hardware differences can be eliminated. Then, the corrected RGB color values are converted to XYZ color coordinates, and then further converted to the Yxy coordinate system to obtain more accurate color coordinates. This process can effectively convert the colors presented in the computer design into colors that can be achieved by the actual hardware, while maintaining color accuracy and consistency.
[0019] In practical applications, when obtaining the color coordinates and maximum luminous flux of the measured lamp bead, for RGB mixed white light lamp beads, the color coordinates and maximum luminous flux of the red, green, and blue colors can be measured separately. Furthermore, since current light panels primarily use LED SMD lights, which are composed of the three primary colors of RGB, the red light is not entirely composed of red light; red light only accounts for the majority, with some green and blue light also present. Therefore, the additive color mixing principle is used to combine the colors. This involves extracting the R, G, and B values of multiple lights and adding them together, but the sum cannot exceed 255. It is important to note that brightness is not considered here, only color. This involves converting the XYZ color system into a Yxy chromaticity diagram and normalizing it. According to the color equation C = R(R)+G(G)+B(B), R, G, and B are tristimulus values, with (R), (G), and (B) representing the units of the red, green, and blue primary colors that produce the mixed color. This provides the formula for duty cycle and maximum luminous flux: ; Among them, Y m Denotes the expected luminous flux at the selected point, D r Indicates the red light duty cycle, D g Indicates the green light duty cycle, D b Indicates the blue light duty cycle, D w Warm white light duty cycle, Y r Indicates the maximum luminous flux of the red light, Y g Indicates the maximum luminous flux of the green light, Y b Indicates the maximum luminous flux of the blue light, Y wr Indicates the maximum luminous flux of red light in warm white light, Y wg 、Y wb Same thing.
[0020] In addition, when obtaining RGB color values, the RGB color gamut provided by the device is SRGB. For example, the red coordinate in the RGB color value is (0.64, 0.33), the green coordinate is (0.3, 0.6), the blue coordinate is (0.15, 0.06), and the white coordinate is (0.3127, 0.3290).
[0021] In one embodiment, if Figure 2 As shown, the step S105 includes: steps S201 to S203.
[0022] Step S201: Based on the second color coordinates, determine whether the RGB color value is within the displayable SRGB color gamut; Step S202: If it is determined that the RGB color value is within the displayable SRGB color gamut, the duty cycle of the tested lamp bead is calculated using the second color coordinates; Step S203: If it is determined that the RGB color value is not within the displayable SRGB color gamut, the white coordinates in the SRGB color gamut are obtained, and the second color coordinates are mapped according to the white coordinates to obtain mapped color coordinates, and then the mapped color coordinates are used to calculate the duty cycle of the tested lamp bead.
[0023] After obtaining the second color coordinates, this embodiment first needs to determine whether the RGB color value is within the color gamut that the device can display (that is, determine whether a point is located inside the triangle, which can be determined specifically by using the vector cross product method). If the RGB color value is within the color gamut, the duty cycle can be calculated directly using the second color coordinates; if the RGB color value is not within the color gamut, mapping processing is required, and then the duty cycle is calculated using the mapped color coordinates obtained by mapping. In actual applications, when performing the mapping process, a point and the triangle formed by the device color gamut are known. By finding the intersection of the line connecting the point and the sRGB white point (white coordinate) with one side of the triangle, the mapping point can be determined, thereby obtaining a new color coordinate, namely the mapped color coordinate.
[0024] Specifically, the calculation of the duty cycle of the tested lamp bead using the mapped color coordinates includes: Performing point distance calculation on the mapped color coordinates and each coordinate point in a pre-created blackbody curve to obtain a point distance calculation result; When the point distance calculation result is less than or equal to the preset distance threshold, obtaining the corresponding coordinate point, and calculating the weight of the warm white light according to the coordinate point; The duty cycle of the tested lamp bead is calculated using the weight of the warm white lamp.
[0025] This embodiment calculates the distance between the mapped color coordinates and each point in the pre-created blackbody curve. If the result of the distance calculation is less than or equal to the preset distance threshold (for example, 0.01), it is considered that the point needs to use W lamp beads (warm white light lamp beads) to adjust the color temperature. Specifically, the weight of the W lamp beads can be calculated according to the following formula: ; in, Indicates the weight of warm white light beads. represents the horizontal coordinate of the coordinate point in the blackbody curve, Represents the ordinate of the coordinate point in the blackbody curve, x and y represent the abscissa and ordinate of the mapped color coordinates respectively, W x and W y They represent the horizontal and vertical coordinates of the warm white light beads on the chromaticity diagram respectively.
[0026] Furthermore, when the duty cycle of the tested lamp bead is calculated using the weight of the warm white lamp, the calculation can be performed according to the following formula: ; Among them, D r 、D g and D b They represent the duty cycle of the RGB (red, green, and blue) lights of the tested lamp beads, x r and y r They represent the horizontal and vertical coordinates of red light in the chromaticity diagram, respectively. g and y g They represent the horizontal and vertical coordinates of green light in the chromaticity diagram, respectively. b and y b They represent the horizontal and vertical coordinates of blue light in the chromaticity diagram, I is the set brightness parameter, Y m is the desired luminous flux for the selected RGB. Here, I only changes the brightness of the display, leaving color saturation unchanged, to achieve an effect that adapts to the human eye. I also automatically adjusts based on the temperature of the light board to prevent excessive color shifts due to overheating.
[0027] It is understandable that when the duty cycle of the measured lamp bead is directly calculated using the second color coordinate, it is only necessary to cancel the weight of the W lamp bead in the above duty cycle calculation formula.
[0028] In a specific embodiment, the above duty cycle calculation formula can be obtained through the following process: Based on the maximum luminous flux of the tested lamp and the corresponding first color coordinate, the total area of the triangle can be calculated according to the vector cross product. When a desired color is given (for example, red), this red and the full-load blue-green point can also form a triangle: ; w r Indicates the red light weight, i.e. percentage, S indicates the area, S r That is, the area occupied by red light, S total Indicates the area occupied by all lights.
[0029] Based on the RGB color values, we can find a point in the triangle, from which we can get its coordinates (x, y) and brightness Y: ; Among them, w r represents the red light weight, w g represents the green light weight, w b represents the blue light weight; x r Indicates the horizontal coordinate of the maximum red light that the device can display on the chromaticity diagram, x g Indicates the horizontal coordinate of the maximum green light that the device can display on the chromaticity diagram, x b The horizontal axis of the chromaticity diagram represents the maximum blue light that the device can display.
[0030] Then the weight of w can be calculated according to the triangle interpolation formula, and the total weight can be obtained by adding them together: ; Among them, S r Represents the area of red light in the chromaticity diagram, S g Represents the area of green light in the chromaticity diagram, S b Represents the area of blue light in the chromaticity diagram, S total Represents the total area of the device color gamut in the chromaticity diagram, (x, y) represents the chromaticity Figure 3 A random point in the triangle, (x r ,y r ) represents the point in the chromaticity diagram where the device’s color gamut has the maximum red color. (x g ,y g ) represents the point in the chromaticity diagram where the device’s color gamut has the maximum green color. (x b ,y b ) represents the point in the chromaticity diagram where the device's color gamut has the maximum blue.
[0031] Then unify the brightness, here we take red light as an example: ; Among them, D r is the red light duty cycle, w r is the weight of red light, y r is the vertical coordinate of the red light point in the chromaticity diagram when the device is fully loaded, y is the vertical coordinate of the RGB color value in the chromaticity diagram, Y is the brightness of the RGB color value, and Y ris the maximum luminous flux of red light when the device is fully loaded. The same applies to green and blue light. Combining the above information and formulas, we can derive the formula for calculating color coordinates with respect to the PWM duty cycle.
[0032] In a specific embodiment, the process of creating the blackbody curve includes: A plurality of coordinate points are selected according to a preset color temperature, and the blackbody curve is created according to the plurality of coordinate points, so as to store the coordinate points using the blackbody curve.
[0033] In practical applications, the blackbody curve can be pre-created, for example, during device initialization. This blackbody curve can be used to store color coordinates from 2000K to 20,000K (Kelvin). Considering the existence of color temperature, a blackbody curve can be found in the chromaticity diagram. This curve records color values from high to low color temperature, so an approximate formula can be used to derive color coordinates from color temperature. For example, the color coordinates for color temperatures from 2000K to 20,000K can be stored according to the following formula, with one point recorded every 100K: ; Here, x and y represent the horizontal and vertical coordinates of a point on the chromaticity diagram, respectively. This formula represents the relationship between the coordinates of a point on the chromaticity diagram and color temperature. It is used to determine points on the blackbody curve, ranging from 4500K to 12000K in 100K increments. For example, if the desired RGB point (converted to the chromaticity diagram) is within a ΔE of ≤0.01 from a point on the blackbody curve, the point is considered to be on the blackbody curve. At this point, the proportion of warm white light can be calculated; otherwise, warm white light does not exist.
[0034] In one embodiment, step S103 includes: The RGB color values are normalized, and the normalized results are subjected to gamma calibration and linearization.
[0035] In this embodiment, when performing linearization calibration on RGB color values, the RGB color values are first normalized and divided by 255 to obtain a value between 0 and 1. Gamma linearization is then performed based on this value. In practical applications, the calibrated RGB color values can be obtained according to the following formula, where the gamma coefficient can be set according to the specific situation and is generally set between 2.2 and 2.6: ; in, Indicates the RGB color value after linearization correction.
[0036] In one embodiment, step S104 includes: The RGB color values of the XYZ color system coordinates are converted to the Yxy coordinate system, and the coordinates of the RGB color values on the chromaticity diagram of the Yxy coordinate system are obtained, and then the coordinates on the chromaticity diagram are used as the second color coordinates.
[0037] In this embodiment, by converting the XYZ color coordinates into the Yxy coordinate system, the color coordinates corresponding to the RGB color value and the maximum luminous flux Y can be obtained. In practical applications, the values of the XYZ color system can be obtained according to the following formula: ; Among them, R in RGB represents rgb_scaledR, G in RGB represents rgb_scaledG, and B in RGB represents rgb_scaledB.
[0038] Then, convert the value of the XYZ color system to the Yxy coordinate system according to the following formula to obtain the color coordinates (x, y) of the RGB color value on the chromaticity diagram: .
[0039] In one embodiment, the step S105 further includes: Obtaining the maximum resolution of pulse width modulation of the lamp bead under test; Multiplying the duty cycle by the pulse width modulation maximum resolution to obtain the pulse width modulation value; The lamp bead under test is controlled to emit light based on the pulse width modulation value.
[0040] In this embodiment, after determining the duty cycle, multiplying it by the maximum PWM resolution yields the final PWM value output to the lamp beads. This allows for precise control of the lamp bead's brightness and color temperature. By combining color coordinates, maximum luminous flux, and duty cycle, this embodiment ensures consistent and stable lighting effects, further enhancing the overall performance of the drone light show. Furthermore, this embodiment offers high flexibility and adaptability, enabling flexible adjustments based on different scenarios and needs to meet diverse application requirements.
[0041] In general, this embodiment improves hardware utilization efficiency by obtaining hardware device specifications and using them as part of lighting calibration. At the same time, using gamma calibration makes the real-world lighting display more compatible with the human eye, improving the comfort of the lighting display. Specifically, the lamp bead illumination calibration method provided in this embodiment has the following advantages: (1) Simpler, as the PWM duty cycle can be calculated by the algorithm by simply giving any color; (2) More intelligent. This embodiment can be used not only in drone light show scenes, but also in any scene involving LED patch lamp beads. (3) More convenient. For non-technical personnel, luminous calibration can be achieved simply by converting the color gamut color coordinates.
[0042] Figure 4 A schematic block diagram of a lamp bead luminescence calibration device 400 provided in an embodiment of the present invention, the device 400 includes: The parameter acquisition unit 401 is used to obtain the lamp bead under test and its first color coordinate and maximum luminous flux; The color value acquisition unit 402 is used to obtain the RGB color value of the lamp bead under test in the SRGB color gamut; The color value correction unit 403 is used to perform linear correction on the RGB color value and convert the linearly corrected RGB color value into an XYZ color coordinate system; A coordinate conversion unit 404 is used to convert the RGB color value of the XYZ color system coordinate into the Yxy coordinate system to obtain a second color coordinate corresponding to the RGB color value; The modulation calibration unit 405 is used to obtain the duty cycle of the lamp bead under test in combination with the first color coordinate, the second color coordinate and the maximum luminous flux, and set the pulse width modulation value of the lamp bead under test based on the duty cycle, and then use the pulse width modulation value to perform luminescence calibration on the lamp bead under test.
[0043] In one embodiment, if Figure 5 As shown, the modulation calibration unit 405 includes: A color gamut determination unit 501 is configured to determine, based on the second color coordinates, whether the RGB color value is within a displayable SRGB color gamut; The first determination unit 502 is configured to calculate the duty cycle of the tested lamp bead using the second color coordinates if it is determined that the RGB color value is within the displayable SRGB color gamut; The second determination unit 503 is configured to obtain the white coordinates in the SRGB color gamut if it is determined that the RGB color value is not within the displayable SRGB color gamut, map the second color coordinates according to the white coordinates to obtain mapped color coordinates, and then calculate the duty cycle of the tested lamp bead using the mapped color coordinates.
[0044] In one embodiment, the first determining unit 502 includes: a dot distance calculation unit, configured to calculate the dot distance between the mapped color coordinates and each coordinate point in a pre-created blackbody curve to obtain a dot distance calculation result; a weight calculation unit, configured to obtain a corresponding coordinate point when the point distance calculation result is less than or equal to a preset distance threshold, and calculate the weight of the warm white light according to the coordinate point; A duty cycle calculation unit is used to calculate the duty cycle of the tested lamp bead using the weight of the warm white lamp.
[0045] In one embodiment, the process of creating the blackbody curve includes: A plurality of coordinate points are selected according to a preset color temperature, and the blackbody curve is created according to the plurality of coordinate points, so as to store the coordinate points using the blackbody curve.
[0046] In one embodiment, the color value correction unit 403 includes: The color value normalization unit is used to normalize the RGB color values and perform gamma calibration linearization on the normalized results.
[0047] In one embodiment, the coordinate conversion unit 404 includes: The coordinate acquisition unit is used to convert the RGB color value of the XYZ color system coordinate to the Yxy coordinate system, and obtain the coordinates of the RGB color value on the chromaticity diagram of the Yxy coordinate system, and then use the coordinates on the chromaticity diagram as the second color coordinates.
[0048] In one embodiment, the modulation calibration unit 405 further includes: A resolution acquisition unit, used to obtain the maximum resolution of the pulse width modulation of the lamp bead under test; a modulation value acquiring unit, configured to multiply the duty cycle by the pulse width modulation maximum resolution to obtain the pulse width modulation value; A light emitting calibration unit is used to control the lamp bead under test to emit light based on the pulse width modulation value.
[0049] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.
[0050] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When executed, the computer program can implement the steps provided in the above embodiment. The storage medium may include a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or other medium capable of storing program code.
[0051] The present invention also provides a computer device that may include a memory and a processor. The memory stores a computer program, and when the processor calls the computer program in the memory, the steps provided in the above embodiment can be implemented. Of course, the computer device may also include various network interfaces, a power supply, and other components.
[0052] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of the claims of this application.
[0053] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
Claims
1. A lamp bead luminescence calibration method, characterized in that: include: Get the tested lamp bead and its first color coordinate and maximum luminous flux; Obtain the RGB color value of the tested lamp bead in the SRGB color gamut; Performing linear correction on the RGB color values, and converting the linearly corrected RGB color values into XYZ color coordinates; Convert the RGB color value of the XYZ color system coordinate to the Yxy coordinate system to obtain the second color coordinate corresponding to the RGB color value; The duty cycle of the lamp bead under test is obtained in combination with the first color coordinate, the second color coordinate and the maximum luminous flux, and the pulse width modulation value of the lamp bead under test is set based on the duty cycle, and then the pulse width modulation value is used to calibrate the luminescence of the lamp bead under test.
2. The lamp bead luminescence calibration method according to claim 1, characterized in that: The step of obtaining the duty cycle of the lamp bead under test by combining the first color coordinate, the second color coordinate, and the maximum luminous flux includes: Based on the second color coordinates, determining whether the RGB color value is within a displayable SRGB color gamut; If it is determined that the RGB color value is within the displayable SRGB color gamut, the duty cycle of the tested lamp bead is calculated using the second color coordinates; If it is determined that the RGB color value is not within the displayable SRGB color gamut, the white coordinate in the SRGB color gamut is obtained, and the second color coordinate is mapped according to the white coordinate to obtain the mapped color coordinate, and then the mapped color coordinate is used to calculate the duty cycle of the tested lamp bead.
3. The lamp bead luminescence calibration method according to claim 2, characterized in that: The calculating the duty cycle of the lamp bead under test by using the mapped color coordinates includes: Performing point distance calculation on the mapped color coordinates and each coordinate point in a pre-created blackbody curve to obtain a point distance calculation result; When the point distance calculation result is less than or equal to the preset distance threshold, obtaining the corresponding coordinate point, and calculating the weight of the warm white light according to the coordinate point; The duty cycle of the tested lamp bead is calculated using the weight of the warm white lamp.
4. The lamp bead luminescence calibration method according to claim 3, characterized in that: The process of creating the blackbody curve includes: A plurality of coordinate points are selected according to a preset color temperature, and the blackbody curve is created according to the plurality of coordinate points, so as to store the coordinate points using the blackbody curve.
5. The lamp bead luminescence calibration method according to claim 1, characterized in that: The linearizing and correcting the RGB color values and converting the linearly corrected RGB color values into XYZ color coordinates include: The RGB color values are normalized, and the normalized results are subjected to gamma calibration and linearization.
6. The lamp bead luminescence calibration method according to claim 1, characterized in that: The converting the RGB color value of the XYZ color system coordinate to the Yxy coordinate system to obtain the second color coordinate corresponding to the RGB color value includes: The RGB color values of the XYZ color system coordinates are converted to the Yxy coordinate system, and the coordinates of the RGB color values on the chromaticity diagram of the Yxy coordinate system are obtained, and then the coordinates on the chromaticity diagram are used as the second color coordinates.
7. The lamp bead luminescence calibration method according to claim 1, characterized in that: The step of setting a pulse width modulation value of the lamp bead under test based on the duty cycle, and then performing luminescence calibration on the lamp bead under test using the pulse width modulation value, includes: Obtaining the maximum resolution of pulse width modulation of the lamp bead under test; Multiplying the duty cycle by the pulse width modulation maximum resolution to obtain the pulse width modulation value; The lamp bead under test is controlled to emit light based on the pulse width modulation value.
8. A lamp bead luminescence calibration device, characterized in that: include: A parameter acquisition unit, used to obtain the lamp bead under test, its first color coordinates and maximum luminous flux; A color value acquisition unit, configured to acquire the RGB color value of the lamp bead under test in the SRGB color gamut; A color value correction unit, configured to perform linearization correction on the RGB color values and convert the linearized RGB color values into XYZ color coordinates; A coordinate conversion unit, configured to convert the RGB color value of the XYZ color system coordinate into a Yxy coordinate system to obtain a second color coordinate corresponding to the RGB color value; A modulation calibration unit is used to obtain the duty cycle of the lamp bead under test in combination with the first color coordinate, the second color coordinate and the maximum luminous flux, and to set the pulse width modulation value of the lamp bead under test based on the duty cycle, and then use the pulse width modulation value to perform luminescence calibration on the lamp bead under test.
9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the lamp bead luminescence calibration method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the lamp bead luminescence calibration method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
RGB lamp color matching calibration system and method
CN108156728A
Multichannel intelligent precise color mixing and dimming method based on brightness priority
CN111741568A
High-color-rendering white light LED light mixing control method based on PWM dimming and light source module
CN112882514A
White balance control method for RGBW lamp and application thereof
CN113347757A
Atmosphere lamp user color calibration matching method
CN119789262A