Testing method and device for triggering image fault diagnosis report through simulation and computer equipment

Using simulation software to build image fault scenarios and perform simulation injection and recirculation tests, it solves the problems of accuracy of image fault diagnosis testing and frozen fault recurrence in the existing technology, improves test efficiency and coverage, and reduces drive test costs.

CN118605459APending Publication Date: 2024-09-06CHANGZHOU XINGYU AUTOMOTIVE LIGHTING SYST CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410807294.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

It is difficult to accurately simulate image faults of different dimensions in image fault diagnosis testing using existing technology, such as occlusion, blur, glare, etc., and image freezing faults are difficult to reproduce, resulting in low test efficiency and difficulty in boundary testing.

Method used

Use simulation software to build different image fault scenarios, use input images to trigger fault diagnosis online through simulation injection testing and recirculation testing, and record real-time fault diagnosis logs, optimizing the model to solve boundary problems triggered by image fault diagnosis and frozen fault recurrence question.

Benefits of technology

It improves the accuracy and coverage of image fault diagnosis testing, relieves environmental restrictions, reduces drive test costs, and achieves accurate simulation of image freezing faults and optimization of fault diagnosis models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605459A
    Figure CN118605459A
Patent Text Reader

Abstract

The invention discloses a test method and device for triggering image fault diagnosis report through simulation and computer equipment. The method comprises the following steps: extracting an image fault definition key index according to a set fault diagnosis list; establishing different image fault scenes by adopting simulation software to obtain simulation scene video streams; performing a simulation injection test according to the simulation scene video stream so as to trigger fault diagnosis on line by using an input image, recording the fault diagnosis in a real-time fault diagnosis log, and obtaining a recorded data packet; carrying out a recharge test, and recording the recharge test in a real-time fault diagnosis log; checking and analyzing the real-time fault diagnosis log, and positioning a problem when the problem is displayed in the real-time fault diagnosis log; and optimizing the model according to the problem, and re-executing the injection test. By implementing the method, the boundary problem of image fault diagnosis triggering, the problem that image faults are limited and influenced by the environment, and the problem that image freezing cannot be actually triggered by operation can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a test method, device and computer equipment for triggering image fault diagnosis and reporting using simulation. Background Art

[0002] In the field of autonomous driving technology, perception is the "eye" module of autonomous driving. In the vision-dominated perception system, computer vision uses cameras to obtain image data to understand the world around it. Therefore, the image quality obtained by the camera is a key factor affecting the performance, safety and reliability of the autonomous driving system. Clear, stable and timely images can help the autonomous driving system better perceive the driving environment and make corresponding decisions. When encountering problems such as image freezing, occlusion, blur, glare, etc., it is particularly important to be able to trigger image fault diagnosis and report.

[0003] At present, the test technology for image fault diagnosis usually uses a real camera on an indoor test bench, manually introduces occlusion, shaking or direct light source, creates image occlusion, blur or glare, and then checks whether the image fault diagnosis can be triggered and reported in online mode. However, this practical test method has some disadvantages: First, since image faults are divided into different dimensions, occlusion, blur and glare are divided into mild, moderate and severe, and each level has a clear definition. It is impossible to accurately simulate each level of scene by using a real camera by manual occlusion, shaking, or direct external light source. For example, mild occlusion is defined as occlusion in non-critical areas or occlusion in critical areas of less than 5%. When manually removing the occlusion, it is impossible to determine whether the occluded image meets the definition requirements, and the triggered fault diagnosis cannot determine whether its diagnostic log report corresponds to the correctness. However, it is difficult to control the boundary of fault diagnosis triggering with the existing technology, and the manual operation cannot accurately control the range of occlusion or direct light source, resulting in difficulty in boundary testing. Second, the probability of some faults such as image freezing is low, and it is difficult to reproduce in a normal test environment, and the test efficiency is low. Third, for specific scenarios such as when the camera is frosted, iced or blocked, the existing testing methods also have limitations and it is difficult to accurately simulate these situations.

[0004] Existing technologies have certain limitations in image fault diagnosis testing. For image faults of different dimensions, such as occlusion, blur, glare, etc., as well as faults of different degrees, existing methods are difficult to accurately simulate, and the completion rate of boundary testing and integrity testing is not high.

[0005] Therefore, it is necessary to design a new method to solve the boundary problem of image fault diagnosis triggering, the problem that image faults are affected by environmental restrictions, and the problem that image freezing cannot be triggered by actual operations. Summary of the invention

[0006] The purpose of the present invention is to overcome the defects of the prior art and provide a test method, device and computer equipment for triggering image fault diagnosis and reporting by simulation.

[0007] To achieve the above object, the present invention adopts the following technical solution: a test method for triggering image fault diagnosis and reporting by simulation, comprising:

[0008] Extract key indicators of image fault definition according to the set fault diagnosis list;

[0009] Use simulation software to build different image failure scenarios to obtain simulation scenario video streams;

[0010] Performing a simulation injection test according to the simulation scene video stream to trigger fault diagnosis online using the input image, and recording it in a real-time fault diagnosis log, and recording the injected video to obtain a recorded data packet;

[0011] Perform a refill test based on the recorded data packets and record them in the real-time fault diagnosis log;

[0012] Check and analyze the real-time fault diagnosis log. If a problem is displayed in the real-time fault diagnosis log, locate the problem.

[0013] According to the problem, the simulation injection test and the optimization of the model involved in the re-injection test are performed, and the simulation injection test based on the simulation scene video stream is re-executed to use the input image to trigger fault diagnosis online, and record it in the real-time fault diagnosis log, and record the injected video to obtain a recorded data packet.

[0014] A further technical solution is: extracting key indicators of image fault definition according to the set fault diagnosis list includes:

[0015] According to the fault diagnosis list, image faults are divided into different types and degrees, and the key indicators of each image fault are extracted. Among them, image faults are divided into four types: image occlusion, image blur, image glare, and image freeze. Image occlusion, image blur, and image glare are divided into three dimensions: mild, moderate, and severe, respectively.

[0016] A further technical solution is: using simulation software to build different image failure scenarios to obtain simulation scenario video streams, including:

[0017] Using the simulation software sensor simulation module and constructing image failure scenarios of different types and degrees according to the key indicators of the image failure definition;

[0018] Use simulation software and custom Python scripts to construct image freezing failure scenarios;

[0019] The simulation scene video stream includes video streams corresponding to image failure scenarios of different types and degrees and image freezing failure scenarios.

[0020] A further technical solution is: the use of simulation software and a custom Python script to construct an image freezing fault scenario includes:

[0021] In the simulation software, the main vehicle selects the normal sensor configuration and runs the simulation case to simulate the acquisition of actual scene data;

[0022] Output YAW and CameraInfo data during simulation case execution;

[0023] Use Python scripts to convert the output data into a visual image format;

[0024] Insert duplicate images and synchronize CameraInfo data in the converted image sequence;

[0025] Convert serialized images and CameraInfo data into video stream files and CSV files respectively, keeping their frame correspondence;

[0026] The image freezing duration and the number of frames are calculated, and the image freezing fault scenario is formed by combining the video stream file and the CSV file.

[0027] A further technical solution is: performing a simulation injection test according to the simulation scene video stream to trigger fault diagnosis online using the input image, and recording it in a real-time fault diagnosis log, and recording the injected video to obtain a recorded data packet, including:

[0028] The simulation scene video stream and the CSV file are injected into the autonomous driving domain control board through the video injection system bench for online testing to obtain recorded data packets.

[0029] A further technical solution is: the refill test is performed according to the recorded data packets and recorded in the real-time fault diagnosis log, including:

[0030] Using recorded data packets, the test is performed in offline mode on the recharge test bench and recorded in real-time fault diagnosis log.

[0031] Its further technical solution is: also includes:

[0032] By generalizing the time and weather of the problematic image fault scenario, the generalized image fault scenario is injected multiple times for simulation injection test and re-injection test.

[0033] Its further technical solution is: the simulation injection test and the optimization of the model involved in the re-injection test according to the problem, and the simulation injection test according to the simulation scene video stream are re-executed to trigger fault diagnosis online using the input image, and recorded in the real-time fault diagnosis log, and the injected video is recorded to obtain a recorded data packet, and then:

[0034] When no problems occur in the simulation, a real vehicle road test is carried out.

[0035] The present invention also provides a test device for triggering image fault diagnosis and reporting by simulation, comprising:

[0036] An indicator extraction unit, used for extracting key indicators of image fault definition according to a set fault diagnosis list;

[0037] A video stream determination unit, used to build different image failure scenarios using simulation software to obtain a simulation scenario video stream;

[0038] A simulation injection test unit, used for performing a simulation injection test according to the simulation scene video stream, so as to trigger fault diagnosis online using the input image, and record it in a real-time fault diagnosis log, and record the injected video to obtain a recorded data packet;

[0039] A refill test unit, used to perform refill tests based on recorded data packets and record them in a real-time fault diagnosis log;

[0040] A viewing unit, used to view and analyze the real-time fault diagnosis log, and locate the problem when a problem is displayed in the real-time fault diagnosis log;

[0041] An optimization unit is used to optimize the models involved in the simulation injection test and the re-injection test according to the problem, and re-execute the simulation injection test according to the simulation scene video stream to trigger fault diagnosis online using the input image, and record it in the real-time fault diagnosis log, and record the injected video to obtain a recorded data packet.

[0042] The present invention further provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor implements the above method when executing the computer program.

[0043] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention first determines the key indicators of image fault definition, uses simulation software to build different image fault scenarios according to these indicators, and performs simulation injection test and re-injection test, then performs fault query on the real-time fault diagnosis log of the test, optimizes the corresponding model when a problem occurs, and then tests until no problem is shown in the log, thereby solving the boundary problems triggered by image fault diagnosis, the problems that image faults are affected by environmental restrictions, and the problems that image freezing cannot be triggered by actual operations.

[0044] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0046] Figure 1 A flowchart of a test method for triggering image fault diagnosis and reporting using simulation provided by an embodiment of the present invention;

[0047] Figure 2 A schematic diagram of a sub-flow of a test method for triggering image fault diagnosis and reporting using simulation provided by an embodiment of the present invention;

[0048] Figure 3 A schematic diagram of a sub-flow of a test method for triggering image fault diagnosis and reporting using simulation provided by an embodiment of the present invention;

[0049] Figure 4 A schematic diagram of an application of a simulation injection test provided by an embodiment of the present invention;

[0050] Figure 5 A schematic diagram of an application of a recharge test provided by an embodiment of the present invention;

[0051] Figure 6 A schematic block diagram of a test device for triggering image fault diagnosis and reporting using simulation provided by an embodiment of the present invention;

[0052] Figure 7 A schematic block diagram of a video stream determination unit of a test device for triggering image fault diagnosis and reporting using simulation provided by an embodiment of the present invention;

[0053] Figure 8 A schematic block diagram of a second construction subunit of a test device for triggering image fault diagnosis and reporting using simulation provided by an embodiment of the present invention;

[0054] Fig. 9 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0057] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0058] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0059] See also Figure 1 , Figure 1A schematic flow chart of a test method for triggering image fault diagnosis and reporting by simulation provided by an embodiment of the present invention. The test method for triggering image fault diagnosis and reporting by simulation is applied to a test device for an autonomous driving vehicle. Through simulation software, image fault boundary scenarios that are difficult to accurately test in real production can be constructed, so as to fully expose the image fault diagnosis triggering capability under edge conditions and improve the accuracy, coverage and completion of the test; with the help of the sensor and environment simulation functions of the simulation software, special working conditions can be established, such as ice and frost on the image, to solve the image fault test that cannot be completed in normal weather conditions, and at the same time eliminate the dependence on the actual road test cost; using simulation software to output pictures and true values, and combining image and data splicing conversion technology, the image freezing fault is successfully simulated, solving the problem of simulating the test of image freezing faults that cannot be artificially realized in the actual environment; inputting the predicted fault scenario, the image fault diagnosis can be expected, and the comparison can be made to see whether the fault is successfully triggered and the correct fault code is reported, which improves the credibility of the test conclusion, helps to troubleshoot the cause of the fault diagnosis error, and can also provide key image frames for the training and optimization of the image diagnosis model; using simulation software to create video streams of image fault scenarios, realize online and offline testing, solve the limitation that real cameras only support online mode, and also support multiple people to test simultaneously with different boards, which improves the scene reuse rate, less hardware dependence and wider support range. At the same time, online and offline dual test channels can also conduct more comprehensive testing of SOC image fault diagnosis reporting.

[0060] In addition, the method of this embodiment can be widely used to trigger image fault diagnosis and reporting of autonomous driving perception systems using sensor simulation, scene simulation, and image freezing technology, and complete the reproduction, verification, positioning, image fault diagnosis model, and post-processing algorithm optimization and iterative closed loop of image fault trigger conditions at the finest granularity.

[0061] Figure 1 FIG. 1 is a flow chart of a test method for triggering image fault diagnosis and reporting using simulation provided by an embodiment of the present invention. Figure 1 As shown, the method includes the following steps S110 to S160.

[0062] S110, extracting key indicators of image fault definition according to a set fault diagnosis list.

[0063] In this embodiment, according to the fault diagnosis list, image faults are divided into different types and degrees, and key indicators of each image fault are extracted. Among them, image faults are divided into four types: image occlusion, image blur, image glare, and image freeze. Image occlusion, image blur, and image glare are divided into three dimensions: mild, moderate, and severe. Each dimension has a specific definition. According to the definition, the key indicators of each image fault are extracted.

[0064] Specifically, it is possible to distinguish between critical areas and non-critical areas, and then determine the degree of occlusion according to the standards set for non-critical areas. Critical areas and non-critical areas are divided according to the trapezoidal areas extended in the drivable area. Take occlusion failure as an example. In the trapezoidal area, that is, in the critical area, the image pixel ratio occlusion is divided into less than 5%, 5%-30%, and greater than 30%. Non-critical areas are arbitrarily occluded.

[0065] Specifically, in scene 1, the non-critical area is set to be occluded by 1%, and the expected result is: the fault diagnosis is mild, that is, the corresponding category is mild image occlusion; scene 2, the non-critical area is set to be occluded by 100%, and the expected result is that the fault diagnosis is mild, that is, the corresponding category is mild image occlusion; scene 3, the critical area is set to be occluded by 4.9%, and the fault diagnosis is mild, that is, the corresponding category is mild image occlusion; scene 4, the critical area is occluded by 5.01%, and the fault diagnosis is moderate, that is, the corresponding category is moderate image occlusion; scene 5, the critical area is set to be occluded by 29.9%, and the fault diagnosis is moderate, that is, the corresponding category is moderate image occlusion; scene 6: the critical area is set to be occluded by 50%, and the expected fault diagnosis is severe, and the corresponding category is severe image occlusion. Scene 7: the critical area is set to be occluded by 70%, and the expected fault diagnosis is severe, and the corresponding category is severe image occlusion. Scene 8: the non-critical area is set to be occluded by 10%, and the expected fault diagnosis is mild, and the corresponding category is mild image occlusion. Scenario 9: The non-critical area is set to be occluded by 20%, the expected fault diagnosis is moderate, and the corresponding category is moderate image occlusion. Scenario 10: The critical area is set to be occluded by 80%, the expected fault diagnosis is severe, and the corresponding category is severe image occlusion. Through the above analogy, the expected results can be continuously verified and confirmed, and the fault diagnosis categories and corresponding scene settings under various occlusion conditions can be further improved.

[0066] The above fault diagnosis list includes definitions of different categories and degrees. For example, image occlusion is normally without occlusion. Mild occlusion is occlusion in non-critical areas or less than 5% occlusion in critical areas. Moderate occlusion is occlusion of more than 5% and less than 30% in critical areas. Severe occlusion is occlusion of more than 30% in critical areas.

[0067] There are also corresponding reference standards for different degrees of definition of other categories.

[0068] S120, using simulation software to build different image failure scenarios to obtain simulation scenario video streams.

[0069] In this embodiment, a series of videos simulating real environments are generated by simulation software, and these videos may include different scenes, conditions, and fault conditions. Through the simulation software, the user can set various parameters and conditions, such as lighting conditions, weather conditions, movement of target objects, etc., to generate video streams simulating real scenes.

[0070] In the fields of image processing, computer vision, and machine learning, simulated scene video streams are often used to train and test visual algorithms and models. By simulating different scenarios and fault conditions, algorithms can be helped to learn and understand the processing methods in various complex situations more comprehensively, and improve the robustness and generalization ability of the algorithms. At the same time, simulated scene video streams can also be used to test and verify the performance of visual algorithms under different conditions, and evaluate the robustness and accuracy of the algorithms.

[0071] In summary, simulation scene video streams are video sequences that simulate real environments and are generated using simulation software. They play an important role in the training, testing, and evaluation of visual algorithms.

[0072] In one embodiment, see Figure 2 , the above-mentioned step S120 may include steps S121 to S122.

[0073] S121. Using a simulation software sensor simulation module and defining key indicators of image failure, construct image failure scenarios of different types and degrees.

[0074] In this embodiment, based on the sensor simulation of the simulation software, the faulty camera is simulated first. In the sensor setting of the main vehicle, the key indicators in the fault definition are written into the sensor front camera configuration. Specifically, for light occlusion, you can select non-critical areas for occlusion, save the configuration and generate main vehicle 1; then you can select 5% occlusion of the critical area, save the configuration and generate main vehicle 2; and so on, according to the key indicators in the image fault definition, N main vehicles can be obtained.

[0075] Afterwards, you can use different main vehicles to run simulation cases for the same scene, or you can choose different scenes and use different main vehicles to run simulation cases. By outputting video streams, various image failure scenarios are successfully constructed, such as light occlusion scene 1, light occlusion scene 2, moderate occlusion scene 3, heavy occlusion scene 4, etc.

[0076] This approach allows us to flexibly simulate various image failure scenarios in a simulation environment, and different fault conditions can be achieved by adjusting the sensor configuration and the host vehicle selection. This provides rich data for system testing and verification, helping to improve the performance of image processing algorithms and sensor fault diagnosis systems.

[0077] S122, constructing an image freezing fault scenario using simulation software and a custom Python script;

[0078] The simulation scene video stream includes video streams corresponding to image failure scenarios of different types and degrees and image freezing failure scenarios.

[0079] In one embodiment, see Figure 3 , the above-mentioned step S133 may include steps S131 to S136.

[0080] S131. In the simulation software, the main vehicle selects a normal sensor configuration and runs a simulation case to simulate the acquisition of actual scene data;

[0081] S132, outputting YAW and CameraInfo data during the simulation case execution;

[0082] S133, using a Python script to convert the output data into a visual image format;

[0083] S134, inserting duplicate pictures and synchronizing CameraInfo data into the converted picture sequence;

[0084] S135, converting the serialized pictures and CameraInfo data into video stream files and CSV files respectively, and maintaining their frame correspondence;

[0085] S136: Calculate the image freezing duration and the number of frames, and generate an image freezing fault scenario by combining the video stream file and the CSV file.

[0086] Specifically, based on the simulation software, first select the normal sensor configuration, run the simulation case, and output the YAW and CameraInfo data. Then, use the written Python script to convert the YAW data into images. After the conversion is completed, insert N pictures that are the same as the previous one into the picture sequence, and synchronously insert N data that are consistent with the previous frame into the CameraInfo data. Then, use the written Python script to convert the serialized pictures and CameraInfo into video stream files and CSV files respectively, keeping the frame correspondence.

[0087] Through this process, the image freezing fault scenario is successfully constructed. In this process, the number N is determined by the duration of the image freezing. For example, if the design freezes the image for 10 seconds (definable) starting from a certain frame, and the frame rate of the autonomous driving domain control board is 30 frames / second (definable), then the value of N can be calculated to be 300 pictures.

[0088] This method can help simulate the image freezing fault scenario, providing important data support for testing and evaluating the performance of the autonomous driving system under abnormal conditions. At the same time, it also provides a reliable simulation platform for fault diagnosis and system optimization.

[0089] S130, performing a simulation injection test according to the simulation scene video stream to trigger fault diagnosis online using the input image, and recording it in a real-time fault diagnosis log, and recording the injected video to obtain a recorded data packet.

[0090] In this embodiment, the recorded data packets refer to the data packets recorded when the simulation injection test is performed using the video injection system bench. It refers to a set of data files, which include the injected simulation scene video stream and the corresponding CSV file, which are used for testing and verification in the offline mode in the subsequent re-injection test. These data files will be used to verify whether the modified code program can correctly diagnose and handle image failure scenarios.

[0091] Specifically, the simulation scene video stream and the CSV file are injected into the autonomous driving domain control board through the video injection system bench to perform online testing to obtain recorded data packets. The hardware architecture used is as follows: Figure 4 As shown. When performing video injection, the video injection system, PC, and the autonomous driving domain control or all-in-one board under test are connected through an Ethernet converter to complete communication. On the PC, connect to the video injection system through the remote terminal client SSH service and send an injection command; after receiving the command, the video injection system injects the video source data and CAN information stored in the data storage board into the board under test through the video injection board and the bus communication board; after the perception algorithm is executed, the board under test outputs the corresponding perception fault diagnosis results, and can clearly display whether the fault diagnosis is triggered on the PC's visual client. This injection method replaces the real camera with a video injection system to realize the injection test of virtual fault scenarios with complex extreme boundaries.

[0092] Using the video injection system bench, the above-mentioned simulation scene video stream can be synchronously injected into the autonomous driving domain control board through the video injection board and the CSV file through the bus communication board. This injection method is similar to the actual camera working online, so it is called "online mode". While the video is being injected, synchronous recording can be completed on the visualization client, and the recording results can be output in pack format.

[0093] During the injection test, different fault diagnostic codes will be triggered and reported according to the different image fault simulations input. This test method can simulate the performance of the autonomous driving system under various image fault conditions in the real environment, thereby verifying the system's fault diagnosis and response capabilities.

[0094] At the same time, the recording function of the visual client is used to record the injected video to form a data packet in pack format, which can conveniently record the test process and obtain detailed test result data, providing important support for system performance evaluation and troubleshooting.

[0095] S140: Perform a recharge test according to the recorded data packets and record the test in a real-time fault diagnosis log.

[0096] In this embodiment, the recorded data packets are used to perform the test in the offline mode on the recharging test bench and are recorded in the real-time fault diagnosis log. Figure 5 The hardware shown is executed. When performing backfill, the PC and the autonomous driving domain control or all-in-one board under test are connected through an Ethernet converter to complete communication. The backfill system is installed on the PC and connected to the board under test through the remote terminal client SSH service. The operation of the backfill system will backfill the pack source to the board under test; the board under test executes the perception algorithm and outputs the corresponding perception fault diagnosis results, which can clearly display whether the fault diagnosis is triggered on the PC's visual client. This backfill method realizes offline testing of the converted virtual pack, generalized pack, and real pack without the use of a camera, thereby maximizing the testing of fault scenarios.

[0097] Using the recorded data packets, the refill test bench can be used to perform offline mode testing. In offline mode, an unlimited number of domain control boards can be tested simultaneously, thereby improving test efficiency and significantly reducing the hardware resources and costs required for online testing. This method breaks through the limitation that real cameras can only be used for online mode testing.

[0098] Through offline mode testing, the recorded simulation scene data can be efficiently and scalably verified, thereby verifying the performance and fault diagnosis capabilities of the autonomous driving system in different fault scenarios. At the same time, this testing method also provides strong support for system optimization and troubleshooting, making the testing process more flexible and efficient.

[0099] S150: Check and analyze the real-time fault diagnosis log, and when a problem is shown in the real-time fault diagnosis log, locate the problem.

[0100] In this embodiment, by connecting to the domain control board through a remote client, commands can be used to view the fault diagnosis log in real time, or the image fault diagnosis code can be viewed through the locally saved fault diagnosis log file. Specifically, since it is known that the injected simulation video is a simulation of a specific image fault type, we can clearly expect the output of the expected fault diagnosis code. By viewing the fault diagnosis log, if the corresponding diagnostic code exists at the corresponding timestamp in the log, it means that the image fault diagnosis function is normal (OK), that is, there is no problem; if the corresponding diagnostic code does not exist in the log, or the diagnostic code is incorrect, it means that the image fault diagnosis function is abnormal (NG), that is, there is a problem in the log.

[0101] This method provides convenience for remote monitoring and diagnosis systems. Operators can understand the diagnostic capabilities of the autonomous driving system for different image faults in real time and provide timely feedback and adjustments. At the same time, based on the information in the fault diagnosis log, the stability and reliability of the system can be effectively evaluated, thereby guiding the optimization and improvement of the system.

[0102] S160, optimizing the models involved in the simulation injection test and the re-injection test according to the problem, and re-executing S130.

[0103] In this embodiment, based on the obtained NG items, that is, the problems, it can be clearly located that the fault diagnosis model fails to correctly identify the image fault, or there is a problem with the post-processing output. Such feedback can be directly provided to the corresponding development team. For the model, the key frames output after the frame extraction processing of the simulation scene corresponding to the NG item can be used to efficiently train and optimize the model, thereby promoting the improvement of the image fault diagnosis model and expanding the diagnosis model's ability to identify image faults.

[0104] After solving the problem pointed out by the NG item, you can upgrade the SOC application app and use the original NG scene video stream file to inject or re-inject the video again. This can verify whether the modified SOC code program is correct. In the diagnostic log, it can be observed that the image fault diagnosis has a correct output report, which means that the development modification is successful. At the same time, the original NG scene can be generalized in terms of time, weather, etc., and the generalized image fault scene can be injected multiple times to improve the triggering accuracy and reliability of image fault diagnosis for this type of fault. In this way, a closed loop of image fault diagnosis test is formed.

[0105] It should be clear that the model involved here refers to the image fault diagnosis model, that is, the model used to identify image faults in the autonomous driving system. This model can be a neural network model based on deep learning, such as a convolutional neural network (CNN), which is used to identify patterns of various image fault types.

[0106] In addition, the above method also includes:

[0107] By generalizing the time and weather of the problematic image fault scenario, the generalized image fault scenario is injected multiple times for simulation injection test and re-injection test.

[0108] Specifically, generalizing the time and weather of the image fault scenario means performing a series of data augmentation operations on the basis of the specific image fault scenario where the problem occurs, so as to generate more simulation scenarios with differences and diversity. The purpose of this is to simulate the image fault conditions under different time and weather conditions, so as to improve the robustness and generalization ability of the image fault diagnosis model.

[0109] Temporal generalization can involve changing the time of day and night, different seasons, or even different times of year when a scene is captured. This can be done by processing the image to simulate changes in light and color, as well as changes in the road surface and surroundings. In addition, weather generalization can include different weather conditions, such as sunny, rainy, snowy, etc., and the corresponding changes in factors such as the slipperiness of the road surface and visibility under different weather conditions.

[0110] Once the generalized image fault scenario dataset is generated, simulation injection testing and re-injection testing can be performed again. In the simulation injection test, the generalized image fault scenario data is injected into the sensor input of the autonomous driving system to observe the system's diagnostic performance for image faults under these different time and weather conditions. In the re-injection test, the generalized image fault scenario data is re-injected into the actual test environment to verify the autonomous driving system's diagnostic performance for generalized image faults in actual scenarios.

[0111] Through these tests, we can evaluate the generalization ability of the image fault diagnosis model under different time and weather conditions, as well as the system's recognition and diagnosis accuracy of generalized image faults in actual scenarios. These tests will help further improve and optimize the image fault diagnosis model and enhance the stability and reliability of the autonomous driving system.

[0112] In addition, when no problems occur in the simulation, real vehicle road tests are carried out.

[0113] Specifically, after completing the simulation verification of fine-grained image fault triggering conditions, it is of great significance to conduct real vehicle road testing. First of all, the safety of road testing can be guaranteed in this way. After multiple generalized image fault scenario injection tests in the simulation environment, the system's ability to cope with various complex situations has been verified. This provides a certain guarantee for deploying the image fault diagnosis model on actual vehicles, because the image fault situations encountered in actual road testing are often more complex and diverse, and the safety of the system needs to be ensured.

[0114] Secondly, by conducting detailed testing and verification in a simulation environment, the cost of repeated road tests caused by subsequent regulatory control decision errors due to a high probability of triggering image diagnosis faults during road tests can be reduced. If image diagnosis faults are discovered during the actual vehicle road test phase, the entire test process may need to be adjusted and repeated, which will result in a waste of time and resources. By fully verifying the accuracy and robustness of the image fault diagnosis model in a simulation environment, this situation can be avoided to a certain extent, improving road test efficiency and reducing costs.

[0115] In addition, in the actual vehicle road test, it is also necessary to consider issues such as safe driving, data collection and recording, and real-time monitoring to ensure the safety and effectiveness of the test process. By combining simulation verification with actual vehicle road testing, the reliability and stability of the autonomous driving system can be comprehensively improved, laying a solid foundation for the commercial deployment of the system.

[0116] The method of this embodiment can achieve high coverage and accuracy of image fault boundaries by using simulation solutions, fully expose the image fault diagnosis triggering capability under edge conditions, and improve test accuracy and completeness; the simulation solution can achieve the correspondence of special working conditions, break environmental restrictions, and reduce road test costs; the simulation combined with video and camera data splicing technology can solve the problem of artificial reproduction of frozen faults, solving the test gap of this fault diagnosis; (4) the comparison between the known fault scene input and expected output and the actual output is clearer, and the correctness of fault diagnosis is more guaranteed; incorrect fault diagnosis is also easier to locate, and the key frame image output after frame extraction processing of NG scenes can be used for efficient image diagnosis model training and optimization, forming a closed loop to promote perception algorithm iteration, with higher development efficiency and higher accuracy and reliability of image fault diagnosis triggering. Sensor simulation and scene simulation are used to inject or re-inject video to trigger image fault diagnosis reporting, realizing online and offline dual-mode testing, breaking away from the limitation that real cameras only support online testing, improving scene reuse rate and test efficiency, and reducing test resource requirements and hardware cost investment. The above-mentioned image failure scenarios are completed on an indoor test bench, and then real vehicle road tests are carried out. This not only improves the safety of road tests, but also reduces the cost of repeated road tests.

[0117] Specifically, the sensor simulation of the simulation software is used to construct the image fault boundary scene, solve the fault scene that cannot be accurately tested under the existing technology, fully expose the image fault diagnosis triggering ability under edge conditions, and improve the test accuracy, coverage and completion. The sensor simulation and environmental simulation of the simulation software are used to build special working condition scenes, simulate the image being frozen, frosted, etc., solve the image fault test that cannot be completed in normal weather environment, remove environmental restrictions, and save road test costs. The simulation software is used to output pictures and true values, and then the image and data splicing conversion technology is used to construct the binary value of each frame of the video stream. The input is successfully simulated to simulate the image freezing fault and solve the blank of the image freezing that cannot be artificially simulated. By inputting the predicted fault scene, the image fault diagnosis can be expected, and it can clearly check whether the fault is successfully triggered, whether the trigger is the correct fault code report, and the expected output is compared with the actual output. The OK test conclusion is more credible. On the contrary, when the test conclusion is NG, it can also better troubleshoot the cause of the fault diagnosis error and locate it in a targeted manner. It can also extract the frame of the NG scene and output the key image frame to the model for efficient training and optimization of the image diagnosis model. Use simulation software to create video streams of image fault scenarios. Online testing can be achieved through video injection, and offline testing can be achieved through format conversion. This solves the limitation that real cameras only support online mode. Offline testing can be used to adapt to different boards and multiple people can test at the same time, achieving the advantages of high scene reuse rate, less hardware dependence and wider support range. Online and offline dual test channels provide more comprehensive testing of SOC image fault diagnosis and reporting.

[0118] The above-mentioned test method of using simulation to trigger image fault diagnosis and reporting first determines the key indicators of image fault definition, uses simulation software to build different image fault scenarios according to these indicators, and performs simulation injection test and re-injection test. Thereafter, a fault query is performed on the real-time fault diagnosis log of the test. When a problem occurs, the corresponding model is optimized and the test is continued until no problem is shown in the log, thereby solving the boundary problems of image fault diagnosis triggering, the image fault being affected by environmental restrictions, and the image freezing that cannot be triggered by actual operation.

[0119] Figure 6 FIG. 3 is a schematic block diagram of a test device 300 for triggering image fault diagnosis and reporting using simulation according to an embodiment of the present invention. Figure 6As shown, corresponding to the above test method using simulation to trigger image fault diagnosis and reporting, the present invention also provides a test device 300 using simulation to trigger image fault diagnosis and reporting. The test device 300 using simulation to trigger image fault diagnosis and reporting includes a unit for executing the above test method using simulation to trigger image fault diagnosis and reporting, and the device can be configured in a server. Specifically, please refer to Figure 6 The test device 300 for triggering image fault diagnosis and reporting using simulation includes an indicator extraction unit 301, a video stream determination unit 302, a simulation injection test unit 303, a re-injection test unit 304, a viewing unit 305 and an optimization unit 306.

[0120] The index extraction unit 301 is used to extract the key index of the image fault definition according to the set fault diagnosis list; the video stream determination unit 302 is used to build different image fault scenarios using simulation software to obtain the simulation scenario video stream; the simulation injection test unit 303 is used to perform a simulation injection test according to the simulation scenario video stream to trigger the fault diagnosis online using the input image, and record it in the real-time fault diagnosis log, and record the injected video to obtain a recorded data packet; the re-injection test unit 304 is used to perform a re-injection test according to the recorded data packet, and record it in the real-time fault diagnosis log; the viewing unit 305 is used to view and analyze the real-time fault diagnosis log, and locate the problem when a problem is displayed in the real-time fault diagnosis log; the optimization unit 306 is used to perform a simulation injection test according to the problem and optimize the model involved in the re-injection test, and re-execute the simulation injection test according to the simulation scenario video stream to trigger the fault diagnosis online using the input image, and record it in the real-time fault diagnosis log, and record the injected video to obtain a recorded data packet.

[0121] In one embodiment, the above device further includes:

[0122] The real vehicle test unit is used to conduct real vehicle road tests when no problems occur in the simulation.

[0123] In one embodiment, the above device further includes:

[0124] The generalization unit is used to generalize the time and weather of the image fault scenario with problems, and to inject the generalized image fault scenario multiple times for simulation injection test and re-injection test.

[0125] In one embodiment, the indicator extraction unit 301 is used to classify image faults into different types and degrees according to the fault diagnosis list, and extract key indicators for each image fault, wherein image faults are divided into four types: image occlusion, image blur, image glare, and image freeze. Image occlusion, image blur, and image glare are divided into three dimensions: mild, moderate, and severe, respectively.

[0126] In one embodiment, if Figure 7 As shown, the video stream determination unit 302 includes a first construction subunit 3021 and a second construction subunit 3022 .

[0127] The first construction subunit 3021 is used to construct image failure scenarios of different types and degrees using the simulation software sensor simulation module and according to the key indicators of the image failure definition; the second construction subunit 3022 is used to construct image freezing failure scenarios using the simulation software and a custom Python script; wherein the simulation scenario video stream includes image failure scenarios of different types and degrees and video streams corresponding to the image freezing failure scenarios.

[0128] In one embodiment, if Figure 8 As shown, the second construction subunit 3022 includes a configuration module 30221, an output module 30222, a format conversion module 30223, an insertion module 30224, a data conversion module 30225 and a calculation module 30226.

[0129] Configuration module 30221 is used for the main vehicle to select normal sensor configuration in the simulation software and run the simulation case to simulate the acquisition of actual scene data; output module 30222 is used to output YAW and CameraInfo data during the execution of the simulation case; format conversion module 30223 is used to convert the output data into a visual image format using a Python script; insertion module 30224 is used to insert duplicate images and synchronize CameraInfo data in the converted image sequence; data conversion module 30225 is used to convert serialized images and CameraInfo data into video stream files and CSV files respectively, maintaining their frame correspondence; calculation module 30226 is used to calculate the image freezing duration and frame number, and form an image freezing fault scenario in combination with the video stream file and CSV file.

[0130] In one embodiment, the simulation injection test unit 303 is used to inject the simulation scene video stream and the CSV file into the autonomous driving domain control board through a video injection system bench to perform online testing to obtain a recorded data packet.

[0131] In one embodiment, the recharge test unit 304 is used to perform offline mode testing on the recharge test bench using the recorded data packets and record the data packets in a real-time fault diagnosis log.

[0132] It should be noted that technical personnel in the relevant field can clearly understand that the specific implementation process of the above-mentioned test device 300 and each unit for triggering image fault diagnosis and reporting using simulation can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.

[0133] The above-mentioned test device 300 for triggering image fault diagnosis and reporting by simulation can be implemented in the form of a computer program. The computer program can be used in the following manner: Fig. 9 Runs on the computer device shown.

[0134] See also Fig. 9 , Fig. 9 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a server. The server may be an independent server or a server cluster composed of multiple servers.

[0135] See also Fig. 9 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0136] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a test method for triggering image fault diagnosis and reporting by simulation.

[0137] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0138] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a test method for triggering image fault diagnosis and reporting by simulation.

[0139] The network interface 505 is used to communicate with other devices over the network. Fig. 9The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0140] The processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps:

[0141] Extract key indicators of image fault definition according to the set fault diagnosis list; use simulation software to build different image fault scenarios to obtain simulation scenario video streams; perform simulation injection test according to the simulation scenario video stream to trigger fault diagnosis online using the input image, and record it in the real-time fault diagnosis log, and record the injected video to obtain a recorded data packet; perform re-injection test according to the recorded data packet, and record it in the real-time fault diagnosis log; check and analyze the real-time fault diagnosis log, and locate the problem when a problem is shown in the real-time fault diagnosis log; perform simulation injection test according to the problem and optimize the model involved in the re-injection test, and re-execute the simulation injection test according to the simulation scenario video stream to trigger fault diagnosis online using the input image, and record it in the real-time fault diagnosis log, and record the injected video to obtain a recorded data packet.

[0142] In one embodiment, when the processor 502 implements the step of extracting the key indicators of the image fault definition according to the set fault diagnosis list, the processor 502 specifically implements the following steps:

[0143] According to the fault diagnosis list, image faults are divided into different types and degrees, and the key indicators of each image fault are extracted. Among them, image faults are divided into four types: image occlusion, image blur, image glare, and image freeze. Image occlusion, image blur, and image glare are divided into three dimensions: mild, moderate, and severe, respectively.

[0144] In one embodiment, when the processor 502 implements the step of using simulation software to build different image failure scenarios to obtain simulation scenario video streams, the processor 502 specifically implements the following steps:

[0145] Using the simulation software sensor simulation module and defining key indicators of the image fault to construct image fault scenarios of different types and degrees; using the simulation software and a custom Python script to construct an image freezing fault scenario;

[0146] The simulation scene video stream includes video streams corresponding to image failure scenarios of different types and degrees and image freezing failure scenarios.

[0147] In one embodiment, when implementing the step of constructing an image freezing fault scenario using simulation software and a custom Python script, the processor 502 specifically implements the following steps:

[0148] In the simulation software, the main vehicle selects a normal sensor configuration and runs a simulation case to simulate the acquisition of actual scene data; YAW and CameraInfo data are output during the execution of the simulation case; the output data is converted into a visual image format using a Python script; duplicate images and synchronized CameraInfo data are inserted into the converted image sequence; the serialized images and CameraInfo data are converted into video stream files and CSV files respectively, maintaining their frame correspondence; the image freezing duration and frame number are calculated, and the image freezing fault scenario is formed in combination with the video stream file and CSV file.

[0149] In one embodiment, the processor 502 implements the steps of performing a simulation injection test according to the simulation scene video stream to trigger fault diagnosis online using the input image, and recording it in a real-time fault diagnosis log, and recording the injected video to obtain a recorded data packet, specifically implementing the following steps:

[0150] The simulation scene video stream and the CSV file are injected into the autonomous driving domain control board through the video injection system bench for online testing to obtain recorded data packets.

[0151] In one embodiment, the processor 502 implements the following steps when implementing the step of performing a refill test according to the recorded data packets and recording the refill test in the real-time fault diagnosis log:

[0152] Using recorded data packets, the test is performed in offline mode on the recharge test bench and recorded in real-time fault diagnosis log.

[0153] In one embodiment, the processor 502 further implements the following steps:

[0154] By generalizing the time and weather of the problematic image fault scenario, the generalized image fault scenario is injected multiple times for simulation injection test and re-injection test.

[0155] In one embodiment, after the processor 502 implements the optimization of the model involved in the simulation injection test and the re-injection test according to the problem, and re-executes the simulation injection test according to the simulation scene video stream to trigger fault diagnosis online using the input image, and records it in the real-time fault diagnosis log, and records the injected video to obtain a recorded data packet, it also implements the following steps:

[0156] When no problems occur in the simulation, a real vehicle road test is carried out.

[0157] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0158] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0159] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor executes the following steps:

[0160] Extract key indicators of image fault definition according to the set fault diagnosis list; use simulation software to build different image fault scenarios to obtain simulation scenario video streams; perform simulation injection test according to the simulation scenario video stream to trigger fault diagnosis online using the input image, and record it in the real-time fault diagnosis log, and record the injected video to obtain a recorded data packet; perform re-injection test according to the recorded data packet, and record it in the real-time fault diagnosis log; check and analyze the real-time fault diagnosis log, and locate the problem when a problem is shown in the real-time fault diagnosis log; perform simulation injection test according to the problem and optimize the model involved in the re-injection test, and re-execute the simulation injection test according to the simulation scenario video stream to trigger fault diagnosis online using the input image, and record it in the real-time fault diagnosis log, and record the injected video to obtain a recorded data packet.

[0161] In one embodiment, when the processor executes the computer program to implement the step of extracting key indicators of image fault definition according to the set fault diagnosis list, the processor specifically implements the following steps:

[0162] According to the fault diagnosis list, image faults are divided into different types and degrees, and the key indicators of each image fault are extracted. Among them, image faults are divided into four types: image occlusion, image blur, image glare, and image freeze. Image occlusion, image blur, and image glare are divided into three dimensions: mild, moderate, and severe, respectively.

[0163] In one embodiment, when the processor executes the computer program to implement the step of using simulation software to build different image failure scenarios to obtain simulation scenario video streams, the processor specifically implements the following steps:

[0164] Using the simulation software sensor simulation module and defining key indicators of the image fault to construct image fault scenarios of different types and degrees; using the simulation software and a custom Python script to construct an image freezing fault scenario;

[0165] The simulation scene video stream includes video streams corresponding to image failure scenarios of different types and degrees and image freezing failure scenarios.

[0166] In one embodiment, when the processor executes the computer program to implement the step of constructing an image freezing fault scenario using simulation software and a custom Python script, the processor specifically implements the following steps:

[0167] In the simulation software, the main vehicle selects a normal sensor configuration and runs a simulation case to simulate the acquisition of actual scene data; YAW and CameraInfo data are output during the execution of the simulation case; the output data is converted into a visual image format using a Python script; duplicate images and synchronized CameraInfo data are inserted into the converted image sequence; the serialized images and CameraInfo data are converted into video stream files and CSV files respectively, maintaining their frame correspondence; the image freezing duration and frame number are calculated, and the image freezing fault scenario is formed in combination with the video stream file and CSV file.

[0168] In one embodiment, when the processor executes the computer program to implement the steps of performing a simulation injection test according to the simulation scene video stream to trigger fault diagnosis online using the input image, and recording it in a real-time fault diagnosis log, and recording the injected video to obtain a recorded data packet, the processor specifically implements the following steps:

[0169] The simulation scene video stream and the CSV file are injected into the autonomous driving domain control board through the video injection system bench for online testing to obtain recorded data packets.

[0170] In one embodiment, when the processor executes the computer program to implement the step of performing a recharge test according to the recorded data packets and recording the recharge test in the real-time fault diagnosis log, the processor specifically implements the following steps:

[0171] Using recorded data packets, the test is performed in offline mode on the recharge test bench and recorded in real-time fault diagnosis log.

[0172] In one embodiment, the processor further implements the following steps when executing the computer program:

[0173] By generalizing the time and weather of the problematic image fault scenario, the generalized image fault scenario is injected multiple times for simulation injection test and re-injection test.

[0174] In one embodiment, after the processor executes the computer program to optimize the model involved in the simulation injection test and the re-injection test according to the problem, and re-executes the simulation injection test according to the simulation scene video stream to trigger fault diagnosis online using the input image, and records it in the real-time fault diagnosis log, and records the injected video to obtain a recorded data packet, the processor further implements the following steps:

[0175] When no problems occur in the simulation, a real vehicle road test is carried out.

[0176] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0177] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0178] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0179] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0180] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0181] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A test method for triggering image fault diagnosis and reporting using simulation, characterized in that: include: Extract key indicators of image fault definition according to the set fault diagnosis list; Use simulation software to build different image failure scenarios to obtain simulation scenario video streams; Performing a simulation injection test according to the simulation scene video stream to trigger fault diagnosis online using the input image, and recording it in a real-time fault diagnosis log, and recording the injected video to obtain a recorded data packet; Perform a refill test based on the recorded data packets and record them in the real-time fault diagnosis log; Check and analyze the real-time fault diagnosis log. If a problem is displayed in the real-time fault diagnosis log, locate the problem. According to the problem, the simulation injection test and the optimization of the model involved in the re-injection test are performed, and the simulation injection test based on the simulation scene video stream is re-executed to use the input image to trigger fault diagnosis online, and record it in the real-time fault diagnosis log, and record the injected video to obtain a recorded data packet.

2. The test method for triggering image fault diagnosis and reporting by simulation according to claim 1, characterized in that: The step of extracting key indicators of image fault definitions according to the set fault diagnosis list includes: According to the fault diagnosis list, image faults are divided into different types and degrees, and the key indicators of each image fault are extracted. Among them, image faults are divided into four types: image occlusion, image blur, image glare, and image freeze. Image occlusion, image blur, and image glare are divided into three dimensions: mild, moderate, and severe, respectively.

3. The test method for triggering image fault diagnosis and reporting by simulation according to claim 1, characterized in that: The simulation software is used to build different image failure scenarios to obtain simulation scenario video streams, including: Using the simulation software sensor simulation module and constructing image failure scenarios of different types and degrees according to the key indicators of the image failure definition; Use simulation software and custom Python scripts to construct image freezing failure scenarios; The simulation scene video stream includes video streams corresponding to image failure scenarios of different types and degrees and image freezing failure scenarios.

4. The test method for triggering image fault diagnosis and reporting by simulation according to claim 3 is characterized in that: The use of simulation software and a custom Python script to construct an image freezing fault scenario includes: In the simulation software, the main vehicle selects the normal sensor configuration and runs the simulation case to simulate the acquisition of actual scene data; Output YAW and CameraInfo data during simulation case execution; Use Python scripts to convert the output data into a visual image format; Insert duplicate images and synchronize CameraInfo data in the converted image sequence; Convert serialized images and CameraInfo data into video stream files and CSV files respectively, keeping their frame correspondence; The image freezing duration and the number of frames are calculated, and the image freezing fault scenario is formed by combining the video stream file and the CSV file.

5. The test method for triggering image fault diagnosis and reporting by simulation according to claim 1, characterized in that: The simulation injection test is performed according to the simulation scene video stream to trigger fault diagnosis online using the input image, and recorded in a real-time fault diagnosis log, and the injected video is recorded to obtain a recorded data packet, including: The simulation scene video stream and the CSV file are injected into the autonomous driving domain control board through the video injection system bench for online testing to obtain recorded data packets.

6. The test method for triggering image fault diagnosis and reporting by simulation according to claim 1, characterized in that: The refill test is performed based on the recorded data packets and recorded in the real-time fault diagnosis log, including: Using recorded data packets, the test is performed in offline mode on the recharge test bench and recorded in real-time fault diagnosis log.

7. The test method for triggering image fault diagnosis and reporting by simulation according to claim 1, characterized in that: Also includes: By generalizing the time and weather of the problematic image fault scenario, the generalized image fault scenario is injected multiple times for simulation injection test and re-injection test.

8. The test method for triggering image fault diagnosis and reporting by simulation according to claim 1, characterized in that: The simulation injection test and the optimization of the model involved in the re-injection test according to the problem are performed, and the simulation injection test according to the simulation scene video stream is re-executed to trigger fault diagnosis online using the input image, and recorded in the real-time fault diagnosis log, and the injected video is recorded to obtain a recorded data packet, and then: When no problems occur in the simulation, a real vehicle road test is carried out.

9. A test device for triggering image fault diagnosis and reporting using simulation, characterized in that: include: An indicator extraction unit, used for extracting key indicators of image fault definition according to a set fault diagnosis list; A video stream determination unit, used to build different image failure scenarios using simulation software to obtain a simulation scenario video stream; A simulation injection test unit, used for performing a simulation injection test according to the simulation scene video stream, so as to trigger fault diagnosis online using the input image, and record it in a real-time fault diagnosis log, and record the injected video to obtain a recorded data packet; A refill test unit, used to perform refill tests based on recorded data packets and record them in a real-time fault diagnosis log; A viewing unit, used to view and analyze the real-time fault diagnosis log, and locate the problem when a problem is displayed in the real-time fault diagnosis log; An optimization unit is used to optimize the models involved in the simulation injection test and the re-injection test according to the problem, and re-execute the simulation injection test according to the simulation scene video stream to trigger fault diagnosis online using the input image, and record it in the real-time fault diagnosis log, and record the injected video to obtain a recorded data packet.

10. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the method according to any one of claims 1 to 8 when executing the computer program.

Citation Information

Cited By

  • Automatic system and detection method for automobile lamp flaw detection

    CN118914237A

  • Video recharge test method and system

    CN119052391A