Instrument testing method, device and equipment based on data playback video comparison and storage medium
By using the method of data playback video comparison in automotive instrument testing, the problem of inefficient testing in the existing technology is solved, and the consistency test report is quickly generated and the testing efficiency is improved.
Patent Information
- Application Number
- CN202411750892.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-03-11
AI Technical Summary
In the prior art, the testing efficiency of automotive instrument functions is inefficient, and the development time of automation use cases is long, resulting in low testing efficiency.
The instrument testing method based on data playback video comparison is adopted. By obtaining the simulated data and videos in the old instrument software, recording the simulation process in the new instrument software and recording the video, then comparing the video, and generating a consistency test report.
Generating consistency test reports through video comparison significantly improves the efficiency of automotive instrument function testing and reduces test time.
Smart Images

Figure CN119597671A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automobile instrument testing, and in particular to an instrument testing method, device, equipment and storage medium based on data playback video comparison. Background Art
[0002] After the start of production (SOP) of the vehicle project software, the software status tends to be stable. As an indispensable functional component of the vehicle, the instrument has been frozen in function. However, in order to meet the needs of better functional experience, the entire cockpit software will have continuous over-the-air technology (OTA) iteration and optimization requirements. As a module in the cockpit software delivery, the instrument needs to be tested and covered even if there is no change to ensure the quality of the entire software delivery. Before SOP, the project software mainly meets the needs of function increase and stability improvement. The release cycle is under the agile development framework, and it is quickly iterated in weeks. The instrument test method is to develop automated test cases based on requirements, but the requirements change quickly, the differences between software are large, the cost of automated maintenance is high, and manual testing is mostly used. After SOP, the project software mainly solves market problems and a small number of demand changes. To ensure the stability of the market, it is necessary to push OTA to the market on a monthly basis. Since both the requirements and the software status tend to be stable, use cases and tests are usually developed in an automated way or tested manually. However, the development time of automated use cases in this method is long, resulting in low efficiency of automotive instrument function testing. Therefore, how to improve the efficiency of automotive instrument function testing is a problem that still needs to be solved.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of this application is to provide an instrument testing method, device, equipment and storage medium based on data playback video comparison, aiming to solve the technical problem of how to improve the efficiency of automobile instrument function testing.
[0005] To achieve the above purpose, the present application proposes an instrument testing method based on data playback video comparison, the method comprising: After the vehicle project software starts production, simulation data and a first simulation video are obtained, wherein the simulation data is recorded in the simulation instrument function of the old version instrument software, and the first simulation video is recorded in the process of the simulation instrument function of the old version instrument software; Simulate the instrument function in the new version of the instrument software according to the simulation data, and record the simulation process into a second simulation video; Perform a video comparison between the first analog video and the second analog video to generate a consistency test report.
[0006] In one embodiment, the step of obtaining the simulation data and the first simulation video, wherein the simulation data is recorded in the simulation instrument function of the old version of the instrument software, and the first simulation video is recorded in the process of the simulation instrument function of the old version of the instrument software, comprises: According to the instrument's functional module use case, use the test equipment in the old version of the instrument software to simulate the triggering of the instrument function; Get simulation data during instrument function simulation; A first simulation video is obtained by recording a simulation process of an instrument function.
[0007] In one embodiment, the step of using a test device to simulate triggering an instrument function in an old version of the instrument software according to a use case of a functional module of the instrument includes: According to the function module use case of the instrument, using the test equipment to generate the signal of the function module use case; This signal is used to simulate the triggering of instrument functions in older instrument software.
[0008] In one embodiment, the step of simulating the instrument function in the new version of the instrument software according to the simulation data includes: Inject the simulation data into the new version of the instrument software using the test equipment; Based on the simulation data, the instrument functions are simulated in the new version of the instrument software in the same format and sequence as when the old version of the software was tested.
[0009] In one embodiment, the step of performing video comparison between the first analog video and the second analog video to generate a consistency test report includes: Analyze and compare the first analog video and the second analog video to obtain differences between the first analog video and the second analog video; A consistency test report is generated according to the differences.
[0010] In one embodiment, the step of analyzing and comparing the first analog video and the second analog video to obtain the difference between the first analog video and the second analog video includes: Extracting the first analog video and the second analog video frame by frame to obtain a first static image and a second static image; Key features of the first static image and the second static image are extracted and compared respectively to obtain differences between the first analog video and the second analog video.
[0011] In one embodiment, before performing a video comparison between the first analog video and the second analog video and generating a consistency test report, the method further includes: Noise reduction and color correction are performed on the first analog video and the second analog video to obtain clear and accurate first analog video and second analog video.
[0012] In addition, to achieve the above-mentioned purpose, the present application also proposes an instrument testing device based on data playback video comparison, and the instrument testing device based on data playback video comparison includes: A first simulation module is used to obtain simulation data and a first simulation video after the vehicle project software starts production, wherein the simulation data is recorded in the simulation instrument function of the old version instrument software, and the first simulation video is recorded in the process of the simulation instrument function of the old version instrument software; A second simulation module is used to simulate the instrument function in the new version of the instrument software according to the simulation data, and record the simulation process into a second simulation video; The video comparison module is used to compare the first analog video with the second analog video and generate a consistency test report.
[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes an instrument testing device based on data playback video comparison, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the instrument testing method based on data playback video comparison as described above.
[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the instrument testing method based on data playback video comparison as described above are implemented.
[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the instrument testing method based on data playback video comparison as described above.
[0016] The present application provides an instrument testing method based on data playback video comparison. After the production of the whole vehicle project software starts, simulation data and a first simulation video are obtained. The simulation data is recorded in the simulation instrument function of the old version of the instrument software. The first simulation video is recorded in the process of simulating the instrument function of the old version of the instrument software. The instrument function is simulated in the new version of the instrument software according to the simulation data, and the simulation process is recorded into a second simulation video; the first simulation video and the second simulation video are compared to generate a consistency test report.
[0017] In summary, the present application improves the efficiency of automobile instrument function testing by comparing videos of automobile instrument software testing to generate consistency test reports. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 A flow chart of the first embodiment of the instrument testing method based on data playback video comparison provided in the present application; Figure 2 A flow chart of the second embodiment of the instrument testing method based on data playback video comparison provided in this application; Figure 3 A schematic diagram of a simplified flow chart of an instrument testing method based on data playback video comparison provided in Example 1 of the present application; Figure 4 This is a schematic diagram of the module structure of an instrument testing device based on data playback video comparison according to an embodiment of the present application; Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the instrument testing method based on data playback video comparison in the embodiment of the present application.
[0021] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0022] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0023] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0024] The main solution of this application is to obtain simulation data and a first simulation video after the production of the whole vehicle project software starts. The simulation data is recorded in the simulation instrument function of the old version of the instrument software. The first simulation video is recorded in the process of simulating the instrument function of the old version of the instrument software to obtain the simulation function in the new version of the instrument software based on the simulation data, and the simulation process is recorded into a second simulation video; the first simulation video and the second simulation video are compared to generate a consistency test report.
[0025] At present, the mainstream is to use automated or manual methods for testing, but the development time of automated use cases in this method is long, resulting in low efficiency of automotive instrument function testing. Therefore, how to improve the efficiency of automotive instrument function testing is a problem that still needs to be solved.
[0026] This application generates a consistency test report by comparing videos of automobile instrument software tests, thereby improving the efficiency of automobile instrument function testing.
[0027] Based on this, the embodiment of the present application provides an instrument testing method based on data playback video comparison, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the instrument testing method based on data playback video comparison of the present application.
[0028] In this embodiment, the instrument testing method based on data playback video comparison includes steps S10 to S30: Step S10: after the vehicle project software starts production, obtaining simulation data and a first simulation video, wherein the simulation data is recorded in the simulation instrument function of the old version instrument software, and the first simulation video is recorded in the process of the simulation instrument function of the old version instrument software; It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, an instrument test device based on data playback video comparison, etc. The following takes the instrument test device based on data playback video comparison as an example to illustrate this embodiment and the following embodiments.
[0029] It should be noted that after the vehicle project software SOP, the software status tends to be stable. As an indispensable functional component of the vehicle, the instrument has its functions frozen. However, in order to meet a better functional experience, the entire cockpit software will have continuous OTA iteration and optimization needs. As a module in the cockpit software delivery, the instrument needs to be tested and covered even if no changes have occurred to ensure the quality of the entire software delivery. The test is to see if the instrument function is affected after the OTA iteration. Therefore, the main test content is to detect whether the instrument function has changed compared to before the OTA iteration. The instrument test can be completed quickly by comparing the data playback video.
[0030] It is understandable that before testing, a test environment with video and analog signals needs to be built on the local side of the instrument.
[0031] In a feasible manner, the steps of obtaining the simulation data and the first simulation video, wherein the simulation data is recorded in the simulation instrument function of the old version of the instrument software, and the first simulation video is recorded in the process of the simulation instrument function of the old version of the instrument software, include: According to the instrument's functional module use case, use the test equipment in the old version of the instrument software to simulate the triggering of the instrument function; Get simulation data during instrument function simulation; A first simulation video is obtained by recording a simulation process of an instrument function.
[0032] It should be noted that the functional modules of the instrument usually include indicator light information, pop-up window and alarm information, gauge information, driving information, infotainment interaction information, charging and discharging information, constant display information, and Advanced Driver Assistance Systems (ADAS) information. During testing, use cases can be designed according to the functions of the instrument. Use cases for some functions can be designed for testing at one time, or use cases for all functions can be designed for batch testing. Simulation data is the data input into the old version of the instrument software during simulation.
[0033] In a feasible manner, the step of using a test device to simulate triggering an instrument function in an old version of the instrument software according to a use case of the instrument's functional module includes: According to the function module use case of the instrument, using the test equipment to generate the signal of the function module use case; This signal is used to simulate the triggering of instrument functions in older instrument software.
[0034] It is understandable that after designing the function module use case of the instrument, it is necessary to use the test equipment to generate the signal of the function module use case and simulate the triggering of the instrument function in the old version of the instrument software through the signal.
[0035] Step S20: simulating the instrument function in the new version of the instrument software according to the simulation data, and recording the simulation process into a second simulation video; It is understandable that after having the simulation data, you can perform simulation tests on the new version of the instrument software and record the simulation process into a second simulation video. Since the simulation data is obtained by testing on the old version of the software, if the instrument functions normally, the instrument display in the second simulation video should be consistent with that in the first simulation video.
[0036] In a feasible manner, the step of simulating the instrument function in the new version of the instrument software according to the simulation data includes: Inject the simulation data into the new version of the instrument software using the test equipment; Based on the simulation data, the instrument functions are simulated in the new version of the instrument software in the same format and sequence as when the old version of the software was tested.
[0037] It is understandable that in order to ensure data consistency, the instrument functions need to be simulated in the same format and sequence as when the old version of the software was tested.
[0038] Step S30: performing a video comparison between the first analog video and the second analog video to generate a consistency test report.
[0039] It is understandable that the first simulation video is compared with the second simulation video to determine whether the display content of the instrument in the old version of the instrument software is the same as the display content of the instrument in the new version of the instrument software. A consistency test report can be generated based on the comparison result.
[0040] In a feasible manner, before performing a video comparison between the first analog video and the second analog video and generating a consistency test report, the method further includes: Noise reduction and color correction are performed on the first analog video and the second analog video to obtain clear and accurate first analog video and second analog video.
[0041] It is understandable that in order to ensure the correctness of the video comparison, the first analog video and the second analog video need to be subjected to noise reduction and color correction to reduce errors.
[0042] In this embodiment, after the production of the whole vehicle project software starts, simulation data and a first simulation video are obtained, the simulation data are recorded in the simulation instrument function of the old version of the instrument software, the first simulation video is recorded in the process of simulating the instrument function of the old version of the instrument software, the instrument function is simulated in the new version of the instrument software according to the simulation data, and the simulation process is recorded into a second simulation video; the first simulation video and the second simulation video are compared to generate a consistency test report.
[0043] In summary, this embodiment generates a consistency test report by comparing videos of automobile instrument software tests, thereby improving the efficiency of automobile instrument function testing.
[0044] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , step S30 also includes steps S301~S302: Step S301: parsing and comparing the first analog video and the second analog video to obtain differences between the first analog video and the second analog video; It is understandable that after obtaining the first analog video and the second analog video, it is necessary to parse the analog video, obtain the video content and compare them, and obtain the difference between the first analog video and the second analog video.
[0045] In a feasible manner, the step of parsing and comparing the first analog video and the second analog video to obtain the difference between the first analog video and the second analog video includes: Extracting the first analog video and the second analog video frame by frame to obtain a first static image and a second static image; Key features of the first static image and the second static image are extracted and compared respectively to obtain differences between the first analog video and the second analog video.
[0046] It is understandable that in order to obtain the differences between the first analog video and the second analog video, the first analog video and the second analog video can be extracted frame by frame respectively, and the first analog video and the second analog video can be converted into a first static image and a second static image respectively, and then the key features of the first static image and the second static image can be extracted and compared to obtain the differences between the first analog video and the second analog video.
[0047] Step S302: Generate a consistency test report according to the difference points.
[0048] It is understandable that a consistency test report can be generated based on the difference points, and in the consistency report, the difference between the first simulation video and the second simulation video can be pointed out. According to the consistency test report, it can be concluded whether the instrument functions normally after the project software is updated.
[0049] In this embodiment, the first analog video and the second analog video are analyzed and compared to obtain differences between the first analog video and the second analog video; and a consistency test report is generated according to the differences.
[0050] In summary, this embodiment generates a consistency test report by video comparison, which can quickly test whether the instrument function is normal, thereby improving the efficiency of automobile instrument function testing.
[0051] For example, in order to help understand the implementation process of the instrument testing method based on data playback video comparison obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 3 , Figure 3 A brief flow chart of an instrument test method based on data playback video comparison is provided, specifically: the consistency confirmation of two versions of software is completed by video comparison, by simulating the required signals displayed by each module of the instrument on the basic software, recording the display video of the instrument and the simulated data at the same time, and then replaying the data injected by the corresponding module on the new software, recording the video display of the new software, and confirming the consistency by comparing the display status of the two videos. The detailed steps are firstly to inject data into the instrument software A by the test equipment, wherein the injected data is to trigger the function of the instrument, and the display content of the instrument is recorded to obtain video A; then extract the data injected into the instrument software A, and replay the data in the instrument software B by the test equipment, trigger the instrument function, and record the display content of the instrument to obtain video B; finally, compare video A and video B to generate a consistency report.
[0052] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the instrument testing method based on data playback video comparison of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0053] This application also provides an instrument testing device based on data playback video comparison, please refer to Figure 4 , the instrument testing device based on data playback video comparison includes: The first simulation module 10 is used to obtain simulation data and a first simulation video after the vehicle project software starts production, wherein the simulation data is recorded in the simulation instrument function of the old version instrument software, and the first simulation video is recorded in the process of the simulation instrument function of the old version instrument software; The second simulation module 20 is used to simulate the instrument function in the new version of the instrument software according to the simulation data, and record the simulation process into a second simulation video; The video comparison module 30 is used to compare the first analog video with the second analog video to generate a consistency test report.
[0054] In this embodiment, after the production of the whole vehicle project software starts, simulation data and a first simulation video are obtained, the simulation data are recorded in the simulation instrument function of the old version of the instrument software, the first simulation video is recorded in the process of simulating the instrument function of the old version of the instrument software, the instrument function is simulated in the new version of the instrument software according to the simulation data, and the simulation process is recorded into a second simulation video; the first simulation video and the second simulation video are compared to generate a consistency test report.
[0055] In summary, this embodiment generates a consistency test report by comparing the video of the automobile instrument software test, thereby improving the efficiency of the automobile instrument function test.
[0056] In one embodiment, the first simulation module 10 is also used to simulate triggering the instrument function using a test device in an old version of the instrument software according to the instrument's functional module use case; obtain simulation data during the instrument function simulation process; and obtain a first simulation video, wherein the first simulation video is obtained by recording the instrument function simulation process.
[0057] In one embodiment, the first simulation module 10 is further used to generate a signal of the functional module use case using a test device according to the functional module use case of the instrument; and to simulate triggering the instrument function in the old version of the instrument software through the signal.
[0058] In one embodiment, the second simulation module 20 is further used to inject the simulation data into the new version of the instrument software using a test device; based on the simulation data, the instrument function is simulated in the new version of the instrument software in the same format and sequence as when the old version of the software was tested.
[0059] In one embodiment, the video comparison module 30 is further used to analyze and compare the first analog video and the second analog video to obtain the difference between the first analog video and the second analog video; and generate a consistency test report according to the difference.
[0060] In one embodiment, the video comparison module 30 is also used to extract the first analog video and the second analog video frame by frame to obtain a first static image and a second static image; extract key features of the first static image and the second static image respectively and compare them to obtain the difference points between the first analog video and the second analog video.
[0061] In one embodiment, the video comparison module 30 is further used to perform noise reduction and color correction on the first analog video and the second analog video to obtain clear and accurate first analog video and second analog video.
[0062] The instrument test device based on data playback video comparison provided by the present application adopts the instrument test method based on data playback video comparison in the above embodiment, which can solve the technical problem of how to improve the efficiency of automobile instrument function testing. Compared with the prior art, the beneficial effects of the instrument test device based on data playback video comparison provided by the present application are the same as the beneficial effects of the instrument test method based on data playback video comparison provided by the above embodiment, and the other technical features of the instrument test device based on data playback video comparison are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0063] The present application provides an instrument testing device based on data playback video comparison, and the instrument testing device based on data playback video comparison includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the instrument testing method based on data playback video comparison in the above-mentioned embodiment one.
[0064] Reference below Figure 5 , which shows a schematic diagram of the structure of an instrument test device based on data playback video comparison suitable for implementing the embodiment of the present application. The instrument test device based on data playback video comparison in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The instrument testing equipment based on data playback and video comparison shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0065] like Figure 5As shown, the instrument test equipment based on data playback video comparison may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the instrument test equipment based on data playback video comparison are also stored in RAM1004. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the instrument test equipment based on data playback video comparison to communicate wirelessly or wired with other equipment to exchange data. Although the figure shows an instrument test equipment based on data playback video comparison with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0066] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0067] The instrument test device based on data playback video comparison provided by the present application adopts the instrument test method based on data playback video comparison in the above embodiment, which can solve the technical problem of how to improve the efficiency of automobile instrument function testing. Compared with the prior art, the beneficial effects of the instrument test device based on data playback video comparison provided by the present application are the same as the beneficial effects of the instrument test method based on data playback video comparison provided by the above embodiment, and the other technical features of the instrument test device based on data playback video comparison are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0068] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0069] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0070] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the instrument testing method based on data playback video comparison in the above-mentioned embodiment.
[0071] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0072] The computer-readable storage medium may be included in the instrument test device based on data playback and video comparison; or may exist independently without being assembled into the instrument test device based on data playback and video comparison.
[0073] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the instrument testing equipment based on data playback video comparison, the instrument testing equipment based on data playback video comparison: after the production of the whole vehicle project software starts, obtains simulation data and a first simulation video, the simulation data is recorded in the simulation instrument function of the old version of the instrument software, the first simulation video is recorded in the process of simulating the instrument function of the old version of the instrument software, and the instrument function is simulated in the new version of the instrument software according to the simulation data, and the simulation process is recorded into a second simulation video; the first simulation video is compared with the second simulation video to generate a consistency test report.
[0074] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0075] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0076] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0077] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned instrument test method based on data playback video comparison, and can solve the technical problem of how to improve the efficiency of automobile instrument function testing. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the instrument test method based on data playback video comparison provided in the above-mentioned embodiment, and will not be repeated here.
[0078] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned instrument testing method based on data playback video comparison.
[0079] The computer program product provided by the present application can solve the technical problem of how to improve the efficiency of automobile instrument function testing. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the instrument testing method based on data playback video comparison provided by the above embodiment, which will not be repeated here.
[0080] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An instrument testing method based on data playback video comparison, characterized in that: The method includes: After the vehicle project software starts production, simulation data and a first simulation video are obtained, wherein the simulation data is recorded in the simulation instrument function of the old version instrument software, and the first simulation video is recorded in the process of the simulation instrument function of the old version instrument software; Simulate the instrument function in the new version of the instrument software according to the simulation data, and record the simulation process into a second simulation video; Perform a video comparison between the first analog video and the second analog video to generate a consistency test report.
2. The method according to claim 1, characterized in that The steps of obtaining the simulation data and the first simulation video, wherein the simulation data is recorded in the simulation instrument function of the old version of the instrument software, and the first simulation video is recorded in the process of the simulation instrument function of the old version of the instrument software, include: According to the instrument's functional module use case, use the test equipment in the old version of the instrument software to simulate the triggering of the instrument function; Get simulation data during instrument function simulation; A first simulation video is obtained by recording a simulation process of an instrument function.
3. The method according to claim 2, characterized in that According to the instrument function module use case, the steps of using the test equipment to simulate triggering the instrument function in the old version of the instrument software include: According to the function module use case of the instrument, using the test equipment to generate the signal of the function module use case; This signal is used to simulate the triggering of instrument functions in older instrument software.
4. The method according to claim 1, characterized in that The step of simulating the instrument function in the new version of the instrument software according to the simulation data comprises: Inject the simulation data into the new version of the instrument software using the test equipment; Based on the simulation data, the instrument functions are simulated in the new version of the instrument software in the same format and sequence as when the old version of the software was tested.
5. The method according to claim 1, characterized in that The step of performing video comparison between the first analog video and the second analog video to generate a consistency test report includes: Analyze and compare the first analog video and the second analog video to obtain differences between the first analog video and the second analog video; A consistency test report is generated according to the differences.
6. The method according to claim 5, characterized in that The step of analyzing and comparing the first analog video and the second analog video to obtain the difference between the first analog video and the second analog video includes: Extracting the first analog video and the second analog video frame by frame to obtain a first static image and a second static image; Key features of the first static image and the second static image are extracted and compared respectively to obtain differences between the first analog video and the second analog video.
7. The method according to claim 1, characterized in that Before the first analog video is compared with the second analog video to generate a consistency test report, the method further includes: Noise reduction and color correction are performed on the first analog video and the second analog video to obtain clear and accurate first analog video and second analog video.
8. An instrument testing device based on data playback video comparison, characterized in that: The device comprises: A first simulation module is used to obtain simulation data and a first simulation video after the vehicle project software starts production, wherein the simulation data is recorded in the simulation instrument function of the old version instrument software, and the first simulation video is recorded in the process of the simulation instrument function of the old version instrument software; A second simulation module is used to simulate the instrument function in the new version of the instrument software according to the simulation data, and record the simulation process into a second simulation video; The video comparison module is used to compare the first analog video with the second analog video and generate a consistency test report.
9. An instrument testing device based on data playback video comparison, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the instrument testing method based on data playback and video comparison as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the instrument testing method based on data playback and video comparison as described in any one of claims 1 to 7 is implemented.