Calibration method and system of optical sensor
The MCU control processing module performs dynamic pulse width sequence formulation and multi-level energy exposure testing on the light sensor, combined with time series spectrum analysis and gray value block processing, which solves the problem of long calibration time of traditional light sensors and achieves fast and accurate Calibrated and efficient production.
Patent Information
- Application Number
- CN202410872562.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional light sensor calibration methods in smart devices result in long test times, waste resources and reduce productivity, especially in systems with long boot times.
Use the MCU control processing module to formulate dynamic pulse width sequences for the light sensor, generate pulse width sequence data, conduct multi-level energy exposure tests, combine time series spectrum analysis and gray value block processing, generate comprehensive response performance rating data, and perform nonlinear Error compensation and automatic recalibration.
It achieves fast and accurate light sensor calibration, improves calibration efficiency and production efficiency, and ensures high accuracy and high reliability of light sensors in different application scenarios.
Smart Images

Figure CN118794534A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of photoelectric detection technology, and in particular to a calibration method and system for a light sensor. Background Art
[0002] Optical sensors are an important electronic component widely used in various fields. They are widely used in various application scenarios such as ambient light detection, object reflected light measurement, and spectral analysis. By converting optical signals into electrical signals, optical sensors can accurately detect and measure parameters such as light intensity and spectrum. They play an irreplaceable role in industrial automation, environmental monitoring, communication technology and other fields. With the development of science and technology and the increase in application needs, the accuracy and reliability requirements of optical sensors are also increasing. In order to ensure the high accuracy and high reliability of optical sensors in different application scenarios, it is particularly important to calibrate them effectively. However, the traditional calibration method of optical sensors usually integrates optical sensors into smart device products and detects their responses during product startup and operation. Smart device products themselves are usually large systems with relatively long startup times, which take seconds or minutes, which leads to a waste of time in the testing process, which not only increases the overall time consumption of the test, but also reduces production efficiency. Summary of the invention
[0003] Based on this, the present invention provides a method and system for calibrating an optical sensor to solve at least one of the above technical problems.
[0004] To achieve the above object, a method for calibrating an optical sensor includes the following steps:
[0005] Step S1: The MCU controls the processing module to formulate a dynamic pulse width sequence for the light sensor to be measured, and generates pulse width sequence data; the pulse energy is precisely adjusted according to the pulse width sequence data, and a multi-level pulse energy sequence signal is generated; the multi-level pulse energy sequence signal is used to perform a multi-level energy exposure test on the light sensor to be measured, and a multi-frame exposure response image data and a real-time exposure response data are generated respectively;
[0006] Step S2: performing time-series spectrum analysis on the real-time exposure response data to obtain time-series exposure response spectrum data; performing performance index calculation based on the time-series exposure response spectrum data to generate key response index performance data; performing comprehensive response performance rating processing based on the key response index performance data to obtain comprehensive response performance rating data;
[0007] Step S3: Testing the performance of the light sensor to be tested is determined by using the comprehensive response performance rating data, and grayscale value block processing is performed on the multi-frame exposure response image data to generate multi-frame response block graph data; intrinsic response curve identification is performed based on the multi-frame response block graph data to generate intrinsic response curve data;
[0008] Step S4: performing multi-dimensional correction matrix calculation according to the intrinsic response curve data to generate compensation calibration coefficients; performing nonlinear error compensation processing by using the compensation calibration coefficients to generate compensation calibration response data;
[0009] Step S5: calibrating the control response parameters of the light sensor to be measured by compensating the calibration response data, and performing automatic recalibration processing to generate an automatic recalibration strategy.
[0010] The present invention controls the processing module through the MCU to formulate a dynamic pulse width sequence for the light sensor to be measured, which can realize flexible control and adjustment of the light sensor. The generation of pulse width sequence data helps to construct a multi-level pulse energy sequence signal, thereby realizing multi-level energy exposure test processing of the light sensor, which can not only simulate the actual working environment under different light intensity conditions, but also comprehensively evaluate the response characteristics of the light sensor, thereby improving the accuracy and reliability of calibration. Performing time-series spectrum analysis on real-time exposure response data helps to gain a deep understanding of the response characteristics of the light sensor in different frequency ranges, thereby revealing its dynamic response capability to light signals. Such analysis can provide more detailed spectrum data. According to the performance index calculation based on the time-series exposure response spectrum data, the response of the light sensor at different frequencies can be accurately evaluated, reflecting the performance of the light sensor in actual work, including key indicators such as response speed and signal-to-noise ratio. By performing comprehensive response performance rating processing on the key response index performance data, the importance of various performance indicators can be comprehensively considered, and the overall performance of the light sensor can be evaluated and classified accordingly. By performing test performance judgment on the light sensor to be measured through the comprehensive response performance rating data, its performance can be comprehensively evaluated, including response speed, sensitivity, stability and other aspects. Such performance judgment can intuitively understand the working state of the light sensor. At the same time, by performing grayscale value block processing on the multi-frame exposure response image data, the output data of the light sensor can be analyzed more carefully, the response characteristics of different regions can be extracted, and the output of the light sensor can be spatially analyzed to find the existing non-uniformity or abnormality. According to the multi-frame response block image data, the intrinsic response curve identification can be performed to accurately extract the intrinsic response curve data of the light sensor, that is, the image performance characteristics of the light sensor under different light intensities. According to the intrinsic response curve data, the multi-dimensional correction matrix calculation can accurately establish the calibration model of the light sensor and calibrate it according to different light intensities and spectral conditions. Such a correction matrix can effectively correct the nonlinear error in the output of the light sensor and improve its measurement accuracy and reliability. By performing nonlinear error compensation processing on the compensation calibration coefficient, the output data of the light sensor can be compensated in real time according to the compensation coefficient extracted in the correction model, further improving its measurement accuracy and stability. Such compensated calibration response data can more accurately reflect the actual working state of the light sensor, thereby ensuring that it can provide reliable measurement results in various application scenarios. By compensating the calibration response data to calibrate the control response parameters of the optical sensor to be measured, the response parameters of the optical sensor can be adjusted and calibrated according to the actual measurement situation, and the optical sensor can be automatically recalibrated periodically or triggered by events according to the actual working situation to ensure its long-term stability and accuracy. Generating an automatic recalibration strategy can ensure that the performance of the optical sensor is always kept in the best state according to the usage and environmental changes of the optical sensor.Therefore, a calibration method of a light sensor of the present invention realizes multi-level energy exposure test by formulating dynamic pulse width sequence and adjusting precise pulse energy; performs time series spectrum analysis and performance index calculation on real-time exposure response data, and can quickly obtain the response characteristics of the light sensor, so as to accurately evaluate its performance. The light sensor is tested and judged by using comprehensive response performance rating data; multi-dimensional correction matrix calculation and nonlinear error compensation processing are performed according to intrinsic response curve data, so as to better correct the nonlinear error of the light sensor; control response parameter calibration and automatic recalibration processing are performed by compensating the calibration response data, so as to quickly realize the automatic calibration of the light sensor, thereby improving the calibration efficiency and production efficiency.
[0011] Preferably, step S1 comprises the following steps:
[0012] Step S11: installing the light sensor to be tested on the light sensing board connector; using a photometer to measure the light output characteristics of the laser diode to generate light source accuracy data;
[0013] Step S12: performing drive current tuning processing on the drive circuit according to the light source precision data to generate optimal drive current curve data;
[0014] Step S13: The MCU controls the processing module to formulate a dynamic pulse width sequence for the optimal driving current curve data to generate pulse width sequence data;
[0015] Step S14: performing precise pulse energy regulation according to the pulse width sequence data to generate a multi-level pulse energy sequence signal, wherein the precise pulse energy regulation achieves laser pulses of different energy levels by controlling the pulse current amplitude to remain unchanged and extending the pulse duration;
[0016] Step S15: focusing the pulsed laser beam on the light sensor to be measured to install the optical imaging element;
[0017] Step S16: Based on the multi-level pulse energy sequence signal, the optical imaging element is used to perform a multi-level energy exposure test on the light sensor to be tested, and exposure response image acquisition is performed to generate multiple frames of exposure response image data and real-time exposure response data.
[0018] The present invention installs the light sensor to be tested on the photosensitive board connector to ensure that it can be connected to the test equipment and accurately measure the light signal. At the same time, a photometer is used to measure the light output characteristics of the laser diode to ensure the stability and accuracy of the light source used. The drive current of the drive circuit is tuned by the light source accuracy data to ensure that the output light beam of the laser diode is stable and has consistent performance. The working state of the laser diode can be adjusted to provide a stable and reliable light source signal. The pulse width is accurately adjusted according to the characteristics of the laser diode. The pulse laser beam is focused on the light sensor to be tested to ensure the accurate projection and collection of the light signal during the test. The light sensor to be tested is subjected to a multi-level energy exposure test using an optical imaging element and a multi-level pulse energy sequence signal. Such exposure test and image acquisition can comprehensively evaluate the response characteristics of the light sensor.
[0019] Preferably, step S2 comprises the following steps:
[0020] Step S21: performing signal quality preprocessing on the real-time exposure response data to generate standard exposure response data; performing time series spectrum analysis on the standard exposure response data to obtain time series exposure response spectrum data;
[0021] Step S22: extracting features from the time-series exposure response spectrum data to obtain response feature vector data; and constructing response characteristic matrix data based on the response feature vector data;
[0022] Step S23: performing principal component analysis according to the response characteristic matrix data, and calculating performance indicators to generate key response indicator performance data;
[0023] Step S24: using the multi-level pulse energy sequence signal to perform test energy level pairing on the key response index performance data, and perform response performance calibration processing to obtain response performance index calibration data;
[0024] Step S25: performing linear consistency evaluation on key response indicator performance data through response performance indicator calibration data to generate response consistency evaluation data;
[0025] Step S26: performing performance index cluster analysis on the response consistency evaluation data and performing nonlinear error calculation to obtain response performance error data;
[0026] Step S27: Perform comprehensive response performance rating processing based on the response performance error data to obtain comprehensive response performance rating data.
[0027] The present invention performs signal quality preprocessing on real-time exposure response data, which can remove noise and outliers, improve the accuracy and reliability of data, and generate more reliable standard exposure response data. According to the standard exposure response data, time-series spectrum analysis can be performed to identify the frequency characteristics of the light sensor, so as to better understand its response law in the time domain. Feature extraction is performed on the time-series exposure response spectrum data, and key features can be extracted from complex spectrum data to describe the performance characteristics of the light sensor. Based on the response feature vector data, the response characteristic matrix data is constructed, and the multi-dimensional response characteristics can be integrated into a matrix form. Through principal component analysis, the most representative principal component can be extracted from the response characteristic matrix, the data dimension can be reduced, the most informative features can be extracted, and the key response index performance data can be generated to comprehensively consider various performance indicators of the light sensor. Using multi-level pulse energy sequence signals to test energy level pairing, the response performance under different energy levels can be comprehensively evaluated, and its stability and accuracy under different energy conditions can be verified. The linearity consistency evaluation of the key response index performance data is performed through the response performance index calibration data, and it can be evaluated whether the response of the light sensor at different energy levels presents a linear relationship. This evaluation can verify whether the response characteristics of the optical sensor at each energy level are consistent, thereby verifying its reliability and stability under different working conditions, and clearly understand whether there is a significant linear deviation in the response characteristics of the optical sensor at different energy levels. Performance indicator cluster analysis of the response consistency evaluation data can classify and group the response performance of the optical sensor, and evaluate the degree of nonlinear error of the optical sensor at different energy levels. Comprehensive response performance rating processing based on the response performance error data can comprehensively consider the performance of the optical sensor at different energy levels.
[0028] Preferably, step S3 comprises the following steps:
[0029] Step S31: The response performance of the comprehensive response performance rating data is judged by a preset sensor test performance threshold. When the comprehensive response performance rating data is higher than or equal to the preset sensor test performance threshold, the calibration main control PCB board controls the LED display light to display green, marking the light sensor to be tested as a qualified light sensor;
[0030] Step S32: When the comprehensive response performance rating data is lower than the preset sensor test performance threshold, the calibration main control PCB board controls the LED display light to display red, marks the light sensor to be tested as an unqualified light sensor, and alarms through a buzzer, performs grayscale image processing on the multiple frames of exposure response image data, and generates grayscale exposure response image data;
[0031] Step S33: performing multi-frame alignment analysis on the grayscale exposure response image data, and performing edge detection and cropping processing to obtain primary feature image data;
[0032] Step S34: performing image tensor analysis according to the primary feature image data, and performing grayscale value block processing through a preset sliding window to generate multi-frame response block image data;
[0033] Step S35: performing two-dimensional discrete frequency domain transformation processing on the multi-frame response block image data to generate a multi-frame block frequency domain coefficient matrix; performing amplitude spectrum calculation on the multi-frame block frequency domain coefficient matrix to generate multi-frame amplitude spectrum feature vector data;
[0034] Step S36: performing wavelet packet decomposition on the multi-frame response block image data through the multi-frame amplitude spectrum feature vector data to generate image block load feature data;
[0035] Step S37: performing intrinsic response curve identification on the key response indicator performance data through the image block load characteristic data and the multi-level pulse energy sequence signal to generate intrinsic response curve data.
[0036] The present invention can quickly and accurately evaluate whether the performance of the optical sensor meets the preset standard by judging the comprehensive response performance rating data. According to the judgment result, the main control PCB board is calibrated to control the LED display light, and the qualified optical sensor is marked as green. When the comprehensive response performance rating data is lower than the preset threshold, the LED display light is displayed in red and the buzzer alarm is used to timely discover the situation that the optical sensor performance is unqualified, so as to avoid the flow of unqualified products into the market. Multi-frame alignment analysis and edge detection and cropping processing are performed on the grayscale exposure response image data, and the primary feature image data of the exposure response of the optical sensor can be extracted, and the noise and error introduced by uneven exposure or edge effect can be eliminated. Image tensor analysis can convert the primary feature image data into a tensor form of higher dimension, more comprehensively represent the spatial information of the image, and help to capture more complex structures and patterns in the image. Grayscale value block processing is performed through a preset sliding window, and the image can be divided into uniform small blocks, and the grayscale value information of each block is extracted, which helps to analyze and process the image more carefully. Through two-dimensional discrete frequency domain transformation processing, the multi-frame response block image data is converted into a frequency domain domain coefficient matrix to extract the frequency domain information of the image. The amplitude spectrum is further calculated to obtain multi-frame amplitude spectrum feature vector data. Through wavelet packet decomposition, the multi-frame amplitude spectrum feature vector data is applied to the multi-frame response block image data, which can better extract the local features and detail information of the image. The image block load feature data generated in this way can more comprehensively describe the local properties and spatial structure of the exposure response of the light sensor. The intrinsic response curve of the light sensor can be determined by identifying the intrinsic response curve through the image block load feature data and the multi-level pulse energy sequence signal. This curve can more comprehensively reflect the response characteristics of the light sensor at different energy levels, including its important performance indicators such as sensitivity and dynamic range.
[0037] Preferably, step S4 comprises the following steps:
[0038] Step S41: querying the typical response parameter value of the light sensor to be measured to generate a typical response parameter value;
[0039] Step S42: performing theoretical response curve calculation on typical response parameter values using a preset gamma curve model to generate standard response curve data;
[0040] Step S43: performing curve residual fitting processing on the standard response curve data using the intrinsic response curve data to generate residual response curve data;
[0041] Step S44: performing least square method deviation calculation according to the residual response curve data to generate expected response characteristic data;
[0042] Step S45: performing multi-dimensional correction matrix calculation according to the expected response characteristic data to generate compensation calibration coefficients;
[0043] Step S46: performing nonlinear error compensation processing on the light sensor to be measured by using the compensation calibration coefficient to generate compensation calibration response data.
[0044] The present invention obtains typical response parameter values of the light sensor to be measured, and these parameter values may include parameters such as photosensitivity, dark current, and linear range. By calculating the typical response parameter values using a gamma curve model, theoretical standard response curve data can be obtained. Curve residual fitting processing can compare the difference between the actual response curve of the light sensor to be measured and the standard response curve, thereby obtaining residual response curve data. These data indicate the deviation between the actual response of the light sensor to be calibrated and the theoretical expectation. Through the least squares deviation calculation, the deviation in the residual response curve data can be quantified to obtain the expected response characteristic data, which can indicate the difference between the actual response of the light sensor to be calibrated and the standard response. Multidimensional correction matrix calculation can comprehensively consider the deviations of various aspects in the expected response characteristic data and generate compensation calibration coefficients. These coefficients can be used to adjust the response characteristics of the light sensor to be measured so that it is closer to the standard response curve. The nonlinear error compensation processing of the light sensor to be measured using the compensation calibration coefficient can correct its response characteristics so that it more accurately conforms to the standard response curve.
[0045] Preferably, step S5 comprises the following steps:
[0046] Step S51: using the light sensor to be measured to perform parameter vector decoding processing on the compensation calibration response data to generate decoded parameter vector data;
[0047] Step S52: dividing the decoded parameter vector data into functional calibration parameters to obtain main calibration parameters and auxiliary calibration parameters respectively;
[0048] Step S53: using the main calibration parameters to perform control response parameter calibration processing on the light sensor to be measured, and generating main calibration feedback data;
[0049] Step S54: using the light sensor to be measured to perform hardware adaptation pipeline calibration processing on the auxiliary calibration parameters, and write the hardware adaptation register to generate auxiliary calibration feedback data;
[0050] Step S55: the MCU controls the processing module to establish a flow control gate for the main calibration feedback data and the auxiliary calibration feedback data, and performs automatic recalibration processing to generate an automatic recalibration strategy.
[0051] The present invention converts the compensation calibration response data into parameter vector data that can be used for calibration. The decoded parameter vector data contains key calibration information. Functional calibration parameter division can divide the decoded parameter vector data into two parts: main calibration parameters and auxiliary calibration parameters. The main calibration parameters usually contain key parameters that affect the software adjustment performance of the optical sensor, while the auxiliary calibration parameters contain some hardware calibration parameters or parameters related to specific applications. By using the main calibration parameters to calibrate the control response parameters of the optical sensor to be measured, the key parameters of the optical sensor can be adjusted in a targeted manner. The calibration processing of the auxiliary calibration parameters usually requires operations such as hardware adapter pipeline calibration and register writing to ensure the correct application and effectiveness of the parameters. Through the processing of the auxiliary calibration parameters by the optical sensor to be measured, the performance and stability of the optical sensor can be further optimized. By establishing a flow control gate, the main calibration feedback data and the auxiliary calibration feedback data can be reasonably controlled to ensure the stability and controllability of the calibration process. The generation of an automatic recalibration strategy can monitor the performance changes of the sensor during the calibration process, and adjust and correct the calibration in a timely manner to ensure the accuracy and stability of the optical sensor.
[0052] The present invention further provides a light sensor calibration system, which executes the light sensor calibration method as described above, and the light sensor calibration system comprises:
[0053] The pulse exposure test module is used to formulate a dynamic pulse width sequence for the light sensor to be measured through the MCU control processing module to generate pulse width sequence data; accurately adjust the pulse energy according to the pulse width sequence data to generate a multi-level pulse energy sequence signal; use the multi-level pulse energy sequence signal to perform multi-level energy exposure test processing on the light sensor to be measured, and generate multi-frame exposure response image data and real-time exposure response data respectively;
[0054] The response performance evaluation module is used to analyze the time-series spectrum of the real-time exposure response data to obtain the time-series exposure response spectrum data; perform performance index calculation based on the time-series exposure response spectrum data to generate key response index performance data; perform comprehensive response performance rating processing based on the key response index performance data to obtain comprehensive response performance rating data;
[0055] The response curve identification module is used to determine the test performance of the light sensor to be tested through the comprehensive response performance rating data, and to perform grayscale value block processing through the multi-frame exposure response image data to generate multi-frame response block image data; perform intrinsic response curve identification based on the multi-frame response block image data to generate intrinsic response curve data;
[0056] The calibration coefficient calculation module is used to perform multi-dimensional correction matrix calculation according to the intrinsic response curve data to generate compensation calibration coefficients; perform nonlinear error compensation processing through the compensation calibration coefficients to generate compensation calibration response data;
[0057] The automatic recalibration module is used to calibrate the control response parameters of the light sensor to be measured by compensating the calibration response data, and perform automatic recalibration processing to generate an automatic recalibration strategy. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A schematic flow chart of the steps of the optical sensor calibration method and system of the present invention;
[0059] Figure 2 for Figure 1 Detailed implementation steps of step S4 in FIG.
[0060] Figure 3 for Figure 1 Detailed implementation steps of step 55 are shown in the flowchart;
[0061] Figure 4 The module diagram for calibrating the main control PCB board;
[0062] Figure 5 This is a schematic diagram of the optical sensor test process;
[0063] Figure 6 Schematic diagram of the communication error handling mechanism for the optical sensor test;
[0064] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0065] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.
[0066] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0067] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0068] To achieve this, please refer to Figures 1 to 4 The present invention provides a method for calibrating a light sensor, comprising the following steps:
[0069] Step S1: The MCU controls the processing module to formulate a dynamic pulse width sequence for the light sensor to be measured, and generates pulse width sequence data; the pulse energy is precisely adjusted according to the pulse width sequence data, and a multi-level pulse energy sequence signal is generated; the multi-level pulse energy sequence signal is used to perform a multi-level energy exposure test on the light sensor to be measured, and a multi-frame exposure response image data and a real-time exposure response data are generated respectively;
[0070] Step S2: performing time-series spectrum analysis on the real-time exposure response data to obtain time-series exposure response spectrum data; performing performance index calculation based on the time-series exposure response spectrum data to generate key response index performance data; performing comprehensive response performance rating processing based on the key response index performance data to obtain comprehensive response performance rating data;
[0071] Step S3: Testing the performance of the light sensor to be tested is determined by using the comprehensive response performance rating data, and grayscale value block processing is performed on the multi-frame exposure response image data to generate multi-frame response block graph data; intrinsic response curve identification is performed based on the multi-frame response block graph data to generate intrinsic response curve data;
[0072] Step S4: performing multi-dimensional correction matrix calculation according to the intrinsic response curve data to generate compensation calibration coefficients; performing nonlinear error compensation processing by using the compensation calibration coefficients to generate compensation calibration response data;
[0073] Step S5: calibrating the control response parameters of the light sensor to be measured by compensating the calibration response data, and performing automatic recalibration processing to generate an automatic recalibration strategy.
[0074] In the embodiment of the present invention, reference Figure 1 The above is a schematic flow chart of the steps of a calibration method for an optical sensor of the present invention. In this embodiment, the calibration method for an optical sensor includes the following steps:
[0075] Step S1: The MCU controls the processing module to formulate a dynamic pulse width sequence for the light sensor to be measured, and generates pulse width sequence data; the pulse energy is precisely adjusted according to the pulse width sequence data, and a multi-level pulse energy sequence signal is generated; the multi-level pulse energy sequence signal is used to perform a multi-level energy exposure test on the light sensor to be measured, and a multi-frame exposure response image data and a real-time exposure response data are generated respectively;
[0076] In an embodiment of the present invention, first, the light sensor to be measured and the light-sensitive board are connected and calibrated to ensure that the measurement data is accurate. Then, the laser diode is turned on, the light output data at different time points are collected, the light source accuracy data is generated, and the driving current of the laser diode is tuned. The relationship between the light source accuracy data and the driving current is analyzed by mathematical modeling to determine the optimal driving current parameters. Then, the MCU control module is used to calculate and generate dynamic pulse width sequence data according to the optimal driving current curve data. The pulse width is adjusted using the PWM control method to generate a multi-level pulse energy output sequence signal. Then, the light sensor is fixed, its position angle is adjusted so that it is aligned with the optical axis of the laser beam, and the focusing mechanism is adjusted so that the laser beam forms a clear light spot on the sensor surface. The optical imaging element parameters are set, the laser diode is started, and the light sensor is exposed step by step according to the multi-level pulse energy sequence. At the same time, the image sensor is used to collect the response image data after each exposure to generate multiple frames of exposure response image data; and the exposure response data of the electrical output signal of the light sensor is monitored and recorded in real time.
[0077] Step S2: performing time-series spectrum analysis on the real-time exposure response data to obtain time-series exposure response spectrum data; performing performance index calculation based on the time-series exposure response spectrum data to generate key response index performance data; performing comprehensive response performance rating processing based on the key response index performance data to obtain comprehensive response performance rating data;
[0078] In an embodiment of the present invention, the real-time exposure response data generated by the light sensor is preprocessed using a signal processing tool in Matlab or Python to remove noise and smooth the signal to obtain standard exposure response data. The standard exposure response data is analyzed by fast Fourier transform (FFT) to obtain time series exposure response spectrum data. By calculating the variance contribution rate of each principal component, the main component is selected for analysis, the response sensitivity and linearity of the light sensor are calculated, and key response index performance data are generated. Laser pulse signals of multiple energy levels are set and applied to the light sensor, the response performance data is recorded and calibrated, and response performance index calibration data is generated. The response performance index calibration data is analyzed by a linear regression method, the linear regression equation and correlation coefficient of each energy level are calculated, and the linear consistency is evaluated. The rating standard is set according to the response performance error data, and the performance data of each light sensor is scored and rated using a comprehensive rating algorithm to obtain comprehensive response performance rating data.
[0079] Step S3: Testing the performance of the light sensor to be tested is determined by using the comprehensive response performance rating data, and grayscale value block processing is performed on the multi-frame exposure response image data to generate multi-frame response block graph data; intrinsic response curve identification is performed based on the multi-frame response block graph data to generate intrinsic response curve data;
[0080] In an embodiment of the present invention, according to a preset sensor test performance threshold, such as a threshold of 80, the comprehensive response performance rating data is compared with the threshold to determine whether the optical sensor is qualified. When the comprehensive response performance rating data is higher than or equal to the threshold, the LED display light is controlled to be green by calibrating the main control PCB board, indicating that the sensor is qualified and can be put into use. When the comprehensive response performance rating data is lower than the threshold, the LED display light is controlled to be red by calibrating the main control PCB board, and an alarm is sounded by a buzzer, indicating that the sensor is unqualified. Grayscale image conversion is performed on the multi-frame exposure response image data corresponding to the unqualified sensor, and image processing algorithms such as image registration, edge detection and cropping are used to obtain primary feature image data. Fast Fourier transform is applied to the multi-frame response block image data, and the amplitude spectrum of the frequency domain coefficient matrix is calculated to obtain multi-frame amplitude spectrum feature vector data. The image block load feature data and the response index performance data are input into the machine learning model for training to obtain a trained model. The training model is used to predict the key response index performance data to generate the intrinsic response curve data.
[0081] Step S4: performing multi-dimensional correction matrix calculation according to the intrinsic response curve data to generate compensation calibration coefficients; performing nonlinear error compensation processing by using the compensation calibration coefficients to generate compensation calibration response data;
[0082] In an embodiment of the present invention, by referring to the technical specification, product manual or related technical documents of the light sensor to be measured, the typical response parameter values of the sensor, such as sensitivity, dynamic range, response time, etc., are obtained. A gamma curve model is selected, and the model is implemented using mathematical software. The light intensity range and typical response parameter values are input to generate standard response curve data. The intrinsic response curve data and the standard response curve data are subjected to curve fitting processing, and the residual between the fitting curve and the standard curve is calculated to obtain the residual response curve data. The residual response curve data is used as input, and the least squares method is applied to fit the mathematical model to describe the relationship between the actual response and the expected response, and the expected response characteristic data is obtained. Using the measured light intensity and sensor output value data, linear algebra and statistical methods are applied to establish a multidimensional correction matrix to describe the relationship between the light intensity and the sensor output value. Using methods such as polynomial functions, nonlinear error compensation processing is performed on the output value of the light sensor to be measured according to the compensation calibration coefficient to obtain the compensation calibration response data.
[0083] Step S5: calibrating the control response parameters of the light sensor to be measured by compensating the calibration response data, and performing automatic recalibration processing to generate an automatic recalibration strategy.
[0084] In an embodiment of the present invention, the compensation calibration response data of the light sensor to be measured (such as a CMOS image sensor) is stored in an array containing 16-bit data, and each data point is mapped to a predefined calibration coefficient using a table lookup method to generate decoded parameter vector data. According to a pre-set division rule, the decoded parameter vector data is functionally divided to obtain main calibration parameters (such as software control parameters such as sensitivity and linearity) and auxiliary calibration parameters (such as hardware control parameters such as I / O characteristics). The MCU control processing module sets a threshold to determine whether automatic recalibration is required based on changes in the main calibration feedback data and the auxiliary calibration feedback data. When the automatic recalibration condition is triggered, the MCU control processing module executes the automatic recalibration strategy, that is, repeats the main calibration and auxiliary calibration processes, updates the parameters and recalibrates the sensor.
[0085] Preferably, step S1 comprises the following steps:
[0086] Step S11: installing the light sensor to be tested on the light sensing board connector; using a photometer to measure the light output characteristics of the laser diode to generate light source accuracy data;
[0087] Step S12: performing drive current tuning processing on the drive circuit according to the light source precision data to generate optimal drive current curve data;
[0088] Step S13: The MCU controls the processing module to formulate a dynamic pulse width sequence for the optimal driving current curve data to generate pulse width sequence data;
[0089] Step S14: performing precise pulse energy regulation according to the pulse width sequence data to generate a multi-level pulse energy sequence signal, wherein the precise pulse energy regulation achieves laser pulses of different energy levels by controlling the pulse current amplitude to remain unchanged and extending the pulse duration;
[0090] Step S15: focusing the pulsed laser beam on the light sensor to be measured to install the optical imaging element;
[0091] Step S16: Based on the multi-level pulse energy sequence signal, the optical imaging element is used to perform a multi-level energy exposure test on the light sensor to be tested, and exposure response image acquisition is performed to generate multiple frames of exposure response image data and real-time exposure response data.
[0092] In an embodiment of the present invention, the light sensor to be measured is installed on the photosensitive board connector to ensure that the connection between the light sensor and the photosensitive board connector is stable and not loose. The photometer is turned on and a preliminary calibration is performed to ensure the accuracy of its measurement data. The laser diode is started to emit a stable laser beam, and the light output data at multiple different time points are collected by the photometer to generate light source accuracy data. The driving circuit of the laser diode is subjected to drive current tuning processing. A programmable power supply module is used to apply different current values to the laser diode, and the changes in the light source output are observed by gradually adjusting the current size. Mathematical modeling and data analysis software are used to analyze the relationship between the light source accuracy data and the driving current, find the optimal driving current parameters, ensure that the laser diode works under the optimal current conditions, and outputs stable and meets the expected light source characteristics. The MCU is used to control the processing module and formulate a dynamic pulse width sequence according to the optimal driving current curve data. First, the MCU calculates the driving current values corresponding to different pulse widths by reading the stored optimal driving current curve data. Then, the timer module is used to generate the corresponding pulse signal, and the pulse width is adjusted by PWM (pulse width modulation) control mode. This process needs to be implemented by writing an MCU control program to ensure that the generated pulse width sequence data is accurate and can be updated in real time to meet different test requirements. Multi-level pulse energy output is achieved by adjusting the duty cycle of the pulse signal. Using an oscilloscope and a photometer, the energy and duration of the laser pulse are monitored in real time to ensure that the output laser pulse energy is accurate and stable. The light sensor is fixed on an adjustable bracket, and the position and angle of the sensor are fine-tuned using a high-precision adjustment mechanism so that it is directly opposite the optical axis of the laser beam. Then, the focus mechanism is gradually adjusted to ensure that the laser beam forms a clear spot on the sensor surface. Use auxiliary focusing tools such as a microscope or a laser focuser to confirm the accuracy of the focus. Use an optical imaging element to perform a multi-level energy exposure test on the light sensor to be tested. First, set the parameters of the optical imaging element, such as focal length, aperture, and shutter speed, to ensure that it can accurately record laser pulses of different energy levels. Start the laser diode and expose the light sensor step by step according to the preset multi-level pulse energy sequence. After each exposure, the exposure response image of the light sensor is collected through an image sensor or a CCD camera. The image data are transferred to a computer and analyzed by image processing software to generate multiple frames of exposure response image data. At the same time, the electrical output signal of the light sensor is monitored in real time and the exposure response data is recorded.
[0093] Preferably, step S13 comprises the following steps:
[0094] Step S131: acquiring real-time ambient light data; calculating the ambient light change rate according to the real-time ambient light data to generate ambient light change rate data;
[0095] Step S132: using a linear regression model to perform ambient light fitting processing on the ambient light change rate data to generate ambient light change trend data;
[0096] Step S133: performing an ambient lighting impact assessment according to the ambient lighting change trend data to generate ambient lighting assessment data;
[0097] Step S134: formulating a preliminary pulse current signal according to the optimal driving current curve data to generate a preliminary pulse current signal;
[0098] Step S135: the MCU controls the processing module to perform current characteristic response processing on the light sensor to be measured using the preliminary pulse current signal to generate current response characteristic data;
[0099] Step S136: performing pulse current width analysis according to the current response characteristic data to generate a pulse width-current relationship diagram;
[0100] Step S137: performing adaptive reference pulse width calculation on the pulse width-current relationship diagram according to the ambient light evaluation data to generate reference pulse width data;
[0101] Step S138: formulating a dynamic pulse width sequence for the reference pulse width data using a preset dynamic pulse adjustment strategy to generate pulse width sequence data.
[0102] In an embodiment of the present invention, data is collected by installing multiple light sensors around the light sensor to be tested. The light sensors are evenly distributed in the test area to ensure the comprehensiveness and accuracy of data collection. Each light sensor is connected to a data acquisition module, which collects light intensity data in real time. The collected light data is processed, including removing outliers and smoothing data curves to generate real-time ambient light data. The light change rate is calculated and recorded by the light change rate formula (such as: change rate = (current light value-previous light value) / time interval) to generate ambient light change rate data. Select an appropriate regression model and input the ambient light change rate data for fitting. Use statistical analysis software such as MATLAB or the scikit-learn library in Python to perform linear regression analysis on the data, evaluate the fit of the model and adjust the model parameters. Based on the fitting results, ambient light change trend data is generated, including the trend line and change amplitude of light change over time. Simulate the response of the light sensor under different light conditions, and compare the stability and accuracy of the sensor output signal under different conditions. The evaluation results generate ambient light evaluation data, including the degree of interference of light changes on sensor signals (such as error percentage). Read the optimal driving current curve data and write a program to calculate the parameters of the preliminary pulse current signal (such as pulse frequency and duty cycle). For example, the optimal driving current curve data shows that the laser diode has the best light output at a current of 100mA. Through MATLAB fitting, the relationship equation between current and light output is obtained: I(t)=100+10sin(2pi50t), where I(t) is current, t is time, and 50 is frequency (Hz). Convert this equation into the PWM parameters of STM32, set the PWM frequency to 50Hz, and the duty cycle to 10% to generate a preliminary pulse current signal. Apply a preliminary pulse current signal to the light sensor through the STM32 MCU, and use a high-precision oscilloscope (such as Tektronix MSO44) to monitor and record the current response data of the sensor. The collected data includes the curve of the current changing with time. Save and analyze these response data to generate current response characteristic data. Generate a pulse width-current relationship diagram by analyzing the current change characteristics under different pulse widths. Calculate the baseline pulse width under different lighting conditions by writing an adaptive algorithm (such as based on a PID controller). For example, when the light intensity is 500 lux, the pulse width corresponding to the best response of the light sensor is 50 μs. Through the adaptive algorithm, the pulse width is dynamically adjusted according to the change of light intensity (such as increasing to 600 lux), and the new reference pulse width is calculated to be 55 μs. The reference pulse width data is input into the MCU control program to ensure that the light sensor can adaptively adjust the pulse width in the actual working environment to maintain the best response performance. Design a preset dynamic pulse adjustment strategy and determine the key parameters of the adjustment strategy, such as light intensity, change rate, and sensor response characteristics.Use MATLAB or Python to write a program, input the reference pulse width data and dynamic pulse adjustment strategy, process the data, and generate a dynamic pulse width sequence. Import the generated pulse width sequence data into the MCU control program, and implement dynamic pulse width control through the PWM module. For example, the reference pulse width data shows that the pulse width is 50μs when the light intensity is 500lux, and the pulse width is 55μs when the light intensity is 600lux. Through the dynamic pulse adjustment strategy, design an adjustment curve for the pulse width to change with the light intensity. Generate pulse width sequence data based on the curve to ensure that the pulse width can be dynamically adjusted under different lighting conditions.
[0103] Preferably, step S16 comprises the following steps:
[0104] Step S161: analyzing the laser pulse control signal according to the multi-level pulse energy sequence signal to generate a laser pulse control signal;
[0105] Step S162: performing synchronous shutter response time calculation on the high-speed linear array image sensor through the laser pulse control signal to obtain shutter response time data;
[0106] Step S163: Based on the laser pulse control signal, the MCU control processing module periodically issues control instructions to the driving circuit, and the driving circuit instantly injects a pulse current waveform into the laser diode to form a laser pulse with controllable intensity and precise duration; the optical imaging element is used to focus the laser pulse on the surface of the light sensor to perform a multi-energy level exposure test;
[0107] Step S164: the light sensor generates a response electrical signal through the light sensing board connector after each laser pulse exposure, and the response electrical signal is transmitted back to the MCU control processing module through the driving circuit for real-time acquisition and storage to generate real-time exposure response data;
[0108] Step S165: After receiving the shutter response time data, the high-speed linear array image sensor is synchronously started to capture the exposure response of the light sensor under different pulse energies at a high frame rate to generate multiple frames of exposure response image data.
[0109] In an embodiment of the present invention, a multi-level pulse energy sequence signal is read, and the signal contains pulse parameters of different energy levels, such as pulse width, amplitude and frequency. MATLAB or Python is used to write an analysis program to analyze the multi-level pulse energy sequence signal, and the pulse parameters of each energy level are converted into corresponding laser pulse control signals. The trigger time of each pulse is determined. MATLAB is used to write a synchronous calculation program, and the shutter response time of the high-speed linear array image sensor is calculated based on the trigger time of the laser pulse. In the specific operation, the shutter delay and exposure time are set, and the accuracy of the shutter response time is verified by experiments. The time parameters and current amplitude of each laser pulse are analyzed. A control program is written to set the timer to trigger periodically and output the control signal through the GPIO port. These control signals are transmitted to the input end of the drive circuit, and the drive circuit generates a corresponding pulse current waveform according to the received control signal. The frequency, duty cycle and current amplitude of the pulse are set. The PWM output signal is monitored by an oscilloscope (such as Tektronix MSO44) to ensure that it meets the preset control signal parameters. After receiving the PWM signal, the drive circuit uses a high-speed switch and a current regulation circuit to generate an accurate pulse current waveform and inject it into the laser diode. The laser diode emits a laser pulse under the action of the driving current. Use an optical lens (such as a convex lens with a focal length of 10 cm) to focus the laser pulse on the surface of the light sensor to ensure that the spot size and energy distribution meet the experimental requirements. By adjusting the lens position and angle, the focusing effect of the laser spot is optimized to ensure that laser pulses of different energy levels can accurately irradiate the photosensitive area of the light sensor. After the light sensor receives the laser pulse, it transmits the response signal to the driving circuit through the photosensitive board connector. After the driving circuit amplifies and processes the signal, it is transmitted to the ADC module of the MCU to generate real-time exposure response data. The high-speed linear array image sensor sets the synchronization start parameters according to the shutter response time data. Use a high-speed image acquisition card (such as NIPCIe-1433) to collect the exposure response images of the light sensor at different pulse energies at a high frame rate. The collected image data is stored in a computer, and the image processing software (such as MATLAB or OpenCV) is used to process the image data to generate multiple frames of exposure response image data.
[0110] Preferably, step S2 comprises the following steps:
[0111] Step S21: performing signal quality preprocessing on the real-time exposure response data to generate standard exposure response data; performing time series spectrum analysis on the standard exposure response data to obtain time series exposure response spectrum data;
[0112] Step S22: extracting features from the time-series exposure response spectrum data to obtain response feature vector data; and constructing response characteristic matrix data based on the response feature vector data;
[0113] Step S23: performing principal component analysis according to the response characteristic matrix data, and calculating performance indicators to generate key response indicator performance data;
[0114] Step S24: using the multi-level pulse energy sequence signal to perform test energy level pairing on the key response index performance data, and perform response performance calibration processing to obtain response performance index calibration data;
[0115] Step S25: performing linear consistency evaluation on key response indicator performance data through response performance indicator calibration data to generate response consistency evaluation data;
[0116] Step S26: performing performance index cluster analysis on the response consistency evaluation data and performing nonlinear error calculation to obtain response performance error data;
[0117] Step S27: Perform comprehensive response performance rating processing based on the response performance error data to obtain comprehensive response performance rating data.
[0118] In an embodiment of the present invention, real-time exposure response data generated by the optical sensor is read, and these data contain noise and other interference signals. Signal processing tools in Matlab or Python, such as filter design and denoising algorithms, are used to preprocess the data, remove noise, and smooth the signal. The preprocessed data is used as standard exposure response data. Next, the standard exposure response data is subjected to time-series spectrum analysis using fast Fourier transform (FFT) to obtain time-series exposure response spectrum data. The spectrum data is analyzed to extract key features, such as peak frequency, bandwidth, spectrum energy, etc. These eigenvalues are used as part of the response feature vector data, and the numpy library is used to combine multiple feature vector data into a matrix form. For example, there are 10 groups of laser pulses with different energy levels, and 5 spectrum features are extracted from each group of data, so the data dimension of the response characteristic matrix is 10x5. By calculating the variance contribution rate of each principal component, the first two principal components are selected for analysis, which explains more than 90% of the data variation. Using these principal components, the response sensitivity and linearity of the optical sensor are calculated to generate key response indicator performance data. For example, multiple energy levels of laser pulse signals are set, namely 30mA, 50mA, 70mA and 90mA, and the corresponding pulse times are 100ns, 500ns, 1μs and 2μs. The pulse signals of these energy levels are applied to the optical sensor, and its response performance data are recorded and calibrated. By comparing the response characteristics at different energy levels, the sensitivity and linearity of the optical sensor are adjusted, and finally the response performance index calibration data is generated. For example, the response performance index calibration data is analyzed by the linear regression method. Assume that the calibration data includes the output voltage and input current at different energy levels. Through linear regression analysis, the linear regression equation and correlation coefficient of each energy level are calculated to evaluate the linear consistency of the optical sensor. For example, the response consistency evaluation data is analyzed by the K-means clustering algorithm to identify different response modes. Assume that the data is divided into three categories, representing high-sensitivity, medium-sensitivity and low-sensitivity optical sensors. The nonlinear error of each cluster center is calculated, and the deviation between the actual data point and the cluster center is compared to obtain the response performance error data. For example, different rating standards are set based on the response performance error data, such as error range, response time, and linearity. Using a comprehensive rating algorithm, the performance data of each light sensor is scored and rated.
[0119] Preferably, step S3 comprises the following steps:
[0120] Step S31: The response performance of the comprehensive response performance rating data is judged by a preset sensor test performance threshold. When the comprehensive response performance rating data is higher than or equal to the preset sensor test performance threshold, the calibration main control PCB board controls the LED display light to display green, marking the light sensor to be tested as a qualified light sensor;
[0121] Step S32: When the comprehensive response performance rating data is lower than the preset sensor test performance threshold, the calibration main control PCB board controls the LED display light to display red, marks the light sensor to be tested as an unqualified light sensor, and alarms through a buzzer, performs grayscale image processing on the multiple frames of exposure response image data, and generates grayscale exposure response image data;
[0122] Step S33: performing multi-frame alignment analysis on the grayscale exposure response image data, and performing edge detection and cropping processing to obtain primary feature image data;
[0123] Step S34: performing image tensor analysis according to the primary feature image data, and performing grayscale value block processing through a preset sliding window to generate multi-frame response block image data;
[0124] Step S35: performing two-dimensional discrete frequency domain transformation processing on the multi-frame response block image data to generate a multi-frame block frequency domain coefficient matrix; performing amplitude spectrum calculation on the multi-frame block frequency domain coefficient matrix to generate multi-frame amplitude spectrum feature vector data;
[0125] Step S36: performing wavelet packet decomposition on the multi-frame response block image data through the multi-frame amplitude spectrum feature vector data to generate image block load feature data;
[0126] Step S37: performing intrinsic response curve identification on the key response indicator performance data through the image block load characteristic data and the multi-level pulse energy sequence signal to generate intrinsic response curve data.
[0127] In an embodiment of the present invention, according to a preset sensor test performance threshold, for example, a threshold of 80 is preset. When the comprehensive response performance rating data is higher than or equal to 80, it means that the performance of the sensor has reached the expected requirements, and the light sensor can be marked as a qualified light sensor. In actual operation, the LED display light is controlled to display green by calibrating the main control PCB board, indicating to the operator that the sensor has passed the calibration and can be put into use. For example, when the comprehensive response performance rating data reaches or exceeds 80, the pin of the LED light is controlled by Arduino to output a high-level signal, thereby lighting the LED display light and showing green. When the comprehensive response performance rating data is lower than the preset sensor test performance threshold, it means that the performance of the sensor does not meet the expected requirements, and it needs to be marked as an unqualified light sensor and corresponding processing is performed. In this case, it is necessary to calibrate the main control PCB board to control the LED display light to display red, and alarm through a buzzer to remind the operator. At the same time, the multi-frame exposure response image data of the corresponding test light sensor exposure is processed and converted into a grayscale image. For the grayscale exposure response image data, it is necessary to use image processing software (such as OpenCV) to align and analyze the multi-frame images to ensure that they are consistent in position and size. This can be achieved by using an image registration algorithm (such as phase correlation or feature-based methods). Edge detection and cropping are then performed to remove noise and irrelevant information at the edge of the image, ensuring that only the area of interest is retained. This can be done by applying an edge detection algorithm (such as Canny edge detection) and a cropping operation. Finally, primary feature image data is obtained, which contains the aligned and cropped image area. The image is divided into uniform small blocks, and the grayscale value of each block is extracted as a feature. This is usually implemented using functions in image processing libraries (such as OpenCV), for example, using the cv2.split() function to divide the image into blocks, and then extracting the grayscale value of each block based on the size of the sliding window. This is achieved by applying the fast Fourier transform (FFT) algorithm. Then, the amplitude spectrum of the frequency domain coefficient matrix is calculated to obtain multi-frame amplitude spectrum feature vector data. These operations are usually implemented using functions in numerical computing libraries (such as NumPy), for example, using the numpy.fft.fft2() function to perform FFT transform and then calculate the amplitude spectrum of the transform result. These time series signals are decomposed using wavelet packet decomposition algorithms (such as functions in the PyWavelets library) to obtain their frequency domain information, and the characteristic responses of each image block at different frequencies can be obtained. Finally, these frequency domain information are used as the load characteristic data of the image block. The model is established using a machine learning algorithm. First, the image block load characteristic data and response index performance data are input into the machine learning model for training. Then, the trained model is used to predict the key response index performance data to obtain the intrinsic response curve data.
[0128] Preferably, step S37 includes the following steps:
[0129] Step S371: performing adjacent frame image grouping processing on the image block load characteristic data to obtain grouped frame image block load characteristic data;
[0130] Step S372: construct a deep convolutional neural network model including a convolutional layer, a pooling layer, and a fully connected layer;
[0131] Step S373: inputting the grouped frame image block load feature data into the deep convolutional neural network model, using the first convolutional layer to extract low-level image features from the grouped frame image block load feature data, and generating a first convolutional feature map, wherein the first convolutional layer includes 32 convolution kernels with a step size of 2,5×5; using the first pooling layer to perform pooling dimensionality reduction processing on the first convolutional feature map, and generating first pooling feature map data, wherein the first pooling layer is a 2×2 maximum pooling;
[0132] Step S374: adding multiple convolutional layers and pooling layers, repeating step S373 several times to perform layer-by-layer convolutional pooling feature extraction, and generating high-level convolutional pooling feature map data;
[0133] Step S375: using a fully connected layer to perform feature response mapping processing on the high-level convolutional pooling feature map data to generate image block feature vector data;
[0134] Step S376: performing neuron scalar value mapping according to the image block feature vector data to generate a predicted exposure response time;
[0135] Step S377: obtaining the real exposure response time of the training corresponding group frame image through the multi-level pulse energy sequence signal; marking the real exposure response time as the supervision signal data;
[0136] Step S378: Automatically learn and extract relevant image feature patterns for the predicted exposure response time using a back propagation algorithm based on the supervisory signal data until the training converges, and adjust the neural network model parameters of the deep convolutional neural network model to obtain an exposure response feature recognition model;
[0137] Step S379: using the exposure response feature recognition model to perform intrinsic response curve recognition on the key response indicator performance data to generate intrinsic response curve data.
[0138] In an embodiment of the present invention, the image block load feature data is grouped into a group of images of adjacent frames, for example, adjacent frame images are grouped using a loop structure and appropriate conditional judgment. By setting appropriate parameters, such as time interval or number of frames, the image is divided into multiple groups, and the load feature data of the grouped frame image blocks is obtained. The TensorFlow library is imported and a new neural network model object is created. Then, the API provided by TensorFlow is used to add components such as convolutional layers, pooling layers, and fully connected layers to build a network structure. By setting the parameters of each layer, such as the convolution kernel size, the pooling window size, and the number of neurons in the fully connected layer, the construction of the deep convolutional neural network model is completed. The first convolution layer in the model is used to extract low-level image features from these grouped frame image block load feature data. The first convolution layer contains 32 convolution kernels, each of which is 5×5 in size and has a step size of 2, which means that the convolution kernel will scan the image with a step size of 2 pixels. In this way, low-level features such as edges and textures can be extracted from the image. Subsequently, the data after these feature extractions are sent to the first pooling layer for pooling dimensionality reduction processing. These newly added convolutional layers and pooling layers will repeat the operation in step S373, that is, convolution and pooling are performed on the feature map of the previous layer to extract higher-level features. In this way, after several convolution and pooling operations, high-level convolution and pooling feature map data can be obtained. The high-level convolution and pooling feature map is flattened into a one-dimensional vector and input into the fully connected layer. In the fully connected layer, each neuron is connected to all neurons in the previous layer, and the input features are combined and mapped by learning weights to generate a feature vector of the image block. A linear regression model, a support vector machine (SVM) or other regression model is used to model the relationship between the feature vector of the image block and the exposure response time. By learning the training data, a mapping function for a specific sensor can be obtained to map the feature vector of the image block to the corresponding exposure response time. The actual exposure time of the image is obtained through an external sensor device, or through an existing exposure test data set. The training data is input into the deep convolutional neural network model, and the network parameters are continuously adjusted through the back propagation algorithm to minimize the gap between the predicted exposure response time and the actual exposure response time. After multiple iterations of training, the network will learn effective image feature patterns. The collected sensor performance data is input into the model, and the model will identify the exposure response curve under different conditions based on the learned feature patterns. The intrinsic response curve data is represented as a graph or curve showing the relationship between the image feature pattern under light intensity and the output value of the sensor's key indicators. These data graphs or curves can show how the sensor output changes under different lighting conditions.
[0139] As an example of the present invention, refer to Figure 2 As shown, Figure 1Detailed implementation steps of step S4 in the flowchart, in this example, step S4 includes:
[0140] Step S41: querying the typical response parameter value of the light sensor to be measured to generate a typical response parameter value;
[0141] In an embodiment of the present invention, a typical response parameter value of the light sensor to be measured is queried. This usually involves consulting the technical specifications, product manuals, or related technical documents of the sensor. By consulting these materials, typical response parameter values of the sensor, such as sensitivity, dynamic range, response time, etc., can be obtained. For example, for a certain light sensor, its typical sensitivity is 0.1 lux, the dynamic range is 120 dB, and the response time is 10 ms.
[0142] Step S42: performing theoretical response curve calculation on typical response parameter values using a preset gamma curve model to generate standard response curve data;
[0143] In the embodiment of the present invention, a gamma curve model is selected, which is based on the Logistic function and includes parameters such as maximum value, slope and center. This model is implemented using mathematical software (such as the relevant library in MATLAB or Python), and the selected gamma curve model and the collected typical response parameter values are used to calculate the curve. The input light intensity range is mapped to the output sensor response value range to generate a series of data points. These data points will constitute a standard response curve.
[0144] Step S43: performing curve residual fitting processing on the standard response curve data using the intrinsic response curve data to generate residual response curve data;
[0145] In an embodiment of the present invention, the intrinsic response curve data and the standard response curve data are subjected to curve fitting processing. By adjusting the parameters of the curve, the fitting curve is made to be consistent with the standard curve as much as possible. After the fitting is completed, the residual between the fitting curve and the standard curve is calculated, i.e., the residual response curve data. For example, an appropriate curve model and fit are selected, and the curve parameters are adjusted to minimize the residual. By calculating the residual between the fitting curve and the standard curve, the residual response curve data is obtained.
[0146] Step S44: performing least square method deviation calculation according to the residual response curve data to generate expected response characteristic data;
[0147] In an embodiment of the present invention, the residual response curve data is used as input, and then the least square method is applied to fit an appropriate mathematical model to describe the relationship between the actual response and the expected response. According to the slope and intercept of the fitted straight line, the change of the expected response after each calibration is predicted. These expected response characteristic data may include the predicted residual value and the expected response curve data point calculated based on the predicted residual value. The expected response characteristic data refers to the expected response value of the optical sensor after calibration. These data may include the expected output value after calibration and the residual value after calibration.
[0148] Step S45: performing multi-dimensional correction matrix calculation according to the expected response characteristic data to generate compensation calibration coefficients;
[0149] In the embodiment of the present invention, for example, the output value of the sensor is 50 when the light intensity is 100 Lux, and the output value of the sensor is 55 when the light intensity is 200 Lux. Next, these data are used to calculate the multidimensional correction matrix. A multidimensional correction matrix is established by applying linear algebra and statistical methods, and the matrix describes the relationship between the light intensity and the sensor output value. By properly processing and analyzing these data, a set of compensation calibration coefficients can be obtained.
[0150] Step S46: performing nonlinear error compensation processing on the light sensor to be measured by using the compensation calibration coefficient to generate compensation calibration response data.
[0151] In an embodiment of the present invention, the compensation calibration coefficient is applied to the output value of the light sensor to be measured. For each output value, the corresponding compensation calibration coefficient is found according to its light intensity value, and the output value is corrected using these coefficients. The output value of the light sensor to be measured is subjected to nonlinear error compensation processing according to the compensation calibration coefficient. This usually involves using a polynomial function to adjust the output value, for example, multiplying each original output value by a corresponding compensation coefficient to obtain a calibrated output value. These calibrated output values will more accurately reflect the response characteristics of the light sensor, and the influence of nonlinear errors has been taken into account.
[0152] As an example of the present invention, refer to Figure 3 As shown, Figure 1 Detailed implementation steps of step S5 in the flowchart, in this example, step S5 includes:
[0153] Step S51: using the light sensor to be measured to perform parameter vector decoding processing on the compensation calibration response data to generate decoded parameter vector data;
[0154] In the embodiment of the present invention, for example, the light sensor to be measured is a CMOS image sensor, and its compensation calibration response data is stored in an array containing 16-bit data. The array contains the raw data output by the sensor under different lighting conditions and the corresponding calibration coefficients. A table lookup method can be used to map each data point to a predefined calibration coefficient, and finally generate a decoded parameter vector data containing all calibration coefficients.
[0155] Step S52: dividing the decoded parameter vector data into functional calibration parameters to obtain main calibration parameters and auxiliary calibration parameters respectively;
[0156] In the embodiment of the present invention, the decoded parameter vector data is input into the parameter division module, and the decoded parameter vector data is functionally divided according to the pre-set division rule to obtain the main calibration parameters and the auxiliary calibration parameters. The main calibration parameters usually include the core characteristic parameters of the optical sensor, such as sensitivity, linearity and other software-controlled parameters, and the auxiliary calibration parameters include some sensor hardware-controlled parameters, such as I / O characteristics.
[0157] Step S53: using the main calibration parameters to perform control response parameter calibration processing on the light sensor to be measured, and generating main calibration feedback data;
[0158] In the embodiment of the present invention, the optical sensor controller is used to configure the parameters of the optical sensor, and the main calibration parameters are written into the corresponding registers of the optical sensor. Then, the optical sensor is subjected to a standard test, and the optical sensor response data after the main calibration parameters are optimized is obtained as the main calibration feedback data. The main calibration feedback data reflects the core performance indicators of the optical sensor.
[0159] Step S54: using the light sensor to be measured to perform hardware adaptation pipeline calibration processing on the auxiliary calibration parameters, and write the hardware adaptation register to generate auxiliary calibration feedback data;
[0160] In the embodiment of the present invention, auxiliary calibration parameters are configured for the optical sensor, and the auxiliary calibration parameters are written into the corresponding register of the optical sensor. Then, the optical sensor is tested through a hardware adaptation pipeline, and the hardware adaptation pipeline can be an external circuit or an internal analog front-end circuit of the optical sensor. During the test, the auxiliary characteristics of the optical sensor need to be calibrated. After calibration by the hardware adaptation pipeline, auxiliary calibration feedback data will be obtained, reflecting the auxiliary performance indicators of the optical sensor.
[0161] Step S55: the MCU controls the processing module to establish a flow control gate for the main calibration feedback data and the auxiliary calibration feedback data, and performs automatic recalibration processing to generate an automatic recalibration strategy.
[0162] In an embodiment of the present invention, the MCU control processing module sets a certain threshold to determine whether automatic recalibration is required based on the changes in the main calibration feedback data and the auxiliary calibration feedback data. Once the conditions for automatic recalibration are triggered, the MCU control processing module will automatically execute the recalibration strategy to ensure the accuracy and stability of the optical sensor. That is, the flow control gate can determine whether recalibration is required based on the changes in the sensor output data. When the flow control gate detects a large change in the sensor output data, the automatic recalibration process will be started. The automatic recalibration process can repeatedly execute steps S51 to S54 to update the main calibration parameters and the auxiliary calibration parameters and recalibrate the sensor.
[0163] The present invention further provides a light sensor calibration system, which executes the light sensor calibration method as described above, and the light sensor calibration system comprises:
[0164] The pulse exposure test module is used to formulate a dynamic pulse width sequence for the light sensor to be measured through the MCU control processing module to generate pulse width sequence data; accurately adjust the pulse energy according to the pulse width sequence data to generate a multi-level pulse energy sequence signal; use the multi-level pulse energy sequence signal to perform multi-level energy exposure test processing on the light sensor to be measured, and generate multi-frame exposure response image data and real-time exposure response data respectively;
[0165] The response performance evaluation module is used to analyze the time-series spectrum of the real-time exposure response data to obtain the time-series exposure response spectrum data; perform performance index calculation based on the time-series exposure response spectrum data to generate key response index performance data; perform comprehensive response performance rating processing based on the key response index performance data to obtain comprehensive response performance rating data;
[0166] The response curve identification module is used to determine the test performance of the light sensor to be tested through the comprehensive response performance rating data, and to perform grayscale value block processing through the multi-frame exposure response image data to generate multi-frame response block image data; perform intrinsic response curve identification based on the multi-frame response block image data to generate intrinsic response curve data;
[0167] The calibration coefficient calculation module is used to perform multi-dimensional correction matrix calculation according to the intrinsic response curve data to generate compensation calibration coefficients; perform nonlinear error compensation processing through the compensation calibration coefficients to generate compensation calibration response data;
[0168] The automatic recalibration module is used to calibrate the control response parameters of the light sensor to be measured by compensating the calibration response data, and perform automatic recalibration processing to generate an automatic recalibration strategy.
[0169] Light sensor test process reference Figure 5, specifically, the user starts the test system and triggers the system initialization process. The system performs device connection detection, verifies the connection status of the hardware device, and ensures that the communication channel with the board under test is normal. The system performs a comprehensive test on the hardware on the board under test, including performance checks of various components such as the light sensing module, LED, and buzzer. Based on the results of the comprehensive device test, the system automatically calibrates and adjusts the parameters to ensure that the device works in the best condition. The system uses LED indicators to display the test results to the user, presenting the performance status of the device in an intuitive way. The system provides audio feedback through a buzzer to further prompt the user with information about the test results. The board under test completes the test process and the system enters standby mode. The system supports hot plugging, allowing users to quickly replace the board under test. If a new board under test is detected, the system returns to the device connection detection step. The system monitors abnormal conditions during the device test in real time. If an abnormality is detected, the system handles it accordingly and returns to the system initialization step.
[0170] Optical sensor test communication processing mechanism see Figure 6 , specifically, executing the I2C communication protocol, ensuring that the bus transmission is normal, and correctly identifying the address of the light sensor module. Define error codes, including different types of errors such as communication errors and sensor failures, so that accurate error identification can be performed during the test. Read the register information of the light sensor module and perform error analysis to ensure that accurate light sensor status data is obtained. Set the communication timeout and implement the timeout handling mechanism, including retries, to deal with communication delays or abnormal situations. Perform abnormality detection, including checking the ACK (acknowledgement) signal to verify whether the communication status is normal. Determine whether an error has occurred during the current communication and sensor reading process, and make a judgment based on the error code. Output error prompts through LED indications and buzzers, so that the user or system can clearly understand that an error has occurred. Once an error is detected, trigger the retry mechanism to try to resend data or request a response to correct the communication problem. If no errors occur during the communication and sensor reading process, it means that the light sensor test is normal.
[0171] The beneficial effect of the present application is that the dynamic pulse width sequence of the optical sensor is formulated by the MCU control processing module. Such flexible control and adjustment can help simulate the actual working environment under different light intensity conditions, so as to accurately evaluate the response characteristics of the optical sensor. Generating pulse width sequence data helps to construct a multi-level pulse energy sequence signal and realize multi-level energy exposure test processing. The real-time exposure response data is subjected to time-series spectrum analysis, which reveals the dynamic response capability of the optical sensor to the light signal and provides more detailed spectrum data. The performance index is calculated according to the time-series exposure response spectrum data to accurately evaluate the response of the optical sensor at different frequencies, including key indicators such as response speed and signal-to-noise ratio. Grayscale value block processing is performed using multi-frame exposure response image data to further extract the response characteristics of different regions. The intrinsic response curve is identified according to the multi-frame response block image data to accurately extract the image performance characteristics of the optical sensor under different light intensities. The nonlinear error in the output of the optical sensor is corrected by calculating and compensating the calibration response data through the correction matrix, and the accuracy and reliability of the measurement are improved. The automatic recalibration strategy can ensure that its performance is always kept in the best state according to the usage and environmental changes of the optical sensor. Finally, the optical sensor can be fully evaluated in an independent environment. This not only greatly shortens the test cycle and avoids the long-term startup test of the entire product, but also improves the accuracy and reliability of the test. The test process on the production line is more flexible, and the light sensing module can be verified more quickly, which significantly shortens the test time and helps improve production efficiency and reduce costs.
[0172] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0173] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A method for calibrating a light sensor, It is characterized in that The method is applied to calibrate a main control PCB board, wherein the main control PCB board comprises an MCU control processing module, a laser diode, a buzzer, an LED display light and a photosensitive board connector, wherein the laser diode, the buzzer, the LED display light and the photosensitive board connector are all electrically connected to the MCU control processing module, and the calibration method of the light sensor comprises the following steps: Step S1: The MCU controls the processing module to formulate a dynamic pulse width sequence for the light sensor to be measured, and generates pulse width sequence data; the pulse energy is precisely adjusted according to the pulse width sequence data, and a multi-level pulse energy sequence signal is generated; the multi-level pulse energy sequence signal is used to perform a multi-level energy exposure test on the light sensor to be measured, and a multi-frame exposure response image data and a real-time exposure response data are generated respectively; Step S2: performing time-series spectrum analysis on the real-time exposure response data to obtain time-series exposure response spectrum data; performing performance index calculation based on the time-series exposure response spectrum data to generate key response index performance data; performing comprehensive response performance rating processing based on the key response index performance data to obtain comprehensive response performance rating data; Step S3: Testing the performance of the light sensor to be tested is determined by using the comprehensive response performance rating data, and grayscale value block processing is performed on the multi-frame exposure response image data to generate multi-frame response block graph data; intrinsic response curve identification is performed based on the multi-frame response block graph data to generate intrinsic response curve data; Step S4: performing multi-dimensional correction matrix calculation according to the intrinsic response curve data to generate compensation calibration coefficients; performing nonlinear error compensation processing by using the compensation calibration coefficients to generate compensation calibration response data; Step S5: calibrating the control response parameters of the light sensor to be measured by compensating the calibration response data, and performing automatic recalibration processing to generate an automatic recalibration strategy.
2. The method for calibrating a light sensor according to claim 1, It is characterized in that Step S1 includes the following steps: Step S11: installing the light sensor to be tested on the light sensing board connector; using a photometer to measure the light output characteristics of the laser diode to generate light source accuracy data; Step S12: performing drive current tuning processing on the drive circuit according to the light source precision data to generate optimal drive current curve data; Step S13: The MCU controls the processing module to formulate a dynamic pulse width sequence for the optimal driving current curve data to generate pulse width sequence data; Step S14: performing precise pulse energy regulation according to the pulse width sequence data to generate a multi-level pulse energy sequence signal, wherein the precise pulse energy regulation achieves laser pulses of different energy levels by controlling the pulse current amplitude to remain unchanged and extending the pulse duration; Step S15: focusing the pulsed laser beam on the light sensor to be measured to install the optical imaging element; Step S16: Based on the multi-level pulse energy sequence signal, the optical imaging element is used to perform a multi-level energy exposure test on the light sensor to be tested, and exposure response image acquisition is performed to generate multiple frames of exposure response image data and real-time exposure response data.
3. The method for calibrating a light sensor according to claim 2, It is characterized in that Upgrade request feedback data, step S13 includes the following steps: Step S131: acquiring real-time ambient light data; calculating the ambient light change rate according to the real-time ambient light data to generate ambient light change rate data; Step S132: using a linear regression model to perform ambient light fitting processing on the ambient light change rate data to generate ambient light change trend data; Step S133: performing an ambient lighting impact assessment according to the ambient lighting change trend data to generate ambient lighting assessment data; Step S134: formulating a preliminary pulse current signal according to the optimal driving current curve data to generate a preliminary pulse current signal; Step S135: the MCU controls the processing module to perform current characteristic response processing on the light sensor to be measured using the preliminary pulse current signal to generate current response characteristic data; Step S136: performing pulse current width analysis according to the current response characteristic data to generate a pulse width-current relationship diagram; Step S137: performing adaptive reference pulse width calculation on the pulse width-current relationship diagram according to the ambient light evaluation data to generate reference pulse width data; Step S138: formulating a dynamic pulse width sequence for the reference pulse width data using a preset dynamic pulse adjustment strategy to generate pulse width sequence data.
4. The method for calibrating a light sensor according to claim 2, It is characterized in that Step S16 includes the following steps: Step S161: analyzing the laser pulse control signal according to the multi-level pulse energy sequence signal to generate a laser pulse control signal; Step S162: performing synchronous shutter response time calculation on the high-speed linear array image sensor through the laser pulse control signal to obtain shutter response time data; Step S163: Based on the laser pulse control signal, the MCU control processing module periodically issues control instructions to the driving circuit, and the driving circuit instantly injects a pulse current waveform into the laser diode to form a laser pulse with controllable intensity and precise duration; the optical imaging element is used to focus the laser pulse on the surface of the light sensor to perform a multi-energy level exposure test; Step S164: the light sensor generates a response electrical signal through the light sensing board connector after each laser pulse exposure, and the response electrical signal is transmitted back to the MCU control processing module through the driving circuit for real-time acquisition and storage to generate real-time exposure response data; Step S165: After receiving the shutter response time data, the high-speed linear array image sensor is synchronously started to capture the exposure response of the light sensor under different pulse energies at a high frame rate to generate multiple frames of exposure response image data.
5. The method for calibrating a light sensor according to claim 1, It is characterized in that Step S2 includes the following steps: Step S21: performing signal quality preprocessing on the real-time exposure response data to generate standard exposure response data; performing time series spectrum analysis on the standard exposure response data to obtain time series exposure response spectrum data; Step S22: extracting features from the time-series exposure response spectrum data to obtain response feature vector data; and constructing response characteristic matrix data based on the response feature vector data; Step S23: performing principal component analysis according to the response characteristic matrix data, and calculating performance indicators to generate key response indicator performance data; Step S24: using the multi-level pulse energy sequence signal to perform test energy level pairing on the key response index performance data, and perform response performance calibration processing to obtain response performance index calibration data; Step S25: performing linear consistency evaluation on key response indicator performance data through response performance indicator calibration data to generate response consistency evaluation data; Step S26: performing performance index cluster analysis on the response consistency evaluation data and performing nonlinear error calculation to obtain response performance error data; Step S27: Perform comprehensive response performance rating processing based on the response performance error data to obtain comprehensive response performance rating data.
6. The method for calibrating a light sensor according to claim 1, It is characterized in that Step S3 includes the following steps: Step S31: The response performance of the comprehensive response performance rating data is judged by a preset sensor test performance threshold. When the comprehensive response performance rating data is higher than or equal to the preset sensor test performance threshold, the calibration main control PCB board controls the LED display light to display green, marking the light sensor to be tested as a qualified light sensor; Step S32: When the comprehensive response performance rating data is lower than the preset sensor test performance threshold, the calibration main control PCB board controls the LED display light to display red, marks the light sensor to be tested as an unqualified light sensor, and alarms through a buzzer, performs grayscale image processing on the multiple frames of exposure response image data, and generates grayscale exposure response image data; Step S33: performing multi-frame alignment analysis on the grayscale exposure response image data, and performing edge detection and cropping processing to obtain primary feature image data; Step S34: performing image tensor analysis according to the primary feature image data, and performing grayscale value block processing through a preset sliding window to generate multi-frame response block image data; Step S35: performing two-dimensional discrete frequency domain transformation processing on the multi-frame response block image data to generate a multi-frame block frequency domain coefficient matrix; performing amplitude spectrum calculation on the multi-frame block frequency domain coefficient matrix to generate multi-frame amplitude spectrum feature vector data; Step S36: performing wavelet packet decomposition on the multi-frame response block image data through the multi-frame amplitude spectrum feature vector data to generate image block load feature data; Step S37: performing intrinsic response curve identification on the key response indicator performance data through the image block load characteristic data and the multi-level pulse energy sequence signal to generate intrinsic response curve data.
7. The method for calibrating a light sensor according to claim 6, It is characterized in that Step S37 includes the following steps: Step S371: performing adjacent frame image grouping processing on the image block load characteristic data to obtain grouped frame image block load characteristic data; Step S372: construct a deep convolutional neural network model including a convolutional layer, a pooling layer, and a fully connected layer; Step S373: inputting the grouped frame image block load feature data into the deep convolutional neural network model, using the first convolutional layer to extract low-level image features from the grouped frame image block load feature data, and generating a first convolutional feature map, wherein the first convolutional layer includes 32 convolution kernels with a step size of 2,5×5; using the first pooling layer to perform pooling dimensionality reduction processing on the first convolutional feature map, and generating first pooling feature map data, wherein the first pooling layer is a 2×2 maximum pooling; Step S374: adding multiple convolutional layers and pooling layers, repeating step S373 several times to perform layer-by-layer convolutional pooling feature extraction, and generating high-level convolutional pooling feature map data; Step S375: using a fully connected layer to perform feature response mapping processing on the high-level convolutional pooling feature map data to generate image block feature vector data; Step S376: performing neuron scalar value mapping according to the image block feature vector data to generate a predicted exposure response time; Step S377: obtaining the real exposure response time of the training corresponding group frame image through the multi-level pulse energy sequence signal; marking the real exposure response time as the supervision signal data; Step S378: Automatically learn and extract relevant image feature patterns for the predicted exposure response time using a back propagation algorithm based on the supervisory signal data until the training converges, and adjust the neural network model parameters of the deep convolutional neural network model to obtain an exposure response feature recognition model; Step S379: using the exposure response feature recognition model to perform intrinsic response curve recognition on the key response indicator performance data to generate intrinsic response curve data.
8. The method for calibrating a light sensor according to claim 1, It is characterized in that Step S4 includes the following steps: Step S41: querying the typical response parameter value of the light sensor to be measured to generate a typical response parameter value; Step S42: performing theoretical response curve calculation on typical response parameter values using a preset gamma curve model to generate standard response curve data; Step S43: performing curve residual fitting processing on the standard response curve data using the intrinsic response curve data to generate residual response curve data; Step S44: performing least square method deviation calculation according to the residual response curve data to generate expected response characteristic data; Step S45: performing multi-dimensional correction matrix calculation according to the expected response characteristic data to generate compensation calibration coefficients; Step S46: performing nonlinear error compensation processing on the light sensor to be measured by using the compensation calibration coefficient to generate compensation calibration response data.
9. The method for calibrating a light sensor according to claim 1, It is characterized in that Step S5 includes the following steps: Step S51: using the light sensor to be measured to perform parameter vector decoding processing on the compensation calibration response data to generate decoded parameter vector data; Step S52: dividing the decoded parameter vector data into functional calibration parameters to obtain main calibration parameters and auxiliary calibration parameters respectively; Step S53: using the main calibration parameters to perform control response parameter calibration processing on the light sensor to be measured, and generating main calibration feedback data; Step S54: using the light sensor to be measured to perform hardware adaptation pipeline calibration processing on the auxiliary calibration parameters, and write the hardware adaptation register to generate auxiliary calibration feedback data; Step S55: the MCU controls the processing module to establish a flow control gate for the main calibration feedback data and the auxiliary calibration feedback data, and performs automatic recalibration processing to generate an automatic recalibration strategy.
10. A calibration system for an optical sensor, It is characterized in that A method for calibrating a light sensor according to claim 1, wherein the light sensor calibration system comprises: The pulse exposure test module is used to formulate a dynamic pulse width sequence for the light sensor to be measured through the MCU control processing module to generate pulse width sequence data; accurately adjust the pulse energy according to the pulse width sequence data to generate a multi-level pulse energy sequence signal; use the multi-level pulse energy sequence signal to perform multi-level energy exposure test processing on the light sensor to be measured, and generate multi-frame exposure response image data and real-time exposure response data respectively; The response performance evaluation module is used to analyze the time-series spectrum of the real-time exposure response data to obtain the time-series exposure response spectrum data; perform performance index calculation based on the time-series exposure response spectrum data to generate key response index performance data; perform comprehensive response performance rating processing based on the key response index performance data to obtain comprehensive response performance rating data; The response curve identification module is used to determine the test performance of the light sensor to be tested through the comprehensive response performance rating data, and to perform grayscale value block processing through the multi-frame exposure response image data to generate multi-frame response block image data; perform intrinsic response curve identification based on the multi-frame response block image data to generate intrinsic response curve data; The calibration coefficient calculation module is used to perform multi-dimensional correction matrix calculation according to the intrinsic response curve data to generate compensation calibration coefficients; perform nonlinear error compensation processing through the compensation calibration coefficients to generate compensation calibration response data; The automatic recalibration module is used to calibrate the control response parameters of the light sensor to be measured by compensating the calibration response data, and perform automatic recalibration processing to generate an automatic recalibration strategy.
Citation Information
Cited By
Data calibration method, device and equipment for medical-grade high-precision temperature sensor and medium
CN119354374A
Wavelength adjusting method, device and equipment of LED detection light source and storage medium
CN119545598A
Wavelength adjustment method, device, equipment and storage medium for LED detection light source
CN119545598B
Pattern reconstruction and recognition capability verification method for infrared photoelectric detector
CN121252874A
Standard evaluation method for tester photoconductive signal linearity
CN121632331A
