Ambient light equipment and white balance calibration method thereof and corresponding device and medium

By dynamically adjusting the color compensation value of the adjustment factor and primary color channel in the ambient light equipment, the problem of inefficiency of the traditional white balance calibration method at different color temperatures is solved, and efficient and accurate white balance calibration is achieved to adapt to whites of different color temperatures. Light emitting element simplifies the calibration process and improves the stability of the lighting effect.

CN118695428BActive Publication Date: 2025-01-03SHENZHEN INTELLIROCKS TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411176739.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2025-01-03
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

Traditional white balance calibration methods are inefficient when facing white light-emitting elements of different color temperatures, making it difficult to achieve accurate white balance, and need to develop specific calibration formulas for each color temperature, resulting in cumbersome and inefficient.

Method used

By determining the ratio between the brightness value of the white channel and the maximum brightness value of each lamp bead as a 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, simplifying the calibration process And improve efficiency and accuracy.

Benefits of technology

It realizes automatic adaptation to white light emitting elements of different color temperatures, simplifies the calibration process, improves the efficiency and accuracy of white balance calibration, and ensures the stability and consistency of lighting effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118695428B_ABST
    Figure CN118695428B_ABST
Patent Text Reader

Abstract

The present application relates to an atmosphere light device and a white balance calibration method thereof and corresponding devices and media, the method comprising: according to the brightness value of the white channel corresponding to each lamp bead in the frame control data of the atmosphere light device, determining the ratio between the brightness value and the maximum brightness value of the white channel as an adjustment factor; 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, determining the actual compensation value corresponding to the primary color channel; compensating 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; sending the updated frame control data to each lamp bead to play the corresponding lighting effect. The present application can adapt to different color temperatures of white light-emitting elements and efficiently calibrate white balance.
Need to check novelty before this filing date? Find Prior Art

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, as well as corresponding devices and media. Background Art

[0002] Ambient lighting, also known as LED ambient lighting, is a lighting device designed to create ambiance for a variety of applications, including theme parks, hotels, homes, exhibitions, commercial spaces, and art installations. It can provide the desired lighting atmosphere for various scenarios. Ambient lighting consists of at least one LED bead composed of red, green, and blue (RGB) light-emitting elements. When white light is desired, the three primary colors, red, green, and blue, are typically mixed to produce white light. However, due to limitations in the LED manufacturing process, significant color variation can occur during mass production, making the consistent lighting difficult to control. Furthermore, the brightness of this RGB-mixed white light is low, typically only about half that of a single white LED bead. To achieve the required brightness and chromaticity for white light, a white (W) light-emitting element is typically added to each LED bead to create an RGBW four-color mixing system. The brightness of the corresponding LED is controlled by controlling the data of the four color channels (R, G, B, and W). The color channels are the electrical signal channels that control the color of the LED's light.

[0003] Although white light-emitting elements have been added, there is still the problem of inconsistent color temperature of the white light emitted by the white light-emitting elements, which brings new challenges to white balance calibration. Traditional white balance calibration methods usually rely on the color temperature of the white light emitted by white light-emitting elements, and combine with the white light compensation formula to adjust the data of the red, green, and blue color channels. However, due to the inconsistency of the color temperature of the white light emitted by white light-emitting elements, the traditional white balance calibration method may not be able to effectively correct color deviations. 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. This not only requires a lot of time and effort to calculate and debug 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 ambient 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:

[0006] An ambient light device and a white balance calibration method thereof, as well as corresponding devices and media, are provided to meet one of the purposes of this application, including the following steps:

[0007] 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 the adjustment factor;

[0008] 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;

[0009] 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;

[0010] The updated frame control data is sent to each lamp bead to play the corresponding lighting effect.

[0011] A white balance calibration device is proposed to meet the white balance calibration method of one of the purposes of this application, and includes:

[0012] An adjustment factor determination module is configured to determine, based on 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;

[0013] An actual compensation value determination module is configured to determine the actual compensation value corresponding to the primary color channel of each lamp bead in the atmosphere lamp device according to the preset color compensation value of the primary color channel and the corresponding adjustment factor;

[0014] 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 lamp device according to the actual compensation value, so as to update the frame control data;

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

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

