Testing method, testing system, equipment and medium for vehicle optical system
The automated testing of vehicle optical sensors using a mobile calibration dark box system solves the problem of low detection accuracy in existing technologies, enables quantitative evaluation of performance such as glare, ghosting, and exposure adjustment speed, and improves the accuracy and flexibility of detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-19
- Publication Date
- 2026-04-03
AI Technical Summary
In existing technologies, the detection methods for vehicle optical systems rely on manual handheld light sources, resulting in low detection accuracy and high randomness, and making it impossible to effectively quantify and evaluate key performance aspects such as glare area and exposure adjustment speed.
A mobile calibration dark box system is adopted, including an integrated test head, a mobile adjustment frame, and a control and wireless communication module. The system performs automated testing of optical sensors through a flexible light shield and a programmable LED matrix light source board. The main control module and domain controller are used for signal transmission and image processing to calculate the calibration parameters of the optical sensors.
It enables quantifiable testing of vehicle optical sensors, improves detection accuracy and flexibility, and allows for the evaluation of key performance of optical sensors in dynamic lighting scenarios, reducing human error.
Smart Images

Figure CN121783503A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, specifically to a testing method, testing system, equipment, and medium for vehicle optical systems. Background Technology
[0002] With the development of technology, autonomous driving technology has been widely applied. Autonomous vehicles are typically equipped with optical systems such as forward-facing cameras and side-facing cameras to capture environmental information around the vehicle and ensure driving safety. Therefore, testing the performance of these optical systems is particularly important.
[0003] In related technologies, vehicle optical systems are typically inspected manually using a handheld light source. However, manual operation is prone to introducing errors and is highly susceptible to chance, resulting in low inspection accuracy. Therefore, there is an urgent need in this field for a more professional testing method and system. Summary of the Invention
[0004] This invention provides a testing method, testing system, equipment, and medium for vehicle optical systems, which enables quantifiable testing of vehicle optical systems and improves the accuracy and flexibility of testing.
[0005] The technical solution provided by this invention is as follows: On one hand, a testing method for a vehicle optical system is provided. The testing method is applied to a testing system, which includes a mobile calibration chamber, and an optical sensor and domain controller of a target vehicle. The mobile calibration chamber includes an integrated test head, a mobile adjustment frame, and a control and wireless communication module. The mobile calibration chamber establishes a communication connection with the target vehicle through the control and wireless communication module. The integrated test head includes a flexible light shield and a programmable LED matrix light source board, with the programmable LED matrix light source board disposed within the flexible light shield. The movable adjustment frame includes a movable base and a telescopic bracket, with the telescopic bracket disposed above the movable base. The control and wireless communication module includes a main control module, a power supply module, and a wireless communication module. The main control module is electrically connected to the programmable LED matrix light source board and the wireless communication module. The power supply module provides power to the main control module, the programmable LED matrix light source board, and the wireless communication module. The integrated test head and the control and wireless communication module are respectively disposed on the movable adjustment frame. The movable calibration dark box is moved to the front of the optical sensor under test via the movable adjustment frame; the flexible light shield is shaped like a truncated cone, with its upper bottom surface closed and its lower bottom surface open towards the optical sensor under test. The method includes: In response to detecting the target test program selected by the user, the main control module sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and sends a target test signal to the domain controller of the target vehicle through the wireless communication module. The programmable LED matrix light source board receives the target illumination signal and provides specific illumination according to the target illumination signal; The domain controller receives the target test signal and sends a target imaging signal to the optical sensor under test based on the target test signal; The optical sensor under test receives the target shooting signal, captures at least one frame of image on the programmable LED matrix light source board based on the target shooting signal, and sends the captured at least one frame of image to the domain controller; The domain controller receives the at least one frame of image, calculates the calibration parameters of the optical sensor under test based on the at least one frame of image, and obtains the test result based on the calibration parameters of the optical sensor under test.
[0006] On the other hand, a testing system is provided, the testing system including a mobile calibration dark box, and an optical sensor and domain controller of a target vehicle to be tested; the mobile calibration dark box includes an integrated test head, a mobile adjustment frame and a control and wireless communication module; the mobile calibration dark box establishes a communication connection with the target vehicle through the control and wireless communication module; The integrated test head includes a flexible light shield and a programmable LED matrix light source board, with the programmable LED matrix light source board disposed within the flexible light shield. The movable adjustment frame includes a movable base and a telescopic bracket, with the telescopic bracket disposed above the movable base. The control and wireless communication module includes a main control module, a power supply module, and a wireless communication module. The main control module is electrically connected to the programmable LED matrix light source board and the wireless communication module. The power supply module provides power to the main control module, the programmable LED matrix light source board, and the wireless communication module. The integrated test head and the control and wireless communication module are respectively disposed on the movable adjustment frame. The movable calibration dark box is moved to the front of the optical sensor under test via the movable adjustment frame; the flexible light shield is shaped like a truncated cone, with its upper bottom surface closed and its lower bottom surface open towards the optical sensor under test. The main control module is configured to, in response to detecting a target test program selected by the user, send a target illumination signal to the programmable LED matrix light source board based on the target test program, and send a target test signal to the domain controller of the target vehicle through the wireless communication module; The programmable LED matrix light source board is configured to receive the target illumination signal and provide specific illumination according to the target illumination signal; The domain controller is configured to receive the target test signal and send a target imaging signal to the optical sensor under test based on the target test signal; The optical sensor under test is configured to receive the target imaging signal, capture at least one frame of image on the programmable LED matrix light source board based on the target imaging signal, and send the captured at least one frame of image to the domain controller. The domain controller is configured to receive the at least one frame of image, calculate the calibration parameters of the optical sensor under test based on the at least one frame of image, and obtain the test result based on the calibration parameters of the optical sensor under test.
[0007] In one possible implementation, the target test procedure includes any one of a flare test procedure, a ghosting test procedure, or a dynamic exposure test procedure; Wherein, if the target test program includes a glare test program or a ghost test program, the target shooting signal instructs the optical sensor under test to capture an image of the programmable LED matrix light source board; If the target test procedure includes a dynamic exposure test procedure, then the target shooting signal instructs the optical sensor under test to record a video stream of a preset duration onto the programmable LED matrix light source board.
[0008] In one possible implementation, the domain controller, when calculating the calibration parameters of the optical sensor under test based on the at least one frame of image and obtaining the test result based on the calibration parameters of the optical sensor under test, is specifically configured as follows: The domain controller is configured to, if the target test program includes a glare test program, calculate the area occupied by a first pixel whose pixel value meets the preset glare conditions based on the pixel value of each pixel in a frame image; if the area occupied by the first pixel exceeds a first threshold, determine that the test result includes the glare of the optical sensor under test is unqualified; and the calibration parameters include the area occupied by the first pixel. The domain controller is configured to detect whether there are independent light spot artifacts in a frame image if the target test program includes a ghost test program, and if the number of independent light spot artifacts detected exceeds a second threshold, determine that the test result includes the ghosting of the optical sensor under test is unqualified, and the calibration parameters include the number of independent light spot artifacts. The domain controller is configured to, if the target test program includes a dynamic exposure test program, calculate the exposure adjustment time corresponding to the optical sensor under test based on the video stream; if the exposure adjustment time exceeds a third threshold, determine that the test result includes the sluggish dynamic response of the optical sensor under test, and the calibration parameter includes the exposure adjustment time.
[0009] In one possible implementation, the main control module is further configured to send debugging lighting signals to the programmable LED matrix light source board and send debugging instructions to the domain controller of the target vehicle through the wireless communication module. The programmable LED matrix light source board is also configured to receive the debugging lighting signal and provide lighting according to the debugging lighting signal; The domain controller is also configured to receive the debugging command, control the optical sensor under test to capture debugging images of the programmable LED matrix light source board based on the debugging command, and send the debugging images to the main control module; The main control module is also configured to receive the debugging image through the wireless communication module, and output a movement command for the telescopic bracket based on the debugging image, so that the telescopic bracket moves the flexible light shield to a position directly in front of the optical sensor under test by telescopic extension; wherein the main control module is electrically connected to the telescopic bracket.
[0010] In one possible implementation, the main control module includes an LED control board, a remote controller, and a connecting cable. The remote controller is connected to the LED control board via the connecting cable. The LED control board integrates LED lighting control algorithms and detection algorithms. Accordingly, when the main control module, in response to detecting the target test program selected by the user, sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and sends a target test signal to the domain controller of the target vehicle through the wireless communication module, it is specifically configured to, in response to detecting the target test program selected by the user on the remote control, execute an LED control lighting algorithm based on the target test program to send the target illumination signal to the programmable LED matrix light source board; and execute a detection algorithm based on the target test program to send the target test signal to the domain controller of the target vehicle.
[0011] In one possible implementation, the flexible sunshade is made of a double-layered sunshade fabric with a light transmittance lower than a preset light transmittance threshold. The bottom opening of the flexible sunshade is fitted to the surface of the target vehicle, so that a dark chamber is formed between the flexible sunshade and the target vehicle.
[0012] On the other hand, an electronic device is provided, comprising: Memory, used to store computer programs; A processor is configured to execute a computer program stored in the memory, and when the computer program is executed, to implement the above-described test method for a vehicle optical system.
[0013] On the other hand, a computer-readable storage medium is provided that stores a computer program thereon, which, when executed by a processor, implements the above-described test method for a vehicle optical system.
[0014] On the other hand, a computer program product is provided, including computer program instructions that, when executed by a processor, implement the above-described test method for a vehicle optical system.
[0015] This invention provides a testing method for vehicle optical systems. The testing method is applied to a testing system including a mobile calibration dark box, and a target vehicle's optical sensor and domain controller. The mobile calibration dark box includes an integrated test head, a mobile adjustment frame, and a control and wireless communication module. The mobile calibration dark box establishes a communication connection with the target vehicle through the control and wireless communication module. The integrated test head includes a flexible light shield and a programmable LED matrix light source board, with the programmable LED matrix light source board disposed within the flexible light shield. The mobile adjustment frame includes a mobile base and a telescopic bracket, with the telescopic bracket disposed above the mobile base. The control and wireless communication module includes a main control module, a power supply module, and a wireless communication module. The main control module is electrically connected to the programmable LED matrix light source board and the wireless communication module. The power supply module provides power to the main control module, the programmable LED matrix light source board, and the wireless communication module. The integrated test head and the control and wireless communication module are respectively disposed on the mobile adjustment frame. The mobile calibration dark box is connected via... The movable adjustment frame is moved to the front of the optical sensor under test; the flexible light shield is shaped like a truncated cone, with its upper bottom surface closed and its lower bottom surface open towards the optical sensor under test; during testing, the main control module, in response to detecting the user-selected target test program, sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and sends a target test signal to the domain controller of the target vehicle through the wireless communication module; the programmable LED matrix light source board receives the target illumination signal and provides specific illumination according to the target illumination signal; the domain controller receives the target test signal and sends a target imaging signal to the optical sensor under test based on the target test signal; the optical sensor under test receives the target imaging signal, captures at least one frame of image on the programmable LED matrix light source board based on the target imaging signal, and sends the captured at least one frame of image to the domain controller; the domain controller receives the at least one frame of image, calculates the calibration parameters of the optical sensor under test based on the at least one frame of image, and obtains the test result based on the calibration parameters of the optical sensor under test. By utilizing a movable adjustment frame to enable flexible movement of the integrated test head, and by employing a control and wireless communication module to achieve flexible and reliable control of the calibration chamber and the entire testing process, and by using calibration parameters to quantitatively evaluate the performance of the optical sensor, the accuracy and flexibility of optical sensor testing for target vehicles are improved. Attached Figure Description
[0016] The accompanying drawings, which form part of this specification, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings: Figure 1A flowchart illustrating a testing method for a vehicle optical system provided in an embodiment of the present invention; Figure 2 A system block diagram of a mobile calibration dark box provided in an embodiment of the present invention; Figure 3 A flowchart of a testing method provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a testing system provided in an embodiment of the present invention. Detailed Implementation
[0017] The present invention will now be described in detail with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0018] The following detailed description is exemplary and intended to provide further detailed explanation of the invention. Unless otherwise specified, all technical terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this invention is for describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention.
[0019] Figure 1 This is a flowchart illustrating a testing method for a vehicle optical system according to an embodiment of the present invention. The testing method is applied to a testing system including a mobile calibration chamber, and an optical sensor and domain controller of a target vehicle. The mobile calibration chamber includes an integrated test head, a mobile adjustment frame, and a control and wireless communication module. The mobile calibration chamber establishes a communication connection with the target vehicle through the control and wireless communication module. The integrated test head includes a flexible light shield and a programmable LED (Light Emitting Diode) matrix light source board, which is disposed inside the flexible light shield. The movable adjustment frame includes a movable base and a telescopic bracket, which is disposed above the movable base. The control and wireless communication module includes a main control module, a power supply module, and a wireless communication module. The main control module is electrically connected to the programmable LED matrix light source board and the wireless communication module. The power supply module provides power to the main control module, the programmable LED matrix light source board, and the wireless communication module. The integrated test head and the control and wireless communication module are respectively disposed on the movable adjustment frame. The movable calibration dark box is moved to the front of the optical sensor under test via the movable adjustment frame; the flexible light shield is shaped like a truncated cone, with its upper bottom surface closed and its lower bottom surface open towards the optical sensor under test. like Figure 1As shown, the method includes: Step S101: In response to detecting the target test program selected by the user, the main control module sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and sends a target test signal to the domain controller of the target vehicle through the wireless communication module.
[0020] In this embodiment of the invention, the optical system of the target vehicle may include one or more optical sensors, which may include, but are not limited to, cameras, monocular cameras, lidar, infrared sensors, etc. For example, the target vehicle may be equipped with optical sensors such as front-facing cameras, side cameras, or monocular / dual-lens cameras.
[0021] The relevant technologies cannot quantify and evaluate key performance aspects such as glare area and exposure adjustment speed, nor can they effectively simulate and test camera performance in dynamic lighting scenarios such as vehicles passing through tunnels or meeting oncoming traffic at night. These are precisely the hidden dangers that can easily lead to accidents in reality.
[0022] This invention can quantitatively evaluate the key performance characteristics of these optical sensors, such as glare area and exposure adjustment speed, and can also quantitatively evaluate the camera performance of optical sensors in dynamic lighting scenarios.
[0023] In one possible embodiment, the movable adjustment frame can be a movable high-precision adjustment frame. The movable base can be a stable base with lockable casters. The telescopic support can include a vertically telescopic column and a horizontally telescopic arm. For example, the column can be a sleeve rod with a rod-like structure supporting freely adjustable length, and the arm can also be a sleeve rod supporting freely adjustable length. One end of the column is fixed to the movable base, and the other end of the column is connected to the arm. The integrated test head can be fixed to the arm. Based on this, the column and arm can jointly support an integrated test head. This movable adjustment frame allows the integrated test head to move flexibly and be precisely positioned in three-dimensional space.
[0024] For example, the adjustment frame is made of aluminum alloy, with a column lifting range of 0.8m-2.0m and a crossarm extension range of 0.5m-1.5m. After adjustment and locking, the position error is less than ±5mm. Based on this, through flexible adjustment within a vertical range of 0.8m to 2.0m and a horizontal range of 0.5m to 1.5m, while ensuring a positioning accuracy of ±5mm, it can be adapted to almost all camera positions from passenger cars to commercial vehicles, giving the invention extremely high versatility and precise positioning.
[0025] In one possible implementation, the flexible sunshade is made of a double-layered sunshade cloth with a light transmittance lower than a preset light transmittance threshold. The bottom opening of the flexible sunshade is fitted to the surface of the target vehicle so that a dark chamber is formed between the flexible sunshade and the target vehicle.
[0026] In one possible example, in the integrated test head, a programmable LED matrix light source board is installed inside the flexible light shield, directly opposite the optical sensor (such as the vehicle's front camera or side camera).
[0027] For example, the flexible light shield can be made of double-layered light-shielding cloth with a light transmittance of less than 0.01%. For example, inside its core integrated test head, a 64x64 resolution programmable LED matrix light source board is installed. For example, this programmable LED matrix light source board can use a light source board with the following configuration parameters: Brightness range: At a distance of 30cm from the surface of the light source panel, the illuminance can be adjusted in 256 levels from 100 lux to 100,000 lux to cover the complete light environment from indoor nighttime to outdoor full daylight.
[0028] Color temperature range: 2700K to 6500K adjustable.
[0029] Infrared light source: 850nm infrared LEDs are interleaved in the programmable LED matrix light source board for testing night vision function.
[0030] Timing performance: Matrix refresh rate 150Hz, single LED switch response time less than 1 millisecond.
[0031] Based on this, with a brightness of up to 100,000 lux, a refresh rate of 120 Hz, and a wide color temperature adjustment range of 2700K-6500K, it can realistically reproduce extreme dynamic scenes from midday backlight to nighttime LED light flicker, thus achieving full-scene, quantifiable light source simulation.
[0032] In one possible embodiment, the control and wireless communication module can be fixedly mounted on the movable adjustment frame. For example, the control and wireless communication module can be mounted on a column or crossarm; it includes a built-in main control unit, battery, and Wi-Fi / Bluetooth module, responsible for controlling the light source and communicating with the vehicle domain controller with low latency.
[0033] In this step, the target test procedure includes any one of the following: a glare test procedure, a ghosting test procedure, or a dynamic exposure test procedure. The target illumination signal is a signal that instructs the programmable LED matrix light source board to generate illumination. The target test signal is a signal that instructs the domain controller of the target vehicle to perform the target test. Target tests may include, but are not limited to: glare test, ghosting test, dynamic exposure test, etc.
[0034] In one possible example, the main control module may be configured with an LED control board, a remote control, and connecting cables. The main control module may also integrate LED lighting control algorithms and glare / ghosting detection algorithms. The remote control can be connected to the main control module via the connecting cables, allowing the user to select the target test program. The LED control board may integrate LED lighting control algorithms.
[0035] The main control module communicates with the domain controller via a wireless communication module.
[0036] In one possible implementation, the wireless communication module includes at least one of a Wi-Fi communication module or a Bluetooth communication module. The wireless communication module guarantees a wireless communication latency of less than 10 milliseconds between the main control module and the domain controller, ensuring precise synchronization between the light source changes of the subsequent programmable LED matrix light source board and the images acquired by the optical sensor. This eliminates human error and achieves a highly automated, one-click standardized testing process. For example, the Bluetooth communication module can employ Bluetooth Low Energy 5.2 technology, ensuring that the end-to-end latency between the mobile calibration dark box and the vehicle domain controller is consistently within 8 milliseconds.
[0037] Step S102: The programmable LED matrix light source board receives the target illumination signal and provides specific illumination according to the target illumination signal.
[0038] In one possible implementation, the target test procedure includes any one of a flare test procedure, a ghosting test procedure, or a dynamic exposure test procedure; If the target test program includes a glare test program or a ghosting test program, the target illumination signal instructs a single LED at a preset coordinate point in the programmable LED matrix light source board to generate light. Correspondingly, the specific illumination can be provided by a single LED at the preset coordinate point. For example, illuminating a single LED at matrix coordinates (15, 48).
[0039] In one possible example, the programmable LED matrix light source board can automatically repeat specific illumination at other preset coordinate points. Each time an LED at a preset coordinate point is changed, the process of steps S103-S105 can be repeated once based on the LED at the latest preset coordinate point.
[0040] If the target test program includes a dynamic exposure test program, the target illumination signal instructs the programmable LED matrix light source board to light up the entire light source board from a completely dark state within a specified time period. For example, the specified time period can be to light up the entire panel instantly within 2 milliseconds; or the brightness can be set to 80,000 lux.
[0041] Step S103: The domain controller receives the target test signal and sends a target imaging signal to the optical sensor under test based on the target test signal.
[0042] If the target test procedure includes a glare test procedure or a ghosting test procedure, the target capture signal instructs the optical sensor under test to capture an image of the programmable LED matrix light source board. If the target test procedure includes a dynamic exposure test procedure, the target capture signal instructs the optical sensor under test to record a video stream of a preset duration on the programmable LED matrix light source board.
[0043] Step S104: The optical sensor under test receives the target shooting signal, captures at least one frame of image on the programmable LED matrix light source board based on the target shooting signal, and sends the captured at least one frame of image to the domain controller.
[0044] For example, in the case of a glare test or a ghosting test, the target capture signal can also instruct the optical sensor under test to continuously capture multiple frames of images of the programmable LED matrix light source board, and then use the multiple frames of images for calculation.
[0045] For example, in a dynamic exposure test program, the preset duration can be 2 seconds, 3 seconds, etc. For instance, the target capture signal instructs the optical sensor under test to record a 2-second video stream onto the programmable LED matrix light source board. This effectively simulates and tests the camera performance in dynamic lighting scenarios such as vehicles passing through tunnels or meeting oncoming traffic at night.
[0046] Step S105: The domain controller receives the at least one frame of image, calculates the calibration parameters of the optical sensor under test based on the at least one frame of image, and obtains the test result based on the calibration parameters of the optical sensor under test.
[0047] For example, in the case of a glare test or a ghosting test, the domain controller can use a captured image frame to calculate the calibration parameters corresponding to the glare test, quantify whether the glare performance of the optical sensor is up to standard, and thus accurately determine the glare suppression performance of the optical sensor; or, the domain controller can use the captured image frame to calculate the calibration parameters corresponding to the ghosting test, quantify whether its ghosting performance is up to standard, and thus accurately determine the ghosting suppression performance of the optical sensor.
[0048] Of course, for glare testing or ghosting testing programs, when the optical sensor under test continuously captures multiple frames of images on the programmable LED matrix light source board, the calibration parameters corresponding to each frame can be calculated separately, and then the average value of the calibration parameters corresponding to multiple frames can be calculated to ensure the stability and reliability of the calibration parameters.
[0049] For example, in a dynamic exposure test program, the domain controller can use the captured video stream to calculate and corresponding calibration parameters to more effectively simulate the camera performance in dynamic lighting scenarios such as vehicles passing through tunnels or meeting oncoming traffic at night.
[0050] In one possible implementation, the domain controller calculates calibration parameters of the optical sensor under test based on the at least one image frame, and obtains test results based on the calibration parameters of the optical sensor under test, including: Step S1051: If the target test program includes a glare test program, the domain controller calculates the area occupied by the first pixel whose pixel value meets the preset glare condition based on the pixel value of each pixel in a frame image. If the area occupied by the first pixel exceeds the first threshold, the test result is determined to include the glare of the optical sensor under test being unqualified, and the calibration parameter includes the area occupied by the first pixel. Flare is an overexposure phenomenon caused by strong light shining through the lens, manifesting as large areas of bright light that can obscure the features of the object being photographed. In this step, the degree of flare suppression performance is precisely quantified by the area ratio of high-pixel-value regions.
[0051] In one possible example, the area of regions with pixel values higher than 250 is calculated. If the area of regions with pixel values higher than 250 is greater than 5% of the total image area, the glare suppression performance of the optical sensor is deemed "unqualified." For example, the first threshold could be 5%. For instance, a pixel value of 250 is a high threshold close to the saturation value (255) of an 8-bit image, which can match only extremely bright overexposed pixels and exclude interference from ordinary bright areas (such as white car bodies and streetlights). Therefore, all pixels in the image can be traversed to filter out pixels with pixel values higher than 250. Connectivity labeling is performed on the filtered high-pixel points to divide adjacent high-pixel points into a continuous "glare region," avoiding the miscounting of scattered, isolated bright pixels as large-area glare. The total number of pixels in all glare regions is calculated to obtain the proportion of the glare region to the total image area. If the proportion exceeds 5%, it indicates that the glare suppression performance is unqualified.
[0052] Based on this, glare suppression performance can be precisely quantified by the proportion of glare area, thereby improving the accuracy of performance testing.
[0053] Step S1052: If the target test program includes a ghost test program, the domain controller detects whether there are independent light spot artifacts in a frame image. If the number of independent light spot artifacts detected exceeds the second threshold, it is determined that the test result includes the ghost of the optical sensor under test is unqualified, and the calibration parameter includes the number of independent light spot artifacts. In this step, ghosting is an artifact caused by defects in the optical sensor (such as uneven lens coating or multiple reflections of the lens). It appears as an independent bright spot that is separated from the real target image (main imaging point). The present invention can determine the severity by the number of independent bright spots outside the main imaging point.
[0054] In one possible example, if more than three isolated spot artifacts are detected outside the main imaging point (e.g., the second threshold could be 3), the ghosting suppression performance of the optical sensor is deemed "unqualified." For instance, isolated spot artifacts are isolated bright areas outside the main imaging point, which can be detected using a pre-configured spot detection algorithm. The ghosting suppression performance of the optical sensor can be judged by detecting the number of isolated spot artifacts. If the number of pixels in the spot is large, the performance is low; thus, the ghosting suppression performance is accurately quantified, improving the accuracy of performance testing.
[0055] Step S1053: If the target test program includes a dynamic exposure test program, the domain controller calculates the exposure adjustment time corresponding to the optical sensor under test based on the video stream. If the exposure adjustment time exceeds the third threshold, it is determined that the test result includes the sluggish dynamic response of the optical sensor under test, and the calibration parameter includes the exposure adjustment time.
[0056] In this step, the camera performance under dynamic lighting conditions, such as when a vehicle is passing through a tunnel or meeting oncoming traffic at night, is assessed by analyzing the video stream to calculate the exposure adjustment time (AE Speed) required for the average brightness to recover to 90% of normal levels from complete darkness. If this time exceeds 200 milliseconds, the optical sensor's dynamic exposure performance is deemed "sluggish dynamic response, posing a safety risk." For example, a third threshold could be 200 milliseconds. Based on this, dynamic exposure performance can be precisely quantified, improving the accuracy of performance testing.
[0057] In one possible implementation, the main control module can also adaptively adjust the position of the integrated test head based on the position of the optical sensor. Accordingly, before the main control module sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and before sending the target test signal to the domain controller of the target vehicle via the wireless communication module, in response to detecting a user-selected target test program, the method further includes: The main control module sends debugging lighting signals to the programmable LED matrix light source board and sends debugging commands to the domain controller of the target vehicle through the wireless communication module; The programmable LED matrix light source board receives the debugging lighting signal and illuminates the light according to the debugging lighting signal; The domain controller receives the debugging command, controls the optical sensor under test to capture debugging images of the programmable LED matrix light source board based on the debugging command, and sends the debugging images to the main control module; The main control module receives the debugging image through the wireless communication module and outputs a movement command for the telescopic bracket based on the debugging image, so that the telescopic bracket moves the flexible light shield to the position directly in front of the optical sensor under test by telescopic extension; wherein, the main control module is electrically connected to the telescopic bracket.
[0058] The debugging instruction specifies that the position of the integrated test head should be adjusted.
[0059] For example, if the programmable LED matrix light source board is located in the center of the test image, the main control module does not need to output a movement command. If the programmable LED matrix light source board is located off-center from the test image, the main control module can output a movement command to move the flexible light shield to directly in front of the optical sensor, so that the programmable LED matrix light source board is located in the center of the subsequently captured image.
[0060] In one possible implementation, the main control module includes an LED control board, a remote controller, and a connecting cable. The remote controller is connected to the LED control board via the connecting cable. The LED control board integrates LED control lighting algorithms and detection algorithms. Accordingly, in response to detecting the user-selected target test program, the main control module sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and sends a target test signal to the domain controller of the target vehicle through the wireless communication module, including: In response to detecting the target test program selected by the user on the remote control, the LED control board executes an LED control lighting algorithm based on the target test program to send the target illumination signal to the programmable LED matrix light source board; and executes a detection algorithm based on the target test program to send the target test signal to the domain controller of the target vehicle.
[0061] Figure 2 This is a system block diagram of a mobile calibration dark box provided as an embodiment of the present invention. Figure 2As shown, the mobile calibration darkroom includes an integrated test head, a mobile adjustment frame, and a control and wireless communication module. The integrated test head includes a flexible fixing device and a programmable LED matrix light source board. The flexible fixing device can be a flexible light shield. The programmable LED matrix light source board can be a matrix LED. The mobile adjustment frame can include a mobile support. The control and wireless communication module includes a main control module, a power supply module, and a wireless communication module, including an LED control board, a remote controller, and connecting cables. The remote controller is connected to the LED control board via the connecting cables. The LED control board integrates LED lighting control algorithms and detection algorithms; for example, the detection algorithms can include glare detection algorithms and ghosting detection algorithms. Based on this, a groundbreaking dynamic performance evaluation is achieved: the light source response time of the matrix light source board is less than 1 millisecond, achieving high-precision timing control, and realizing quantitative testing of key dynamic indicators such as camera exposure adjustment speed and motion blur during maintenance.
[0062] Figure 3 This is a schematic diagram of a test process provided in an embodiment of the present invention. Figure 3 As shown, first, the movable bracket is positioned next to the vehicle-mounted camera to be tested. Next, the position of the horizontal bracket is adjusted, and the flexible sunshade is secured with a fixing device so that its opening faces the vehicle-mounted camera. Then, the test content is selected as needed. For example, to test for glare, select glare on the remote control and connect the cable to the vehicle interface; or, to test for ghosting, select ghosting on the remote control and connect the cable to the vehicle interface. After successful connection, the test begins. The matrix LED lights begin to illuminate the vehicle, and the vehicle-mounted camera captures images or video clips. The vehicle's computing unit then tests the images or videos for glare or ghosting, obtains the test results, and the test ends.
[0063] This invention provides a testing method for vehicle optical systems. The testing method is applied to a testing system including a mobile calibration dark box, and a target vehicle's optical sensor and domain controller. The mobile calibration dark box includes an integrated test head, a mobile adjustment frame, and a control and wireless communication module. The mobile calibration dark box establishes a communication connection with the target vehicle through the control and wireless communication module. The integrated test head includes a flexible light shield and a programmable LED matrix light source board, with the programmable LED matrix light source board disposed within the flexible light shield. The mobile adjustment frame includes a mobile base and a telescopic bracket, with the telescopic bracket disposed above the mobile base. The control and wireless communication module includes a main control module, a power supply module, and a wireless communication module. The main control module is electrically connected to the programmable LED matrix light source board and the wireless communication module. The power supply module provides power to the main control module, the programmable LED matrix light source board, and the wireless communication module. The integrated test head and the control and wireless communication module are respectively disposed on the mobile adjustment frame. The mobile calibration dark box is connected via... The movable adjustment frame is moved to the front of the optical sensor under test; the flexible light shield is shaped like a truncated cone, with its upper bottom surface closed and its lower bottom surface open towards the optical sensor under test; during testing, the main control module, in response to detecting the user-selected target test program, sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and sends a target test signal to the domain controller of the target vehicle through the wireless communication module; the programmable LED matrix light source board receives the target illumination signal and provides specific illumination according to the target illumination signal; the domain controller receives the target test signal and sends a target imaging signal to the optical sensor under test based on the target test signal; the optical sensor under test receives the target imaging signal, captures at least one frame of image on the programmable LED matrix light source board based on the target imaging signal, and sends the captured at least one frame of image to the domain controller; the domain controller receives the at least one frame of image, calculates the calibration parameters of the optical sensor under test based on the at least one frame of image, and obtains the test result based on the calibration parameters of the optical sensor under test. By utilizing a movable adjustment frame to enable flexible movement of the integrated test head, and by employing a control and wireless communication module to achieve flexible and reliable control of the calibration chamber and the entire testing process, and by using calibration parameters to quantitatively evaluate the performance of the optical sensor, the accuracy and flexibility of optical sensor testing for target vehicles are improved.
[0064] Figure 4 This is a schematic diagram of the structure of a testing system provided in an embodiment of the present invention. Figure 4 As shown, the test system includes a mobile calibration dark box 401, a domain controller 402 of the target vehicle, and an optical sensor 403 to be tested. The mobile calibration chamber includes an integrated test head, a mobile adjustment frame, and a control and wireless communication module; the mobile calibration chamber establishes a communication connection with the target vehicle through the control and wireless communication module. The integrated test head includes a flexible light shield and a programmable LED matrix light source board, with the programmable LED matrix light source board disposed inside the flexible light shield. The movable adjustment frame includes a movable base and a telescopic bracket, with the telescopic bracket disposed above the movable base. The control and wireless communication module includes a main control module, a power supply module, and a wireless communication module. The main control module is electrically connected to the programmable LED matrix light source board and the wireless communication module. The power supply module provides power to the main control module, the programmable LED matrix light source board, and the wireless communication module. The integrated test head and the control and wireless communication module are respectively disposed on the movable adjustment frame. The movable calibration dark box is moved to the front of the optical sensor under test via the movable adjustment frame; the flexible light shield is shaped like a truncated cone, with its upper bottom surface closed and its lower bottom surface open towards the optical sensor under test. The main control module is configured to, in response to detecting a target test program selected by the user, send a target illumination signal to the programmable LED matrix light source board based on the target test program, and send a target test signal to the domain controller of the target vehicle through the wireless communication module; The programmable LED matrix light source board is configured to receive the target illumination signal and provide specific illumination according to the target illumination signal; The domain controller is configured to receive the target test signal and send a target imaging signal to the optical sensor under test based on the target test signal; The optical sensor under test is configured to receive the target imaging signal, capture at least one frame of image on the programmable LED matrix light source board based on the target imaging signal, and send the captured at least one frame of image to the domain controller; The domain controller is configured to receive the at least one frame of image, calculate the calibration parameters of the optical sensor under test based on the at least one frame of image, and obtain the test result based on the calibration parameters of the optical sensor under test.
[0065] In one possible implementation, the target test procedure includes any one of a flare test procedure, a ghosting test procedure, or a dynamic exposure test procedure; If the target test procedure includes a glare test procedure or a ghosting test procedure, the target imaging signal instructs the optical sensor under test to capture an image of the programmable LED matrix light source board. If the target test procedure includes a dynamic exposure test procedure, the target capture signal instructs the optical sensor under test to record a video stream of a preset duration on the programmable LED matrix light source board.
[0066] In one possible implementation, the domain controller, when calculating the calibration parameters of the optical sensor under test based on the at least one frame of image and obtaining the test result based on the calibration parameters of the optical sensor under test, is specifically configured as follows: The domain controller is configured to, if the target test program includes a glare test program, calculate the area occupied by the first pixel whose pixel value meets the preset glare conditions based on the pixel value of each pixel in a frame image, and if the area occupied by the first pixel exceeds a first threshold, determine that the test result includes the glare of the optical sensor under test is unqualified, and the calibration parameter includes the area occupied by the first pixel. The domain controller is configured to detect whether there are independent spot artifacts in a frame of an image if the target test program includes a ghost test program, and if the number of independent spot artifacts detected exceeds a second threshold, determine that the test result includes the ghosting failure of the optical sensor under test, and the calibration parameter includes the number of independent spot artifacts. The domain controller is configured to calculate the exposure adjustment time corresponding to the optical sensor under test based on the video stream if the target test program includes a dynamic exposure test program, and if the exposure adjustment time exceeds a third threshold, determine that the test result includes the dynamic response sluggishness of the optical sensor under test, and the calibration parameter includes the exposure adjustment time.
[0067] In one possible implementation, the main control module is also configured to send debugging lighting signals to the programmable LED matrix light source board and send debugging instructions to the domain controller of the target vehicle through the wireless communication module. The programmable LED matrix light source board is also configured to receive the debugging lighting signal and provide illumination according to the debugging lighting signal; The domain controller is also configured to receive the debugging command, control the optical sensor under test to capture debugging images of the programmable LED matrix light source board based on the debugging command, and send the debugging images to the main control module; The main control module is also configured to receive the debugging image through the wireless communication module, and output a movement command for the telescopic bracket based on the debugging image, so that the telescopic bracket moves the flexible light shield to the position directly in front of the optical sensor under test by telescopic extension; wherein, the main control module is electrically connected to the telescopic bracket.
[0068] In one possible implementation, the main control module includes an LED control board, a remote controller, and a connecting cable. The remote controller is connected to the LED control board via the connecting cable. The LED control board integrates LED control lighting algorithms and detection algorithms. Accordingly, when the main control module detects the target test program selected by the user, sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and sends a target test signal to the domain controller of the target vehicle through the wireless communication module, it is specifically configured to, in response to detecting the target test program selected by the user on the remote control, execute an LED control lighting algorithm based on the target test program to send the target illumination signal to the programmable LED matrix light source board; and execute a detection algorithm based on the target test program to send the target test signal to the domain controller of the target vehicle.
[0069] In one possible implementation, the flexible sunshade is made of a double-layered sunshade cloth with a light transmittance lower than a preset light transmittance threshold. The bottom opening of the flexible sunshade is fitted to the surface of the target vehicle so that a dark chamber is formed between the flexible sunshade and the target vehicle.
[0070] As is known from common technical knowledge, this invention can be implemented through other embodiments that do not depart from its spirit or essential characteristics. Therefore, the disclosed embodiments described above are merely illustrative in all respects and are not the only ones. All modifications within the scope of this invention or its equivalents are included in this invention.
[0071] This invention also provides an electronic device, comprising: Memory, used to store computer programs; A processor is used to execute a computer program stored in the memory, and when the computer program is executed, it implements the above-described test method for a vehicle optical system.
[0072] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described testing method for a vehicle optical system.
[0073] This invention also provides a computer program product, including computer program instructions that, when executed by a processor, implement the above-described testing method for a vehicle optical system.
[0074] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0075] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0076] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0077] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A testing method for vehicle optical systems, characterized in that, The test method is applied to a test system, which includes a mobile calibration dark box, and the optical sensor and domain controller of the target vehicle to be tested. The mobile calibration dark box includes an integrated test head, a mobile adjustment frame, and a control and wireless communication module. The mobile calibration dark box establishes a communication connection with the target vehicle through the control and wireless communication module. The integrated test head includes a flexible light shield and a programmable LED matrix light source board, with the programmable LED matrix light source board disposed within the flexible light shield. The movable adjustment frame includes a movable base and a telescopic bracket, with the telescopic bracket disposed above the movable base. The control and wireless communication module includes a main control module, a power supply module, and a wireless communication module. The main control module is electrically connected to the programmable LED matrix light source board and the wireless communication module. The power supply module provides power to the main control module, the programmable LED matrix light source board, and the wireless communication module. The integrated test head and the control and wireless communication module are respectively disposed on the movable adjustment frame. The movable calibration dark box is moved to the front of the optical sensor under test via the movable adjustment frame; the flexible light shield is shaped like a truncated cone, with its upper bottom surface closed and its lower bottom surface open towards the optical sensor under test. The method includes: In response to detecting the target test program selected by the user, the main control module sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and sends a target test signal to the domain controller of the target vehicle through the wireless communication module. The programmable LED matrix light source board receives the target illumination signal and provides specific illumination according to the target illumination signal; The domain controller receives the target test signal and sends a target imaging signal to the optical sensor under test based on the target test signal; The optical sensor under test receives the target shooting signal, captures at least one frame of image on the programmable LED matrix light source board based on the target shooting signal, and sends the captured at least one frame of image to the domain controller; The domain controller receives the at least one frame of image, calculates the calibration parameters of the optical sensor under test based on the at least one frame of image, and obtains the test result based on the calibration parameters of the optical sensor under test.
2. The method according to claim 1, characterized in that, The target test procedure includes any one of the following: glare test procedure, ghosting test procedure, or dynamic exposure test procedure; Wherein, if the target test program includes a glare test program or a ghost test program, the target shooting signal instructs the optical sensor under test to capture an image of the programmable LED matrix light source board; If the target test procedure includes a dynamic exposure test procedure, then the target shooting signal instructs the optical sensor under test to record a video stream of a preset duration onto the programmable LED matrix light source board.
3. The method according to claim 2, characterized in that, The domain controller calculates the calibration parameters of the optical sensor under test based on the at least one frame of image, and obtains the test results based on the calibration parameters of the optical sensor under test, including: If the target test program includes a glare test program, the domain controller calculates the area occupied by the first pixel whose pixel value meets the preset glare conditions based on the pixel value of each pixel in a frame image. If the area occupied by the first pixel exceeds a first threshold, the test result is determined to include the glare of the optical sensor under test being unqualified, and the calibration parameters include the area occupied by the first pixel. If the target test program includes a ghosting test program, the domain controller detects whether there are independent light spot artifacts in a frame image. If the number of independent light spot artifacts detected exceeds a second threshold, the test result is determined to include the ghosting of the optical sensor under test as unqualified. The calibration parameters include the number of independent light spot artifacts. If the target test program includes a dynamic exposure test program, the domain controller calculates the exposure adjustment time corresponding to the optical sensor under test based on the video stream. If the exposure adjustment time exceeds a third threshold, the test result is determined to include the sluggish dynamic response of the optical sensor under test, and the calibration parameter includes the exposure adjustment time.
4. The method according to claim 1, characterized in that, Before the main control module, in response to detecting a user-selected target test program, sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and before sending the target test signal to the domain controller of the target vehicle via the wireless communication module, the method further includes: The main control module sends a debugging light signal to the programmable LED matrix light source board and sends a debugging command to the domain controller of the target vehicle through the wireless communication module; The programmable LED matrix light source board receives the debugging lighting signal and illuminates the light according to the debugging lighting signal; The domain controller receives the debugging command, controls the optical sensor under test to capture debugging images of the programmable LED matrix light source board based on the debugging command, and sends the debugging images to the main control module; The main control module receives the debugging image through the wireless communication module and outputs a movement command for the telescopic bracket based on the debugging image, so that the telescopic bracket moves the flexible light shield to a position directly in front of the optical sensor under test by telescopic extension; wherein, the main control module is electrically connected to the telescopic bracket.
5. The method according to claim 1, characterized in that, The main control module includes an LED control board, a remote controller, and a connecting cable. The remote controller is connected to the LED control board via the connecting cable. The LED control board integrates LED control lighting algorithms and detection algorithms. Accordingly, in response to detecting the user-selected target test program, the main control module sends a target illumination signal to the programmable LED matrix light source board based on the target test program, and sends a target test signal to the domain controller of the target vehicle through the wireless communication module, including: In response to detecting the target test program selected by the user on the remote control, the LED control board executes an LED control lighting algorithm based on the target test program to send the target illumination signal to the programmable LED matrix light source board; and executes a detection algorithm based on the target test program to send the target test signal to the domain controller of the target vehicle.
6. The method according to any one of claims 1-5, characterized in that, The flexible sunshade is made of double-layered sunshade fabric with a light transmittance lower than a preset light transmittance threshold. The bottom opening of the flexible sunshade is fitted to the surface of the target vehicle so that a dark chamber is formed between the flexible sunshade and the target vehicle.
7. A testing system comprising a mobile calibration chamber, and an optical sensor and domain controller of a target vehicle; the mobile calibration chamber comprising an integrated test head, a mobile adjustment frame, and a control and wireless communication module; the mobile calibration chamber establishing a communication connection with the target vehicle through the control and wireless communication module; in, The integrated test head includes a flexible light shield and a programmable LED matrix light source board, with the programmable LED matrix light source board disposed within the flexible light shield. The movable adjustment frame includes a movable base and a telescopic bracket, with the telescopic bracket disposed above the movable base. The control and wireless communication module includes a main control module, a power supply module, and a wireless communication module. The main control module is electrically connected to the programmable LED matrix light source board and the wireless communication module. The power supply module provides power to the main control module, the programmable LED matrix light source board, and the wireless communication module. The integrated test head and the control and wireless communication module are respectively disposed on the movable adjustment frame. The movable calibration dark box is moved to the front of the optical sensor under test via the movable adjustment frame; the flexible light shield is shaped like a truncated cone, with its upper bottom surface closed and its lower bottom surface open towards the optical sensor under test. The main control module is configured to, in response to detecting a target test program selected by the user, send a target illumination signal to the programmable LED matrix light source board based on the target test program, and send a target test signal to the domain controller of the target vehicle through the wireless communication module; The programmable LED matrix light source board is configured to receive the target illumination signal and provide specific illumination according to the target illumination signal; The domain controller is configured to receive the target test signal and send a target imaging signal to the optical sensor under test based on the target test signal; The optical sensor under test is configured to receive the target imaging signal, capture at least one frame of image on the programmable LED matrix light source board based on the target imaging signal, and send the captured at least one frame of image to the domain controller. The domain controller is configured to receive the at least one frame of image, calculate the calibration parameters of the optical sensor under test based on the at least one frame of image, and obtain the test result based on the calibration parameters of the optical sensor under test.
8. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor is configured to execute a computer program stored in the memory, wherein, when the computer program is executed, it implements the test method for a vehicle optical system as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the test method for vehicle optical systems as described in any one of claims 1-6.
10. A computer program product comprising computer program instructions, characterized in that, When the computer program instructions are executed by the processor, they implement the test method for vehicle optical systems as described in any one of claims 1-6.