Atmosphere lamp equipment, white balance calibration method thereof, corresponding device and medium
By using the adjustment factor and the color compensation value of the primary color channel in the ambient light device to dynamically adjust the color value of the lamp bead, the problem of inefficiency of the traditional white balance calibration method under different color temperatures is solved, and efficient and accurate white balance calibration is achieved.
Patent Information
- Application Number
- CN202411176739.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-08-26
AI Technical Summary
The traditional white balance calibration method is inefficient when facing white light-emitting components with different color temperatures, making it difficult to achieve accurate white balance. It also requires the development of specific calibration formulas for each color temperature, resulting in cumbersome and inefficient results.
By determining the ratio between the brightness value of the white channel of each lamp bead and the maximum brightness value as the adjustment factor, combined with the preset color compensation value of the primary color channel, the color value of the primary color channel is dynamically adjusted to achieve white balance calibration, simplify the calibration process and Improve efficiency.
It realizes automatic adaptation to white light-emitting elements with different color temperatures, simplifies the calibration process, improves the efficiency and accuracy of calibration, and ensures the stability and consistency of lighting effects.
Smart Images

Figure CN118695428A
Abstract
Description
Technical Field
[0001] The present application relates to the field of lighting processing technology, and in particular to an atmosphere lighting device and a white balance calibration method thereof, and corresponding devices and media. Background Art
[0002] Ambient light, also known as LED ambient light, is a lighting device that creates atmosphere for different application scenarios such as theme parks, hotels, homes, exhibitions, commercial and artistic lighting. It can provide the required lighting atmosphere for different application scenarios. Ambient light includes at least one lamp bead composed of red, green and blue (RGB) light-emitting elements. When the light is required to be white, the three basic colors of red, green and blue are usually mixed to produce white light. Due to the limitations of the lamp bead production process, there will be obvious color difference when RGB mixed white light is produced during the mass production process. The consistency of the light is difficult to control, and the brightness of RGB mixed white light is low, usually only about half of that of a single white lamp bead. In order to meet the brightness and chromaticity requirements of white light, a white (W) light-emitting element is usually added to each lamp bead to form an RGBW four-color mixing system to control the light of the lamp bead. Among them, the brightness of the corresponding lamp bead is controlled by controlling the data of the four color channels R, G, B, W (red, green, blue, white). The color channel is the electrical signal channel that controls the light color of the lamp bead.
[0003] Although white light-emitting elements have been added, there is a problem of inconsistent color temperature of white light emitted by white light-emitting elements, which brings new challenges to white balance calibration. Traditional white balance calibration methods usually rely on the color temperature of white light emitted by white light-emitting elements, and combine with the white light filler formula to adjust the data of the three color channels of red, green and blue. However, due to the inconsistency of the color temperature of white light emitted by white light-emitting elements, the traditional white balance calibration method may not be able to effectively correct color deviation. In order to adapt to white light-emitting elements with different color temperatures, it is necessary to develop specific calibration formulas for white light-emitting elements of each color temperature, which not only requires a lot of time and effort for calculation and debugging to adapt to white light-emitting elements with different color temperatures, but also has low efficiency and is difficult to meet the lighting market's demand for flexibility and rapid response. Summary of the invention
[0004] The primary purpose of the present application is to solve at least one of the above problems and to provide an atmosphere light device and a white balance calibration method thereof and corresponding devices and media.
[0005] In order to meet the various objectives of this application, this application adopts the following technical solutions: An ambient light device and a white balance calibration method thereof and corresponding devices and media provided to meet one of the purposes of the present application include the following steps: According to the brightness value of the white channel corresponding to each lamp bead in the frame control data of the atmosphere light device, the ratio between the brightness value and the maximum brightness value of the white channel is determined as an adjustment factor; Determine the actual compensation value corresponding to the primary color channel according to the preset color compensation value of the primary color channel of each lamp bead in the atmosphere light device and the corresponding adjustment factor; Compensating the color value of the corresponding primary color channel of the corresponding lamp bead in the atmosphere lamp device according to the actual compensation value to update the frame control data; The updated frame control data is sent to each lamp bead to play the corresponding lighting effect.
[0006] A white balance calibration device is proposed to meet the white balance calibration method of one of the purposes of the present application, and comprises: An adjustment factor determination module is configured to determine, according to the brightness value of the white channel corresponding to each lamp bead in the frame control data of the atmosphere light device, a ratio between the brightness value and the maximum brightness value of the white channel as an adjustment factor; An actual compensation value determination module is configured to determine the actual compensation value corresponding to the primary color channel according to the preset color compensation value of the primary color channel of each lamp bead in the atmosphere lamp device and the corresponding adjustment factor; A color value compensation module, configured to compensate the color value of the corresponding primary color channel of the corresponding lamp bead in the atmosphere light device according to the actual compensation value, so as to update the frame control data; The frame control data sending module is configured to send the updated frame control data to each lamp bead to play the corresponding lighting effect.
[0007] On the other hand, an atmosphere light device provided to meet one of the purposes of the present application includes a control unit and at least one lamp bead, wherein the control unit is used to execute the steps of the white balance calibration method to control the atmosphere light device to calibrate the white balance.
[0008] On the other hand, a computer-readable storage medium is provided to meet another purpose of the present application, which stores a computer program implemented according to the white balance calibration method in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.
[0009] The technical solution of this application has many advantages, including but not limited to the following aspects: The present application determines the ratio between the brightness value of the white channel of each lamp bead and the maximum brightness value as an adjustment factor. The adjustment factor can make the present application adapt to white light-emitting elements of different color temperatures, and can solve the limitations of the traditional white balance calibration method when the color temperature is inconsistent; then, the calculated adjustment factor and the preset color compensation value of the primary color channel of each lamp bead can be used to determine the actual compensation value corresponding to each primary color channel. The actual compensation value is used to compensate the color value of the corresponding primary color channel of the corresponding lamp bead in the atmosphere light device, and the color value of each primary color channel required for the white balance calibration can be obtained, and it is updated to the frame control data, providing accurate data support for subsequent lighting effect control; finally, the updated frame control data is sent to each lamp bead to achieve precise lighting control, ensuring that each lamp bead can accurately display its due color and brightness, creating a harmonious lighting environment for users.
[0010] The white balance calibration method of the present application effectively solves the cumbersome problem of developing specific calibration formulas for white light-emitting elements of each color temperature in the traditional method through a unified calibration process. The present application can adapt to white light-emitting elements of different color temperatures, dynamically adjust the color values of the primary color channels in the atmosphere lighting equipment, and automatically adapt to the different color temperatures of the added white light-emitting elements without the need to develop specific calibration formulas for each different color temperature. The present application not only simplifies the calibration process, but also significantly improves the efficiency and accuracy of calibration, meets the high standards for white balance of lighting equipment, and ensures the stability and consistency of lighting effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which: Figure 1 This is a schematic diagram of the electrical structure of an exemplary ambient light device of the present application; Figure 2 A schematic diagram of a typical embodiment of the white balance calibration method of the present application; Figure 3 A schematic diagram of the process of converting light emission parameters in an embodiment of the present application; Figure 4 A schematic diagram of a process for determining a color compensation value in an embodiment of the present application; Figure 5 A schematic diagram of a process for determining an actual color temperature value in an embodiment of the present application; Figure 6 A schematic diagram of a process for calculating the average color temperature in an embodiment of the present application; Figure 7 A schematic diagram of a process for determining a target color temperature value corresponding to a primary color channel color value in an embodiment of the present application; Figure 8A schematic diagram of a process for realizing collaborative playback of lighting effects in an embodiment of the present application; Fig. 9 This is a principle block diagram of the white balance calibration device of the present application; Fig.10 A schematic diagram of the structure of a computer device used in this application. DETAILED DESCRIPTION
[0012] See also Figure 1 As can be seen from the structural schematic diagram of an atmosphere lamp device provided by an embodiment of the present application, the atmosphere lamp device includes a control unit 1 and a lamp body 2, and the lamp body 2 is electrically connected to the control unit 1 so as to be controlled by a computer program running in the control unit 1 and work together to achieve white balance calibration. The lamp body 2 includes at least one lamp bead 21, wherein the lamp bead 21 is usually provided with four light-emitting elements of red (R), green (G), blue (B), and white (W), and is controlled by a lamp controller (lamp bead IC), which controls the ratio of the four colors of red (R), green (G), blue (B), and white (W) by receiving the light-emitting parameters sent by the control unit 1 and converting the light-emitting parameters into pulse signals, so as to drive each lamp bead 21 to emit light and display colors.
[0013] The lamp beads in the atmosphere light device can be connected in series to form a lamp chain. The same atmosphere light device can contain a single or multiple lamp chains, and the lamp chains can also be connected in series to form the same lamp chain, so that users can flexibly customize the number of lamp beads in the atmosphere light device. The atmosphere light device can record the serial position information of each lamp bead in the lamp chain to which it belongs and the spatial position information of all lamp beads in the plane layout space through the lamp bead layout corresponding to all the lamp beads. The light chain can be in the form of a light strip with a certain toughness or a relatively soft light string.
[0014] The control unit 1 generally includes a control chip, a communication component, and a bus connector. In some embodiments, the control unit 1 may also be configured with a power adapter, a control panel, a display screen, etc. as required.
[0015] The power adapter is mainly used to convert the mains electricity into direct current so as to power the entire atmosphere lamp device. The control chip can be implemented by various embedded chips, such as Bluetooth SoC (System on Chip), WiFi SoC, MCU (Micro Controller Unit), DSP (Digital Signal Processing) and other types of chips. The control chip usually includes a central processing unit and a memory, and the memory and the central processing unit are used to store and execute program instructions respectively to realize the corresponding functions. The above various types of control chips can have their own communication components, or they can be configured with additional communication components as needed. The communication component can be used to communicate with external devices, for example, it can communicate with terminal devices such as personal computers or various smart phones, so that after the user issues various configuration instructions through his terminal device, the control chip of the control unit 1 can receive the configuration instructions through the communication component and complete the basic configuration to control the lamp body 2 to work. The bus connector is mainly used to connect the power supply to the lamp body 2 connected to the bus and provide instructions for controlling the lighting effects of the lamp body 2, so that the corresponding pins of the power bus and the signal bus are provided. Therefore, when the lamp body 2 needs to be connected to the control unit 1, it can be connected to the bus connector through the corresponding connector of the lamp body 2. The control panel usually provides one or more buttons for implementing on-off control of the control unit 1, selecting various preset white balance calibration methods, etc. The display screen can be used to display various control information so as to cooperate with the buttons in the control panel to support the implementation of human-computer interaction functions. In some embodiments, the control panel and the display screen can be integrated into the same touch display screen.
[0016] The control unit 1 in the atmosphere light device generates frame control data of the atmosphere light device and the brightness value of the white channel corresponding to each lamp bead, compares the brightness value with the maximum brightness value of the white channel, and uses the obtained ratio as an adjustment factor; at the same time, the adjustment factor is multiplied by the preset color compensation value of the primary color channel of each lamp bead in the atmosphere light device to calculate the actual compensation value corresponding to the primary color channel; the actual compensation value is added to the color value of the corresponding primary color channel of the corresponding lamp bead in the atmosphere light device, thereby updating the frame control data; finally, the control unit 1 sends the updated frame control data to each lamp bead, which is received by the lamp controller of each lamp bead, thereby controlling the lighting effect of the lamp body 2.
[0017] Those skilled in the art should be aware that, although the various methods of the present application are described based on the same concept and thus present commonality to each other, unless otherwise specified, these methods can be independently executed. Similarly, for each embodiment disclosed in the present application, they are all proposed based on the same inventive concept, therefore, concepts with the same expression, and concepts that are appropriately changed for convenience despite different expressions, should be understood as equivalent.
[0018] Unless the mutually exclusive relationship between the embodiments to be disclosed in this application is explicitly stated, the relevant technical features involved in each embodiment can be cross-combined to flexibly construct a new embodiment, as long as such combination does not deviate from the creative spirit of this application and can meet the needs of the prior art or solve certain deficiencies in the prior art. Those skilled in the art should be aware of this flexibility.
[0019] According to the product architecture and working principle of the above-mentioned atmosphere light device, the white balance calibration method of the atmosphere light device of the present application can be implemented as a computer program product and run in the control unit of the atmosphere light device. Figure 2 In some embodiments, the white balance calibration method of the present application includes: Step S5100: according to the brightness value of the white channel corresponding to each lamp bead in the frame control data of the atmosphere light device, determine the ratio between the brightness value and the maximum brightness value of the white channel as an adjustment factor; The brightness value of the white channel of each lamp bead is extracted from the frame control data of the ambient light device, and the ratio of the brightness value to the maximum brightness value of the white channel is calculated. This ratio is used as an adjustment factor and is the key factor for subsequent white balance calibration.
[0020] The frame control data of the atmosphere light device is data information used to control the synchronization of each lamp bead in the atmosphere light device to present the same frame image. Specifically, the frame control data is a series of data used to control the lighting effects of the lamp beads. The frame control data contains the corresponding luminous parameters of each lamp bead. The luminous parameters are mainly used to indicate the color and brightness of the lamp bead, etc., depending on the specific principle of the lamp bead luminous control. For example, for the three channels of RGB, an 8-bit byte value can be used to comprehensively represent the color and brightness. The frame control data is usually generated by the control unit in the atmosphere light device and sent to each light controller through a preset communication protocol (such as DMX, Art-Net, SPI, I2C, etc.). It is not difficult to understand that for RGBW lamp beads with independent white light-emitting elements, the frame control data contains the brightness value of the white channel of each lamp bead in the atmosphere light device. The maximum brightness value of the white channel refers to the highest brightness level that the white light-emitting element in the lamp bead can reach, which is usually determined during the design and production of the lamp bead based on factors such as the material, structure and manufacturing process of the lamp bead.
[0021] The maximum brightness value of the lamp beads may change due to various factors. For example, as time goes by, the brightness of the lamp beads will decrease due to material aging and performance degradation. The quality and efficiency of the power supply and driving circuit will also affect the brightness performance of the lamp beads, etc. Based on this situation, the brightness value of each white channel can be measured at the maximum rated power as the maximum brightness value. Specifically, a measurement environment with uniform light and no interference from other light sources is selected, such as a dark room or an environment with good light control. In this measurement environment, a brightness meter is used to measure the brightness value of the white channel. The power is set to the maximum rated power of each white channel by the control unit, and each white light-emitting element is lit one by one. The brightness meter is placed at an appropriate distance from the atmosphere light device. The distance between the brightness meter and the atmosphere light device is set by the person skilled in the art as needed to ensure that the built-in sensor of the brightness meter can accurately receive the light emitted by the atmosphere light device. The brightness value of the white channel is measured using the brightness meter, and the reading of each measurement is recorded.
[0022] In order to improve the accuracy of brightness measurement, the method of averaging multiple measurements can be used. After the white light-emitting element is stably emitting light, a brightness meter is used for the initial measurement and the reading is recorded. After the white light-emitting element is turned off for a period of time, the white light-emitting element is turned on again, and the measurement process is repeated. The brightness meter reading of each measurement is recorded. Finally, the average value of all measured brightness readings is calculated to obtain a comprehensive brightness value as the maximum brightness value of the white channel. The maximum brightness value of each white channel can be updated to the control unit through a remote device or the display screen of the ambient light device.
[0023] After pre-setting the maximum brightness value of the white channel of each lamp bead in each atmosphere light device, it is stored in the atmosphere light device. When it is necessary to optimize and update the frame control data and determine the corresponding adjustment factor, the maximum brightness value of the white channel of each lamp bead can be directly called, and the adjustment factor can be calculated together with the brightness value of the white channel in the frame control data. In this way, the atmosphere light device can determine the adjustment factor corresponding to the white channel of each phase of the lamp bead based on the frame control data for subsequent optimization and update.
[0024] Step S5200, determining the actual compensation value corresponding to the primary color channel according to the preset color compensation value of the primary color channel of each lamp bead in the atmosphere lamp device and the corresponding adjustment factor; The color compensation value of the primary color channel of each lamp bead is preset in advance. The color compensation value can be set through experience or experimental data, and reflects the color compensation value obtained through experience or experiment when the white channel is at the maximum brightness value. The color compensation value is used to compensate for the color value of the corresponding primary color channel of the lamp bead in the atmosphere light. In one embodiment, the serial position information of each lamp bead is used as a unique identifier (ID) of the color compensation value corresponding to the white channel, that is, the RGB color compensation value of each lamp bead is associated with the ID to form a preset color compensation value table, which is stored in the atmosphere light device. When color compensation of the lamp bead is required, the corresponding color compensation value is directly called from the ID corresponding to the preset color compensation table according to the serial position information of the lamp bead.
[0025] By obtaining the preset color compensation value of the primary color channel of each lamp bead in the atmosphere light device and multiplying the color compensation value with the corresponding adjustment factor, the actual compensation value corresponding to the primary color channel of each lamp bead is calculated. The actual compensation value will be used in the subsequent implementation to adjust the color value of the primary color channel to achieve accurate white balance calibration.
[0026] Step S5300: Compensate the color value of the corresponding primary color channel of the corresponding lamp bead in the atmosphere lamp device according to the actual compensation value to update the frame control data; The actual compensation value calculated in the previous step is used to adjust the color value of the primary color channel of each lamp bead in the atmosphere light device, and determine the color value of the primary color channel of each lamp bead after white balance calibration. Specifically, by adding the actual compensation value to the color value of the corresponding primary color channel of the corresponding lamp bead in the atmosphere light device, the color value of each primary color channel after white balance calibration is obtained, and the color value is updated to the frame control data for subsequent embodiments to achieve the lighting effect of the calibrated atmosphere light device according to the frame control data. Among them, the calculation of the color value of each primary color channel after calibration is completed in the control unit, and then the calibrated frame control data is sent to the light controller of each lamp bead through the communication protocol to achieve the white balance calibration of the overall atmosphere light.
[0027] In one embodiment, for ease of understanding, taking a lamp bead as an example, assuming that the color compensation values of each primary color channel of the lamp bead are red (R): 56, green (G): 60, blue (B): 56, the brightness value of the white channel of the lamp bead is read from the frame control data as 100cd / m², and the maximum brightness value of the white channel is 200cd / m². By calculation, the adjustment factor can be obtained as 100 / 200 = 0.5. Currently, the color values of each primary color channel of the lamp bead are red (R): 115, green (G): 100, blue (B): 115. The color values of each primary color channel after calibration can be calculated by the following formula:
[0028]
[0029]
[0030] in, , , is the color value of the primary color channel after white balance calibration, R, G, B are the color values of each primary color channel before white balance calibration, W represents the brightness value of the white channel in the lamp bead, and Wmax represents the maximum brightness value of the white channel in the lamp bead.
[0031] By calculation, we can get = 115 + 56 * 0.5 = 143. Similarly, = 130, = 143, that is, the color values of each primary color channel of the lamp bead after white balance calibration are red (R): 143, green (G): 130, blue (B): 143. The color values of each primary color channel after white balance calibration calculated are updated to the frame control data, so that the subsequent embodiments can realize the lighting effect of the calibrated atmosphere lamp device according to the frame control data.
[0032] Step S5400: Send the updated frame control data to each lamp bead to play the corresponding lighting effect.
[0033] The control unit packages the updated frame control data into a format suitable for transmission, and then sends it to the lamp controller of each lamp bead through a preset communication protocol (such as DMX, Art-Net, SPI or I2C, etc.). The lamp controller that receives the updated frame control data will parse the instructions therein and adjust the lighting effects of the lamp beads according to these instructions, so as to play the lighting effects calibrated by white balance. For example, if a lamp bead needs to display a specific blue color, the control unit will adjust the current of the blue lamp bead of the lamp bead according to the brightness value of the blue channel in the received frame control data, so that it emits blue light of corresponding brightness. By controlling each lamp bead to display the corresponding lighting effect of the frame control data, it is ensured that each lamp bead in the entire atmosphere light device can accurately display its due color and brightness. Through this precise data transmission and control, the entire atmosphere light device can present the ideal lighting effect after white balance calibration, creating a harmonious lighting environment for users.
[0034] It can be known from the typical embodiments of the present application that the technical solution of the present application has many advantages, including but not limited to the following aspects: The present application determines the ratio between the brightness value of the white channel of each lamp bead and the maximum brightness value as an adjustment factor. The adjustment factor can make the present application adapt to white light-emitting elements of different color temperatures, and can solve the limitations of the traditional white balance calibration method when the color temperature is inconsistent; then, the calculated adjustment factor and the preset color compensation value of the primary color channel of each lamp bead can be used to determine the actual compensation value corresponding to each primary color channel. The actual compensation value is used to compensate the color value of the corresponding primary color channel of the corresponding lamp bead in the atmosphere light device, and the color value of each primary color channel required for the white balance calibration can be obtained, and it is updated to the frame control data, providing accurate data support for subsequent lighting effect control; finally, the updated frame control data is sent to each lamp bead to achieve precise lighting control, ensuring that each lamp bead can accurately display its due color and brightness, creating a harmonious lighting environment for users.
[0035] The white balance calibration method of the present application effectively solves the cumbersome problem of developing specific calibration formulas for white light-emitting elements of each color temperature in the traditional method through a unified calibration process. The present application can adapt to white light-emitting elements of different color temperatures, dynamically adjust the color values of the primary color channels in the atmosphere lighting equipment, and automatically adapt to the different color temperatures of the added white light-emitting elements without the need to develop specific calibration formulas for each different color temperature. The present application not only simplifies the calibration process, but also significantly improves the efficiency and accuracy of calibration, meets the high standards for white balance of lighting equipment, and ensures the stability and consistency of lighting effects.
[0036] Based on any embodiment of the method of this application, please refer to Figure 3 , according to the brightness value of the white channel corresponding to each lamp bead in the frame control data of the atmosphere light device, before determining the ratio between the brightness value and the maximum brightness value of the white channel as the adjustment factor, including: Step S6100, obtaining a lamp bead layout corresponding to a lamp chain of an atmosphere lamp device, wherein the lamp bead layout includes spatial position information of each lamp bead in the lamp chain in a plane layout space and serial position information in the lamp chain; The lamp chain of the atmosphere lamp device is an electronic component for connecting multiple lamp beads. In one embodiment, the spatial position information of all lamp beads on the lamp chain in the plane layout space can be collected by automatic scanning or manual measurement. For example, the lamp chain is composed of 10 lamp beads, and the spatial position information and serial position information of each lamp bead in the plane layout space are as follows: Lamp bead 1: (X1, Y1) = (0, 0), serial position 1, (X2, Y2) = (1, 0), serial position 2, (X3, Y3) = (2, 0), serial position 3, ..., (X10, Y10) = (9, 0), serial position 10; In another embodiment, a two-dimensional coordinate system is established with the first lamp bead in the lamp chain along the serial direction as the origin. The X-axis and Y-axis of the two-dimensional coordinate system represent the horizontal and vertical positions of the lamp bead in the plane layout space, respectively. A unique coordinate is assigned to each lamp bead according to the serial order of the lamp bead in the lamp chain. The lamp chain of the ambient light device can be designed as a rectangular array containing multiple rows and columns of lamp beads. For example, assume that the lamp chain consists of 4 rows and 3 columns with a total of 12 lamp beads. The position information and serial position information of each lamp bead in the plane layout space are as follows: lamp bead 1 is located in the first row and first column, its coordinates are (0,0), and the serial position is 1. Lamp bead 2 is located in the first row and second column, its coordinates are (1,0), and the serial position is 2. Lamp bead 3 is located in the first row and third column, its coordinates are (2,0), and the serial position is 3. Lamp bead 4 is located in the second row and third column, its coordinates are (2,1), and the serial position is 4. Lamp bead 5 is located in the second row and second column, its coordinates are (1,1), and the serial position is 5. And so on, until the lamp bead 12 is located in the fourth row and the first column, its coordinates are (0,3), and the serial position is 12. Through automated scanning or manual measurement, the lamp bead layout information can be accurately collected and used for subsequent brightness adjustment and lighting effect design.
[0037] Step S6200: convert the lighting effect image frame into frame control data according to the correspondence between the lamp bead layout and the lighting effect image frame to be played in terms of spatial position information. The frame control data contains the luminous parameters of each lamp bead in the order of the serial position of the lamp bead in the light chain. The luminous parameters include the color value of each primary color channel in each lamp bead and the brightness value of the white channel in each lamp bead.
[0038] Analyze the pixel data of the lighting effect image frame to be played, and determine the color value of each pixel's primary color channel and the brightness value of the white channel. According to the spatial position information of each lamp bead in the light chain in the plane layout space obtained in the previous step and the serial position information in the light chain, map each pixel in the lighting effect image frame to the corresponding lamp bead, based on the relationship between the position of the pixel in the lighting effect image frame and the spatial position of the lamp bead in the light chain. After the mapping is successful, a set of luminous parameters is generated for each lamp bead, and these luminous parameters are organized into frame control data according to the serial position order of the lamp bead in the light chain. The frame control data will be sent to the light chain as a control signal, so that each lamp bead emits light according to the requirements of the lighting effect image frame to be played, and the dynamic display of the lighting effect image frame can be realized. For example, if a pixel point in the lighting effect image frame is in the upper left corner of the image, and according to the lamp bead layout information, the position corresponds to the lamp bead in the fourth row and first column of the light chain, then the color and brightness information of the pixel point is converted into the luminous parameters of the lamp bead, and it is included in the frame control data. In this way, the light-emitting parameters of each lamp bead are precisely set, ensuring that the lighting effect image frame can be presented with highly consistent and accurate visual effects during actual playback.
[0039] In this embodiment, by obtaining the layout of the lamp beads corresponding to the lamp chain of the atmosphere lamp device, including the spatial position information of the lamp beads in the plane layout space and the serial position information in the lamp chain, the specific position and order of each lamp bead can be accurately identified. The accuracy and completeness of the lamp bead layout information can be ensured by automated scanning or manual measurement. The accurate acquisition of the lamp bead layout enables the brightness, color and dynamic effect of each lamp bead to be adjusted according to its specific position and order, thereby creating a richer and more dynamic visual experience.
[0040] According to the correspondence between the lamp bead layout and the lighting effect image frame to be played in terms of spatial position information, the lighting effect image frame is converted into frame control data, which contains the luminous parameters of each lamp bead according to the serial position order of the lamp bead in the light chain. This step ensures that the lighting effect image frame can be accurately mapped to the lighting effect of the actual atmosphere light device. By analyzing the pixel data of the image frame and mapping it to the corresponding lamp bead, accurate luminous parameters can be generated, including the color value of each primary color channel in each lamp bead and the brightness value of the white channel. In this way, the luminous parameters of each lamp bead are accurately set, ensuring that the lighting effect image frame can be presented to the audience with highly consistent and accurate visual effects during actual playback, ultimately achieving the expected lighting display effect.
[0041] Based on any embodiment of the method of this application, please refer to Figure 4 Before obtaining the lamp bead layout corresponding to the lamp chain of the ambient light device, it includes: Step S7100, by controlling the white channel of each lamp bead in the atmosphere lamp device to emit light separately, obtaining the actual color temperature value corresponding to each white channel working at its maximum rated power; A white (W) light-emitting element is added to each lamp bead to form an RGBW four-color mixing system to control the light of the lamp bead, wherein the white channels in all the lamp beads of the atmosphere light device are activated separately by the control unit to make them work at the maximum rated power. In this embodiment, the white channels of each lamp bead are lit one by one at its maximum rated power, and the actual color temperature value corresponding to each white channel in the atmosphere light device is measured at this time. In one embodiment, a measurement environment is selected with uniform light and no interference from other light sources, such as a dark room or an environment with good light control. In this measurement environment, the control unit lights up all the white light-emitting elements in the atmosphere light device at the maximum rated power of each white channel, and then places the color thermometer at a certain distance from the lamp bead, and measures the light-emitting area of the atmosphere light device. The distance is set by the person skilled in the art as needed. If the color thermometer is too close or too far from the atmosphere light device, it may cause a certain error. Read and record the value displayed by the color thermometer each time you measure, and use the value displayed by the color thermometer as the actual color temperature value corresponding to each white channel. It should be noted that after turning on the ambient light device, you need to wait for a while to allow the white light-emitting element to reach a stable light-emitting state before using the color thermometer for measurement.
[0042] Furthermore, in order to improve the accuracy of the actual color temperature measurement, the method of averaging multiple measurements is used to improve the accuracy of the actual color temperature. Specifically, after the white light-emitting element is stably emitting light, a color thermometer is used for the initial measurement and the reading is recorded. Then, the white light-emitting element is turned off for a period of time and then turned on again. The measurement process is repeated, and the color thermometer readings for each measurement are recorded. Finally, the color temperature readings obtained by all measurements are averaged to obtain a comprehensive color temperature value as the actual color temperature value of the white channel when it is emitting light at the maximum rated power. You can also choose a color thermometer that supports continuous readings. After the white light-emitting element is stably emitting light, record the continuous readings of the color thermometer within a certain period of time, and then calculate the average of these readings as the actual color temperature value of the white channel when it is emitting light at the maximum rated power. The corresponding actual color temperature values of the remaining white channels are measured in the same way.
[0043] In another embodiment, in the measurement environment of the previous embodiment, a brightness meter is used to measure the brightness value of each white channel. The white channel of each lamp bead is illuminated at the maximum rated power, and the brightness meter is placed at an appropriate distance from the atmosphere light device, wherein the distance between the brightness meter and the atmosphere light device is set by a person skilled in the art as needed to ensure that the built-in sensor of the brightness meter can accurately receive the light emitted by the atmosphere light device. The brightness value of the white channel is measured using the brightness meter, and the reading is recorded. In order to improve the accuracy of the brightness value measurement, a method of averaging multiple measurements is adopted. After the white light-emitting element emits light stably, the brightness meter is used to perform the initial measurement and record the reading. After the atmosphere light device is turned off for a period of time, the white light-emitting element is turned on again, and the measurement process is repeated. The brightness meter reading of each measurement is recorded. Finally, the average value of all the measured brightness readings is calculated to obtain a comprehensive brightness value, which is used as the reference brightness value of the white channel measured at the maximum rated power.
[0044] In another embodiment, a colorimeter is used to determine the actual color temperature value and the brightness value of the white channel corresponding to each white channel in the atmosphere light device when emitting light at the maximum rated power. First, in an environment with uniform light and no interference, such as a dark room, place the colorimeter at an appropriate distance and aim at the light-emitting area. Turn on the atmosphere light device to the maximum rated power, control all white light-emitting elements to emit light one by one, and after the lamp beads emit light stably, the colorimeter measures and records the chromaticity coordinates (x, y) of each light source. At this time, the colorimeter's built-in algorithm can be used to calculate the color temperature value (in Kelvin K) measured by the colorimeter based on the chromaticity coordinates according to the Planckian locus or isotherm method, and display it on the colorimeter's display screen. At the same time, the colorimeter can be used to directly measure the brightness value of the light emitted by the atmosphere light device, that is, the brightness value of the white channel in the atmosphere light device.
[0045] Step S7200: determining the color value of each primary color channel corresponding to the target color temperature value according to a preset mapping relationship; The mapping relationship between the target color temperature value and the color value of each corresponding primary color channel is set in advance. The mapping relationship can be set flexibly. In one embodiment, the mapping relationship can be expressed as a mapping relationship table, which can be based on experimental data, theoretical calculations or obtained through learning of a neural network model. The mapping relationship generally describes how to convert a specific color temperature value into a corresponding RGB (red, green, blue) color value. First, determine the target color temperature value, which can be obtained based on user preferences and environmental requirements. In another embodiment, the mapping relationship can be expressed as a conversion formula, and the mapping relationship is used to convert the target color temperature value into the color value of each primary color channel (such as red, green and blue channels). For example, if the color temperature conversion formula on the CIE 1931 chromaticity diagram is used, the corresponding (x, y) chromaticity coordinates can be calculated based on the target color temperature value, and then further converted into color values in the RGB color space. It is not difficult to understand that after the mapping relationship is determined in advance, given a target color temperature value, the color value of each corresponding primary color channel can be determined according to the mapping relationship.
[0046] Step S7300, adjust the color value of the primary color channel of each lamp bead in the lamp chain to the color value corresponding to the target color temperature value, so that the actual color temperature value corresponding to each white channel reaches the target color temperature value, and record the corresponding color compensation value of each primary color channel.
[0047] Light up all the lamp beads in the light chain, obtain the color value of each primary color channel in the light chain at this time, and adjust the color value of each primary color channel at this time through the control unit to reach the color value of each primary color channel corresponding to the target color temperature value obtained in the previous step, so that the actual color temperature value reaches the preset target color temperature value. After adjusting the color values of all primary color channels to reach the color value of each primary color channel corresponding to the target color temperature value, use the color temperature sensor to obtain the actual color temperature value again to verify whether the preset target color temperature value has been reached. If there is a deviation between the actual color temperature value and the target color temperature value, further fine-tuning is required. After the adjustment is completed, the corresponding color compensation value of each primary color channel is recorded.
[0048] In this embodiment, through the pre-set mapping relationship, whether it is based on experimental data, theoretical calculations or obtained through neural network learning, it can ensure that the atmosphere light device is quickly and accurately adjusted to the desired color temperature. Through the mapping relationship table or conversion formula, the color value that each primary color channel (red, green, and blue) should reach can be accurately determined, thereby simplifying the color temperature adjustment process and improving the accuracy and efficiency of the adjustment. By lighting up all the lamp beads and obtaining the current color value, the control unit is then used to adjust the color value of each primary color channel corresponding to the target color temperature value. In addition, by recording the color compensation value of each primary color channel after adjustment, it can be determined that each primary color channel needs to be adjusted according to the color compensation value when the white balance calibration is achieved.
[0049] Based on any embodiment of the method of this application, please refer to Figure 5 , by controlling the white channel of each lamp bead in the ambient light device to emit light separately, the actual color temperature value corresponding to each white channel working at its maximum rated power is obtained, including: Step S7110, placing the atmosphere light device at the center of the integrating sphere, and controlling the corresponding white channels to emit light one by one at the maximum rated power of each lamp bead; In this step, since the inside of the integrating sphere is coated with a diffuse reflective material with high reflectivity, the light emitted by the white light-emitting element in the atmosphere light device is evenly scattered in all directions, thereby ensuring uniform distribution of light. After the atmosphere light device is placed in the center of the integrating sphere, each white light-emitting element is controlled by the control unit to light up at the maximum rated power. Specifically, each white light-emitting element can be activated one by one according to the serial position of each lamp bead in the light chain. When each lamp bead is lit, ensure that other lamp beads are in the off state to avoid interference with the measurement. The integrating sphere is a hollow, complete spherical shell that can effectively isolate the influence of external light sources and ambient light, ensuring that only light emitted by the atmosphere light device is received during the measurement process, avoiding the influence of position deviation or interference from external light sources on the measurement results. Due to the uniform light distribution inside the integrating sphere and the characteristics of isolating external interference, multiple measurement results under the same conditions have a high degree of consistency and repeatability, thereby improving the accuracy and reliability of the measurement results.
[0050] Step S7120: Determine the chromaticity coordinates corresponding to the white channel of each lamp bead when emitting light at the maximum rated power by using a colorimeter connected to the integrating sphere.
[0051] A person skilled in the art connects a colorimeter to an integrating sphere to determine the corresponding chromaticity coordinates of the light source emitted by the white light-emitting element. A colorimeter can analyze the color characteristics of a light source, including chromaticity coordinates. By aligning the measurement port or probe of the colorimeter with the inside of the integrating sphere, that is, placing the receiving end of the colorimeter in the integrating sphere, when the ambient light device is at the center of the integrating sphere and all white light-emitting elements are lit at the maximum rated power, the colorimeter receives the light source emitted by the white light-emitting element in the ambient light device, analyzes the color characteristics of the received light source, and determines the corresponding chromaticity coordinates, which are usually expressed as (x, y) coordinates on the CIE 1931 chromaticity diagram. The determination of chromaticity coordinates is based on the spectral distribution of the light source and reflects the color characteristics of the light source. In this way, the chromaticity coordinates of the light source emitted by all white light-emitting elements in the ambient light device when emitting light at the maximum rated power can be accurately obtained.
[0052] Step S7130: Based on the chromaticity coordinates, determine the actual color temperature value corresponding to the white channel of each lamp bead when it is lit at the maximum rated power.
[0053] In one embodiment, based on the chromaticity coordinates determined by the colorimeter, the actual color temperature value of the ambient light device when all white light-emitting elements are lit at the maximum rated power can be further determined. Chromaticity coordinates (usually expressed as (x, y) coordinates on the CIE 1931 chromaticity diagram) are a quantitative representation of the color characteristics of the light source. There is a specific conversion relationship between the chromaticity coordinates and the color temperature value. Specifically, the corresponding color temperature value is calculated by substituting the chromaticity coordinates into the color temperature calculation formula. For example, assuming that the chromaticity coordinates of the light source emitted by the white light-emitting element are measured to be (x = 0.3127, y = 0.3290), the chromaticity coordinates are located on the CIE 1931 chromaticity diagram, and the CIE formula for calculating color temperature is , find the value of n and enter it , where CCT is the corresponding color temperature value. In another embodiment, the color temperature value corresponding to the chromaticity coordinates can be determined by mapping the chromaticity coordinates to the blackbody locus or isotherm in the color temperature conversion tool. Wherein, the blackbody locus is the chromaticity coordinate locus of the light emitted by an ideal blackbody at different temperatures, and the blackbody locus is presented as a curve on the CIE chromaticity diagram. In this way, the actual color temperature value of all white light-emitting elements in the atmosphere light device when emitting light at the maximum rated power can be accurately obtained. The color temperature value is a measure of whether the color of the light source is warmer or cooler, usually in Kelvin (K). The color temperature value determined in this embodiment is the actual color temperature value of the atmosphere light device when all white light-emitting elements are lit at the maximum rated power.
[0054] In this embodiment, by placing the atmosphere light device at the center of the integrating sphere and lighting all white light-emitting elements with the maximum rated power, the high-reflectivity diffuse reflective material inside the integrating sphere makes the light evenly scattered inside the sphere, thereby avoiding measurement errors caused by position deviation or interference from external light sources. The implementation of this step significantly improves the consistency and repeatability of the measurement results, ensuring the accuracy and reliability of the color temperature value measurement. The connection and use of the colorimeter allows for a detailed analysis of the color characteristics of the light source and quantification of these color characteristics as chromaticity coordinates. Then, by converting the chromaticity coordinates, the actual color temperature value of the atmosphere light device when all white light-emitting elements are lit at the maximum rated power is calculated. This conversion step usually involves mapping the chromaticity coordinates to the blackbody locus to determine the color temperature value corresponding to the color of the light source. This method improves the accuracy of color temperature measurement.
[0055] Based on any embodiment of the method of this application, please refer to Figure 6 , through a colorimeter connected to an integrating sphere, determine the corresponding chromaticity coordinates of the white channel of each lamp bead when it emits light at its maximum rated power, including: Step S7121, obtaining chromaticity coordinate data collected by a plurality of colorimeters evenly distributed in the integrating sphere; First, multiple colorimeters are evenly distributed inside the integrating sphere to collect the chromaticity coordinate data of the light source emitted by the white light-emitting element of the ambient light device. Since the light inside the integrating sphere is evenly scattered by the diffuse reflective material with high reflectivity, setting the colorimeter at different positions can ensure that the light received from all directions is consistent. In this way, the local deviation that may be caused by a single measurement point can be avoided, thereby more comprehensively reflecting the color characteristics of the light emitted by the lamp beads. When the ambient light device is at the center of the integrating sphere and all white light-emitting elements are lit at the maximum rated power, each colorimeter independently receives and analyzes the light source emitted by the white light-emitting element in the ambient light device. The colorimeter measures and records the chromaticity coordinate data of the light source at each position, where the chromaticity coordinate data is usually expressed as (x, y) coordinates on the CIE 1931 chromaticity diagram. By collecting the measurement data of all colorimeters distributed inside the integrating sphere, a comprehensive and multi-point chromaticity coordinate distribution can be obtained to improve the accuracy and representativeness of the measurement results. These chromaticity coordinate data are used for further analysis, such as determining the actual color temperature value.
[0056] Step S7122, performing data preprocessing on the chromaticity coordinate data collected by multiple colorimeters; The raw data of chromaticity coordinates collected by the colorimeter may contain noise or outliers, and data preprocessing operations are required to purify and standardize the data. Specifically, data preprocessing generally includes checking and removing or correcting possible erroneous data or outliers, such as identifying and processing chromaticity coordinates beyond the expected range in this embodiment, or eliminating unreliable data points caused by equipment failure or environmental interference. At the same time, ensure that the measurement results of all colorimeters are compared under the same standard, which includes correcting the deviation of each colorimeter to ensure that the data provided is accurate and consistent. In addition, the chromaticity coordinate data needs to be converted to a unified scale for subsequent analysis. Specifically, the data is scaled to a standard range, or statistical methods such as z-score standardization are used. Finally, interpolation is performed between data points to fill in possible missing values or discontinuous areas to obtain a complete data set. Through these preprocessing steps, the quality of the chromaticity coordinate data can be ensured, providing a reliable basis for the subsequent calculation of color temperature values.
[0057] Step S7123: Based on the preprocessed chromaticity coordinate data, determine the arithmetic mean of each element in the chromaticity coordinate data, and combine the calculated arithmetic mean values to form new chromaticity coordinates for subsequent determination of the actual color temperature value of the light source emitted by each white channel.
[0058] First, obtain the preprocessed chromaticity coordinate data, and calculate the arithmetic mean of each chromaticity coordinate element (usually the x and y coordinates on the CIE 1931 chromaticity diagram) for the chromaticity coordinate data. Specifically, add the x coordinate values collected by all colorimeters and divide them by the total number of data points to obtain the arithmetic mean of the x coordinate; similarly, add all y coordinate values and divide them by the total number of data points to obtain the arithmetic mean of the y coordinate. Combine the calculated arithmetic means to form a new chromaticity coordinate. The chromaticity coordinate is obtained by comprehensively considering the data of all measurement points, so it can better reflect the overall color characteristics of the white light-emitting element in the ambient light device when it emits light at the maximum rated power. The new chromaticity coordinate will be used for further analysis, such as determining the actual color temperature value through a color temperature conversion formula or a color temperature conversion tool. By implementing this step, the accuracy and reliability of the measurement results can be improved.
[0059] In this embodiment, by evenly distributing multiple colorimeters inside the integrating sphere to collect data, it is possible to ensure that the light received from all directions is consistent, avoiding local deviations that may be caused by a single measurement point. This method can more comprehensively reflect the color characteristics of the light emitted by the white light-emitting element, improve the accuracy and representativeness of the measurement results, and provide comprehensive and multi-point chromaticity coordinate distribution data for subsequent color temperature calculations. The data is purified and standardized through data preprocessing to ensure the accuracy and availability of the data. Then, a comprehensive chromaticity coordinate is formed by calculating the arithmetic mean of the preprocessed chromaticity coordinate data. The new chromaticity coordinate can more accurately reflect the overall color characteristics of the white light-emitting element in the ambient light device at the maximum rated power. The implementation of this embodiment improves the accuracy and reliability of the measurement results.
[0060] Based on any embodiment of the method of this application, please refer to Figure 7 , determining the color value of each primary color channel corresponding to the target color temperature value according to a preset mapping relationship, including: Step S7210, determining a ratio between an offset range of the target color temperature value relative to a color temperature range defined by a preset color temperature interval and the color temperature range; The mapping relationship between the target color temperature value and the color value of each primary color channel can be set in advance. In this embodiment, the mapping relationship between the target color temperature value and the color value of each primary color channel in different color temperature intervals is constrained by partitioning the target color temperature value. First, the color temperature interval in which the target color temperature value is located is determined, and the interval is limited by two color temperature end values (the minimum color temperature end value and the maximum color temperature end value). Then, the offset stroke of the target color temperature value relative to the minimum color temperature end value is calculated, that is, the difference between the target color temperature value and the minimum color temperature end value. Then, the color temperature stroke is calculated, that is, the difference between the maximum color temperature end value and the minimum color temperature end value. Finally, the ratio between the offset stroke and the color temperature stroke is calculated, that is, the stroke ratio. The stroke ratio represents the relative position of the target color temperature value in the color temperature interval. For example, the color temperature interval in which the target color temperature value 1050K is located is 1000K to 1200K. That is, the color temperature range is 1200 - 1000 = 200, the offset range of the color temperature range is 1050 - 1000 = 50, and the offset range of the color temperature range is divided by the color temperature range, that is, 50 / 200 = 1 / 4, that is, the offset range of the target color temperature value relative to the color temperature range defined by the color temperature range accounts for 1 / 4 of the range between the color temperature range.
[0061] Step S7220, determining the color value difference of each primary color channel corresponding to two color temperature end values of the color temperature range, and multiplying the color value difference of each primary color channel by the stroke ratio to obtain the color value increment of each primary color channel; The color value of each primary color channel corresponding to each of the two color temperature end values of the color temperature range is predetermined, and is set to be the color value of each primary color channel measured when the color temperature value is adjusted to reach the target color temperature value when all white light-emitting elements of the atmosphere light device are lit at the maximum rated power. The mapping relationship between the color temperature end value and the corresponding color value of each primary color channel can be stored in the form of a mapping relationship table. The color value of each primary color channel corresponding to each of the two color temperature end values of the color temperature range is obtained, and the difference between the corresponding primary color channels is calculated respectively, and then each difference is multiplied by the stroke proportion calculated in the previous step to obtain the color value increment of each primary color channel, which represents the color value change from the minimum color temperature end value to the target color temperature value.
[0062] Step S7230: superimpose the color value of each primary color channel corresponding to the minimum color temperature end value of the two color temperature end values with the corresponding color value increment to obtain the color value of each primary color channel corresponding to the target color temperature value.
[0063] The color value of each primary color channel corresponding to the minimum color temperature end value is determined by a mapping relationship between the preset minimum color temperature end value and the color value of each corresponding primary color channel. Then, the color value is added to the color value increment obtained in the previous step corresponding to the primary color channel, and the color value of each primary color channel corresponding to the target color temperature value is obtained.
[0064] In this embodiment, by determining the relative position of the target color temperature value within the preset color temperature range, that is, the stroke ratio, a quantitative reference basis is provided for the subsequent color value adjustment. This step can accurately identify the relationship between the target color temperature value and the end value of the color temperature range, ensuring that the atmosphere lighting device can accurately position the color temperature according to the target color temperature value. Then, by calculating the color value change of each primary color channel within the color temperature range, that is, the color value increment, it is possible to quantitatively understand what kind of color adjustment each primary color channel needs to make between different color temperature end values. Finally, by superimposing the color value corresponding to the minimum color temperature end value and the calculated color value increment, the color value of each primary color channel corresponding to the target color temperature value is obtained.
[0065] Based on any embodiment of the method of this application, please refer to Figure 8 , and send the updated frame control data to each lamp bead to play the corresponding lighting effects, including: Step S5410: compressing the updated frame control data into lighting effect control data according to a preset algorithm, and sending the lighting effect control data to the light chain; In one embodiment, the frame control data obtained after the update is compressed based on a preset algorithm to reduce the amount of data and optimize the transmission efficiency. The preset algorithm can use lossless compression (such as LZ77, Huffman coding, etc.), lossy compression (such as quantization, conversion coding, etc.) or other compression algorithms. The compressed lighting effect control data contains the luminous parameters of each lamp bead. During the compression process, the frame control data is segmented and identification information is added to each data segment, such as a frame header and a frame tail. The frame header usually includes information such as data length and data type, and the frame tail may contain an end mark or check information. In addition, a check code, such as a CRC (cyclic redundancy check) code, is generated to verify whether an error occurs during the data transmission process. After the compression and identification processing is completed, the lighting effect control data is sent to the light chain through a control interface protocol (such as DMX512, DALI or WS2812, etc.).
[0066] Step S5420, each lamp bead in the lamp chain parses the lighting effect control data to obtain the frame control data, extracts the light-emitting parameters whose sorting order is consistent with the serial position information of the lamp bead itself, and controls the light-emitting elements corresponding to each primary color channel and the white channel according to the color value of each primary color channel and the brightness value of the white channel in the light-emitting parameters, so as to realize the coordinated playback of corresponding lighting effects by each lamp bead.
[0067] After the light chain of the atmosphere light device receives the compressed lighting effect control data, it first identifies the frame header and frame tail in the lighting effect control data to determine the integrity of the lighting effect control data. Then the frame control data is parsed, and each lamp bead will parse the corresponding luminous parameters according to its serial position information in the light chain. The light controller converts the luminous parameters corresponding to each lamp bead into electrical signals, and controls the corresponding light-emitting elements of each lamp bead to produce specific colors and brightness. Specifically, the luminous parameters include the color values of each primary color channel and the brightness value of the white channel. The lamp beads will control the red, green, and blue light-emitting elements to emit light according to the received color values, and adjust the luminous intensity of the white light-emitting elements according to the brightness value. This process is carried out simultaneously on all lamp beads in the light chain to ensure that each lamp bead can work together according to its assigned parameters, thereby achieving synchronous playback of lighting effects on the entire light chain.
[0068] In this embodiment, the updated frame control data is compressed into lighting effect control data according to a preset algorithm and sent to the light chain, thereby ensuring the accuracy and efficiency of data transmission. Each lamp bead in the light chain can accurately parse the received lighting effect control data according to its serial position information, extract the luminous parameters that match its own position, and convert them into control signals to accurately control the light-emitting elements corresponding to each primary color channel and white channel. This embodiment enables each lamp bead to independently adjust its luminous characteristics, including color and brightness, to match the preset lighting effect mode. Since all lamp beads work together according to unified parameters, this not only achieves the synchronous playback of lighting effects, but also enhances the overall visual consistency and the expressiveness of dynamic effects.
[0069] See also Fig. 9 , a white balance calibration device provided to meet one of the purposes of the present application is a functional embodiment of the white balance calibration method of the present application. On the other hand, the device is a white balance calibration device provided to meet one of the purposes of the present application, including an adjustment factor determination module 5100, an actual compensation value determination module 5200, a color value compensation module 5300 and a frame control data sending module 5400, wherein the adjustment factor determination module 5100 is configured to determine the ratio between the brightness value and the maximum brightness value of the white channel according to the brightness value of the white channel corresponding to each lamp bead in the frame control data of the atmosphere light device as the adjustment factor; the actual compensation value determination module 5200 is configured to determine the actual compensation value corresponding to the primary color channel according to the preset color compensation value and the corresponding adjustment factor of the primary color channel of each lamp bead in the atmosphere light device; the color value compensation module 5300 is configured to compensate the color value of the corresponding primary color channel of the corresponding lamp bead in the atmosphere light device according to the actual compensation value to update the frame control data. The frame control data sending module 5400 is configured to send the updated frame control data to each lamp bead to play the corresponding lighting effect.
[0070] It also includes: a lamp bead layout acquisition submodule, which is configured to acquire the lamp bead layout corresponding to the lamp chain of the atmosphere light device, and the lamp bead layout includes the spatial position information of each lamp bead in the lamp chain in the plane layout space and the serial position information in the lamp chain; a frame control data conversion submodule, which is configured to convert the lighting effect image frame into frame control data according to the correspondence between the lamp bead layout and the lighting effect image frame to be played in terms of spatial position information, and the frame control data includes the luminous parameters of each lamp bead in the order of the serial position of the lamp bead in the lamp chain, and the luminous parameters include the color value of each primary color channel in each lamp bead and the brightness value of the white channel in each lamp bead.
[0071] It also includes: an actual color temperature value acquisition submodule, which is configured to control the white channels of each lamp bead in the atmosphere light device to emit light separately, and obtain the actual color temperature value corresponding to each white channel working at its maximum rated power; a color value determination submodule, which is configured to determine the color value of each primary color channel corresponding to the target color temperature value according to a preset mapping relationship; a color compensation value preset submodule, which is configured to adjust the color value of the primary color channel of each lamp bead in the light chain to the color value corresponding to the target color temperature value, so that the actual color temperature value corresponding to each white channel reaches the target color temperature value, and records the corresponding color compensation value of each primary color channel.
[0072] In a further embodiment, the actual color temperature value acquisition submodule includes: a white channel light emission control submodule, which is configured to place the atmosphere lighting device at the center of the integrating sphere, and control the corresponding white channels to emit light one by one under the maximum rated power of each lamp bead; a chromaticity coordinate acquisition submodule, which is configured to determine the corresponding chromaticity coordinates of the white channel of each lamp bead when it emits light under the maximum rated power through a colorimeter connected to the integrating sphere; an actual color temperature value determination submodule, which is configured to determine the corresponding actual color temperature value of the white channel of each lamp bead when it is lit under the maximum rated power based on the chromaticity coordinates.
[0073] In a further embodiment, the chromaticity coordinate acquisition submodule includes: a colorimeter data acquisition submodule, configured to acquire chromaticity coordinate data collected by multiple colorimeters evenly distributed in an integrating sphere; a data preprocessing submodule, configured to perform data preprocessing on the chromaticity coordinate data collected by the multiple colorimeters; a chromaticity coordinate average value calculation submodule, configured to determine the arithmetic mean of each element in the chromaticity coordinate data based on the preprocessed chromaticity coordinate data, and combine the calculated arithmetic mean values to form new chromaticity coordinates for subsequent determination of the actual color temperature value of the light source emitted by each white channel.
[0074] In a further embodiment, the color value determination submodule includes: a proportion analysis submodule, configured to determine the travel ratio between the offset travel of the target color temperature value relative to the color temperature travel defined by a preset color temperature interval and the color temperature travel; an increment analysis submodule, configured to determine the color value gap of each primary color channel corresponding to each of the two color temperature end values of the color temperature interval, multiply the color value gap of each primary color channel by the travel ratio to obtain the color value increment of each primary color channel; a preference recall submodule, configured to superimpose the color value of each primary color channel corresponding to the minimum color temperature end value of the two color temperature end values with the corresponding color value increment to obtain the color value of each primary color channel corresponding to the target color temperature value.
[0075] On the basis of any embodiment of the method of the present application, the frame control data sending module 5400 includes: a lighting effect control data compression submodule, configured to compress the updated frame control data into lighting effect control data according to a preset algorithm, and send the lighting effect control data to the light chain; a light emitting element lighting control submodule. It is configured to parse the lighting effect control data for each lamp bead in the light chain to obtain the frame control data, extract the lighting parameters whose sorting order is consistent with the serial position information of the lamp bead itself, and control the lighting of each light emitting element corresponding to each primary color channel and the white channel according to the color value of each primary color channel and the brightness value of the white channel in the lighting parameters, so as to realize the coordinated playback of corresponding lighting effects by each lamp bead.
[0076] In order to solve the above technical problems, the present application also provides a computer device. Fig.10 As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a white balance calibration method. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the white balance calibration method of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art can understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0077] In this embodiment, the processor is used to execute Fig. 9 The memory stores the program code and various data required to execute the above modules or submodules. The network interface is used to transmit data between the user terminal or the server. The memory in this embodiment stores the program code and data required to execute all modules / submodules in the white balance calibration device of the present application, and the server can call the program code and data of the server to execute the functions of all submodules.
[0078] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the white balance calibration method of any embodiment of the present application.
[0079] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0080] It will be understood by those skilled in the art that the various operations, methods, steps, measures, and schemes in the processes discussed in this application may be alternated, changed, combined, or deleted. Furthermore, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be alternated, changed, rearranged, decomposed, combined, or deleted. Furthermore, the steps, measures, and schemes in the various operations, methods, and processes in the prior art that are open source and in this application may also be alternated, changed, rearranged, decomposed, combined, or deleted.
[0081] The above is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A white balance calibration method, characterized in that: include: According to the brightness value of the white channel corresponding to each lamp bead in the frame control data of the atmosphere light device, the ratio between the brightness value and the maximum brightness value of the white channel is determined as an adjustment factor; Determine the actual compensation value corresponding to the primary color channel according to the preset color compensation value of the primary color channel of each lamp bead in the atmosphere light device and the corresponding adjustment factor; Compensating the color value of the corresponding primary color channel of the corresponding lamp bead in the atmosphere lamp device according to the actual compensation value to update the frame control data; The updated frame control data is sent to each lamp bead to play the corresponding lighting effect.
2. The white balance calibration method according to claim 1, characterized in that: According to the brightness value of the white channel corresponding to each lamp bead in the frame control data of the atmosphere light device, before determining the ratio between the brightness value and the maximum brightness value of the white channel as the adjustment factor, including: Obtaining a lamp bead layout corresponding to a lamp chain of an ambient light device, wherein the lamp bead layout includes spatial position information of each lamp bead in the lamp chain in a plane layout space and serial position information in the lamp chain; According to the correspondence between the lamp bead layout and the lighting effect image frame to be played in terms of spatial position information, the lighting effect image frame is converted into frame control data. The frame control data contains the luminous parameters of each lamp bead in the order of the serial position of the lamp beads in the light chain. The luminous parameters include the color value of each primary color channel in each lamp bead and the brightness value of the white channel in each lamp bead.
3. The white balance calibration method according to claim 2, characterized in that: Before obtaining the lamp bead layout corresponding to the lamp chain of the ambient light device, include: By controlling the white channel of each lamp bead in the ambient light device to emit light separately, the actual color temperature value corresponding to each white channel working at its maximum rated power is obtained; Determine the color value of each primary color channel corresponding to the target color temperature value according to a preset mapping relationship; Adjust the color value of each primary color channel of the lamp beads in the lamp chain to the color value corresponding to the target color temperature value, so that the actual color temperature value corresponding to each white channel reaches the target color temperature value, and record the corresponding color compensation value of each primary color channel.
4. The white balance calibration method according to claim 3, characterized in that: By controlling the white channel of each lamp bead in the ambient light device to emit light separately, the actual color temperature value corresponding to each white channel working at its maximum rated power is obtained, including: Place the ambient light device at the center of the integrating sphere, and control the corresponding white channel to emit light one by one at the maximum rated power of each lamp bead; Determine the chromaticity coordinates of the white channel of each lamp bead when emitting light at the maximum rated power by using a colorimeter connected to an integrating sphere; Based on the chromaticity coordinates, the actual color temperature value corresponding to the white channel of each lamp bead when it is lit at the maximum rated power is determined.
5. The white balance calibration method according to claim 4, characterized in that: The colorimeter connected to the integrating sphere is used to determine the corresponding chromaticity coordinates of the white channel of each lamp bead when it emits light at its maximum rated power, including: Acquiring chromaticity coordinate data collected by a plurality of colorimeters evenly distributed in an integrating sphere; Performing data preprocessing on chromaticity coordinate data collected by multiple colorimeters; Based on the preprocessed chromaticity coordinate data, the arithmetic mean of each element in the chromaticity coordinate data is determined, and the calculated arithmetic mean values are combined to form new chromaticity coordinates for subsequent determination of the actual color temperature value of the light source emitted by each white channel.
6. The white balance calibration method according to claim 3, characterized in that: Determine the color value of each primary color channel corresponding to the target color temperature value according to the preset mapping relationship, including: Determine the ratio of the offset stroke of the target color temperature value relative to the color temperature stroke defined by the preset color temperature interval to the stroke of the color temperature stroke; Determine the color value difference of each primary color channel corresponding to two color temperature end values of the color temperature range, and multiply the color value difference of each primary color channel by the stroke ratio to obtain the color value increment of each primary color channel; The color value of each primary color channel corresponding to the minimum color temperature end value of the two color temperature end values is superimposed with the corresponding color value increment to obtain the color value of each primary color channel corresponding to the target color temperature value.
7. The white balance calibration method according to any one of claims 1 to 6, characterized in that: The updated frame control data is sent to each lamp bead to play the corresponding lighting effects, including: Compressing the updated frame control data into lighting effect control data according to a preset algorithm, and sending the lighting effect control data to the light chain; Each lamp bead in the lamp chain parses the lighting effect control data to obtain the frame control data, extracts the light-emitting parameters whose sorting order is consistent with the serial position information of the lamp bead itself, and controls the light-emitting elements corresponding to each primary color channel and the white channel according to the color value of each primary color channel and the brightness value of the white channel in the light-emitting parameters, thereby realizing the coordinated playback of corresponding lighting effects by each lamp bead.
8. A white balance calibration device, characterized in that: include: An adjustment factor determination module is configured to determine, according to the brightness value of the white channel corresponding to each lamp bead in the frame control data of the atmosphere light device, a ratio between the brightness value and the maximum brightness value of the white channel as an adjustment factor; An actual compensation value determination module is configured to determine the actual compensation value corresponding to the primary color channel according to the preset color compensation value of the primary color channel of each lamp bead in the atmosphere lamp device and the corresponding adjustment factor; A color value compensation module, configured to compensate the color value of the corresponding primary color channel of the corresponding lamp bead in the atmosphere light device according to the actual compensation value, so as to update the frame control data; The frame control data sending module is configured to send the updated frame control data to each lamp bead to play the corresponding lighting effect.
9. An atmosphere lighting device, characterized in that: It comprises a control unit and at least one lamp bead, wherein the control unit is used to execute the steps of the method described in any one of claims 1 to 7 to control the atmosphere light device to calibrate the white balance.
10. A computer-readable storage medium, characterized in that: It stores a computer program implemented according to the method described in any one of claims 1 to 7 in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.
Citation Information
Patent Citations
Display control for multi-primary display
CN103026401A
Screen display method and device
CN109461409A
Display device and data compensation method and operation method thereof
CN112735312A
Cited By
Multi-mode dimming and toning power supply based on PWM (Pulse Width Modulation)
CN119421288A
A multi-mode dimming and color adjustment power supply based on PWM
CN119421288B
Method and system for managing color space of multi-primary-color LED lamp with multiple lamp beads
CN120091473A
Color space management method and system for multi-primary color LED lamps with multiple lamp beads
CN120091473B
