A lamp bead light emission 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 effects and viewing experience, and reduces hardware costs.
Patent Information
- Application Number
- CN202511138802.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-14
- Publication Date
- 2025-10-17
- 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, and costly hardware upgrades make it difficult to achieve the designed effect.
By obtaining the 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 aligned with the visual perception characteristics of the human eye, which improves the visual effects and viewing experience of the drone light show and reduces hardware costs.
Smart Images

Figure CN120640474B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of light processing, in particular to a lamp bead light-emitting calibration method and device, computer equipment and a storage medium. BACKGROUND
[0002] With the gradual opening of the low-altitude field to more scenarios, unmanned aerial vehicle light shows are increasingly favored, and the scale of their cluster performances continues to expand, from the initial participation of hundreds of unmanned aerial vehicles to today's thousands of cluster performances. At present, the bottleneck of such performances is no longer the number, but the breakthrough in creative design. Traditional light design often cannot adapt to different audience perspectives and diverse viewing environments. In general, the performance script is designed on a computer, but the colors presented in the computer design are often wider in color gamut, and the actual hardware is difficult to achieve such a color gamut standard, and there is a deviation in color performance. At this time, if you want to meet the design effect, you often need to replace higher quality hardware, but if you want to save costs while trying to approach the expected effect as much as possible, a new type of calibration scheme is needed. Therefore, how to implement the calibration scheme to improve the performance effect of unmanned aerial vehicle light shows is a problem that needs to be solved by those skilled in the art. SUMMARY
[0003] The present application provides a lamp bead light-emitting calibration method, device, computer equipment and storage medium, which aims to improve the performance effect of unmanned aerial vehicle light shows.
[0004] In a first aspect, the present application provides a lamp bead light-emitting calibration method, comprising:
[0005] Obtaining a measured lamp bead and its first color coordinate and maximum luminous flux;
[0006] Obtaining the RGB color value of the measured lamp bead in the SRGB color gamut;
[0007] Linearizing the RGB color value and converting the linearized RGB color value to XYZ colorimetric coordinates;
[0008] Converting the RGB color value of the XYZ colorimetric coordinates to the Yxy coordinate system to obtain the second color coordinate corresponding to the RGB color value;
[0009] Obtaining the duty cycle of the measured lamp bead in combination with the first color coordinate, the second color coordinate and the maximum luminous flux, and setting the pulse width modulation value of the measured lamp bead based on the duty cycle, and then using the pulse width modulation value to calibrate the light-emitting of the measured lamp bead.
[0010] In a second aspect, the present application provides a lamp bead light-emitting calibration device, comprising:
[0011] A parameter acquisition unit is configured to acquire a first color coordinate and a maximum luminous flux of a measured lamp bead.
[0012] A color value acquisition unit is configured to acquire an RGB color value of the measured lamp bead in an SRGB color gamut.
[0013] A color value correction unit is configured to perform linearization correction on the RGB color value and convert the linearization corrected RGB color value to XYZ colorimetric coordinates.
[0014] A coordinate conversion unit is configured to convert the RGB color value of the XYZ colorimetric coordinates to a Yxy coordinate system to obtain a second color coordinate corresponding to the RGB color value.
[0015] A modulation calibration unit is configured to acquire a duty cycle of the measured lamp bead in combination with the first color coordinate, the second color coordinate and the maximum luminous flux, set a pulse width modulation value of the measured lamp bead based on the duty cycle, and then perform light emission calibration on the measured lamp bead by using the pulse width modulation value.
[0016] In a third aspect, an embodiment of the present application provides a computer device, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the lamp bead light emission calibration method according to the first aspect when executing the computer program.
[0017] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executable on a processor to implement the lamp bead light emission calibration method according to the first aspect.
[0018] 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
[0019] 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.
[0020] Figure 1 A schematic diagram of a flow chart of a lamp bead illumination calibration method provided in an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of a sub-process of a lamp bead illumination calibration method provided in an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of a lamp bead illumination calibration method provided by an embodiment of the present invention;
[0023] Figure 4 A schematic block diagram of a lamp bead illumination calibration device provided in an embodiment of the present invention;
[0024] 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
[0025] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort should fall within the protection scope of the present application.
[0026] It should be understood that the terms "comprising" and "including" as used in the specification and the appended claims indicate the presence of the 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.
[0027] It should also be understood that the terms used in the present application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the present application specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0028] It should be further understood that the term "and / or" as used in the present application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0029] Please see the following Figure 1 The embodiment of the present application provides a lamp bead light-emitting calibration method, specifically comprising steps S101-S105.
[0030] Step S101, acquiring a measured lamp bead, a first color coordinate and a maximum luminous flux thereof;
[0031] Step S102, acquiring an RGB color value of the measured lamp bead in an SRGB color gamut;
[0032] Step S103, linearly correcting the RGB color value, and converting the linearly corrected RGB color value to an XYZ colorimetric coordinate;
[0033] Step S104, converting the RGB color value of the XYZ colorimetric coordinate to a Yxy coordinate system to obtain a second color coordinate corresponding to the RGB color value;
[0034] 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.
[0035] 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.
[0036] 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 3 The 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.
[0037] 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:
[0038] ;
[0039] 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.
[0040] 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).
[0041] In one embodiment, if Figure 2 As shown, the step S105 includes: steps S201 to S203.
[0042] Step S201: Based on the second color coordinates, determine whether the RGB color value is within the displayable SRGB color gamut;
[0043] Step S202, if it is determined that the RGB color value is within the displayable SRGB color gamut, then the duty cycle of the measured lamp bead is calculated using the second color coordinate;
[0044] Step S203, if it is determined that the RGB color value is not within the displayable SRGB color gamut, then the white color coordinate in the SRGB color gamut is obtained, the second color coordinate is mapped according to the white color coordinate to obtain a mapped color coordinate, and then the duty cycle of the measured lamp bead is calculated using the mapped color coordinate.
[0045] After obtaining the second color coordinate, the embodiment first needs to determine whether the RGB color value is within the color gamut range that can be displayed by the device (i.e., whether a point is located inside a triangle, which can be determined by using the vector cross product method). If the RGB color value is within the color gamut, then the duty cycle can be directly calculated using the second color coordinate. If the RGB color value is not within the color gamut, then mapping processing is needed, and then the duty cycle is calculated using the mapped color coordinate obtained by mapping. In actual application, when performing mapping processing, a point and a triangle formed by the device color gamut are known, and the intersection point of the line connecting the point and the sRGB white point (white color coordinate) and a side of the triangle is determined, so as to obtain a new color coordinate, i.e., the mapped color coordinate.
[0046] Specifically, the duty cycle of the measured lamp bead is calculated using the mapped color coordinate, including:
[0047] point distance calculation is performed on the mapped color coordinate and each coordinate point in the pre-created blackbody curve to obtain a point distance calculation result;
[0048] When the point distance calculation result is less than or equal to a preset distance threshold, the corresponding coordinate point is obtained, and the weight of the warm white lamp is calculated according to the coordinate point;
[0049] The duty cycle of the measured lamp bead is calculated using the weight of the warm white lamp.
[0050] In the embodiment, the point distance calculation is performed on the mapped color coordinate and each point in the pre-created blackbody curve, and if the point distance calculation result is less than or equal to a preset distance threshold (for example, 0.01), then it is considered that the point needs to be adjusted by using a W lamp bead (warm white light lamp bead). The weight of the W lamp bead can be calculated according to the following formula:
[0051] ;
[0052] wherein, represents the weight of the warm white light lamp bead, represents the abscissa of the coordinate point in the blackbody curve, 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 respectively represent the abscissa and ordinate of the warm white light bead under the chromaticity diagram.
[0053] Further, when calculating the duty cycle of the measured light bead by using the weight of the warm white light, the calculation can be performed according to the following formula:
[0054] ;
[0055] wherein D r , D g and D b respectively represent the duty cycles of the RGB (red, green and blue) three-color light of the measured light bead, x r and y r respectively represent the abscissa and ordinate of the red light under the chromaticity diagram, x g and y g respectively represent the abscissa and ordinate of the green light under the chromaticity diagram, x b and y b respectively represent the abscissa and ordinate of the blue light under the chromaticity diagram, I is a set luminance parameter, Y m is the luminous flux of the selected RGB, i.e. the expected luminous flux. Here, I only changes the displayed luminance, without changing the color saturation, so as to achieve the effect of adapting to the human eye. Meanwhile, I can be automatically adjusted according to the temperature condition of the light panel, so as to prevent the color deviation from being too large due to overheating.
[0056] It can be understood that when the duty cycle of the measured light bead is directly calculated by using the second color coordinates, only the weight of the W light bead in the above duty cycle calculation formula needs to be cancelled.
[0057] In specific embodiments, the above duty cycle calculation formula can be obtained by the following process:
[0058] Based on the maximum luminous flux of the measured light bead and the corresponding first color coordinates, the total area of the triangle can be calculated according to the vector cross product. When a desired color (such as red) is given, the red color and the full-load blue-green color point can also form a triangle:
[0059] ;
[0060] w r represents the red light weight, i.e. the percentage, S represents the area, S r i.e. represents the area occupied by the red light, S total represents the area occupied by all the light.
[0061] Based on the RGB color value, a point can be found in the triangle, thus the coordinates (x, y) and brightness Y can be obtained:
[0062] ;
[0063] wherein w r represents the red light weight, w g represents the green light weight, and w b represents the blue light weight; x r represents the maximum red light that the device can display in the chromaticity diagram, x g represents the maximum green light that the device can display in the chromaticity diagram, and x b represents the maximum blue light that the device can display in the chromaticity diagram.
[0064] Then the weight of w can be calculated according to the triangular interpolation formula, and the total weight is obtained by adding:
[0065] ;
[0066] wherein S r represents the area of the red light in the chromaticity diagram, S g represents the area of the green light in the chromaticity diagram, S b represents the area of the blue light in the chromaticity diagram, S total represents the total area of the device gamut in the chromaticity diagram, (x, y) represents a random point in the chromaticity Figure Three angle, (x r , y r ) represents the maximum red color in the chromaticity diagram of the device gamut, (x g , y g ) represents the maximum green color in the chromaticity diagram of the device gamut, and (x b , y b ) represents the maximum blue color in the chromaticity diagram of the device gamut.
[0067] Then the uniform brightness is obtained, taking the red light as an example:
[0068] ;
[0069] wherein D r is the duty ratio of the red light, w r is the weight of the red light, y r is the vertical coordinate of the point of the red light 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 full load. Green light and blue light can be analogously derived.
[0070] In a specific embodiment, the process of creating the black body curve comprises:
[0071] According to the preset color temperature, a plurality of coordinate points are selected, the black body curve is created according to the plurality of coordinate points, and the coordinate points are stored by using the black body curve.
[0072] In actual application, the black body curve can be created in advance, for example, the black body curve is created when the device is initialized, and by using the black body curve, the color coordinates of 2000K to 20000K (Kelvin) can be stored. Here, considering the existence of color temperature, a black body curve can be found in the chromaticity diagram, and the curve records the color value from high to low color temperature, so the color temperature can be derived into color coordinates by using an approximate formula. For example, the color coordinates of color temperature from 2000K to 20000K are stored according to the following formula, and one point is recorded every 100K:
[0073] ;
[0074] Wherein, x and y respectively represent the abscissa and ordinate of the coordinate point under the chromaticity diagram. The formula is used to represent the relationship between the coordinates of the point on the chromaticity diagram and the color temperature, and the function is to obtain the points on the black body curve with 4500K-12000K, 100K as the step. For example, when the RGB point (converted to the chromaticity diagram) needs to be on the black body curve, the distance between the point and the black body curve is ΔE≤0.01, then it is considered that the point is on the black body curve, and the warm white light ratio can be calculated at this time, otherwise there is no warm white light.
[0075] In an embodiment, the step S103 comprises:
[0076] The RGB color value is normalized, and the normalized result is gamma calibrated and linearized.
[0077] In the embodiment, when the RGB color value is calibrated and linearized, the RGB color value is first normalized by dividing all the values by 255 to obtain a value of 0-1, and then the value is gamma calibrated and linearized. In actual application, the RGB color value after calibration can be obtained according to the following formula, wherein the gamma coefficient can be set according to the specific situation, and is generally set between 2.2-2.6:
[0078] ;
[0079] Wherein, represents the RGB color value after linearization correction.
[0080] In an embodiment, the step S104 comprises:
[0081] The RGB color value of XYZ color system coordinates is converted to Yxy coordinate system, and the coordinates of the RGB color value on the chromaticity diagram of the Yxy coordinate system are obtained, and then the coordinates on the chromaticity diagram are taken as the second color coordinates.
[0082] In this embodiment, by converting the XYZ color system 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 actual application, the value of the XYZ color system can be obtained according to the following formula:
[0083] ;
[0084] Wherein, R in RGB represents rgb_scaledR, G in RGB represents rgb_scaledG, and B in RGB represents rgb_scaledB.
[0085] Then, the value of the XYZ color system is converted to the Yxy coordinate system according to the following formula, so as to obtain the color coordinates (x, y) of the RGB color value on the chromaticity diagram:
[0086] .
[0087] In an embodiment, the step S105 further comprises:
[0088] Obtaining the pulse width modulation maximum resolution of the measured lamp bead;
[0089] Multiplying the duty cycle by the pulse width modulation maximum resolution to obtain the pulse width modulation value;
[0090] Controlling the measured lamp bead to emit light based on the pulse width modulation value.
[0091] In this embodiment, after obtaining the duty cycle, the duty cycle is multiplied by the PWM maximum resolution to obtain the PWM value finally output to the lamp bead, so that the precise control of the light brightness and color temperature of the lamp bead can be realized. Through the comprehensive calculation of the color coordinates, the maximum luminous flux and the duty cycle, the embodiment ensures the consistency and stability of the light emitting effect of the lamp bead, and further improves the overall performance of the unmanned aerial vehicle light show. In addition, the embodiment also has high flexibility and adaptability, and can be flexibly adjusted according to different scenes and requirements, meeting the diversified application requirements.
[0092] 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:
[0093] (1) Simpler, as the PWM duty cycle can be calculated by the algorithm by simply giving any color;
[0094] (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.
[0095] (3) More convenient. For non-technical personnel, luminous calibration can be achieved simply by converting the color gamut color coordinates.
[0096] 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:
[0097] The parameter acquisition unit 401 is used to obtain the lamp bead under test and its first color coordinate and maximum luminous flux;
[0098] 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;
[0099] 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;
[0100] 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;
[0101] 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.
[0102] In one embodiment, if Figure 5 As shown, the modulation calibration unit 405 includes:
[0103] 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;
[0104] The first determining unit 502 is configured to calculate the duty cycle of the measured lamp bead by using the second color coordinate if it is determined that the RGB color value is within the displayable SRGB color gamut.
[0105] The second determining unit 503 is configured to obtain a white color coordinate in the SRGB color gamut, map the second color coordinate according to the white color coordinate to obtain a mapped color coordinate, and then calculate the duty cycle of the measured lamp bead by using the mapped color coordinate if it is determined that the RGB color value is not within the displayable SRGB color gamut.
[0106] In an embodiment, the first determining unit 502 comprises:
[0107] A point distance calculating unit is configured to calculate a point distance between the mapped color coordinate and each coordinate point in a pre-created blackbody curve to obtain a point distance calculation result.
[0108] A weight calculating unit is 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 a weight of a warm white lamp according to the coordinate point.
[0109] A duty cycle calculating unit is configured to calculate the duty cycle of the measured lamp bead by using the weight of the warm white lamp.
[0110] In an embodiment, the creation process of the blackbody curve comprises:
[0111] 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 to store the coordinate points by using the blackbody curve.
[0112] In an embodiment, the color value correcting unit 403 comprises:
[0113] A color value normalizing unit is configured to normalize the RGB color value and perform gamma correction and linearization on the normalized result.
[0114] In an embodiment, the coordinate converting unit 404 comprises:
[0115] A coordinate obtaining unit is configured to convert the RGB color value of the XYZ colorimetric system coordinate to the Yxy coordinate system, obtain a coordinate of the RGB color value on a chromaticity diagram of the Yxy coordinate system, and then take the coordinate on the chromaticity diagram as the second color coordinate.
[0116] In an embodiment, the modulation calibration unit 405 further comprises:
[0117] A resolution obtaining unit is configured to obtain a pulse width modulation maximum resolution of the measured lamp bead.
[0118] The modulation value acquisition unit multiplies the duty cycle by the pulse width modulation maximum resolution to obtain the pulse width modulation value.
[0119] The light emission calibration unit controls the measured lamp bead to emit light based on the pulse width modulation value.
[0120] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part are described in the description of the embodiments of the method part, and are not described here.
[0121] The embodiments of the present application also provide a computer readable storage medium, which has a computer program stored thereon, and the computer program can implement the steps provided by the above embodiments when executed. The storage medium can include a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage medium capable of storing program codes.
[0122] The embodiments of the present application also provide a computer device, which can include a memory and a processor, the memory has a computer program stored therein, and the processor can implement the steps provided by the above embodiments when calling the computer program in the memory. Of course, the computer device can also include various network interfaces, power supplies and other components.
[0123] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the system disclosed by the embodiments, since it corresponds to the method disclosed by the embodiments, the description is relatively simple, and the related parts can be referred to the method part. It should be pointed out that for ordinary skilled in the art, without departing from the principles of the present application, the present application can be improved and modified, and these improvements and modifications also fall within the protection scope of the claims of the present application.
[0124] It is further noted that the terminology "first", "second" and the like used in the specification are merely used for differentiating one entity or action from another, and do not necessarily imply any actual physical or logical relationship or order between such entities or actions. Moreover, the use of the term "including", "containing" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements is not required to comprise only those elements but can include other elements not expressly listed or inherent to such process, method, article or apparatus. An element preceded by "comprises a..." does not, without further constraints, preclude the existence of additional identical elements in the process, method, article or apparatus that comprises the stated element.
Claims
1. A lamp bead luminescence calibration method, characterized in that: include: Get the lamp bead under test 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; Acquire 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 a pulse width modulation value of the lamp bead under test based on the duty cycle, and then perform luminescence calibration on the lamp bead under test using the pulse width modulation value; 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, then obtaining the white coordinates in the SRGB color gamut, and mapping the second color coordinates according to the white coordinates to obtain mapped color coordinates, and then using the mapped color coordinates to calculate the duty cycle of the tested lamp bead; 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.
2. The lamp bead luminescence calibration method according to claim 1, 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.
3. 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.
4. 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.
5. 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.
6. A lamp bead luminescence calibration device, characterized in that: include: A parameter acquisition unit, used to obtain the lamp bead under test and its first color coordinate 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, configured to obtain a duty cycle of the lamp bead under test by combining the first color coordinate, the second color coordinate, and the maximum luminous flux, and to set a pulse width modulation value of the lamp bead under test based on the duty cycle, and then to perform luminescence calibration on the lamp bead under test using the pulse width modulation value; The modulation calibration unit comprises: a color gamut determination unit, configured to determine, based on the second color coordinates, whether the RGB color value is within a displayable SRGB color gamut; A first determination unit is configured to calculate a 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; A second determination unit is configured to obtain a white coordinate 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 coordinate according to the white coordinate to obtain a mapped color coordinate, and then calculate the duty cycle of the tested lamp bead using the mapped color coordinate; The first determination unit 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.
7. 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 5 is implemented.
8. 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 5 is implemented.
Citation Information
Patent Citations
White balance control method for RGBW lamp and application thereof
CN113347757A
Atmosphere lamp user color calibration matching method
CN119789262A