Spectral light source apparatus, method of controlling the same, device and readable storage medium
By using closed-loop control and temperature control components of the spectral light source device, the problem of insufficient simulation accuracy of the spectral light source was solved, and accurate matching and stable output of real-time spectral beams were achieved.
Patent Information
- Application Number
- CN202410016076.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2044-01-04
AI Technical Summary
Existing spectral light source devices struggle to guarantee simulation accuracy when LED light source lifespan varies, drive current fluctuates, and temperature rises.
It employs a light source generation component, a sensor component, a signal generation component, a power output component, and a temperature control component. By acquiring spectral information and temperature in real time, calculating iterative errors, and adjusting the drive current, it maintains the temperature within a preset range, thus achieving closed-loop control.
It improves the simulation accuracy and stability of the spectral light source device, and avoids the impact of LED light source lifespan, driving current fluctuations and temperature rise on the spectrum.
Smart Images

Figure CN117793992B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of spectral technology, and in particular to a spectral light source device and its control method, equipment and readable storage medium. Background Technology
[0002] Spectral light sources for machine vision systems are widely used in modern industrial scenarios such as intelligent manufacturing and smart factories. Machine vision systems on production lines have high requirements for the accuracy of visual performance calibration, and therefore have high requirements for spectral light sources.
[0003] Due to variations in the lifespan of LED (Light-Emitting Diode) light sources, fluctuations in drive current, and increases in operating temperature, the wavelength of the LED light source used in existing spectral light source devices can change, resulting in inconsistent simulation accuracy. Summary of the Invention
[0004] The main purpose of this application is to provide a spectral light source device that aims to solve the problem of poor simulation accuracy of existing spectral light sources.
[0005] To achieve the above objectives, in a first aspect, this application provides a spectral light source device, the spectral light source device comprising: a light source generating component, a sensor component, a signal generating component, a power output component, and a temperature control component;
[0006] A light source generating component is used to output a corresponding real-time spectral beam under the drive current provided by the power output component;
[0007] The sensor assembly is used to collect real-time spectral information of the real-time spectral beam output by the light source generating assembly and the real-time temperature of the light source generating assembly.
[0008] A signal generation component is used to acquire the target spectrum and calculate the current iteration error based on the target spectrum and the real-time spectral information collected by the sensor component.
[0009] A power output component is used to adjust the drive current according to the current iteration error until the real-time spectral beam matches the target spectrum;
[0010] A temperature control component is used to maintain the real-time temperature of the light source generating component within a preset temperature range.
[0011] According to the first aspect, the light source generating component includes: an integrating sphere, the integrating sphere including an incident light end and an exit light end;
[0012] The light-incident end is provided with an LED light source array;
[0013] The light-emitting end is used by the LED light source array to output a real-time spectral beam.
[0014] According to the first aspect, or any implementation of the first aspect above, the light-emitting end is provided with a filter module.
[0015] According to the first aspect, or any implementation of the first aspect above, the sensor assembly includes a temperature sensor, a spectrometer, and a power sensor;
[0016] A temperature sensor is used to monitor the real-time temperature of the light source generating component;
[0017] A spectrometer is used to collect real-time spectral information of the real-time spectral beam output by the light source generating component;
[0018] A power sensor is used to monitor the drive current value of the power output component.
[0019] According to the first aspect, or any implementation of the first aspect above, the power output component includes a main power supply and a power driver;
[0020] The main power supply is electrically connected to the signal generation component, and the signal generation component is electrically connected to the light source generation component, for supplying power to the signal generation component and the light source generation component;
[0021] One end of the power driver is connected to the LED signal generator in the signal generation component, and the other end of the power driver is connected to each LED in the LED light source array in the light source generation component.
[0022] According to the first aspect, or any implementation of the first aspect above, the signal generation component includes a computing module and an LED signal generator;
[0023] The computing module is used to acquire the target spectrum, calculate the current iteration error based on the target spectrum and the real-time spectral information collected by the sensor component, and send the current iteration error to the LED signal generator.
[0024] An LED signal generator is used to send the current iteration error to the power driver;
[0025] A power driver is used to output driving current to each LED in the LED light source array according to the current iteration error.
[0026] To achieve the above objectives, in a second aspect, this application provides a control method for a spectral light source device, applied to the spectral light source device described above, the control method comprising the following steps:
[0027] In response to the start command, the power output component is controlled to output a drive current so that the light source generating component outputs a corresponding real-time spectral beam;
[0028] The sensor assembly collects real-time spectral information of the real-time spectral beam output by the light source generating assembly and the real-time temperature of the light source generating assembly.
[0029] The target spectrum is obtained through the signal generation component, and the current iteration error is calculated based on the target spectrum and the real-time spectral information collected by the sensor component.
[0030] The control power output component adjusts the drive current according to the current iteration error until the real-time spectral beam matches the target spectrum;
[0031] The temperature control component maintains the real-time temperature of the light source generating component within a preset temperature range.
[0032] According to the second aspect, the step of calculating the current iteration error based on the target spectrum and the real-time spectral information collected by the sensor component includes:
[0033] The current residual sum of squares is calculated based on the real-time spectral information and the target spectrum.
[0034] Obtain the damping factor, and calculate the current iteration error and the estimated residual sum of squares under the current iteration error based on the Jacobian matrix of the current residual sum of squares and the damping factor;
[0035] If the estimated residual sum of squares is less than the current residual sum of squares, then the damping factor is reduced to obtain a new damping factor;
[0036] If the estimated residual sum of squares is not less than the current residual sum of squares, then the damping factor is increased to obtain a new damping factor;
[0037] The driving current is adjusted according to the current iteration error, and the following steps are performed: the current residual sum of squares is calculated based on the real-time spectral information and the target spectrum until the real-time spectral beam matches the target spectrum.
[0038] Thirdly, this application provides a control device for a spectral light source device, the control device comprising: a memory and a processor, wherein the memory stores a computer program executable on the processor, and the computer program is configured to implement the steps of the control method described above.
[0039] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the control method described above.
[0040] Fifthly, embodiments of this application provide a computer program that includes instructions for performing the control method described above.
[0041] This application proposes a spectral light source device, comprising: a light source generating component, a sensor component, a signal generating component, a power output component, and a temperature control component. The light source generating component outputs a corresponding real-time spectral beam under the driving current provided by the power output component. The sensor component acquires the real-time spectral information of the output spectral beam and the real-time temperature of the light source generating component. The signal generating component acquires a target spectrum and calculates the current iteration error based on the target spectrum and the real-time spectral information acquired by the sensor component. The power output component adjusts the driving current according to the current iteration error until the real-time spectral beam matches the target spectrum. The temperature control component maintains the real-time temperature of the light source generating component within a preset temperature range. This application acquires the real-time spectral information of the output spectral beam and the real-time temperature of the light source generating component through the sensor component. This allows for closed-loop control of the real-time spectral beam by adjusting the driving current based on the difference between the real-time and target spectra, ensuring the match between the real-time and target spectra and mitigating the influence of factors such as varying LED lifespan and driving current fluctuations on the spectrum of the real-time spectral beam. On the other hand, the temperature control component maintains the real-time temperature of the light source generating component within a preset temperature range, thereby reducing the impact of temperature rise during the output of the real-time spectral beam on the spectrum of the real-time spectral beam. Therefore, this application, through closed-loop control of the real-time spectral beam and the temperature control component, effectively reduces the influence of factors such as varying LED light source lifespan, fluctuations in drive current, and temperature rise on the spectrum of the real-time spectral beam, ensuring the simulation accuracy and stability of the target spectrum of the real-time spectral beam output by the spectral light source device. Attached Figure Description
[0042] Figure 1 This is a schematic diagram of the structure of the first embodiment of the spectral light source device of this application;
[0043] Figure 2 This is a schematic diagram of the structure of the light source generating component involved in the embodiments of this application;
[0044] Figure 3 This is a schematic diagram showing the connection of the sensor components involved in the embodiments of this application;
[0045] Figure 4 This is a connection diagram of the power output component involved in the embodiments of this application;
[0046] Figure 5 This is a flowchart illustrating an embodiment of the control method for the spectral light source device of this application;
[0047] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application.
[0048] Explanation of icon numbers:
[0049] label name label name 10 Light source generation component 15 Filter module 20 Sensor components 21 Temperature sensor 30 Signal generation component 22 Spectrometer 40 Power output components 23 Power sensor 50 Temperature control components 41 main power supply 11 Integral ball 42 Power driver 12 Incoming light end 31 LED signal generator 13 light end 32 Operation module 14 LED light source array
[0050] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0051] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0052] In this article, the term "and / or" is merely a description of the relationship between related 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.
[0053] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.
[0054] It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicator will also change accordingly.
[0055] In this application, unless otherwise expressly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0056] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0057] To better describe the technical solution of this application, the spectral light source device of this application is described below in conjunction with some prior art:
[0058] Spectral light sources for machine vision systems are widely used in modern industrial scenarios such as intelligent manufacturing and smart factories. Machine vision systems on production lines have high requirements for the accuracy of visual performance calibration, and therefore have high requirements for spectral light sources.
[0059] Due to variations in the lifespan of LED light sources, fluctuations in driving current, and increases in operating temperature, the wavelength of LED light sources used in existing spectral light source devices can change, resulting in inconsistent simulation accuracy.
[0060] This application uses a sensor assembly to collect real-time spectral information of the output spectral beam from the light source generator and the real-time temperature of the light source generator. This allows for two main methods: firstly, adjusting the driving current based on the difference between the real-time spectral beam and the target spectrum, achieving closed-loop control of the real-time spectral beam and ensuring its matching with the target spectrum. This mitigates the impact of factors such as varying LED lifespan and driving current fluctuations on the real-time spectral beam's spectrum. Secondly, a temperature control assembly maintains the real-time temperature of the light source generator within a preset temperature range, reducing the impact of temperature rise during the output of the real-time spectral beam. Therefore, this application, through closed-loop control of the real-time spectral beam and the temperature control assembly, effectively reduces the impact of factors such as varying LED lifespan, driving current fluctuations, and temperature rises on the real-time spectral beam's spectrum, ensuring the simulation accuracy and stability of the target spectrum by the output spectral light source device.
[0061] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the structure of a first embodiment of the spectral light source device of this application. The first embodiment of this application provides a spectral light source device, which includes:
[0062] The spectral light source device includes: a light source generating component 10, a sensor component 20, a signal generating component 30, a power output component 40, and a temperature control component 50;
[0063] The light source generating component 10 is used to output a corresponding real-time spectral beam under the driving current provided by the power output component 40;
[0064] The sensor assembly 20 is used to collect real-time spectral information of the real-time spectral beam output by the light source generating assembly 10 and the real-time temperature of the light source generating assembly 10.
[0065] The signal generation component 30 is used to acquire the target spectrum and calculate the current iteration error based on the target spectrum and the real-time spectral information collected by the sensor component 20.
[0066] The power output component 40 is used to adjust the drive current according to the current iteration error until the real-time spectral beam matches the target spectrum;
[0067] Temperature control component 50 is used to maintain the real-time temperature of light source generating component 10 within a preset temperature range.
[0068] In this embodiment, it should be noted that the electrical connections between the light source generating component 10, the sensor component 20, the signal generating component 30, the power output component 40, and the temperature control component 50 can be direct or indirect. For example, the power output component 40 can be electrically connected to the signal generating component 30 to adjust the driving current based on the current iteration error output by the signal generating component 30. The signal generating component 30 is electrically connected to both the light source generating component 10 and the sensor component 20 for information exchange. The temperature control component 50 is electrically connected to the sensor component 20 for information exchange, and is also electrically connected to the light source generating component 10 for temperature regulation.
[0069] After the spectral light source device is started, the power output component 40 outputs a drive current according to the initial current value. The light source generating component 10 outputs a corresponding real-time spectral beam under the drive current provided by the power output component 40. The sensor component 20 can then collect the real-time spectral information of the real-time spectral beam output by the light source generating component 10 and the real-time temperature of the light source generating component 10. The sensor component 20 can also send the real-time spectral information to the signal generation component 30 and the real-time temperature to the temperature control component 50. The signal generation component 30 acquires the target spectrum and calculates the current iteration error based on the target spectrum and the real-time spectral information collected by the sensor component 20, where the target spectrum is the spectrum expected to be output by the light source generating component 10. The current iteration error is the current value at which the real-time spectral information of the real-time spectral beam approaches the target spectrum. The power output component 40 is used to adjust the drive current according to the current iteration error. In this embodiment, the drive current output by the power output component 40 is updated in real time until the real-time spectral beam matches the target spectrum. The temperature control component 50 is used to maintain the real-time temperature of the light source generating component 10 within a preset temperature range. The temperature control component 50 may include a fan, a thermoelectric cooler, a liquid cooling device, etc., and is used to regulate the real-time temperature of the light source generating component 10. The light source generating component 10 generates a significant amount of heat during the light emission process, and as this heat accumulates, the real-time temperature of the light source generating component 10 rises rapidly. For example, in this embodiment, a fan can be used as the temperature control component 50. The fan is activated when the real-time temperature of the light source generating component 10 exceeds the upper limit of a preset temperature range. The fan is deactivated when the real-time temperature of the light source generating component 10 falls below the lower limit of the preset temperature range.
[0070] See Figure 2 , Figure 2 This is a schematic diagram of the structure of a light source generating component according to an embodiment of this application. In some embodiments, the light source generating component 10 includes: an integrating sphere 11, which includes an incident light end 12 and an exit light end 13;
[0071] An LED light source array 14 is provided at the light input end 12;
[0072] The light-emitting end 13 is used by the LED light source array 14 to output a real-time spectral beam through the light-emitting end.
[0073] In this embodiment, it should be noted that the LED light source array 14 is composed of LEDs capable of outputting different wavelengths, including infrared LEDs, visible LEDs, and ultraviolet LEDs. Of course, for higher integration and lower heat generation, IC-LED (Integrated Circuit Light-Emitting Diode) modules can also be used, covering the visible and near-infrared spectral range. The inner wall of the integrating sphere 11 is coated with a high diffuse reflection layer. The light emitted by each LED in the LED light source array 14 is reflected and mixed on the inner wall of the integrating sphere 11, and then output as a real-time spectral beam from the light-emitting end 13.
[0074] In some embodiments, the light-emitting end 13 is provided with a filter module 15.
[0075] Limited by the LED light-emitting mechanism, conventional spectral light sources struggle to accurately simulate the linear emission spectra of mercury lamps, xenon lamps, etc., and also cannot provide monochromatic light of a specified wavelength for camera calibration. Therefore, this application incorporates a filter module 15 at the light-emitting end 13 of the integrating sphere 11. By switching the appropriate filters, not only can standard monochromatic light of various colors be obtained, but also various special test images with polarization, grayscale, viewing angle, and MURA (luminance non-uniformity) can be output. This embodiment, by customizing and replacing the filter module 15, can greatly expand the application scenarios of the spectral light source device in this embodiment. Furthermore, in colorimetric filter testing scenarios, the brightness of different LEDs in the LED light source array 14 can be adjusted to output a near-flat full visible spectrum radiance, ensuring that the output monochromatic light has the same radiance, thus meeting the colorimetric correction measurement requirements of image sensors.
[0076] See Figure 3 , Figure 3 This is a schematic diagram showing the connection of the sensor assembly according to an embodiment of this application. In some embodiments, the sensor assembly 20 includes a temperature sensor 21, a spectrometer 22, and a power sensor 23;
[0077] Temperature sensor 21 is used to monitor the real-time temperature of the light source generating component 10;
[0078] Spectrometer 22 is used to collect real-time spectral information of the real-time spectral beam output by the light source generating component 10;
[0079] The power sensor 23 is used to monitor the drive current value of the power output component 40.
[0080] Since temperature changes cause wavelength drift in each LED in the LED light source array 14, in this embodiment, a temperature sensor 21 can be installed on the LED light source array 14 of the light source generating component 10 to collect the temperature of the LED light source array 14 as the real-time temperature of the light source generating component 10. The fiber optic probe of the spectrometer 22 can extend into the integrating sphere 11 to collect real-time spectral information of the real-time spectral beam output by the light source generating component 10. The real-time spectral information may include the spectral distribution, brightness, chromaticity, and other information of the real-time spectral beam. A power sensor 23 is electrically connected to the power output component 40 and is used to monitor the drive current value of the power output component 40.
[0081] See Figure 4 , Figure 4 This is a connection diagram of the power output component according to an embodiment of this application. In some embodiments, the power output component 40 includes a main power supply 41 and a power driver 42;
[0082] The main power supply 41 is electrically connected to the signal generation component 30, and the signal generation component 30 is electrically connected to the light source generation component 10, for supplying power to the signal generation component 30 and the light source generation component 10;
[0083] One end of the power driver 42 is connected to the LED signal generator 31 in the signal generation component 30, and the other end of the power driver 42 is connected to each LED lamp in the LED light source array 14 in the light source generation component 10.
[0084] In this embodiment, the power output component 40 includes a main power supply 41 and a power driver 42. The main power supply 41 is electrically connected to the signal generation component 30, and the signal generation component 30 is electrically connected to the light source generation component 10, for supplying power to the signal generation component 30 and the light source generation component 10. It is understood that the main power supply 41 can also be directly or indirectly electrically connected to the sensor component 20 and the temperature control component 50 for supplying power to them. The sensor component 20 and the temperature control component 50 can also have other power sources (such as batteries, power modules, etc.) independent of the main power supply 41. It should be noted that the number of power drivers 42 is the same as the number of LEDs in the LED light source array 14. One end of the power driver 42 is connected to the LED signal generator 31 in the signal generation component 30, and the other end of the power driver 42 is connected to each LED in the LED light source array 14 in the light source generation component 10. Thus, the power driver 42 can independently provide a stable current to each LED and can precisely adjust the magnitude of the driving current of each input, thereby achieving fine adjustment of the spectral distribution of the real-time spectral beam.
[0085] In some embodiments, the signal generation component 30 includes an LED signal generator 31 and a processing module 32;
[0086] The calculation module 32 is used to acquire the target spectrum, calculate the current iteration error based on the target spectrum and the real-time spectral information collected by the sensor component 20, and send the current iteration error to the LED signal generator 31.
[0087] LED signal generator 31 is used to send the current iteration error to power driver 42;
[0088] The power driver 42 is used to output drive current to each LED in the LED light source array 14 according to the current iteration error.
[0089] In this embodiment, the signal generation component 30 includes an LED signal generator 31 and a calculation module 32. The calculation module 32 is used to acquire the target spectrum and calculate the current iteration error based on the target spectrum and the real-time spectral information collected by the sensor component 20, and send the current iteration error to the LED signal generator 31. The LED signal generator 31 is used to send the current iteration error to the power driver 42. The power driver 42 is used to output driving current to each LED of the LED light source array 14 according to the current iteration error. It can be understood that the signal generation component may also include a communication module, which is used to realize communication between the calculation module 32 and components and modules such as the sensor component 20 and the LED signal generator 31.
[0090] See Figure 5 , Figure 5 This is a flowchart illustrating an embodiment of the control method for the spectral light source device of this application. This embodiment provides a control method for a spectral light source device, applied to the spectral light source device described above. The control method includes the following steps:
[0091] Step S100: In response to the start command, control the power output component to output a drive current so that the light source generating component outputs a corresponding real-time spectral beam.
[0092] Step S200: The sensor assembly collects the real-time spectral information of the real-time spectral beam output by the light source generating assembly and the real-time temperature of the light source generating assembly.
[0093] Step S300: Obtain the target spectrum through the signal generation component, and calculate the current iteration error based on the target spectrum and the real-time spectral information collected by the sensor component;
[0094] Step S400: Control the power output component to adjust the driving current according to the current iteration error until the real-time spectral beam matches the target spectrum;
[0095] Step S500: Control the temperature control component to maintain the real-time temperature of the light source generating component within a preset temperature range.
[0096] In this embodiment, it should be noted that the control method of the spectral light source device is executed by the control device of the spectral light source device, which may be a PC (Personal Computer), tablet computer, portable computer or server, etc.
[0097] In this embodiment, in response to a start command, the power output component can be controlled to output a drive current, so that the light source generating component outputs a corresponding real-time spectral beam. The start command is a command issued by the user via physical buttons, voice, or a control device to control the start of the spectral light source device. Then, the sensor component can collect the real-time spectral information of the real-time spectral beam output by the light source generating component and the real-time temperature of the light source generating component; the signal generation component obtains the target spectrum, and the current iteration error is calculated based on the target spectrum and the real-time spectral information collected by the sensor component. The current iteration error can be calculated using methods such as multiple linear regression or least squares estimation, so that the spectral distribution of the real-time spectral beam gradually approaches the target spectrum. The power output component adjusts the drive current according to the current iteration error, and then step S200 is executed until the real-time spectral beam matches the target spectrum. Simultaneously, the temperature control component can be controlled to maintain the real-time temperature of the light source generating component within a preset temperature range. The preset temperature range is a pre-set ambient temperature range for outputting the real-time spectral beam, such as 20℃~40℃. This allows the temperature of the real-time spectral beam output by the light source generating component to be maintained, preventing the stability of the real-time spectral beam from being affected by the continuously rising ambient temperature caused by heat accumulation.
[0098] In some embodiments, the step S300 of calculating the current iteration error based on the target spectrum and the real-time spectral information acquired by the sensor component includes:
[0099] Step S310: Calculate the current residual sum of squares based on the real-time spectral information and the target spectrum;
[0100] Step S320: Obtain the damping factor, and calculate the current iteration error and the estimated residual sum of squares under the current iteration error based on the Jacobian matrix of the current residual sum of squares and the damping factor.
[0101] Step S330: If the estimated residual sum of squares is less than the current residual sum of squares, then reduce the damping factor to obtain a new damping factor;
[0102] Step S340: If the estimated residual sum of squares is not less than the current residual sum of squares, then increase the damping factor to obtain a new damping factor;
[0103] Step S350: Adjust the driving current according to the current iteration error, and perform the following steps: Calculate the current residual sum of squares according to the real-time spectral information and the target spectrum until the real-time spectral beam matches the target spectrum.
[0104] This application, from the perspective of solving for non-negative current values, finds the optimal solution by calculating the minimum value of the objective function (i.e., the sum of squared residuals between the real-time spectral information and the target spectrum), which is the current iteration error that is closest to the target spectrum.
[0105] The goal of spectral matching is to find the optimal drive current values for all types of LEDs in the LED light source array of the power output component, so that the spectral distribution of the resulting real-time spectral beam is as close as possible to the target spectrum. Mathematically, spectral matching is expressed as finding the minimum value of an objective function. For example, the objective function is as follows:
[0106]
[0107] In the formula: f(c) is the objective function, A is the lower limit of the wavelength range of the target spectrum, B is the upper limit of the wavelength range of the target spectrum, and S... T (λ) represents the target spectrum; c i S represents the driving current value of the i-th type of LED in the LED light source array; i (λ) represents the spectral distribution of the i-th type of LED in the LED light source array; n represents the number of types of LEDs in the LED light source array. By solving for the minimum value of the objective function, the optimal driving current value c for each type of LED is obtained. i This minimizes the sum of squares of the residuals between the target spectrum and the LED combined spectrum, meaning that the spectral distribution of the simulated real-time spectral beam is closest to the target spectrum.
[0108] For ease of subsequent description, this embodiment will take visible light as the target spectrum as an example. In the visible light 380nm-780nm band, a Gaussian distribution function is used to simulate the spectral distribution curve of all types of LEDs. For example, if the peak wavelength of each type of LED in the LED light source array is evenly distributed at 10nm intervals, then 41 types of LEDs are needed to simulate the spectral distribution curve of the target spectrum.
[0109] That is: F(c)=(F1(c),F2(c),…,F n (c)) T c = (c1, c2, ..., c m) T ;
[0110] The objective function can then be expressed as:
[0111] i = 1 to n are the i-th wavelength points taken at equal intervals of 10 nm within the spectral band.
[0112] Jacobian matrix is
[0113] Therefore, this embodiment sets the following initial values: initial damping factor μ = 0.001, initial iteration number K = 0, total iteration number maxK = M (e.g., 80, 100, 150, etc.), and current coefficient. Based on the real-time spectral information and the target spectrum, the current sum of squared residuals of the objective function is calculated. Then, the objective function can be differentiated to obtain the Jacobian matrix of the current sum of squared residuals, and the current iteration error can be constructed. The formula for calculating the current iteration error is:
[0114]
[0115] Among them, J k Let F represent the Jacobian matrix in the k-th iteration, T denote the transpose, k denote the iteration number, and F k Let μ be the sum of squared residuals under the k-th iteration. k Let I be the damping factor in the k-th iteration, and I be the identity matrix. For any μ k >0, there is d k <0, therefore d k The objective function can be minimized by searching along the decreasing direction of the current driving current.
[0116] In this embodiment, the sum of the current iteration error and the current driving current can be substituted into the objective function to calculate the estimated residual sum of squares corresponding to the current iteration error. If the estimated residual sum of squares is less than the current residual sum of squares, the damping factor is reduced to obtain a new damping factor, thereby searching for the optimal driving current corresponding to the minimum value of the objective function in the direction of increasing current. If the estimated residual sum of squares is not less than the current residual sum of squares, the damping factor is increased to obtain a new damping factor, thereby searching for the optimal driving current corresponding to the minimum value of the objective function in the direction of decreasing current. The driving current is adjusted according to the current iteration error, and the following steps are executed: calculating the current residual sum of squares based on the real-time spectral information and the target spectrum until the real-time spectral beam matches the target spectrum. In this embodiment, if the number of iterations is greater than or equal to the total number of iterations, it can be determined that the real-time spectral beam matches the target spectrum, the current driving current is the optimal driving current, and the power output component is controlled to maintain the output of the optimal driving current. Therefore, compared to the Gauss-Newton method, which requires the Jacobian matrix J(c) to have full rank in the iteration process, this embodiment does not have a corresponding restriction on the Jacobian matrix and can quickly determine the search direction of minimizing the objective function, effectively improving the simulation efficiency of real-time spectral beams tending towards the target spectrum.
[0117] Furthermore, because LEDs experience brightness fluctuations upon initial illumination before their brightness stabilizes, the real-time spectral beam is unstable during this period, reducing its simulation efficiency for the target spectrum. This embodiment aims to reduce the stabilization time required for the LEDs in the LED light source array within the light source generating component. In step S100, controlling the power output component to output a drive current to enable the light source generating component to output the corresponding real-time spectral beam includes: acquiring a brightness compensation current, determined based on the brightness changes of the LEDs in the LED light source array during the initial illumination period (i.e., from illumination to brightness stabilization); and compensating the power output component's drive current based on the brightness compensation current to reduce the stabilization time required for the LEDs in the LED light source array and improve the simulation efficiency of the real-time spectral beam for the target spectrum. For example, regarding the brightness compensation current, this embodiment can pre-collect brightness change information of the LEDs in the LED light source array during the initial lighting period (i.e., from the lighting moment to the brightness stabilization moment). Then, based on the brightness difference between the target brightness value (i.e., the brightness value at the brightness stabilization moment) and each brightness sample value in the brightness change information, a preset compensation mapping table is consulted to obtain the corresponding compensation current value. Then, the compensation current values are arranged in chronological order to obtain the brightness compensation current. The preset compensation mapping table represents the mapping relationship between the brightness difference and the compensation current value. The brightness difference and the compensation current value are positively correlated; the larger the brightness difference, the larger the brightness compensation current.
[0118] In this embodiment, in response to a start command, the power output component is controlled to output a drive current, causing the light source generating component to output a corresponding real-time spectral beam. A sensor component collects the real-time spectral information of the output real-time spectral beam from the light source generating component and the real-time temperature of the light source generating component. A signal generation component acquires the target spectrum and calculates the current iteration error based on the target spectrum and the real-time spectral information collected by the sensor component. The power output component is controlled to adjust the drive current according to the current iteration error until the real-time spectral beam matches the target spectrum. A temperature control component is controlled to maintain the real-time temperature of the light source generating component within a preset temperature range. This application uses a sensor component to collect the real-time spectral information of the output real-time spectral beam from the light source generating component and the real-time temperature of the light source generating component. This allows for the adjustment of the drive current based on the difference between the real-time spectral beam and the target spectrum, achieving closed-loop control of the real-time spectral beam and ensuring the match between the real-time spectral beam and the target spectrum. This avoids the influence of factors such as different LED light source lifespans and drive current fluctuations on the spectrum of the real-time spectral beam. On the other hand, the temperature control component maintains the real-time temperature of the light source generating component within a preset temperature range, thereby reducing the impact of temperature rise during the output of the real-time spectral beam on the spectrum of the real-time spectral beam. Therefore, this application, through closed-loop control of the real-time spectral beam and the temperature control component, effectively reduces the influence of factors such as varying LED light source lifespan, fluctuations in drive current, and temperature rise on the spectrum of the real-time spectral beam, ensuring the simulation accuracy and stability of the target spectrum of the real-time spectral beam output by the spectral light source device.
[0119] like Figure 6 As shown, Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application.
[0120] Specifically, the control device for the spectral light source device can be a PC (Personal Computer), tablet computer, portable computer, or server, etc.
[0121] like Figure 6As shown, the control device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; the user interface 1003 may also include standard wired and wireless interfaces. Optionally, the network interface 1004 may include standard wired and wireless interfaces (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0122] Those skilled in the art will understand that Figure 6 The device structure shown does not constitute a limitation on the control device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0123] like Figure 6 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and computer programs.
[0124] exist Figure 6 In the device shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client and communicate data with the client; and the processor 1001 can be used to call the computer program stored in the memory 1005 to implement the operation in the control method provided in the above embodiment.
[0125] Furthermore, this application also proposes a computer storage medium storing a computer program. When the computer program is executed by a processor, it implements the operations in the control method provided in the above embodiments. The specific steps will not be described in detail here.
[0126] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity / operation / object from another, and do not necessarily require or imply any such actual relationship or order between these entities / operations / objects; the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0127] For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and relevant details can be found in the description of the method embodiments. The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of this application. Those skilled in the art can understand and implement this without creative effort.
[0128] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0129] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, television, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0130] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A spectral light source device, characterized in that, The spectral light source device includes: a light source generating component, a sensor component, a signal generating component, a power output component, and a temperature control component; A light source generating component is used to output a corresponding real-time spectral beam under the driving current provided by the power output component, acquire a brightness compensation current, and compensate the driving current according to the brightness compensation current. The brightness compensation current is determined based on the brightness change information of each LED in the LED light source array within the light source generating component during the initial lighting period, which is from the lighting moment to the brightness stabilization moment. The power output component includes a main power supply and a power driver. The main power supply is electrically connected to the signal generation component, and the signal generation component is electrically connected to the light source generating component, for supplying power to both components. One end of the power driver is connected to the LED signal generator in the signal generation component, and the other end is connected to each LED in the LED light source array within the light source generating component. The sensor assembly is used to collect real-time spectral information of the real-time spectral beam output by the light source generating assembly and the real-time temperature of the light source generating assembly. Signal generation components, including a computing module and an LED signal generator; The calculation module is used to acquire the target spectrum and calculate the current residual sum of squares based on the real-time spectral information and the target spectrum; acquire the damping factor and calculate the current iteration error and the estimated residual sum of squares under the current iteration error based on the Jacobian matrix of the current residual sum of squares and the damping factor, wherein the current iteration error is the current value of the real-time spectral information tending towards the target spectrum; if the estimated residual sum of squares is less than the current residual sum of squares, the damping factor is reduced to obtain a new damping factor; if the estimated residual sum of squares is not less than the current residual sum of squares, the damping factor is increased to obtain a new damping factor; adjust the driving current according to the current iteration error, and execute the following steps: calculate the current residual sum of squares based on the real-time spectral information and the target spectrum until the real-time spectral beam matches the target spectrum, and send the current iteration error to the LED signal generator; An LED signal generator is used to send the current iteration error to the power driver; A power driver is used to output driving current to each LED in the LED light source array according to the current iteration error, until the real-time spectral beam matches the target spectrum; A temperature control component is used to maintain the real-time temperature of the light source generating component within a preset temperature range.
2. The spectral light source device according to claim 1, characterized in that, The light source generating component includes: an integrating sphere, the integrating sphere including an incident light end and an exit light end; The light-incident end is provided with an LED light source array; The light-emitting end is used by the LED light source array to output a real-time spectral beam.
3. The spectral light source device according to claim 2, characterized in that, The light-emitting end is equipped with a filter module.
4. The spectral light source device according to claim 1, characterized in that, The sensor assembly includes a temperature sensor, a spectrometer, and a power sensor; A temperature sensor is used to monitor the real-time temperature of the light source generating component; A spectrometer is used to collect real-time spectral information of the real-time spectral beam output by the light source generating component; A power sensor is used to monitor the drive current value of the power output component.
5. A control method for a spectral light source device, characterized in that, The control method, applied to the spectral light source device as described in any one of claims 1 to 4, comprises the following steps: In response to the start command, the power output component is controlled to output a drive current, a brightness compensation current is obtained, and the drive current is compensated according to the brightness compensation current so that the light source generating component outputs a corresponding real-time spectral beam. The brightness compensation current is determined based on the brightness change information of each LED in the LED light source array in the light source generating component during the initial lighting period, which is from the lighting moment to the brightness stabilization moment. The sensor assembly collects real-time spectral information of the real-time spectral beam output by the light source generating assembly and the real-time temperature of the light source generating assembly. The system acquires the target spectrum through a computation module and calculates the current residual sum of squares based on the real-time spectral information and the target spectrum. It then acquires a damping factor and calculates the current iteration error and the estimated residual sum of squares under the current iteration error based on the Jacobian matrix of the current residual sum of squares and the damping factor. The current iteration error is the current value at which the real-time spectral information converges to the target spectrum. If the estimated residual sum of squares is less than the current residual sum of squares, the damping factor is reduced to obtain a new damping factor. If the estimated residual sum of squares is not less than the current residual sum of squares, the damping factor is increased to obtain a new damping factor. The system adjusts the driving current based on the current iteration error and executes the step of calculating the current residual sum of squares based on the real-time spectral information and the target spectrum until the real-time spectral beam matches the target spectrum. The current iteration error is sent to the power driver via an LED signal generator; The control power driver outputs driving current to each LED in the LED light source array in the light source generation component according to the current iteration error, until the real-time spectral beam matches the target spectrum; The temperature control component maintains the real-time temperature of the light source generating component within a preset temperature range.
6. A control device for a spectral light source apparatus, characterized in that, The control device of the spectral light source device includes a memory and a processor. The memory stores a computer program that can run on the processor. When the computer program is executed by the processor, it implements the steps of the control method as described in claim 5.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the control method as described in claim 5.
Citation Information
Patent Citations
Adjustable spectrum light source for color image collection
CN204127795U