[0017] 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. When the computer program is called and executed by a computer, the steps included in the corresponding method are executed.

[0018] The technical solution of this application has many advantages, including but not limited to the following:

[0019] This application determines the ratio between the white channel brightness value and the maximum brightness value of each lamp bead as an adjustment factor. The adjustment factor can make this application adapt to white light-emitting elements with different color temperatures, and can solve the limitations of traditional white balance calibration methods when the color temperature is inconsistent; then, using the calculated adjustment factor and the preset color compensation value of the primary color channel of each lamp bead, the actual compensation value corresponding to each primary color channel can be determined. 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 white balance calibration can be obtained and 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.

[0020] 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 traditional methods 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 ambient light 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 the lighting effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] 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:

[0022] Figure 1 This is a schematic diagram of the electrical structure of an exemplary ambient light device of this application;

[0023] Figure 2 Schematic diagram of a typical embodiment of the white balance calibration method of the present application;

[0024] Figure 3 Schematic diagram of the process of converting luminous parameters in an embodiment of the present application;

[0025] Figure 4 A schematic diagram of a process for determining a color compensation value in an embodiment of the present application;

[0026] Figure 5 A schematic diagram of a process for determining an actual color temperature value in an embodiment of the present application;

[0027] Figure 6 Schematic diagram of the process of calculating the average color temperature in an embodiment of the present application;

[0028] Figure 7 Schematic diagram of the process of determining the color value of the primary color channel corresponding to the target color temperature value in the embodiment of the present application;

[0029] Figure 8 This is a flow chart of implementing collaborative playback of lighting effects in an embodiment of the present application;

[0030] Figure 9 This is a functional block diagram of the white balance calibration device of this application;

[0031] Figure 10 This is a schematic diagram of the structure of a computer device used in this application. DETAILED DESCRIPTION

[0032] See also Figure 1 As can be seen from the structural diagram of an atmosphere lamp device provided in one embodiment of the present application, the atmosphere lamp device includes a control unit 1 and a lamp body 2. 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 generally 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). The lamp controller receives the light-emitting parameters sent by the control unit 1 and converts the light-emitting parameters into pulse signals, thereby controlling the ratio of the four colors of red (R), green (G), blue (B), and white (W), so as to drive each lamp bead 21 to emit light and display color.

[0033] The lamp beads in an ambient lighting device can be connected in series to form a light chain. A single ambient lighting device can contain one or more light chains, and light chains can also be connected in series to form the same light chain, allowing users to flexibly customize the number of lamp beads in the ambient lighting device. The ambient lighting device can record the serial position information of each lamp bead in its light chain and the spatial position information of all lamp beads in the planar layout space through the lamp bead layout corresponding to all lamp beads. Light chains can be either flexible light strips or more flexible light strings.

[0034] 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 needed.

[0035] The power adapter is primarily used to convert AC power into DC power to power the entire ambient light device. The control chip can be implemented using various embedded chips, such as Bluetooth SoCs (System on Chip), WiFi SoCs, MCUs (Micro Controller Units), and DSPs (Digital Signal Processing). The control chip typically includes a central processing unit (CPU) and memory, which are used to store and execute program instructions, respectively, to implement their respective functions. These control chips may have a built-in communication component or be configured as needed. This communication component can be used to communicate with external devices, such as personal computers or smartphones. After a user issues various configuration commands through their device, the control chip in control unit 1 can receive these commands through the communication component, complete basic configuration, and control the operation of lamp body 2. The bus connector is primarily used to connect power to lamp body 2 connected to the bus and provide commands for controlling its lighting effects. Corresponding pins are provided for the power bus and signal bus. Therefore, when lamp body 2 needs to be connected to control unit 1, it can simply be connected to the bus connector via the corresponding connector on lamp body 2. The control panel typically provides one or more buttons for turning the control unit 1 on and off, selecting various preset white balance calibration methods, and so on. The display screen can be used to display various control information, thereby cooperating with the buttons on the control panel to support human-computer interaction. In some embodiments, the control panel and the display screen can be integrated into the same touchscreen display.

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

[0037] Those skilled in the art should be aware that although the various methods of this application are described based on the same concept and thus exhibit commonality, unless otherwise specified, these methods can be independently executed. Similarly, the various embodiments disclosed in this application are all based on the same inventive concept. Therefore, concepts with the same expression, as well as concepts that are appropriately transformed for convenience despite different expression, should be understood as equivalent.

