Spectrum fitting method, device and system
Through the multi-channel light source fitting the standard color card spectrum, the optimization algorithm is used to adjust the brightness ratio and output the target color light, solving the high cost and high error problems caused by the easy damage of the standard color card and the unevenness of the light source, and achieving low-cost and high-accuracy color matching experiments.
Patent Information
- Application Number
- CN202311787276.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2025-07-01
AI Technical Summary
In the prior art, the use of standard color cards leads to high cost and low accuracy of color matching experiments, mainly due to problems such as easy damage to the color cards, difficulty in precise control of reflective or transmissive brightness, and uneven lighting of standard light sources.
Fit the spectrum of the standard color card through a multi-channel light source, use an optimization algorithm to obtain the target proportion value, adjust the brightness ratio of the light source to output the target color light, and directly compare it with the color matching product to avoid using physical color cards and standard light sources.
The cost of color matching experiments is reduced, the accuracy and consistency of experiments are improved, the errors caused by color card damage and light source unevenness are avoided, and accurate color correction is achieved.
Smart Images

Figure CN120232525A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and particularly to a spectral fitting method, device and system.
Background Art
[0002] The correction of subjective color consistency is one of the pain points in current color calibration. Through color matching experiments, the calibration targets of display screens with different light-emitting characteristics can be dynamically adjusted to achieve subjective consistency. In a color matching experiment, a standard light source (such as a D light source or a blackbody radiation light source, etc.) is used to illuminate a standard color card, and then the color of the standard color card is compared with the color displayed by a color matching product (such as a display device), and the differences are analyzed and adjusted. Since there are many types of standard color cards and they are expensive, and the transmission or reflection brightness of the standard color card is not easy to accurately control, which affects the accuracy of the color matching experiment, resulting in a high cost and low accuracy of the color matching experiment.
Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a spectral fitting method, device and system, which can reduce the cost of color matching experiments and improve the accuracy of color matching experiments.
[0004] In a first aspect, an embodiment of the present invention provides a spectral fitting method, which is applied to a first device, and the method includes:
[0005] Obtain the spectrum of a multi-channel light source;
[0006] Fit the spectrum of the target color in the standard color card according to the spectrum of the multi-channel light source to obtain a target ratio value, where the target ratio value is used for a second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value, so that the second device outputs target color light. In the embodiments of the present application, color matching is performed using a multi-channel light source to achieve the fitting of the spectrum of the target color in the standard color card, so that the multi-channel light source outputs target color light, that is, the spectrum of the fitted target color. The brightness of the light source can be accurately adjusted and can be used as an alternative to the standard color card for color matching experiments with color matching products without purchasing a standard color card, which can reduce the cost of color matching experiments. When performing a color correction comparison experiment, the target color light does not need to be illuminated by a standard light source and the brightness can be accurately adjusted, avoiding the influence of the difficult accurate measurement and accurate control of the reflection or transmission brightness of the standard color card on the comparison effect, which is beneficial to improving the accuracy of the color matching experiment.
[0007] In combination with the first aspect, in some implementation manners of the first aspect, the fitting of the spectrum of the target color in the standard color card according to the spectrum of the multi-channel light source to obtain a target ratio value includes:
[0008] Fitting the spectrum of the target color according to the spectrum of the multi-channel light source and the optimization algorithm to obtain the target ratio value. In the embodiments of the present application, an optimization algorithm is used to perform weighted fitting on the spectrum of the multi-channel light source to obtain the target ratio value. The target ratio value is the ratio value of the brightness of the multi-channel light source in the spectrum fitted by the first device. The multi-channel light source is a standard light source and serves as a standard reference for color matching experiments. The multi-channel light source may have more than a dozen color lights, that is, more than a dozen channels. By adjusting the brightness of each channel, the spectrum of different colors in the standard color card can be fitted to obtain a target color light with controllable spectrum, so as to simulate the spectrum of the target color in the standard color card according to the multi-channel light source.
[0009] Combined with the first aspect, in some implementation manners of the first aspect, after obtaining the target ratio value, it further includes:
[0010] Sending a first message to the second device, the first message includes the target ratio value, and the first message is used for the second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value, so that the second device outputs the target color light. In the embodiments of the present application, if the first device and the second device are connected, after the first device obtains the target ratio value, by sending a first message to the second device, it controls the second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value, so that the second device outputs the target color light.
[0011] Combined with the first aspect, in some implementation manners of the first aspect, the spectral similarity between the spectrum of the target color light and the spectrum of the target color is greater than a first threshold. In the embodiments of the present application, the greater the spectral similarity between the spectrum of the target color light obtained by fitting the spectrum of the multi-channel light source and the spectrum of the target color in the standard color card, the more accurate the experimental results of using the target color light instead of the standard color card in the color matching experiment. Therefore, it is necessary to ensure that the spectral similarity between the two is greater than the first threshold.
[0012] Combined with the first aspect, in some implementation manners of the first aspect, the first threshold is 90. In the embodiments of the present application, the spectral similarity between the spectrum of the target color light and the spectrum of the target color is greater than 90, ensuring that the target color light can replace the spectrum of the target color in the standard color card for color matching experiments.
[0013] Combined with the first aspect, in some implementation manners of the first aspect, the color difference between the target color light and the target color is less than a second threshold. In the embodiments of the present application, the smaller the color difference between the target color light and the target color, the more accurate the experimental results of using the target color light instead of the standard color card in the color matching experiment. Therefore, it is necessary to ensure that the color difference between the two is less than the second threshold.
[0014] In combination with the first aspect, in some implementations of the first aspect, the second threshold is 1. In the embodiments of the present application, the color difference between the target color light and the target color is less than 1, ensuring that the target color light can replace the target color in the standard color card for color matching experiments.
[0015] In a second aspect, an embodiment of the present invention provides a spectral fitting method applied to a second device. The method includes:
[0016] Adjust the brightness ratio value of the multi-channel light source according to the target ratio value so that the second device outputs the target color light. In the embodiments of the present application, the multi-channel light source is a standard light source and serves as a standard reference for color matching experiments. The multi-channel light source may have more than a dozen color lights, that is, more than a dozen channels. By adjusting the brightness of each channel, the spectrum of different colors in the standard color card can be fitted to obtain a target color light with controllable spectrum, so as to simulate the spectrum of the target color in the standard color card according to the multi-channel light source.
[0017] After the fitting is completed, the second device adjusts the brightness ratio value of the multi-channel light source according to the target ratio value and outputs the target color light. In the embodiments of the present application, in order to make the target color light reach the target brightness, it is necessary to change the brightness ratio value of the multi-channel light source as a whole to ensure that the spectrum remains unchanged. For example, change the brightness ratio value from (6, 8, 10) to (3, 4, 5). By multiplying the target ratio value by a coefficient as a whole to change the brightness of the target color light, while ensuring that the brightness ratio of each channel light source remains unchanged, adjust the overall to ensure that the total brightness is the target brightness, so as to obtain a target color light with controllable brightness.
[0018] In combination with the second aspect, in some implementations of the second aspect, the adjusting the brightness ratio value of the multi-channel light source according to the target ratio value includes:
[0019] In response to the user's operation of inputting the target ratio value, adjust the brightness ratio value of the multi-channel light source according to the target ratio value. In the embodiments of the present application, if the first device and the second device are not connected, after the first device obtains the target ratio value, the user manually inputs the target ratio value to the second device, and the second device responds to the user's operation and adjusts the brightness ratio value of the multi-channel light source according to the target ratio value.
[0020] In combination with the second aspect, in some implementations of the second aspect, the adjusting the brightness ratio value of the multi-channel light source according to the target ratio value includes:
[0021] Receive a first message sent by the first device, where the first message includes the target ratio value;
[0022] Adjust the brightness ratio value of the multi-channel light source according to the target ratio value. In the embodiments of the present application, if the first device and the second device are connected, after the first device obtains the target ratio value, it controls the second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value by sending a first message to the second device, so that the second device outputs the target color light.
[0023] In combination with the second aspect, in some implementation manners of the second aspect, the second device includes a light homogenizing device, and the light homogenizing device is disposed after the light emitting end of the multi-channel light source. After homogenizing the light at the light emitting end of the multi-channel light source, a uniform brightness distribution of the target color light is achieved, realizing uniform light emission and accurate brightness color card spectrum restoration, and further used for accurate color matching experiments. The embodiments of the present application can use a color matching product to accurately match colors with the target color light simulated by the above multi-channel light source.
[0024] In a third aspect, an embodiment of the present invention provides a first device, including a processor and a memory. The memory is used to store a program, and when the processor runs the program, the first device is caused to execute the steps involved by the first device in the above method.
[0025] In a fourth aspect, an embodiment of the present invention provides a second device, including a processor and a memory. The memory is used to store a program, and when the processor runs the program, the second device is caused to execute the steps involved by the second device in the above method.
[0026] In a fifth aspect, an embodiment of the present invention provides a spectral fitting system, including the above first device and the above second device.
[0027] In a sixth aspect, an embodiment of the present invention provides a readable storage medium, and the readable storage medium stores a program. When the program is run by the first device, the first device is caused to execute the steps executed by the first device in the above method. When the program is run by the second device, the second device is caused to execute the steps executed by the second device in the above method.
[0028] In the technical solutions of the spectral fitting method, device and system provided by the embodiments of the present invention, the method includes: the first device obtains the spectrum of the multi-channel light source; fitting the spectrum of the target color in the standard color card according to the spectrum of the multi-channel light source to obtain a target ratio value, and the target ratio value is used for the second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value, so that the second device outputs the target color light, which can reduce the cost of the color matching experiment and improve the accuracy of the color matching experiment.
Description of the Drawings
[0029] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0030] Figure 1 Schematic diagram of the color matching experiment;
[0031] Figure 2 Architecture diagram of a spectral fitting system provided by an embodiment of the present invention;
[0032] Figure 3 Flowchart of a spectral fitting method provided by an embodiment of the present invention;
[0033] Figure 4 Schematic diagram of the result of fitting the reflection spectrum of the 17th color in the 24-color standard color test card using a multi-channel light source in an embodiment of the present invention;
[0034] Figure 5 Schematic diagram of the result of fitting the reflection spectrum of the 8th color in the 24-color standard color test card using a multi-channel light source in an embodiment of the present invention;
[0035] Figure 6 Schematic diagram of the color matching experiment in an embodiment of the present invention;
[0036] Figure 7 Schematic diagram of the structure of a first device provided by an embodiment of the present invention;
[0037] Figure 8 Schematic diagram of the structure of a second device provided by an embodiment of the present invention.
Detailed implementation manners
[0038] To better understand the technical solutions of the present invention, the following will describe the embodiments of the present invention in detail with reference to the drawings.
[0039] It should be clear that the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0040] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms of "a", "the" and "said" used in the embodiments of the present invention and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise.
[0041] It should be understood that the term "and / or" used herein is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. Additionally, in this text, the character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0042] Currently, the color calibration method operates based on the color matching function of the CIE1931 2° viewing angle standard observer, uses a standard color test card as a reference object, analyzes the differences in displayed colors, and performs metamerism correction to achieve a better display effect. In this text, the standard color test card can also be referred to as a standard color card or color card. For example, the standard color card can be a common 24-color test card, or it can be other types of color cards adopted according to requirements.
[0043] Due to the different light-emitting characteristics of color-matching products (most color-matching products adopt a trichromatic scheme), color-matching products can objectively reproduce the reference colors of the standard color card (DeltaE2000 < 1), but there are still subjective color differences. This phenomenon is called metamerism failure. Therefore, the correction of subjective color consistency is one of the pain points in current color calibration. Through color-matching experiments, the calibration targets of display screens with different light-emitting characteristics can be dynamically adjusted to achieve subjective consistency. The current solution is to conduct color-matching experiments on different color-matching products. Figure 1 For the schematic diagram of the color-matching experiment, as Figure 1 shown, a standard light source is used to illuminate the standard color card, and then the color of the standard color card is compared with the color displayed by the color-matching product to analyze the differences and make adjustments.
[0044] Common physical standard color cards are divided into transmissive color cards and reflective color cards. When used, both need to be illuminated with a standard light source, and there are the following two usage scenarios:
[0045] Scenario 1: After illuminating the standard color card with a standard light source, perform color comparison and correction with the color displayed by the color-matching product to evaluate the display effect.
[0046] Scenario 2: In a camera system, usually a camera is used to take pictures of the illuminated standard color card, and the color of the standard color card in the photo is compared with the color of the standard color card to evaluate the photo-taking effect.
[0047] However, the above Scenario 1 and Scenario 2 have the following disadvantages:
[0048] 1) Currently, physical standard color cards are used for color comparison and correction. Physical standard color cards are prone to contamination, wear, or damage during use, affecting their usage effects.
[0049] 2) When conducting a color correction comparison experiment, the standard color card needs to be illuminated by a standard light source, and its reflected or transmitted brightness is difficult to accurately measure and precisely control, thus affecting the comparison effect.
[0050] 3) The illumination of the standard light source may be uneven, or there may be an angle problem when illuminating the standard color card, resulting in differences in illuminance at different positions on the standard color card, which has a greater impact on experimental errors.
[0051] 4) There are numerous types of standard color cards and they are expensive.
[0052] Based on the technical problems existing in the above related technologies, the embodiments of the present invention provide a spectral fitting method, device, and system, which can reduce the cost of color matching experiments and improve the accuracy of color matching experiments.
[0053] Figure 2 This is an architecture diagram of a spectral fitting system provided by an embodiment of the present invention. As Figure 2 shown, the spectral fitting system includes: a first device 100 and a second device 200. Figure 2 The dashed line between the first device 100 and the second device 200 in the figure indicates that the first device 100 and the second device 200 can be connected or not connected.
[0054] Exemplarily, the first device 100 includes a device with computing capabilities.
[0055] Exemplarily, the second device 100 includes a multi-channel light source.
[0056] Based on Figure 2 the spectral fitting system shown, the embodiments of the present invention provide a spectral fitting method. Figure 3 This is a flowchart of a spectral fitting method provided by an embodiment of the present invention. As Figure 3 shown, the method includes:
[0057] Step 302, the first device acquires the spectrum of the multi-channel light source.
[0058] Exemplarily, the user uses a spectrum measuring instrument to measure the spectrum of the multi-channel light source in the second device, and then the user manually inputs the spectrum of the multi-channel light source into the first device.
[0059] Exemplarily, the user uses a spectrum measuring instrument to measure the spectrum of the multi-channel light source in the second device, and then the spectrum measuring instrument sends the measured spectrum of the multi-channel light source to the first device.
[0060] It should be understood that the present invention does not limit the method for the first device to acquire the spectrum of the multi-channel light source, and the above two descriptions of the first device acquiring the spectrum of the multi-channel light source are only examples.
[0061] The multi-channel light source is different from the RGB three-channel display. The RGB three-channel display has only 3 color lights, that is, 3 channels. The multi-channel light source has multiple channels, usually more than 3 channels.
[0062] Step 304: The first device fits the spectrum of the target color in the standard color card according to the spectrum of the multi-channel light source to obtain a target ratio value.
[0063] In some possible embodiments, step 304 specifically includes: The first device fits the spectrum of the target color according to the spectrum of the multi-channel light source and an optimization algorithm to obtain a target ratio value.
[0064] In the embodiments of the present application, an optimization algorithm is used to perform weighted fitting on the spectrum of the multi-channel light source to obtain a target ratio value.
[0065] Exemplarily, the target ratio value is the ratio value of the brightness of the multi-channel light source in the spectrum fitted by the first device.
[0066] The multi-channel light source is a standard light source and serves as a standard reference for color matching experiments. The multi-channel light source may have more than a dozen color lights, that is, more than a dozen channels. By adjusting the brightness of each channel, the spectrum of different colors in the standard color card can be fitted to obtain a target color light with controllable spectrum, so as to simulate the spectrum of the target color in the standard color card according to the multi-channel light source.
[0067] Step 306: The second device adjusts the brightness ratio value of the multi-channel light source according to the target ratio value to output a target color light.
[0068] After the fitting is completed, the second device adjusts the brightness ratio value of the multi-channel light source according to the target ratio value and outputs a target color light.
[0069] In the embodiments of the present application, in order to make the target color light reach the target brightness, it is necessary to globally change the brightness ratio value of the multi-channel light source to ensure that the spectrum remains unchanged. For example, changing the brightness ratio value from (6, 8, 10) to (3, 4, 5), by multiplying the target ratio value by a coefficient to change the brightness of the target color light, adjusting the overall while ensuring that the brightness ratio of each channel light source remains unchanged, ensuring that the total brightness is the target brightness, so as to obtain a target color light with controllable brightness.
[0070] Figure 4 It is a schematic diagram of the result of fitting the reflection spectrum of the 17th color in the 24-color standard color test card by using the multi-channel light source in the embodiments of the present invention. Figure 5 It is a schematic diagram of the result of fitting the reflection spectrum of the 8th color in the 24-color standard color test card by using the multi-channel light source in the embodiments of the present invention. As Figure 4 and Figure 5As shown, the relative intensity of the fitted spectrum is generally similar to the relative intensity of the reflection spectrum of the colors in the 24-color standard color test card.
[0071] Exemplarily, the spectral similarity between the spectrum of the target color light and the spectrum of the target color is greater than a first threshold. In the embodiments of the present application, the spectral similarity is also referred to as the Spectral Similarity Index (SSI), which is used to measure the similarity degree between two spectra. In the embodiments of the present application, the greater the spectral similarity between the spectrum of the target color light obtained by spectral fitting of the multi-channel light source and the spectrum of the target color in the standard color card, the more accurate the experimental result of using the target color light to replace the standard color card in the color matching experiment. Therefore, it is necessary to ensure that the spectral similarity between the two is greater than the first threshold.
[0072] Exemplarily, the first threshold is 90. In the embodiments of the present application, the spectral similarity between the spectrum of the target color light and the spectrum of the target color is greater than 90, ensuring that the target color light can replace the target color in the standard color card for use in the color matching experiment.
[0073] Exemplarily, the color difference (such as DeltaE2000) between the color of the target color light and the target color is less than a second threshold. In the embodiments of the present application, the smaller the color difference between the color of the target color light and the target color, the more accurate the experimental result of using the target color light to replace the standard color card in the color matching experiment. Therefore, it is necessary to ensure that the color difference between the two is less than the second threshold.
[0074] Exemplarily, the second threshold is 1. In the embodiments of the present application, the color difference between the color of the target color light and the target color is less than 1, ensuring that the target color light can replace the target color in the standard color card for use in the color matching experiment.
[0075] In the embodiments of the present application, the more channels the multi-channel light source has, the more accurate the fitting result.
[0076] In some possible embodiments, the first device and the second device are not connected, and step 306 specifically includes: in response to the user's operation of inputting a target ratio value, adjusting the brightness ratio value of the multi-channel light source according to the target ratio value. After the first device obtains the target ratio value, the user manually inputs the target ratio value to the second device, and the second device, in response to the user's operation, adjusts the brightness ratio value of the multi-channel light source according to the target ratio value.
[0077] In some possible embodiments, when the first device is connected to the second device, before step 306, the following steps are further included: The first device sends a first message to the second device, the first message includes a target ratio value, and the first message is used for the second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value. Step 306 specifically includes: receiving the first message sent by the first device, the first message includes a target ratio value; and adjusting the brightness ratio value of the multi-channel light source according to the target ratio value. By sending the first message to the second device, the first device controls the second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value, so that the second device outputs the target color light.
[0078] After step 306, the color of the target color light can replace the target color on the standard color card in the color matching experiment. Therefore, the target color light can replace the standard light source and the standard color card in the color matching experiment. Figure 6 It is a schematic diagram of the color matching experiment in the embodiment of the present invention. Compared with Figure 1 the color matching experiment shown in Figure 6 as shown, this application omits the standard light source and the standard color card, directly compares the color of the target color light with the color displayed by the color matching product, analyzes the differences and makes adjustments. The color matching product can adjust the displayed color through various subjective color matching methods until it is subjectively consistent with the color of the target color light.
[0079] The embodiment of the present application uses the target color light to replace the standard light source and the standard color card in the color matching experiment, and has the following beneficial effects:
[0080] 1) It can avoid the influence of the physical standard color card on its use effect due to easy contamination, wear or damage.
[0081] 2) When performing the color correction comparison experiment, the target color light does not need to be illuminated by a standard light source and can accurately adjust the brightness, avoiding the influence of the reflected or transmitted brightness of the standard color card being difficult to accurately measure and accurately control on the comparison effect, which is beneficial to improving the accuracy of the color matching experiment.
[0082] 3) There is no need for a standard light source to illuminate the standard color card, so there will be no phenomenon of uneven illumination of the standard light source or an angle problem when illuminating the standard color card, and there will be no difference in the illuminance at different positions on the standard color card, which has little impact on the experimental error.
[0083] 4) Since the standard color card is not used, there is no need to purchase the standard color card, which can reduce the cost of the color matching experiment.
[0084] Optionally, the second device includes a light homogenizing device (such as a ground glass, etc.), and the light homogenizing device is arranged after the output end of the multi-channel light source. After homogenizing the light at the output end of the multi-channel light source using the light homogenizing device, a uniform distribution of the brightness of the target color light is achieved, realizing a color card spectral reduction with uniform light emission and precise brightness, and then used for precise color matching experiments. In the embodiments of the present application, a color matching product can be used to precisely match the target color light simulated by the above multi-channel light source. At different brightness levels, by adjusting the screen position coordinates of the color matching product, the screen position coordinates that best match the target color light are found, and white point and other color calibrations are performed based on the screen position coordinates that best match the target color light.
[0085] It is a common evaluation scheme for photographing algorithms to use a camera to photograph a standard color card and compare the color of the standard color card in the photo with the original color of the standard color card. However, at this time, the reflected light of the standard color card only depends on the ambient light and cannot be actively controlled and adjusted. If a multi-channel light source is used to simulate the spectrum of the target color in the standard color card, precise adjustment of the brightness can be achieved, which is beneficial to photographing standard color card photos of various specifications and realizing precise verification of the algorithm.
[0086] In the technical solution of the spectral fitting method provided by the embodiments of the present invention, color matching is performed using a multi-channel light source. Through an optimization algorithm, fitting of the spectrum of the target color in the standard color card is achieved, directly controlling the multi-channel light source to output the spectrum of the target color in the standard color card. The brightness of the light source can be precisely adjusted, which can be used as a substitute for the standard color card and perform color matching experiments with a color matching product. Only by adding a light homogenizing device can the color in the standard color card with uniform brightness and known brightness be reproduced, which is beneficial to improving the accuracy of color matching experiments, beneficial to improving the subjective consistency of the colors displayed by the color matching product, eliminating the need to purchase a standard color card, and being able to reduce the cost of color matching experiments and improve the accuracy of color matching experiments.
[0087] Figure 7 FIG. is a schematic structural diagram of a first device provided by an embodiment of the present invention. It should be understood that the first device 400 can execute each step of the first device in the above spectral fitting method. To avoid repetition, details are not described here again. The first device 400 includes: a first processing unit 401 and a first transceiver unit 402.
[0088] The first processing unit 401 is configured to obtain the spectrum of the multi-channel light source; fit the spectrum of the target color in the standard color card according to the spectrum of the multi-channel light source to obtain a target ratio value, where the target ratio value is used for the second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value so that the second device outputs the target color light.
[0089] Optionally, the first processing unit 401 is specifically configured to fit the spectrum of the target color according to the spectrum of the multi-channel light source and the optimization algorithm to obtain the target ratio value.
[0090] Optionally, after the first processing unit 401 obtains the target ratio value, the first transceiver unit 402 is configured to send a first message to the second device, where the first message includes the target ratio value, and the first message is used for the second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value, so that the second device outputs the target color light.
[0091] Optionally, the spectral similarity between the spectrum of the target color light and the spectrum of the target color is greater than a first threshold.
[0092] Optionally, the first threshold is 90.
[0093] Optionally, the color difference between the target color light and the target color is less than a second threshold.
[0094] Optionally, the second threshold is 1.
[0095] Figure 8 FIG. is a schematic structural diagram of a second device provided by an embodiment of the present invention. It should be understood that the second device 500 can execute each step of the second device in the above spectral fitting method. For the sake of avoiding repetition, details are not described herein again. The second device 500 includes: a second processing unit 501 and a second transceiver unit 502.
[0096] The second processing unit 501 is configured to adjust the brightness ratio value of the multi-channel light source according to the target ratio value.
[0097] Optionally, the second processing unit 501 is specifically configured to respond to an operation of the user inputting the target ratio value, and adjust the brightness ratio value of the multi-channel light source according to the target ratio value.
[0098] Optionally, the second transceiver unit 502 is configured to receive a first message sent by the first device, where the first message includes the target ratio value; the second processing unit 501 is specifically configured to adjust the brightness ratio value of the multi-channel light source according to the target ratio value.
[0099] Optionally, the second device includes a light homogenizing device, and the light homogenizing device is disposed after the output end of the multi-channel light source.
[0100] It should be understood that the first device 400 and the second device 500 herein are embodied in the form of functional units. The term "unit" herein can be implemented in the form of software and / or hardware, and no specific limitation is made thereto. For example, the "unit" can be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group of processors, etc.) for executing one or more software or firmware programs, a memory, a merged logic circuit, and / or other suitable components that support the described functions.
[0101] Therefore, the units of the various examples described in the embodiments of the present invention can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present invention.
[0102] An embodiment of the present application provides a first device, including at least one processor and at least one memory. Wherein, the memory is used for storing a program, and when the processor runs the program, the first device is enabled to execute the functions / steps of the first device in the above method embodiment.
[0103] An embodiment of the present application provides a second device, including at least one processor and at least one memory. Wherein, the memory is used for storing a program, and when the processor runs the program, the second device is enabled to execute the functions / steps of the second device in the above method embodiment.
[0104] An embodiment of the present application provides a readable storage medium, in which a program is stored. When the program runs on the first device, the first device is enabled to execute the functions / steps of the first device in the above method embodiment.
[0105] An embodiment of the present application provides a readable storage medium, in which a program is stored. When the program runs on the second device, the second device is enabled to execute the functions / steps of the second device in the above method embodiment.
[0106] An embodiment of the present application further provides a program product including a program. When the program product runs on the first device or any at least one processor, the first device is enabled to execute the functions / steps of the first device in the above method embodiment.
[0107] The embodiments of the present application also provide a program product including a program. When the program product runs on a second device or any at least one processor, the second device is caused to execute the functions / steps of the second device in the above method embodiments.
[0108] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent the cases of A existing alone, A and B existing simultaneously, and B existing alone. Where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one of the following" and its similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c can be single or multiple.
[0109] Those of ordinary skill in the art can realize that the units and algorithm steps described in the embodiments disclosed herein can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0110] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0111] In several embodiments provided by the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.
[0112] The above are only specific embodiments of the present application. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims described above.
Claims
1. A spectral fitting method, characterized in that, Applied to a first device, the method includes: Obtaining the spectrum of a multi-channel light source; Fitting the spectrum of a target color in a standard color card according to the spectrum of the multi-channel light source to obtain a target ratio value, where the target ratio value is used for a second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value, so that the second device outputs a target color light.
2. The method according to claim 1, wherein The step of fitting the spectrum of a target color in a standard color card according to the spectrum of the multi-channel light source to obtain a target ratio value includes: Fitting the spectrum of the target color according to the spectrum of the multi-channel light source and an optimization algorithm to obtain the target ratio value.
3. The method according to claim 1 or 2, characterized in that, After obtaining the target ratio value, it further includes: Sending a first message to the second device, where the first message includes the target ratio value, and the first message is used for the second device to adjust the brightness ratio value of the multi-channel light source according to the target ratio value, so that the second device outputs the target color light.
4. The method according to any one of claims 1 to 3, characterized in that The spectral similarity between the spectrum of the target color light and the spectrum of the target color is greater than a first threshold.
5. The method according to claim 4, wherein The first threshold is 90.
6. The method according to any one of claims 1-5, characterized in that, The color difference between the color of the target color light and the target color is less than a second threshold.
7. The method according to claim 6, characterized in that The second threshold is 1.
8. A spectral fitting method, characterized in that, Applied to a second device, the method includes: Adjusting the brightness ratio value of a multi-channel light source according to a target ratio value, so that the second device outputs a target color light.
9. The method according to claim 8, characterized in that, The step of adjusting the brightness ratio value of a multi-channel light source according to a target ratio value includes: In response to an operation of the user inputting the target ratio value, adjusting the brightness ratio value of the multi-channel light source according to the target ratio value.
10. The method according to claim 8, wherein The step of adjusting the brightness ratio value of a multi-channel light source according to a target ratio value includes: Receiving a first message sent by the first device, where the first message includes the target ratio value; Adjusting the brightness ratio value of the multi-channel light source according to the target ratio value.
11. The method according to any one of claims 8-10, characterized in that, The second device includes a light homogenizing device, and the light homogenizing device is arranged after the output end of the multi-channel light source.
12. A first device, characterized in that, It includes a processor and a memory. Among them, the memory is used to store a program, and when the processor runs the program, it causes the first device to execute the method according to any one of claims 1-7.
13. A second device, characterized in that, It includes a processor and a memory. Among them, the memory is used to store a program, and when the processor runs the program, it causes the second device to execute the method according to any one of claims 8-11.
14. A spectral fitting system, characterized in that, It includes the first device according to claim 12 and the second device according to claim 13.
15. A readable storage medium, characterized in that, The readable storage medium stores a program, and when the program is run by the first device, it causes the first device to execute the method according to any one of claims 1-7, and when the program is run by the second device, it causes the second device to execute the method according to any one of claims 8-11.
Citation Information
Patent Citations
Method for matching spectra of multi-channel LED lighting system based on radiance parameter
CN106052867A
Light source parameter optimization method
CN111879404A
Light source performance characterization method and device and computer readable storage medium
CN113689510A
Closed lamp house of multispectral imaging system is measured to colour based on LED illumination
CN206832360U
Light controlling element, optical device using the same, imaging apparatus and lens unit
JP2021124718A