CN114813582A - RGB-LEDs atmosphere lamp calibration method and device - Google Patents

RGB-LEDs atmosphere lamp calibration method and device Download PDF

Info

Publication number
CN114813582A
CN114813582A CN202210332219.6A CN202210332219A CN114813582A CN 114813582 A CN114813582 A CN 114813582A CN 202210332219 A CN202210332219 A CN 202210332219A CN 114813582 A CN114813582 A CN 114813582A
Authority
CN
China
Prior art keywords
color
rgb
calibration
lamp
leds
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210332219.6A
Other languages
Chinese (zh)
Inventor
黄琪瑞
张彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU DEMUP AUTOMOBILE PARTS CO Ltd
Original Assignee
GUANGZHOU DEMUP AUTOMOBILE PARTS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGZHOU DEMUP AUTOMOBILE PARTS CO Ltd filed Critical GUANGZHOU DEMUP AUTOMOBILE PARTS CO Ltd
Priority to CN202210332219.6A priority Critical patent/CN114813582A/en
Publication of CN114813582A publication Critical patent/CN114813582A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/251Colorimeters; Construction thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations

Abstract

The embodiment of the application discloses a method and a device for calibrating RGB-LEDs atmosphere lamps; the method comprises the following steps: controlling the lighting of the atmosphere lamp and collecting color data of the atmosphere lamp, wherein the color data comprises RGB duty ratio, color coordinates and brightness of a lamp holder; calibrating the RGB value of the color coordinate according to a preset calibration rule by analyzing and calculating the collected color data; sending the calibration data to the lamp head to complete the calibration of the color; the embodiment of the application realizes automatic calibration, and is high in calculation efficiency and strong in expansibility.

Description