[0038] Unless expressly stated to be mutually exclusive, the various embodiments disclosed in this application may be cross-combined with the relevant technical features of the various embodiments to flexibly construct new embodiments, 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 resolve certain deficiencies in the prior art. Those skilled in the art should be aware of such flexibility.

[0039] According to the above product architecture and working principle of the 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:

[0040] Step S5100: Determine, based on the brightness value of the white channel corresponding to each lamp bead in the frame control data of the ambient light device, a ratio between the brightness value and the maximum brightness value of the white channel as an adjustment factor;

[0041] 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 this 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.

[0042] The frame control data of an ambient light device is used to synchronize the individual lamps in the device to produce the same frame image. Specifically, the frame control data is a series of data used to control the lighting effects of the lamps. The frame control data includes the corresponding luminous parameters for each lamp. These parameters primarily represent the color, brightness, and other aspects of the lamp, depending on the lamp's lighting control principle. For example, for the three RGB channels, an 8-bit byte value can be used to represent both color and brightness. The frame control data is typically generated by the control unit in the ambient light device and transmitted to the individual lamp controllers via a predefined communication protocol (such as DMX, Art-Net, SPI, or I2C). For RGBW lamps with independent white light-emitting elements, the frame control data includes the brightness value of the white channel for each lamp in the ambient light device. The maximum brightness value of the white channel refers to the maximum brightness level achievable by the white light-emitting element in the lamp, and is typically determined during the lamp design and production process based on factors such as the lamp's material, structure, and manufacturing process.

[0043] Because the maximum brightness value of the lamp beads will 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, and 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 luminance 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 luminance meter is placed at an appropriate distance from the atmosphere light device. The distance between the luminance meter and the atmosphere light device is set as needed by those skilled in the art to ensure that the built-in sensor of the luminance meter can accurately receive the light emitted by the atmosphere light device. The luminance value of the white channel is measured using the luminance meter, and the reading of each measurement is recorded.

[0044] To improve the accuracy of brightness measurement, a method for averaging multiple measurements can be used. After the white light-emitting element is stably emitting light, use a luminance meter to perform an initial measurement and record the reading. After turning off the ambient light device for a period of time and then turning on the white light-emitting element again, repeat the measurement process and record the luminance meter reading for each measurement. Finally, calculate the average of all measured brightness readings 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 ambient light device's display.

[0045] 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 lamp bead based on the frame control data for subsequent optimization and update.

[0046] Step S5200: Determine the actual compensation value corresponding to the primary color channel of each lamp bead in the atmosphere light device according to the preset color compensation value of the primary color channel and the corresponding adjustment factor;

[0047] The color compensation value of the primary color channel of each lamp bead is preset in advance. This color compensation value can be set based on experience or experimental data, and reflects the color compensation value obtained through experience or experimentation when the white channel is at its maximum brightness value. This color compensation value is used to compensate for the color value of the corresponding primary color channel of the lamp bead in the ambient light. In one embodiment, the serial position information of each lamp bead is used as a unique identifier (ID) for 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 ambient 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.

[0048] By obtaining the preset color compensation value of each primary color channel of each lamp bead in the ambient light device and multiplying this color compensation value by the corresponding adjustment factor, the actual compensation value corresponding to each primary color channel of the lamp bead is calculated. This actual compensation value will be used in subsequent implementations to adjust the color values ​​of the primary color channels to achieve accurate white balance calibration.

[0049] 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;

[0050] 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 to 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 atmosphere light device after calibration according to the frame control data. 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 white balance calibration of the overall atmosphere light.

[0051] 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, and 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, and blue (B): 115. The color values ​​of each primary color channel after calibration can be calculated using the following formula:

[0052]

[0053]

[0054]

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

[0056] 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, and blue (B): 143. The calculated color values ​​of each primary color channel after white balance calibration are updated to the frame control data, so that subsequent embodiments can use this frame control data to achieve the lighting effects of the calibrated ambient light device.

[0057] Step S5400: Send the updated frame control data to each lamp bead to play the corresponding lighting effect.

[0058] The control unit packages the updated frame control data into a format suitable for transmission and then sends it to the controllers of each individual lamp via a pre-set communication protocol (such as DMX, Art-Net, SPI, or I2C). Upon receiving the updated frame control data, the controllers interpret the instructions and adjust the lighting effects of the lamps accordingly, resulting in a white-balanced lighting effect. For example, if a lamp is required to display a specific blue color, the control unit adjusts the current flowing to that lamp based on the blue channel brightness value in the received frame control data, ensuring that it emits the appropriate blue light. By controlling each lamp to display the lighting effect corresponding to the frame control data, each lamp in the entire ambient light system accurately displays its intended color and brightness. This precise data transmission and control ensures that the entire ambient light system displays the desired lighting effect, calibrated for white balance, creating a harmonious lighting environment for the user.

[0059] It can be seen 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:

[0060] This application determines the ratio between the white channel brightness value and the maximum brightness value of each lamp bead as an adjustment factor. The adjustment factor can make this application adapt to white light-emitting elements with different color temperatures, and can solve the limitations of traditional white balance calibration methods when the color temperature is inconsistent; then, using the calculated adjustment factor and the preset color compensation value of the primary color channel of each lamp bead, the actual compensation value corresponding to each primary color channel can be determined. 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 white balance calibration can be obtained and 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.

[0061] 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 traditional methods 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 ambient light 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 the lighting effect.

[0062] 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:

[0063] Step S6100: Obtain 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;

[0064] A light chain of an ambient light device is an electronic component used to connect multiple lamp beads. In one embodiment, the spatial position information of all lamp beads in the light chain in the plane layout space can be collected through automated scanning or manual measurement. For example, the light chain consists 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;

[0065] In another embodiment, a two-dimensional coordinate system is established with the first lamp bead in the light chain along the serial direction as the origin. The X-axis and Y-axis of this two-dimensional coordinate system represent the horizontal and vertical positions of the lamp bead in the planar layout space, respectively. Each lamp bead is assigned a unique coordinate based on its serial order in the light chain. The light chain of an ambient lighting device can be designed as a rectangular array containing multiple rows and columns of lamp beads. For example, suppose the light chain consists of 12 lamp beads in 4 rows and 3 columns. The position and serial position information of each lamp bead in the planar layout space are as follows: Lamp bead 1 is located in the first row, first column, with coordinates (0, 0) and a serial position of 1. Lamp bead 2 is located in the first row, second column, with coordinates (1, 0) and a serial position of 2. Lamp bead 3 is located in the first row, third column, with coordinates (2, 0) and a serial position of 3. Lamp bead 4 is located in the second row, third column, with coordinates (2, 1) and a serial position of 4. Lamp bead 5 is located in the second row, second column, with coordinates (1, 1) and a serial position of 5. This continues until lamp bead 12 is located in the fourth row and first column, with coordinates (0, 3) and a serial position of 12. Through automated scanning or manual measurement, lamp bead layout information can be accurately collected and used for subsequent brightness adjustment and lighting effect design.

[0066] Step S6200: Convert the lighting effect image frame into frame control data based on the correspondence between the lamp bead layout and the lighting effect image frame to be played in spatial position information. The frame control data includes the luminous parameters of each lamp bead in the order of the serial position of the lamp beads in the lamp 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.

[0067] The pixel data of the lighting effect image frame to be played is analyzed to determine the color value of each pixel's primary color channel and the brightness value of the white channel. Based on the spatial position information of each lamp bead in the plane layout space and the serial position information in the light chain obtained in the previous step, each pixel in the lighting effect image frame is mapped to the corresponding lamp bead. This is done 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. 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 will emit 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, this 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 will be converted into the luminous parameters of the lamp bead and incorporated into the frame control data. In this way, the luminous 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.

[0068] In this embodiment, by acquiring the corresponding lamp layout of the ambient lighting device's light chain, including the spatial position information of the lamps within the planar layout space and the serial position information within the light chain, the specific position and order of each lamp can be accurately identified. The accuracy and completeness of the lamp layout information can be ensured through automated scanning or manual measurement. Precisely acquiring the lamp layout enables the brightness, color, and dynamic effects of each lamp to be adjusted based on their specific position and order, creating a richer and more dynamic visual experience.

[0069] According to the correspondence between the lamp bead layout and the spatial position information of the lighting effect image frame to be played, the lighting effect image frame is converted into frame control data. The frame control data 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 beads, 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 precisely 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.

[0070] 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:

[0071] Step S7100: Control the white channel of each lamp bead in the ambient light device to emit light independently, and obtain the actual color temperature value corresponding to each white channel operating at its maximum rated power;

[0072] 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. The control unit individually activates the white channels in all lamp beads of the ambient light device to operate at the maximum rated power. In this embodiment, the white channel of each lamp bead is illuminated one by one at its maximum rated power, and the actual color temperature value corresponding to each white channel in the ambient light device is measured at this time. In one embodiment, a measurement environment with uniform light and no interference from other light sources is selected, such as a dark room or a well-controlled light environment. In this measurement environment, the control unit illuminates all white light-emitting elements in the ambient light device at the maximum rated power of each white channel. The color temperature meter is then placed at a certain distance from the lamp bead and measured at the light-emitting area of ​​the ambient light device. The distance is set by those skilled in the art as needed. If the color temperature meter is too close or too far from the ambient light device, a certain error may occur. Read and record the value displayed by the color thermometer during each measurement. 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 luminous state before using the color thermometer to measure.

[0073] Furthermore, to improve the accuracy of the actual color temperature measurement, a 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 to perform an initial measurement and record the reading. The ambient light device is then turned off for a period of time and then turned on again. The measurement process is repeated, and the color thermometer reading for each measurement is recorded. Finally, the average of all the measured color temperature readings is calculated to obtain a comprehensive color temperature value, which serves as the actual color temperature value of the white channel when emitting light at the maximum rated power. Alternatively, a color thermometer that supports continuous readings can be selected. After the white light-emitting element is stably emitting light, the color thermometer's continuous readings over a certain period of time are recorded, and the average of these readings is calculated as the actual color temperature value of the white channel when emitting light at the maximum rated power. The corresponding actual color temperature values ​​of the remaining white channels are measured in the same way.

[0074] In another embodiment, in the measurement environment of the previous embodiment, a luminance meter is used to measure the brightness value of each white channel. By lighting the white channel of each lamp bead at the maximum rated power, the luminance meter is placed at an appropriate distance from the atmosphere light device, wherein the distance between the luminance meter and the atmosphere light device is set as needed by those skilled in the art to ensure that the built-in sensor of the luminance meter can accurately receive the light emitted by the atmosphere light device, and the luminance meter is used to measure the brightness value of the white channel and record the reading. 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 luminance 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 and then turned on again, the measurement process is repeated, and the luminance meter reading for each measurement is recorded. Finally, the average value of all the measured brightness readings is calculated to obtain a comprehensive brightness value, which serves as the benchmark brightness value of the white channel measured at the maximum rated power.

[0075] In another embodiment, a colorimeter is used to determine the actual color temperature and brightness of each white channel in the ambient light device when emitting light at maximum rated power. First, in an environment with uniform lighting and no interference, such as a darkroom, the colorimeter is placed at an appropriate distance and aimed at the luminous area. The ambient light device is turned on to its maximum rated power, and all white light-emitting elements are controlled to emit light one by one. After the lamp beads are stably emitting light, the colorimeter measures and records the chromaticity coordinates (x, y) of each light source. At this point, 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 the value is displayed on the colorimeter's display. At the same time, the colorimeter can directly measure the brightness value of the light emitted by the ambient light device, that is, the brightness value of the white channel in the ambient light device.

[0076] Step S7200: determining the color value of each primary color channel corresponding to the target color temperature value according to a preset mapping relationship;

[0077] A mapping relationship between the target color temperature value and the corresponding color value of each primary color channel is pre-determined. This mapping relationship can be flexibly set. In one embodiment, the mapping relationship can be expressed as a mapping relationship table. This mapping relationship can be based on experimental data, theoretical calculations, or learning through a neural network model. The mapping relationship generally describes how to convert a specific color temperature value into the corresponding RGB (red, green, and blue) color value. First, a target color temperature value is determined. This target color temperature value can be determined based on user preferences and environmental requirements. In another embodiment, the mapping relationship can be expressed as a conversion formula, which is used to convert the target color temperature value into the color value of each primary color channel (such as the 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 easy to understand that after the mapping relationship is determined in advance, given a target color temperature value, the corresponding color value of each primary color channel can be determined based on this mapping relationship.

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

[0079] 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 by the control unit to achieve 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 achieve 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.

[0080] In this embodiment, a pre-set mapping relationship, whether based on experimental data, theoretical calculations, or obtained through neural network learning, can ensure that the ambient light device is quickly and accurately adjusted to the desired color temperature. Through a 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 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 white balance calibration is achieved.

[0081] 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:

[0082] Step S7110: 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;

[0083] In this step, because 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 one by one 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 the 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 accepted 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, the results of multiple measurements performed under the same conditions are highly consistent and repeatable, thereby improving the accuracy and reliability of the measurement results.

[0084] Step S7120: Determine the chromaticity coordinates corresponding to the white channel of each lamp bead when emitting light at the maximum rated power using a colorimeter connected to the integrating sphere.

[0085] Those skilled in the art can determine the chromaticity coordinates of the light emitted by the white light-emitting elements by connecting a colorimeter to an integrating sphere. A colorimeter can analyze the color characteristics of a light source, including its chromaticity coordinates. By aligning the colorimeter's measurement port or probe with the interior of the integrating sphere—that is, placing the colorimeter's receiving end within the integrating sphere—when the ambient light device is positioned at the center of the integrating sphere and all white light-emitting elements are illuminated at maximum rated power, the colorimeter receives the light from the white light-emitting elements in the ambient light device, analyzes the color characteristics of the received light, and determines the corresponding chromaticity coordinates, typically expressed as (x, y) coordinates on the CIE 1931 chromaticity diagram. The chromaticity coordinates are determined based on the spectral distribution of the light source and reflect its color characteristics. This method allows for accurate determination of the chromaticity coordinates of the light emitted by all white light-emitting elements in the ambient light device when operating at maximum rated power.

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

[0087] 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 color temperature is calculated by the CIE formula , find the value of n and insert 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 a color temperature conversion tool. The blackbody locus is the chromaticity coordinate locus of light emitted by an ideal blackbody at different temperatures, and the blackbody locus appears as a curve on the CIE chromaticity diagram. In this way, the actual color temperature value of all white light-emitting elements in the ambient light device when emitting light at the maximum rated power can be accurately obtained. The color temperature value is a measure that describes 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 ambient light device when all white light-emitting elements are lit at the maximum rated power.

[0088] In this embodiment, by placing the ambient light device at the center of the integrating sphere and lighting all white light-emitting elements at the maximum rated power, the high-reflectivity diffuse reflective material inside the integrating sphere causes the light to be evenly scattered within 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 detailed analysis of the color characteristics of the light source and quantification of these color characteristics as chromaticity coordinates. The actual color temperature value of the ambient light device when all white light-emitting elements are lit at the maximum rated power is then calculated by converting the chromaticity coordinates. 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.

[0089] Based on any embodiment of the method of this application, please refer to Figure 6 , using a colorimeter connected to an integrating sphere, determine the corresponding chromaticity coordinates of the white channel of each lamp bead when emitting light at its maximum rated power, including:

[0090] Step S7121: Acquire chromaticity coordinate data collected by multiple colorimeters evenly distributed in the integrating sphere;

[0091] First, multiple colorimeters are evenly distributed within the integrating sphere to collect chromaticity coordinate data for the light emitted by the ambient lighting device's white light-emitting components. Because light within the integrating sphere is evenly scattered by the highly reflective diffuse reflective material, placing colorimeters at different locations ensures consistent light received from all directions. This avoids local deviations that may occur at a single measurement point, resulting in a more comprehensive reflection of the color characteristics of the lamp's light. When the ambient lighting device is positioned at the center of the integrating sphere and all white light-emitting components are illuminated at maximum rated power, each colorimeter independently receives and analyzes the light emitted by the ambient lighting device's white light-emitting components. The colorimeter measures and records the chromaticity coordinate data for its respective location, typically expressed as (x, y) coordinates on the CIE 1931 chromaticity diagram. By collecting measurement data from all colorimeters distributed within the integrating sphere, a comprehensive, multi-point chromaticity coordinate distribution is obtained, enhancing the accuracy and representativeness of the measurement results. This chromaticity coordinate data is used for further analysis, such as determining the actual color temperature.

[0092] Step S7122: pre-processing the chromaticity coordinate data collected by the multiple colorimeters;

[0093] The raw chromaticity coordinate data collected by a colorimeter may contain noise or outliers, requiring data preprocessing to purify and standardize the data. Specifically, data preprocessing typically involves checking for and removing or correcting possible erroneous data or outliers. For example, in this embodiment, this involves identifying and processing chromaticity coordinates outside the expected range, or eliminating unreliable data points due to equipment failure or environmental interference. At the same time, it is necessary to 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 provided data is accurate and consistent. In addition, the chromaticity coordinate data needs to be converted to a unified scale to facilitate subsequent analysis. Specifically, the data is scaled to a standard range or standardized using statistical methods such as z-score. Finally, interpolation is performed between data points to fill in possible missing values ​​or discontinuous areas, thereby obtaining a complete data set. Through these preprocessing steps, the quality of the chromaticity coordinate data can be ensured, providing a reliable foundation for the subsequent calculation of color temperature values.

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

[0095] First, the preprocessed chromaticity coordinate data is obtained and the arithmetic mean of each chromaticity coordinate element (typically the x and y coordinates on the CIE 1931 chromaticity diagram) is calculated. Specifically, the x-coordinate values ​​collected by all colorimeters are added together and divided by the total number of data points to obtain the arithmetic mean of the x-coordinate. Similarly, the y-coordinate values ​​are added together and divided by the total number of data points to obtain the arithmetic mean of the y-coordinate. These calculated arithmetic means are combined to form new chromaticity coordinates. These chromaticity coordinates are derived by comprehensively considering the data from all measurement points and therefore better reflect the overall color characteristics of the white light-emitting element in the ambient lighting device when emitting at its maximum rated power. These new chromaticity coordinates are used for further analysis, such as determining the actual color temperature using a color temperature conversion formula or tool. Implementing this step improves the accuracy and reliability of the measurement results.

[0096] 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 data accuracy and availability. A comprehensive chromaticity coordinate is then 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.

[0097] 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:

[0098] 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;

[0099] The mapping relationship between the target color temperature value and the color value of each primary color channel can be pre-set. In this embodiment, the target color temperature value is partitioned to constrain the mapping relationship between the target color temperature value and the color value of each primary color channel in different color temperature intervals. First, the color temperature interval in which the target color temperature value falls is determined. This interval is bounded by two color temperature endpoints (a minimum color temperature endpoint and a maximum color temperature endpoint). Then, the offset range of the target color temperature value relative to the minimum color temperature endpoint is calculated, i.e., the difference between the target color temperature value and the minimum color temperature endpoint. Then, the color temperature range is calculated, i.e., the difference between the maximum color temperature endpoint and the minimum color temperature endpoint. Finally, the ratio of the offset range to the color temperature range is calculated, i.e., the range ratio. This represents the relative position of the target color temperature value within the color temperature interval. For example, the color temperature interval in which the target color temperature value of 1050K falls is 1000K to 1200K. That is, the color temperature range is 1200 - 1000 = 200, and the offset range of the color temperature range is 1050 - 1000 = 50. 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 offset range and the color temperature range.

[0100] Step S7220: Determine the color value difference of each primary color channel corresponding to the 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;

[0101] 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 the color value of each corresponding primary color channel measured when the color temperature value is adjusted to reach the target color temperature value under the condition that all white light-emitting elements of the ambient light device are lit at the maximum rated power. The mapping relationship between the color temperature end value and the color value of each corresponding 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 respectively calculated, and then each difference is multiplied by the stroke ratio calculated in the previous step to obtain the color value increment of each primary color channel. The color value increment represents the color value change from the minimum color temperature end value to the target color temperature value.

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

[0103] The color value of each primary color channel corresponding to the minimum color temperature end value is determined by the mapping relationship between the preset minimum color temperature end value and the corresponding color value of each 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.

[0104] 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 subsequent color value adjustments. 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 ambient light 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.

[0105] 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:

[0106] 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;

[0107] In one embodiment, the updated frame control data is compressed based on a preset algorithm to reduce data volume and optimize transmission efficiency. The preset algorithm can use lossless compression (such as LZ77 or Huffman coding), lossy compression (such as quantization or transform coding), 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, such as a frame header and a frame trailer, is added to each data segment. The frame header typically includes information such as data length and data type, while the frame trailer may contain an end marker or checksum information. In addition, a checksum, such as a CRC (cyclic redundancy check), is generated to verify whether errors occurred during data transmission. After compression and identification, the lighting effect control data is sent to the light chain via a control interface protocol (such as DMX512, DALI, or WS2812).

[0108] Step S5420: each lamp bead in the lamp chain parses the lighting effect control data to obtain the frame control data, extracts the luminous parameters whose sorting order is consistent with the serial position information of the lamp bead itself, and controls the luminous 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 luminous parameters, so as to realize the coordinated playback of corresponding lighting effects by each lamp bead.

[0109] 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. The frame control data is then parsed out, and each lamp bead will parse out the corresponding luminous parameters based on 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.

[0110] 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 based on 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.

[0111] See also Figure 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. Another aspect of the device, provided to meet one of the purposes of the present application, includes 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. The adjustment factor determination module 5100 is configured to determine, based on the brightness value of the white channel corresponding to each lamp bead in the frame control data of the ambient light device, the ratio between the brightness value and the maximum brightness value of the white channel as an adjustment factor. The actual compensation value determination module 5200 is configured to determine the actual compensation value corresponding to the primary color channel of each lamp bead in the ambient light device based on the preset color compensation value and the corresponding adjustment factor. 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 ambient light device based on 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.

[0112] It also includes: a lamp bead layout acquisition submodule, which is configured to obtain the lamp bead layout corresponding to the lamp chain of the atmosphere lamp device, and the lamp bead layout includes the spatial position information of each lamp bead 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 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.

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

[0114] 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 lamp device at the center of the integrating sphere, and control the corresponding white channel 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; and 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.

[0115] 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; and a chromaticity coordinate average value calculation submodule, configured to determine the arithmetic average value of each element in the chromaticity coordinate data based on the preprocessed chromaticity coordinate data, and combine the calculated arithmetic average values ​​to form new chromaticity coordinates for subsequent determination of the actual color temperature value of the light source emitted by each white channel.

[0116] 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 range 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 range, 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.

[0117] Based on 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; and a light-emitting element lighting control submodule, 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 achieve the coordinated playback of corresponding lighting effects by each lamp bead.

[0118] In order to solve the above technical problems, the embodiment of the present application also provides a computer device. Figure 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. 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 may 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 may 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 will understand that Figure 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 shown in the figure, or combine certain components, or have a different component arrangement.

[0119] In this embodiment, the processor is used to execute Figure 9 The memory stores the program code and various data required to execute the modules and submodules in the white balance calibration device. The network interface is used to transmit data between user terminals and servers. The memory in this embodiment stores the program code and data required to execute all modules and submodules in the white balance calibration device of this application. The server can call the server's program code and data to execute the functions of all submodules.

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

[0121] Those skilled in the art will appreciate that all or part of the processes in the above-described embodiments of the present application can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes in the above-described embodiments of the method. The aforementioned storage medium can be a computer-readable storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0122] Those skilled in the art will understand that the various operations, methods, steps, measures, and schemes in the processes discussed in this application may be interchanged, changed, combined, or deleted. Furthermore, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be interchanged, 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 disclosed in this application may also be interchanged, changed, rearranged, decomposed, combined, or deleted.

[0123] The above description is only part of the implementation methods 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: 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 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 record the corresponding color compensation value of each primary color 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, 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 1, 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.

4. The white balance calibration method according to claim 3, 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.

5. The white balance calibration method according to claim 1, characterized in that: Determining the color value of each primary color channel corresponding to the target color temperature value according to a preset mapping relationship includes: 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.

6. The white balance calibration method according to any one of claims 1 to 5, 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.

7. A white balance calibration device, characterized in that: include: The actual color temperature value acquisition submodule is configured to control the white channel 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, 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 is configured to adjust the color value of each primary color channel of each lamp bead in the light chain to a color value corresponding to a 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; 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.

8. 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 6 to control the atmosphere light device to calibrate the white balance.

9. 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 6 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.