RGB-LEDs atmosphere lamp calibration method and device
Technical Field
The embodiment of the application relates to the technical field of color calibration of automotive atmosphere lamps, in particular to a method and a device for calibrating RGB-LEDs atmosphere lamps.
Background
With the continuous development of automotive electronics, the application of automotive atmosphere lamps is more and more extensive, but due to the influence factors such as the material and the service life of the atmosphere lamps, the color difference exists in the process of lightening the color by using the same set of primary colors in proportion, so that the color coordinates are not uniform.
The vehicle-mounted atmosphere lamp is continuously popularized, the requirement of color consistency of various automobile manufacturers on the lighting of the atmosphere lamp is continuously improved, for example, the atmosphere lamp is detected for 30 colors when leaving a factory by taking the public as an example, the deviation value of the colors is calculated, and the deviation value is delta under the CIE1976 evaluation system u',v' If not, the atmosphere lamp is unqualified, so that the atmosphere lamp needs to be accurately calibrated before leaving a factory to prevent color fadingThe situation that the color consistency deviation is large is generated, so that the vehicle-mounted atmosphere lamp cannot smoothly enter the market.
Most of the problems of solving the color consistency in the current market are calibrated for a single atmosphere lamp through an integrating sphere, although the calibration precision is higher, the efficiency is lower, the method is not suitable for large-batch atmosphere lamp color consistency checking and calibration work, the expandability of the functions of most of the current solutions is insufficient, the functions of the whole calibration system device cannot be updated easily, and the iteration capability is lacked.
The LIN communication consistency test in the current market is mainly based on professional test equipment and software, manual wiring and supervision are needed, and the automation degree is low.
Disclosure of Invention
The embodiment of the application provides a method and a device for calibrating RGB-LEDs atmosphere lamps, and aims to solve the problems that the existing atmosphere lamp calibration is low in calculation efficiency, insufficient in expansibility and low in automation degree.
In a first aspect, embodiments of the present application provide a method for calibrating RGB-LEDs atmosphere, the method comprising the steps of:
controlling the lighting of the atmosphere lamp and collecting color data of the atmosphere lamp, wherein the color data comprises RGB duty ratio, color coordinates and brightness of a lamp holder;
calibrating the RGB value of the color coordinate according to a preset calibration rule by analyzing and calculating the collected color data;
the calibration data is sent to the lighthead to complete the calibration of the color.
Further, the controlling the lighting of the atmosphere lamp and collecting the color data of the atmosphere lamp includes:
and sending a mechanical walking instruction to an automatic mechanical device to control a motor to drive a mechanical shaft so as to collect color data of the atmosphere lamp.
Further, the calibrating the RGB values of the color coordinates according to a preset calibration rule by analyzing and calculating the collected color data includes:
collecting RGB value and color coordinate (x, y) of specific color output to the lamp holder by a color analyzer, and according to a chromaticity space and a color difference formula:
Figure BDA0003575454550000021
Figure BDA0003575454550000022
calculating Delta u',v' If Δ is u',v' If the color coordinate is larger than the preset value, color calibration is needed, and the color coordinate with deviation is compensated through an algorithm so as to calibrate the RGB value of the color coordinate.
Further, before calibrating the RGB values of the color coordinates according to a preset calibration rule by analyzing and calculating the collected color data, the method further includes:
returning chromaticity coordinates of RGB three primary colors through a color analyzer, and generating a light mixing proportion of the color to be detected according to a light mixing principle;
the maximum brightness RGB value is used when the three primary colors are lighted, and in the light mixing process, the coefficient of the light mixing proportion needs to output the RGB duty ratio of the corresponding color.
Further, the collecting color data of the atmosphere lamp, the color data including duty ratios of RGB, color coordinates of a lamp head, and brightness, includes:
after RGB is collected, entering a linear model calculation stage, wherein the model is obtained by a mixed color superposition principle, the target color is taken as RGB and is obtained by mixing and superposing the RGB according to a certain proportion respectively by utilizing the linear superposition relation of tristimulus values of the representative color, and the proportion of each primary color is the solved initial theoretical PWM duty ratio;
and (3) inversely deducing tristimulus values from the RGB and the target color coordinates to obtain an equation, and solving to obtain the initial theoretical PWM duty ratio corresponding to the RGB channel, wherein the calculation formula is as follows:
Figure BDA0003575454550000031
in the formula, D r ,D g ,D b PWM duty cycles, Y, representing RGB, respectively r ,Y b ,Y g Luminous flux, Y, respectively representing RGB m A luminous flux that is a mixed light;
from the above equation, the chromaticity coordinates of the target color, the luminous flux, and the color coordinates and luminous flux of RGB at a duty ratio of 1 are known, and the duty ratio of RGB is calculated by reverse estimation.
Further, the sending the calibration data to the lamp head to complete the calibration of the color comprises:
and returning the calibration values of RGB corresponding to the color coordinates to the corresponding lamp holder through the LIN bus by the bus adapter so as to finish the color calibration.
Further, after the sending the calibration data to the lamp head to complete calibration of the color, the method further includes:
writing the intermediate data of the calibration process, such as the new duty ratio and the rechecking result obtained by calculation, into an Excel file and displaying the Excel file in a control system software interface;
and sending a reset instruction or a position moving instruction to the motor controller according to whether the current atmosphere lamp is the last atmosphere lamp on the lamp panel, and sending position moving success to control system software after the motor moves position successfully.
In a second aspect, embodiments of the present application further provide an RGB-LEDs atmosphere lamp calibration apparatus, including: control system software, automatic mechanical device and chromaticity calibration module
The control system software is used for controlling the lighting of the atmosphere lamp and controlling the automatic mechanical device to collect color data of the atmosphere lamp, wherein the color data comprise RGB duty ratio, color coordinate and brightness of the lamp holder;
the control system software is also used for controlling the chromaticity calibration module to analyze and calculate the collected color data and calibrate the RGB value of the color coordinate according to a preset calibration rule;
the chromaticity calibration module is used for sending calibration data to the lamp head to complete the calibration of the color.
In a third aspect, an embodiment of the present application further provides a computer device, including: a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a RGB-LEDs mood scaling method as described above.
In a fourth aspect, embodiments of the present application also provide a storage medium containing computer-executable instructions for performing a RGB-LEDs mood calibration method as described above when executed by a computer processor.
The method comprises the steps of controlling the lighting of the atmosphere lamp and collecting color data of the atmosphere lamp, wherein the color data comprise RGB duty ratio, color coordinates and brightness of a lamp holder; calibrating the RGB value of the color coordinate according to a preset calibration rule by analyzing and calculating the collected color data; sending the calibration data to the lamp head to complete the calibration of the color; automatic calibration is realized, the calculation efficiency is high, and the expansibility is strong.
Drawings
FIG. 1 is a flow chart of a RGB-LEDs mood light calibration method provided in an embodiment of the present application;
FIG. 2 is a software flow diagram of a workflow control system for a RGB-LEDs mood light calibration method according to an embodiment of the present application;
FIG. 3 is a software control flow diagram of a RGB-LEDs mood light calibration method provided in an embodiment of the present application;
FIG. 4 is a system architecture diagram of an RGB-LEDs atmosphere lamp calibration device provided in an embodiment of the present application;
FIG. 5 is a diagram of an automated mechanical hardware architecture of an RGB-LEDs atmosphere lamp calibration device according to an embodiment of the present application;
FIG. 6 is a diagram of a chromaticity calibration module of an RGB-LEDs atmosphere lamp calibration device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The embodiment of the application establishes a set of RGB-LEDs atmosphere lamp calibration method to solve the problems that the existing atmosphere lamp calibration is low in calculation efficiency, insufficient in expansibility and low in automation degree.
The RGB-LED atmosphere lamp calibration method provided in the embodiments may be implemented by a RGB-LED atmosphere lamp calibration apparatus, which may be implemented in software and/or hardware, and integrated into a RGB-LED atmosphere lamp calibration device. The RGB-LEDs atmosphere lamp calibration equipment can be equipment such as a computer.
FIG. 1 is a flowchart of an RGB-LEDs ambient light calibration method according to an embodiment of the present disclosure. Referring to fig. 1 to 3, the method includes the steps of:
and step 110, controlling the lighting of the atmosphere lamp and collecting color data of the atmosphere lamp, wherein the color data comprises RGB duty ratio, color coordinate and brightness of the lamp holder.
Specifically, a mechanical walking instruction is sent to an automatic mechanical device to control a motor to drive a mechanical shaft so as to collect color data of the atmosphere lamp.
Specifically, after RGB is collected, a linear model calculation stage is carried out, the model is obtained by a mixed color superposition principle, the linear superposition relation is realized by utilizing tristimulus values of the representation colors, the target color is regarded as RGB and is respectively obtained by mixing and superposing the RGB according to a certain proportion, and the proportion of each primary color is the calculated initial theoretical PWM duty ratio; and (3) inversely deducing tristimulus values from the RGB and the target color coordinates to obtain an equation, and solving to obtain the initial theoretical PWM duty ratio corresponding to the RGB channel, wherein the calculation formula is as follows:
Figure BDA0003575454550000051
in the formula, D r ,D g ,D b PWM duty cycles, Y, representing RGB, respectively r ,Y b ,Y g Luminous flux, Y, respectively representing RGB m A luminous flux that is a mixed light;
from the above equation, the chromaticity coordinates of the target color, the luminous flux, and the color coordinates and luminous flux of RGB at a duty ratio of 1 are known, and the duty ratio of RGB is calculated by reverse estimation.
And 120, calibrating the RGB value of the color coordinate according to a preset calibration rule by analyzing and calculating the collected color data.
Specifically, chromaticity coordinates of RGB three primary colors are returned through a color analyzer, and a light mixing proportion of a color to be detected is generated according to a light mixing principle; the maximum brightness RGB value is used when the three primary colors are lit, and in the light mixing process, the coefficient of the light mixing proportion needs to output the RGB duty ratio of the corresponding color.
Collecting RGB value and color coordinate (x, y) of specific color output to the lamp holder by a color analyzer, and according to a chromaticity space and a color difference formula:
Figure BDA0003575454550000061
Figure BDA0003575454550000062
calculating Delta u',v' If Δ is u',v' If the color coordinate is larger than the preset value, color calibration is needed, and the color coordinate with deviation is compensated through an algorithm so as to calibrate the RGB value of the color coordinate.
Step 130, sending the calibration data to the lamp head to complete the calibration of the color.
Specifically, through the bus adapter, the calibration values of RGB corresponding to the color coordinates are returned to the corresponding lamp caps through the LIN bus to complete the color calibration.
Writing the intermediate data of the calibration process, such as a new duty ratio and a recheck result obtained by calculation, into an Excel file and displaying the Excel file in a control system software interface; and sending a reset instruction or a position moving instruction to the motor controller according to whether the current atmosphere lamp is the last atmosphere lamp on the lamp panel, and sending position moving success to control system software after the motor moves position successfully.
Illustratively, all modules of the device are connected, a lamp panel of the atmosphere lamp to be calibrated is placed in a placing area, the system is powered on, and ports corresponding to all devices are selected in control system software and connected.
The whole calibration process is initiated by control system software, the process can refer to a control system software flow chart of fig. 4, the control system software is opened, and calibration configuration data including target color coordinates, error requirements and the like are filled; and filling in mechanical axis displacement data including the size of the lamp panel, initial position coordinates and the space between atmosphere lamps on the lamp panel.
After the configured data are sent, the chromaticity calibration is started, the control system software sends a position moving instruction to the motor controller, the motor controller controls the motor controllers of the five shafts to drive the mechanical shafts to return to the original points according to the control system software instruction, whether the mechanical shafts return to zero or not is sensed at the original points of the mechanical shafts through the photoelectric modules, the mechanical shaft zero returning motor control module can automatically stop the movement of the motor, the control system software sends the position moving instruction after receiving the position moving instruction, the motor controller outputs a position signal to an STM32 industrial board, and after the position moving instruction is detected by the STM32, the position moving information of the motor is transmitted to the control system software through the serial ports.
When the mechanical shaft is successfully moved, firstly, LIN data link layer test is carried out, control system software sends various types of frames specified by LIN communication protocol standard to a sample piece to be tested by executing a series of test scripts, and then whether the sample piece to be tested is fed back normally is checked and compared, if the feedback is normal, the color calibration process is continued, otherwise, error information is reported.
And then, starting to collect three-primary-color information of the sample to be detected, controlling system software to send an LIN frame to light the atmosphere lamp at the stage, sending an instruction for obtaining color coordinates to a color analyzer through a serial port, returning the color coordinate information in a fixed format by the color analyzer, calibrating the analysis data frame of the control plate and obtaining the three-primary-color coordinates, and ending the three-primary-color collection.
And after the three primary colors are collected, entering a linear model calculation stage, wherein the model is obtained by a mixed color superposition principle, the target color is regarded as the three primary colors and is respectively obtained by mixing and superposing the three primary colors according to a certain proportion by utilizing the linear superposition relation of tristimulus values representing the colors, and the proportion of each primary color is the required initial theoretical PWM duty ratio. And (3) inversely deducing tristimulus values from the coordinate of the three primary colors and the target color to obtain an equation, and solving to obtain the initial theoretical PWM duty ratio corresponding to the three primary color channel, wherein the calculation formula is as follows:
Figure BDA0003575454550000071
in the formula D r ,D g ,D b Respectively representing the PWM duty cycles of the three primary colors, Y r ,Y b ,Y g Respectively representing the luminous flux of three primary colors, Y m For the light flux of the mixed light, the chromaticity coordinate, the light flux, the color coordinate of the three primary colors when the duty ratio is 1, and the light flux of the target color are known according to the above formula, and the duty ratios of the three primary colors can be calculated by reverse extrapolation.
After the calibration calculation is completed, the re-inspection and error feedback regulation are started, and the communication module at the stage sequentially lights the target color of the atmosphere lamp through LIN communication and communicates through serial portsAcquiring the actual color coordinates of the atmosphere lamp from the color analyzer, and if the difference between the actual color coordinates and the target color coordinates is in the error requirement (delta) u',v' 0.0055), otherwise, in a linear compensation mode, determining a target color coordinate of a test result with deviation incapable of meeting the requirement again towards the target color direction, calculating the three-primary-color duty ratio, repeating the processes of lighting and collecting until the cycle number reaches a set upper limit or the calibration error meets the requirement, and thus finishing the calibration of the single atmosphere lamp.
After the calibration of a single atmosphere lamp is finished, the control system software writes the intermediate data of the calibration process into an Excel file such as a new duty ratio and a rechecking result obtained by calculation and displays the Excel file in a control system software interface, then the control system software selects to send a reset instruction or a walking instruction to the motor controller according to whether the current atmosphere lamp is the last atmosphere lamp on the lamp panel, and sends the walking success to the control system software after the motor walks successfully, so that the whole calibration process is finished.
Based on the above embodiments, fig. 4 is a schematic structural diagram of an RGB-LEDs atmosphere lamp calibration apparatus provided in this embodiment. Referring to fig. 4 to fig. 6, the RGB-LEDs atmosphere lamp calibration apparatus provided in this embodiment specifically includes: control system software, an automatic mechanical device and a chromaticity calibration module.
The control system software adopts python and Qt to realize a user interface UI, integrates LIN communication, 485 communication, network communication and file reading and writing functions, and realizes logic control on chromaticity calibration and mechanical axis displacement, and a flow chart is shown in figure 2.
The structure of the automatic mechanical device is shown in fig. 6, the USB is converted into a 485 communication converter and an STM32 industrial board, the control mode is that control system software sends a control command to a motor driver through a 485 bus to complete functions of walking position control, motor configuration, motor state reading and the like, and the STM32 industrial board receives a motor in-position signal output by a motor controller and informs the control system software.
The hardware part of the automatic mechanical device is shown in fig. 5 and comprises five mechanical shafts, and a motor driver for driving the mechanical shafts, wherein each mechanical shaft is provided with a slide rail for moving related components, and the reset position of each slide rail is provided with a limit switch which informs a control module whether the components reach the original position or not through a limit signal; the five mechanical axes are an X1 axis 11, an X2 axis 12, a Z1 axis 13, a Z2 axis 14 and a Y axis 15 respectively, wherein a Z-axis sliding rail is used for carrying an atmosphere lamp three-pin interface and a color analyzer probe and is used for moving the atmosphere lamp interface and the color analyzer probe to ascend and descend so as to connect the atmosphere lamp and capture the color; the atmosphere lamp comprises an X1 shaft, an X2 shaft slide rail, a Z1 shaft slide rail, a Z2 shaft slide rail and a motor, wherein the X1 shaft, the X2 shaft slide rail, the Z2 shaft slide rail and the motor are used for moving an atmosphere lamp interface and a color analyzer probe to horizontally move on an atmosphere lamp panel; y axle slide rail carries on the atmosphere lamp plate for with atmosphere lamp plate horizontal longitudinal movement to atmosphere lamp interface and colour analysis appearance probe below.
The chromaticity calibration module is configured as shown in fig. 6 and comprises a calibration algorithm and a color analyzer, wherein the calibration algorithm is implemented at a PC end by using python and is used for calculating the actually required duty ratio of a target color according to the three primary color coordinates of an atmosphere lamp and a rechecking result, and a software flow chart is shown in fig. 3;
the color analyzer of the calibration control board of the chromaticity calibration module is a photoelectric color analyzer, the analyzer captures the light lightened by the atmosphere lamp through a probe and converts the light into CIEYxy color coordinates through calculation, an external device can communicate with the external device through two communication modes of a Universal Serial Bus (USB) and an RS232 to obtain the CIEYxy color coordinates, RS232 communication is adopted in the system, and the chromaticity calibration module sends corresponding instructions, for example 001r _ Yxy01-02\ r \ n', namely the Yxy coordinates of the atmosphere lamp color captured by the probe 1 and the probe 2 in a CIE space are received simultaneously.
The control system software is used for controlling the lighting of the atmosphere lamp and controlling the automatic mechanical device to collect color data of the atmosphere lamp, wherein the color data comprise RGB duty ratios, color coordinates and brightness of the lamp head; the control system software is also used for controlling the chromaticity calibration module to analyze and calculate the collected color data and calibrate the RGB value of the color coordinate according to a preset calibration rule; the chromaticity calibration module is used for sending calibration data to the lamp head to complete the calibration of the color.
Controlling the lighting of the atmosphere lamp and collecting color data of the atmosphere lamp, wherein the color data comprises RGB duty ratio, color coordinate and brightness of the lamp holder; calibrating the RGB value of the color coordinate according to a preset calibration rule by analyzing and calculating the collected color data; sending the calibration data to the lamp head to complete calibration of the color; automatic calibration is realized, the calculation efficiency is high, and the expansibility is strong.
The RGB-LEDs atmosphere lamp calibration apparatus provided in the embodiment of the present application can be used to perform the RGB-LEDs atmosphere lamp calibration method provided in the above embodiment, and has corresponding functions and beneficial effects.
The embodiment of the application also provides computer equipment which can be integrated with the RGB-LEDs atmosphere lamp calibration device provided by the embodiment of the application. Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application. Referring to fig. 7, the computer apparatus includes: an input device 43, an output device 44, a memory 42, and one or more processors 41; the memory 42 for storing one or more programs; when executed by the one or more processors 41, cause the one or more processors 41 to implement the RGB-LEDs mood calibration method as provided in the embodiments above. Wherein the input device 43, the output device 44, the memory 42 and the processor 41 may be connected by a bus or other means, for example, in fig. 6.
The processor 41 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the memory 41, namely, the RGB-LEDs atmosphere lamp calibration method described above is realized.
The computer apparatus provided above can be used to execute the RGB-LEDs atmosphere lamp calibration method provided in the above embodiments, and has corresponding functions and advantages.
Embodiments of the present application also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, perform a RGB-LEDs mood calibration method, the RGB-LEDs mood calibration method comprising: by acquiring the 5G internet log ticket information of the complaint user; acquiring KPI (Key performance indicator) of the complaint user in each process according to the 5G internet log ticket information, and judging whether the KPI is poor or not; performing cluster analysis on the quality difference KPI indexes; and outputting an analysis conclusion of the complaint user tracing delimitation.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer device memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbus (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer apparatus in which the program is executed, or may be located in a different second computer apparatus connected to the first computer apparatus through a network (such as the internet). The second computer device may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer devices that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the embodiments of the present application provide a storage medium containing computer-executable instructions, which are not limited to the RGB-LEDs ambient light calibration method described above, but can also perform related operations in the RGB-LEDs ambient light calibration method provided in any of the embodiments of the present application.
The RGB-LEDs ambient lamp calibration apparatus, the storage medium and the computer device provided in the above embodiments may perform the RGB-LEDs ambient lamp calibration method provided in any of the embodiments of the present application, and refer to the RGB-LEDs ambient lamp calibration method provided in any of the embodiments of the present application without detailed technical details described in the above embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. A method for RGB-LEDs ambiance lighting calibration, the method comprising the steps of:
controlling the lighting of the atmosphere lamp and collecting color data of the atmosphere lamp, wherein the color data comprises RGB duty ratio, color coordinates and brightness of a lamp holder;
calibrating the RGB value of the color coordinate according to a preset calibration rule by analyzing and calculating the collected color data;
the calibration data is sent to the lighthead to complete the calibration of the color.
2. The RGB-LEDs ambient lamp calibration method of claim 1, wherein said controlling the lighting of the ambient lamp and collecting color data of the ambient lamp comprises:
and sending a mechanical walking instruction to an automatic mechanical device to control a motor to drive a mechanical shaft so as to collect color data of the atmosphere lamp.
3. The RGB-LEDs mood lamp calibration method according to claim 1, characterized in that the calibration of the RGB values of the color coordinates according to the preset calibration rules by analytical calculation of the collected color data comprises:
collecting RGB value and color coordinate (x, y) of specific color output to the lamp holder by a color analyzer, and according to a chromaticity space and a color difference formula:
Figure FDA0003575454540000011
Figure FDA0003575454540000012
calculating Delta u',v' If Δ is u',v' If the color coordinate is larger than the preset value, color calibration is needed, and the color coordinate with deviation is compensated through an algorithm so as to calibrate the RGB value of the color coordinate.
4. The RGB-LEDs mood lamp calibration method of claim 3, further comprising, before calibrating the RGB values of the color coordinates according to a predetermined calibration rule by analyzing and calculating the collected color data:
returning chromaticity coordinates of RGB three primary colors through a color analyzer, and generating a light mixing proportion of the color to be detected according to a light mixing principle;
the maximum brightness RGB value is used when the three primary colors are lit, and in the light mixing process, the coefficient of the light mixing proportion needs to output the RGB duty ratio of the corresponding color.
5. The RGB-LEDs mood lamp calibration method of claim 1, wherein the collecting color data of the mood lamp, the color data including RGB duty cycle, color coordinates of the lamp head, and brightness, comprises:
after RGB is collected, entering a linear model calculation stage, wherein the model is obtained by a mixed color superposition principle, the target color is taken as RGB and is obtained by mixing and superposing the RGB according to a certain proportion respectively by utilizing the linear superposition relation of tristimulus values of the representative color, and the proportion of each primary color is the solved initial theoretical PWM duty ratio;
and (3) inversely deducing tristimulus values from the RGB and the target color coordinates to obtain an equation, and solving to obtain the initial theoretical PWM duty ratio corresponding to the RGB channel, wherein the calculation formula is as follows:
Figure FDA0003575454540000021
in the formula, D r ,D g ,D b PWM duty cycles, Y, representing RGB, respectively r ,Y b ,Y g Luminous flux, Y, respectively representing RGB m A luminous flux that is a mixed light;
from the above equation, the chromaticity coordinates of the target color, the luminous flux, and the color coordinates and luminous flux of RGB at a duty ratio of 1 are known, and the duty ratio of RGB is calculated by reverse estimation.
6. The RGB-LEDs mood lamp calibration method according to claim 1, wherein said sending calibration data to the lamp head to complete the calibration of the colors comprises:
and returning the calibration values of RGB corresponding to the color coordinates to the corresponding lamp holder through the LIN bus by the bus adapter so as to finish the color calibration.
7. The RGB-LEDs mood lamp calibration method of claim 1, further comprising, after sending calibration data to the lamp head to complete calibration of colors:
writing the intermediate data of the calibration process, such as the new duty ratio and the rechecking result obtained by calculation, into an Excel file and displaying the Excel file in a control system software interface;
and sending a reset instruction or a position moving instruction to the motor controller according to whether the current atmosphere lamp is the last atmosphere lamp on the lamp panel, and sending position moving success to control system software after the motor moves position successfully.
8. An RGB-LEDs atmosphere lamp calibration device, comprising: control system software, automatic mechanical device and chromaticity calibration module
The control system software is used for controlling the lighting of the atmosphere lamp and controlling the automatic mechanical device to collect color data of the atmosphere lamp, wherein the color data comprise RGB duty ratio, color coordinate and brightness of the lamp holder;
the control system software is also used for controlling the chromaticity calibration module to analyze and calculate the collected color data and calibrate the RGB value of the color coordinate according to a preset calibration rule;
the chromaticity calibration module is used for sending calibration data to the lamp head to complete the calibration of the color.
9. A computer device, comprising: a memory and one or more processors;
the memory to store one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a RGB-LEDs mood calibration method as recited in any of claims 1-7.
10. A storage medium containing computer executable instructions for performing a RGB-LEDs mood calibration method as recited in any of claims 1-7 when executed by a computer processor.
CN202210332219.6A 2022-03-31 2022-03-31 RGB-LEDs atmosphere lamp calibration method and device Pending CN114813582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210332219.6A CN114813582A (en) 2022-03-31 2022-03-31 RGB-LEDs atmosphere lamp calibration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210332219.6A CN114813582A (en) 2022-03-31 2022-03-31 RGB-LEDs atmosphere lamp calibration method and device

Publications (1)

Publication Number Publication Date
CN114813582A true CN114813582A (en) 2022-07-29

Family

ID=82533446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210332219.6A Pending CN114813582A (en) 2022-03-31 2022-03-31 RGB-LEDs atmosphere lamp calibration method and device

Country Status (1)

Country Link
CN (1) CN114813582A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117054049A (en) * 2023-08-11 2023-11-14 上海优异达机电有限公司 Calibration equipment and atmosphere lamp calibration production line that adjusts luminance

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117054049A (en) * 2023-08-11 2023-11-14 上海优异达机电有限公司 Calibration equipment and atmosphere lamp calibration production line that adjusts luminance
CN117054049B (en) * 2023-08-11 2024-02-27 上海优异达机电有限公司 Calibration equipment and atmosphere lamp calibration production line that adjusts luminance

Similar Documents

Publication Publication Date Title
KR101230902B1 (en) System for evaluating electronic parts using vehicle simulator
CN114813582A (en) RGB-LEDs atmosphere lamp calibration method and device
CN112731253B (en) Method and system for calibrating and metering serial component capacity detection equipment
CN106053024B (en) A kind of LED light source preference degree prediction technique towards monochromatic system object
CN104113751A (en) display parameter adjusting method and system
CN108806565B (en) Display screen lighting test device and method
CN113126993B (en) Automatic test method and system applied to vehicle detection software
CN112904830A (en) Automatic test equipment of automobile atmosphere lamp control system and control method thereof
CN102467372B (en) One kind measurement resource control system and measurement resource control method
CN109444593B (en) Automatic testing system and method for load-carrying performance of power distribution terminal
CN111413571A (en) Visual electromagnetic field automatic test system and method
CN217981668U (en) Power distribution module test device that rolls off production line
CN208637020U (en) Industry spot sensor test application actual training device
CN214409206U (en) Chip testing system
CN115469160A (en) Screen test method, system and device and electronic equipment
CN114487924A (en) Automatic wiring harness testing equipment and testing method thereof
CN212207567U (en) LED testing device
CN110865041A (en) Soil component content detection intelligent analysis system
CN213937974U (en) Automatic drive car hardware-in-the-loop platform simulation communication testing device
CN110989554A (en) Method for establishing hardware-in-loop test case library of new energy vehicle integrated controller
CN2574591Y (en) Wall hanging type dossier register card public body temperature detecting service device
CN1404792A (en) Colour vision-identification characteristic automatic quantitative testing system
CN220085013U (en) Test system and test clamp jig applied to battery management system
CN217385804U (en) Direct current sensor testing arrangement
CN212229068U (en) Visual electromagnetic field automatic test system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination