CN116708758A - Video signal testing method, device and equipment of domain controller and storage medium - Google Patents
Video signal testing method, device and equipment of domain controller and storage medium Download PDFInfo
- Publication number
- CN116708758A CN116708758A CN202310745938.5A CN202310745938A CN116708758A CN 116708758 A CN116708758 A CN 116708758A CN 202310745938 A CN202310745938 A CN 202310745938A CN 116708758 A CN116708758 A CN 116708758A
- Authority
- CN
- China
- Prior art keywords
- video
- video signal
- output
- input
- result data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 155
- 238000004458 analytical method Methods 0.000 claims abstract description 79
- 238000000034 method Methods 0.000 claims abstract description 22
- 230000006870 function Effects 0.000 claims description 31
- 238000006243 chemical reaction Methods 0.000 claims description 21
- 230000002159 abnormal effect Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 10
- 238000010191 image analysis Methods 0.000 claims description 8
- 230000006978 adaptation Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 11
- 230000009191 jumping Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 238000004519 manufacturing process Methods 0.000 description 7
- 230000007246 mechanism Effects 0.000 description 6
- 238000012905 input function Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 238000011179 visual inspection Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The application provides a video signal testing method, a device, equipment and a storage medium of a domain controller, wherein a first video signal acquired by a camera shooting assembly in a preset testing mode is acquired through a video input end; the method comprises the steps of determining first analysis result data of a first video signal under various input test modes of a video input end and second analysis result data of a second video signal under various output test modes of a video output end, wherein the second video signal is a video signal received after the first video signal is transmitted back to the video input end through the video output end, and determining the functional state of a video signal input and output function of a domain controller based on the first analysis result data and the second analysis result data.
Description
Technical Field
The present application relates to the field of vehicle communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for testing a video signal of a domain controller.
Background
The video signal input and output functions of the intelligent driving area controller have a critical role in ensuring safe driving and smooth running, for example, when dangerous situations or emergency events occur, the automatic driving system can provide warning information to passengers through the video output signals so as to ensure the safety of the passengers. Therefore, the video signal input/output function of the test field controller is very important.
At present, a test scheme of a video signal input/output function of an intelligent driving domain controller needs to simulate a real vehicle environment, a camera is required to shoot a specific real object scene, and the required equipment is large in space and high in cost; and the cabin domain controller and the display screen which are matched with the intelligent driving domain controller in real vehicle are required to be used as test accessories, and if the input and output functions of the video signals are abnormal in the production test process, the problems existing in the intelligent driving domain controller product or the problems caused by the cabin domain controller and the display screen accessories cannot be directly positioned, so that the production test efficiency is affected.
Disclosure of Invention
The application provides a video signal testing method, a device, equipment and a storage medium of a domain controller for solving the technical problems.
In a first aspect, the present application provides a method for testing video signals of a domain controller, the domain controller including a video input terminal and a video output terminal, the method being applied to a computer device, the computer device being communicatively connected to the domain controller, the method comprising:
acquiring a first video signal, wherein the first video signal is a video signal which is acquired by a camera shooting assembly in a preset test mode and received by a video input end;
determining first analysis result data of a first video signal under various input test modes of a video input end and second analysis result data of a second video signal under various output test modes of a video output end, wherein the second video signal is a video signal which returns the first video signal to the video input end through the video output end;
based on the first analysis result data and the second analysis result data, a functional state of a video signal input output function of the domain controller is determined.
In some implementations of the first aspect, determining first analysis result data of the first video signal under a plurality of input test modes of the video input and second analysis result data of the second video signal under a plurality of output test modes of the video output includes:
Traversing a plurality of video input modes of a video input end, and determining first analysis result data of a first video signal in the plurality of video input modes;
controlling a video output end, and transmitting the first video signal back to a video input end, wherein the video input end receives a second video signal;
traversing multiple video output modes of the video output end, and determining second identification result data of the second video signal in the multiple video output modes.
In some implementations of the first aspect, controlling the video output to transmit the first video signal back to the video input, the video input receiving the second video signal, includes:
controlling a video output end to output a first video signal to a video input end;
controlling a video input end to perform deserialization on a first video signal to obtain a deserialized signal;
if the deserializing signal is matched with the first video signal output by the video output end, the first video signal is transmitted back to the video input end, and the video input end receives the second video signal.
In some implementations of the first aspect, controlling the video input terminal to deserialize the first video signal, and after obtaining the deserialized signal, further includes:
If the deserializing signal is not matched with the first video signal output by the video output end, carrying out protocol conversion on the first video signal by utilizing a preset signal adaptation strategy to obtain a protocol-converted first video signal;
and returning the first video signal after protocol conversion to a video input end, and receiving the second video signal by the video input end.
In some implementations of the first aspect, traversing a plurality of video input modes of the video input, determining first analysis result data for the first video signal in the plurality of video input modes includes:
for each video input mode of the video input end, calling a preset test tool to verify whether a first video signal in the video input mode successfully plays the video stream;
if the video stream is successfully played based on the first video signal, intercepting an input video stream image of the first video signal;
and carrying out image analysis on the input video stream image to obtain first analysis result data of the first video signal.
In some implementations of the first aspect, traversing a plurality of video output modes of the video output, determining second recognition result data for the second video signal in the plurality of video output modes includes:
For each video output mode of the video output end, calling a preset test tool to verify whether a second video signal in the video output mode successfully plays the video stream;
if the video stream is successfully played based on the second video signal, capturing an output video stream image of the second video signal;
and carrying out image analysis on the output video stream image to obtain second analysis result data of the second video signal.
In some implementations of the first aspect, determining a functional status of a video signal input output function of the domain controller based on the first analysis result data and the second analysis result data includes:
if the first analysis result data is the same as the preset video input image data and the second analysis result data is the same as the preset video output image data, determining that the video signal input and output function of the domain controller is in a normal working state;
if the first analysis result data is different from the preset video input image data or the second analysis result data is different from the preset video output image data, determining that the video signal input and output functions of the domain controller are in an abnormal state.
In a second aspect, the present application also provides a video signal testing apparatus of a domain controller, the domain controller including a video input terminal and a video output terminal, the testing apparatus comprising:
The acquisition module is used for acquiring a first video signal, wherein the first video signal is a video signal which is acquired by the camera shooting assembly in a preset test mode and is received by the video input end;
the first determining module is used for determining first analysis result data of the first video signal under various input test modes of the video input end and second analysis result data of the second video signal under various output test modes of the video output end, wherein the second video signal is a video signal which returns the first video signal to the video input end through the video output end;
and a second determination module for determining a functional state of the video signal input output function of the domain controller based on the first analysis result data and the second analysis result data.
In a third aspect, the present application also provides a computer device comprising a processor and a memory for storing a computer program which when executed by the processor implements a video signal testing method as in the domain controller of the first aspect.
In a fourth aspect, the present application also provides a computer readable storage medium storing a computer program which when executed by a processor implements a video signal testing method of a domain controller as in the first aspect.
Compared with the prior art, the application has at least the following beneficial effects:
according to the application, the first video signal is acquired by the camera shooting assembly in the preset test mode and is received by the video input end, so that the video test mode can be switched according to different scene test requirements, and the problem that the long focus and the short focus of the camera lens are limited by scene space is not required to be considered; and determining the functional state of the video signal input and output function of the domain controller based on the first analysis result data and the second analysis result data, so that the testing accessory such as a display screen is not needed in a video signal loop testing mode, the testing cost is reduced, the abnormal problem caused by the testing accessory is effectively avoided, the abnormal functional range can be quickly locked, and the testing efficiency is improved.
Drawings
Fig. 1 is a flow chart of a video signal testing method of a domain controller according to the present application;
FIG. 2 is a schematic diagram of a system architecture of a conventional test scheme shown in the present application;
FIG. 3 is a schematic diagram of a video signal testing system of a domain controller according to the present application;
FIG. 4 is a schematic diagram of a video signal testing flow of a domain controller according to the present application;
fig. 5 is a schematic structural diagram of a video signal testing apparatus of a domain controller according to the present application;
fig. 6 is a schematic structural diagram of a computer device according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As described in the related art, the related art has problems of high test cost and low test efficiency. For example, fig. 2 shows a schematic diagram of a conventional test scheme, where a camera collects a specific physical scene, and video input signals collected by the camera are divided into 2 cases: in case 1, the video input signal is directly input to the intelligent driving domain controller; in the 2 nd case, the video input signals are processed by the real vehicle cabin domain controller, synthesized and then input to the intelligent driving domain controller. After receiving video signal input, the intelligent driving domain controller is processed by the processor, and video output signals are output through an output interface, and the intelligent driving domain controller comprises: in the 1 st case, the video output signal is directly output to drive the display screen to display; in the 2 nd case, the video output signals are synthesized and output to drive the display screen to display after being processed by the real vehicle cabin domain controller. Finally, the display content of the display screen is checked by manual visual inspection, or the display content of the display screen is shot by an industrial camera vision system, so that the video signal input and output function test of the intelligent driving domain controller is realized.
However, the traditional test scheme requires a camera to shoot a specific real object scene, the required equipment space is large and the cost is high, one camera can usually shoot only one fixed scene, the test coverage is limited, moreover, the intelligent driving domain controller is provided with a ranging single camera and a binocular camera which are long-focus long-distance cameras, the intelligent driving domain controller is easily limited by the conditions of a production and manufacturing site, the actual distance scene cannot be simulated, the shot picture is unclear, and the test quality and the cost are affected. In addition, the traditional test scheme also needs to rely on cabin domain controllers and display screens matched with intelligent driving domain controllers in real vehicles as test accessories, the test accessories are used as products developed by new vehicles in the same period, and some test accessories need to be purchased from the same row or competitors, so that the problems of difficult acquisition, long period and high price exist; along with the trend of large-screen and multi-screen display of the vehicle-mounted display screen, the display screen is larger and larger in size and irregular in shape, and great challenges are brought to the structure and space design of the test system; in the production test process, if the video signal input and output functions are abnormal, the problem of the intelligent driving domain controller product itself or the problem caused by the cabin domain controller and the display screen accessories cannot be directly positioned, and the production efficiency is affected. In addition, if the traditional test scheme adopts a scheme of manually and visually checking the display screen, the risk of misjudgment or missed judgment of personnel cannot be avoided.
Therefore, the application provides a video signal testing method of a domain controller, which is characterized in that a first video signal is acquired, wherein the first video signal is a video signal which is acquired by a camera shooting assembly in a preset testing mode and is received by a video input end, the video testing mode can be switched according to different scene testing requirements, and the problem that the long focus and the short focus of a camera lens are limited by scene space is not required to be considered; and determining the functional state of the video signal input and output function of the domain controller based on the first analysis result data and the second analysis result data, so that the testing accessory such as a display screen is not needed in a video signal loop-back testing mode, the testing cost is reduced, the abnormal problem caused by the testing accessory is effectively avoided, the abnormal functional range can be quickly locked, and the testing efficiency is improved.
Referring to fig. 1, fig. 1 is a flow chart of a video signal testing method of a domain controller according to an embodiment of the application. The video signal testing method of the domain controller can be applied to computer equipment, wherein the computer equipment comprises but is not limited to vehicle-mounted terminals, smart phones, tablet computers, notebook computers, desktop computers, physical servers, cloud servers and other computer equipment, the computer equipment is in communication connection with the domain controller, the domain controller is a working unit in a domain mode, the domain controller comprises but is not limited to intelligent driving domain controllers, vehicle body domain controllers, power domain controllers, chassis domain controllers and other domain controllers, and the domain controller comprises a video input end and a video output end. As shown in fig. 1, the video signal testing method of the domain controller of the present embodiment includes steps S101 to S103, which are described in detail as follows:
Step S101, a first video signal is acquired, where the first video signal is a video signal acquired by the camera component in a preset test mode and received by the video input terminal.
In the step, the camera shooting assembly comprises a camera, wherein the camera comprises a real shooting working mode and a testing mode, the real shooting working mode is a working mode that the camera carries out real exposure, and a shot object image is captured through an image sensor and a video signal is output; the test mode is a working mode that a module chip in the camera directly generates a test image and outputs a video signal. The preset test mode in this embodiment is a working mode in which the internal module chip of the camera directly generates a preset image and outputs a video signal, where the preset image includes but is not limited to a color bar chart, a black-and-white gradation chart, and pure color charts such as red, green, and blue. It should be noted that, because the camera does not need to actually expose through the lens and capture the shot real object image from the image sensor in the preset test mode, the camera is not affected by the long and short focuses of the lens, and the intelligent driving controller can interactively control the preset test modes corresponding to different scene requirements, so that the test coverage rate is improved.
Step S102, determining first analysis result data of the first video signal under multiple input test modes of the video input end, and second analysis result data of the second video signal under multiple output test modes of the video output end, where the second video signal is a video signal received after the first video signal is transmitted back to the video input end through the video output end.
In the step, video signal analysis is performed in each input test mode so as to test the input function of the video input end in each input test mode; and returning the video signal from the video output end to the video input end in a loop-back test mode, and analyzing the video signal under each output test mode so as to test the output function of the video output end under each output test mode, thereby enabling the video signal not to pass through test accessories such as a cabin domain controller, a display screen and the like, and effectively avoiding the abnormal problem caused by the test accessories.
Step S103, based on the first analysis result data and the second analysis result data, determining the functional state of the video signal input/output function of the domain controller.
In this step, the first analysis result data is an input function test result of the video input terminal, and the second analysis result data is an output function test result of the video output terminal. Optionally, if the first analysis result data is the same as the preset video input image data and the second analysis result data is the same as the preset video output image data, determining that the video signal input and output function of the domain controller is in a normal working state; if the first analysis result data is different from the preset video input image data, determining that the video signal input function controlled by the domain is in an abnormal state; and if the second analysis result data is different from the preset video output image data, determining that the video signal output function of the domain controller is in an abnormal state.
In some embodiments, based on the embodiment shown in fig. 1, the step S102 specifically includes:
traversing a plurality of video input modes of the video input end, and determining first analysis result data of the first video signal in the plurality of video input modes;
the video output end is controlled, the first video signal is transmitted back to the video input end, and the video input end receives and obtains a second video signal;
And traversing multiple video output modes of the video output end, and determining second identification result data of the second video signal in the multiple video output modes.
In this embodiment, the controlling the video output end, transmitting the first video signal back to the video input end, where the video input end receives a second video signal, includes: controlling the video output end to output the first video signal to the video input end; controlling the video input end, and deserializing the first video signal to obtain a deserialized signal; if the deserializing signal is matched with the first video signal output by the video output end, the first video signal is transmitted back to the video input end, and the video input end receives a second video signal; if the deserializing signal is not matched with the first video signal output by the video output end, carrying out protocol conversion on the first video signal by utilizing a preset signal adaptation strategy to obtain a protocol-converted first video signal; and the first video signal after protocol conversion is transmitted back to the video input end, and the video input end receives the second video signal.
Optionally, traversing multiple video input modes of the video input terminal, determining first analysis result data of the first video signal in multiple video input modes includes: for each video input mode of the video input end, calling a preset test tool to verify whether a first video signal in the video input mode successfully plays a video stream or not; if the video stream is successfully played based on the first video signal, intercepting an input video stream image of the first video signal; and carrying out image analysis on the input video stream image to obtain first analysis result data of the first video signal.
Optionally, traversing multiple video output modes of the video output terminal, determining second recognition result data of the second video signal in the multiple video output modes includes: for each video output mode of the video output end, calling a preset test tool to verify whether a second video signal in the video output mode successfully plays a video stream or not; if the video stream is successfully played based on the second video signal, capturing an output video stream image of the second video signal; and carrying out image analysis on the output video stream image to obtain second analysis result data of the second video signal.
By way of example and not limitation, fig. 3 shows a schematic diagram of a video signal testing system of a domain controller, the system comprising a video output 11, a video input 12, a processor 13, a gateway 14, cameras 30 to 3N, a programmable power module 50 and a host computer system 60 (i.e. a computer device). The video output terminal 11 is for providing a high-speed serial video signal output, which may have 2 or more video signal output interfaces; the video input terminal 12 is used for receiving and deserializing video input signals acquired by the vehicle-mounted camera assembly, and can have more than 10 paths of video signal input interfaces.
The processor 13 is used for controlling the video output terminal 11, the video input terminal 12, and the gateway 14 and performing input-output processing on the video signal. Illustratively, for input processing, the processor 13 receives N paths of first video signals input by the video input end 12, splices the N paths of first video signals into one path of N-grid video, encodes the spliced video into an h.264 real-time stream, and outputs the h.264 real-time stream to the upper computer system 60 through the ethernet gateway; for output processing, video signals are processed according to the number of interfaces of the video output end 11 (taking 2 paths as an example, the same applies below), the video signals are looped to 2 paths of input interfaces of the video input end through 2 paths of output interfaces of the video output end 11, the processor 13 splices the looped 2 paths of video signals into one path of 2 palace video, the spliced video is encoded into H.264 real-time stream, and the H.264 real-time stream is output to an upper computer system through an Ethernet gateway. The gateway 14 is used for realizing control instruction interaction and video signal transmission between the processor 13 and the upper computer.
Optionally, the vehicle-mounted cameras 30 to 3N are configured to output video signals in a preset test mode, and can automatically switch the test modes corresponding to different scene requirements according to a control instruction of the upper computer.
Optionally, for the loop-back procedure of the video signal, a video output/input adaptation module 20 is provided for processing the first video signal output by the video output 11 into a video signal for which the video input 12 is capable of adapting the deserialization protocol. It will be appreciated that this module is an option and need not be added when the serial signal output by video output 11 does not match the deserialized signal input by video input 12.
Optionally, the vehicle-mounted ethernet conversion module 40 is configured to transmit a video signal to the host computer system, convert a two-wire vehicle-mounted ethernet into a network cable with an RJ45 interface, and access the host computer system, and simultaneously implement protocol conversion between a vehicle-mounted ethernet and a standard ethernet; the vehicle-mounted ethernet conversion module 41 is used for transmitting a test control instruction between the intelligent driving domain controller and the upper computer system, converting the two-wire vehicle-mounted ethernet into a network cable with an RJ45 interface to be connected to the upper computer system, and simultaneously realizing protocol conversion of the vehicle-mounted ethernet and a standard ethernet; the programmable power module 50 is used for providing a direct current power supply for the intelligent driving domain controller; the test upper computer system 60 is used for performing time sequence control, communication instruction control, video stream signal acquisition and analysis processing on the test logic; the ethernet port 61 is used for supporting a VLAN marking function, presetting an IP address matched with a product to be tested, and realizing control instruction communication and data transmission between the intelligent driving controller product and an upper computer system; the display 70 is used to display a visual interface of the test procedure and results.
By way of example and not limitation, a video signal test flow diagram of a domain controller as shown in fig. 4, the test flow is described as follows:
step (1): initializing the system shown in fig. 3, including setting initial conditions of the programmable power supply 50, setting communication parameters of an ethernet port, setting ethernet rate of the on-vehicle ethernet conversion module 40, setting ethernet rate of the on-vehicle ethernet conversion module 41, and initializing input and output states of the test fixture, etc., where the system initialization is performed only in the first scan period;
step (2): the programmable power module 50 is used for powering up the product 10 to be tested, the upper computer system 60 is tested to start a communication engine, and handshake communication is established between the programmable power module and the product 10 to be tested through a link of the vehicle-mounted Ethernet conversion module 41;
step (3): the test upper computer system 60 sends a control instruction to enable the product 10 software to be tested to run a production test mode;
step (4): the test upper computer system 60 sends a control instruction of the video input mode 1, the control instruction is sent to the vehicle-mounted cameras 30 to 3N through the vehicle-mounted Ethernet conversion module 41, the processor 13 and the video input end 12, the N paths of vehicle-mounted cameras output first video signals corresponding to the preset test mode 1 according to the instruction content, the first video signals are input to the processor 13 through the video input end 12, the processor 13 splices the N paths of first video signals into 1 path of N grid frame videos, the spliced videos are encoded into H.264 video streams, and the H.264 video streams are transmitted to the test upper computer system 60 through the vehicle-mounted Ethernet conversion module 40;
Step (5): the test upper computer system 60 starts a video play mode to wait for the input of a video stream;
step (6): the test upper computer system 60 judges the video playing state, if the input playing of the video stream is successful, the step (7) is entered; if the input playing of the video stream is unsuccessful, entering a program timeout judging mechanism; if the result of the overtime judging mechanism is true, jumping to the step (18) to wait for whether to exit; if the overtime judging mechanism results are false, jumping to the step (6);
step (7): the test upper computer system 60 automatically intercepts one frame of input video stream picture in the video stream;
step (8): the test upper computer system 60 starts an image processing analysis algorithm, performs operation analysis on the intercepted video stream picture and known 1-path N-grid picture video picture information, and outputs an operation result; if the operation result is true, entering a step (9); if the operation result is false, jumping to the step (18) to wait for whether to exit;
step (9): the test upper computer system 60 sends a video input mode switching control instruction to enable the video input end to switch the input test mode;
step (10): the test upper computer system 60 traverses the input test pattern and determines whether the test is complete; if the judgment result is true, the step (11) is entered; if the judgment result is false, jumping to the step (5), and repeating the steps (5) to (10);
Step (11): the test upper computer system 60 sends a control instruction of the video output mode 1, the control instruction is transmitted to the processor 13 through the vehicle-mounted Ethernet conversion module 41, the processor 13 processes and outputs 2 paths of first video signals, the first video signals are output through the video output end 11, and after the first video signals are output, two scenes are divided:
scenario one: the serial signal output by the video output end 11 is matched with the deserialized signal of the video input end 12, and the first video signal output by the video output end 11 is directly looped back to the input interface of the video input end 12;
scenario two: the serial signal output by the video output end 11 is not matched with the deserialized signal of the video input end 12, the first video signal output by the video output end 11 is processed into a video stream signal which can be subjected to protocol adaptation deserialization by the video input end 12 through the video output and input adaptation module 20, and then the video stream signal is looped back to a 2-way input interface of the video input end, and the video input end 12 obtains a second video signal;
the processor 13 splices 2 paths of video data input by the video input end 12 in a loop into a path of 2 palace lattice picture video, the spliced video is encoded into H.264 real-time stream, and the H.264 real-time stream is transmitted to the upper test computer system 60 through the vehicle-mounted Ethernet conversion module 40;
step (12): the test upper computer system 60 starts a video play mode to wait for the input of a video stream;
Step (13): the upper computer system 60 is tested to judge the video playing state, if the video stream is successfully played, the step (14) is entered; if the video stream is not successfully played, entering a program timeout judging mechanism; if the result of the overtime judging mechanism is true, jumping to the step (18) to wait for whether to exit; if the overtime judging mechanism is false, jumping to the step (12);
step (14): the test upper computer system 60 automatically intercepts one frame of output video stream picture in the video stream;
step (15): the test upper computer system 60 starts an image processing analysis algorithm, performs feature extraction, operation analysis and operation result output on the intercepted video stream picture and the known 1-channel 2-grid picture video picture information (it is to be noted that the purpose of the algorithm is that the upper computer analyzes and judges whether the image which is output and input by the to-be-detected domain controller and is looped back by the loop circuit is consistent with the known preset video output image or not so as to test the video output and input functions; if the operation result is true, entering a step (16); if the operation result is false, jumping to the step (18) to wait for whether to exit;
Step (16): the test upper computer system 60 transmits a video output mode switching control instruction;
step (17): the test upper computer system 60 traverses the video output mode to judge whether all are finished; if the judgment result is true, the step (18) is carried out; if the judgment result is false, jumping to the step (12), and repeating the operations from the step (12) to the step (17);
step (18): the test is completed, and the upper computer system 60 outputs a result to wait for whether to exit the instruction; if the exit instruction is true, go to step (19); if the exit instruction is false, jumping to the step (2), and repeating the actions from the step (2) to the step (18);
step (19): and resetting the system state and ending the test.
In order to execute the video signal testing method of the domain controller corresponding to the method embodiment, corresponding functions and technical effects are realized. Referring to fig. 5, fig. 5 shows a block diagram of a video signal testing apparatus of a domain controller according to an embodiment of the present application. For convenience of explanation, only the parts related to this embodiment are shown, and the video signal testing apparatus of the domain controller provided in the embodiment of the present application includes:
The acquiring module 501 is configured to acquire a first video signal, where the first video signal is a video signal acquired by the camera component in a preset test mode and received by the video input terminal;
a first determining module 502, configured to determine first analysis result data of the first video signal in multiple input test modes of the video input end, and second analysis result data of a second video signal in multiple output test modes of the video output end, where the second video signal is a video signal received after the first video signal is returned to the video input end through the video output end;
a second determining module 503, configured to determine a functional status of a video signal input/output function of the domain controller based on the first analysis result data and the second analysis result data.
In some embodiments, the first determining module 502 includes:
the first traversing submodule is used for traversing multiple video input modes of the video input end and determining first analysis result data of the first video signal in the multiple video input modes;
the feedback sub-module is used for controlling the video output end to transmit the first video signal back to the video input end, and the video input end receives the second video signal;
And the second traversing sub-module traverses a plurality of video output modes of the video output end and determines second identification result data of the second video signal in the plurality of video output modes.
In some embodiments, the backhaul sub-module includes:
the output unit is used for controlling the video output end and outputting the first video signal to the video input end;
the deserializing unit is used for controlling the video input end to deserialize the first video signal to obtain a deserialized signal;
and the feedback unit is used for transmitting the first video signal back to the video input end if the deserializing signal is matched with the first video signal output by the video output end, and the video input end receives the second video signal.
In some embodiments, the backhaul sub-module further comprises:
the conversion unit is used for carrying out protocol conversion on the first video signal by utilizing a preset signal adaptation strategy if the deserializing signal is not matched with the first video signal output by the video output end, so as to obtain a first video signal after protocol conversion;
and the feedback unit is also used for transmitting the first video signal after protocol conversion back to the video input end, and the video input end receives the second video signal.
In some embodiments, the first traversal sub-module is specifically configured to:
for each video input mode of the video input end, calling a preset test tool to verify whether a first video signal in the video input mode successfully plays a video stream or not;
if the video stream is successfully played based on the first video signal, intercepting an input video stream image of the first video signal;
and carrying out image analysis on the input video stream image to obtain first analysis result data of the first video signal.
In some embodiments, the second traversal sub-module is specifically configured to:
for each video output mode of the video output end, calling a preset test tool to verify whether a second video signal in the video output mode successfully plays a video stream or not;
if the video stream is successfully played based on the second video signal, capturing an output video stream image of the second video signal;
and carrying out image analysis on the output video stream image to obtain second analysis result data of the second video signal.
In some embodiments, the second determining module 503 is specifically configured to:
if the first analysis result data is the same as the preset video input image data and the second analysis result data is the same as the preset video output image data, determining that the video signal input and output function of the domain controller is in a normal working state;
And if the first analysis result data is different from the preset video input image data or the second analysis result data is different from the preset video output image data, determining that the video signal input and output functions of the domain controller are in an abnormal state.
The video signal testing device of the domain controller can implement the video signal testing method of the domain controller in the method embodiment. The options in the method embodiments described above are also applicable to this embodiment and will not be described in detail here. The rest of the embodiments of the present application may refer to the content of the above method embodiments, and in this embodiment, no further description is given.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 6, the computer device 6 of this embodiment includes: at least one processor 60 (only one is shown in fig. 6), a memory 61 and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, the processor 60 implementing the steps in any of the method embodiments described above when executing the computer program 62.
The computer device 6 may be a smart phone, a tablet computer, a desktop computer, a cloud server, or the like. The computer device may include, but is not limited to, a processor 60, a memory 61. It will be appreciated by those skilled in the art that fig. 6 is merely an example of computer device 6 and is not intended to be limiting of computer device 6, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 60 may be a central processing unit (Central Processing Unit, CPU), the processor 60 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may in some embodiments be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6. The memory 61 may in other embodiments also be an external storage device of the computer device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the computer device 6. The memory 61 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 61 may also be used for temporarily storing data that has been output or is to be output.
In addition, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the steps in any of the above-mentioned method embodiments.
Embodiments of the present application provide a computer program product which, when run on a computer device, causes the computer device to perform the steps of the method embodiments described above.
In several embodiments provided by the present application, it will be understood that each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present application, and are not to be construed as limiting the scope of the application. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present application are intended to be included in the scope of the present application.
Claims (10)
1. A video signal testing method of a domain controller, wherein the domain controller includes a video input terminal and a video output terminal, the testing method being applied to a computer device, the computer device being communicatively connected to the domain controller, the testing method comprising:
acquiring a first video signal, wherein the first video signal is a video signal which is acquired by a camera shooting assembly in a preset test mode and received by the video input end;
determining first analysis result data of the first video signal under various input test modes of the video input end and second analysis result data of the second video signal under various output test modes of the video output end, wherein the second video signal is a video signal which returns the first video signal to the video input end through the video output end;
And determining a functional state of a video signal input/output function of the domain controller based on the first analysis result data and the second analysis result data.
2. The method of claim 1, wherein determining first analysis result data of the first video signal under a plurality of input test modes of the video input terminal and second analysis result data of the second video signal under a plurality of output test modes of the video output terminal comprises:
traversing a plurality of video input modes of the video input end, and determining first analysis result data of the first video signal in the plurality of video input modes;
the video output end is controlled, the first video signal is transmitted back to the video input end, and the video input end receives and obtains a second video signal;
and traversing multiple video output modes of the video output end, and determining second identification result data of the second video signal in the multiple video output modes.
3. The method for testing a video signal of a domain controller according to claim 2, wherein the controlling the video output terminal to transmit the first video signal back to the video input terminal, the video input terminal receiving the second video signal, comprises:
Controlling the video output end to output the first video signal to the video input end;
controlling the video input end, and deserializing the first video signal to obtain a deserialized signal;
and if the deserializing signal is matched with the first video signal output by the video output end, the first video signal is transmitted back to the video input end, and the video input end receives a second video signal.
4. A method for testing a video signal of a domain controller according to claim 3, wherein the controlling the video input terminal deserializes the first video signal to obtain a deserialized signal, and further comprises:
if the deserializing signal is not matched with the first video signal output by the video output end, carrying out protocol conversion on the first video signal by utilizing a preset signal adaptation strategy to obtain a protocol-converted first video signal;
and the first video signal after protocol conversion is transmitted back to the video input end, and the video input end receives the second video signal.
5. The method for testing a video signal of a domain controller according to claim 2, wherein said traversing a plurality of video input modes of said video input terminal determines first analysis result data of said first video signal in a plurality of said video input modes, comprising:
For each video input mode of the video input end, calling a preset test tool to verify whether a first video signal in the video input mode successfully plays a video stream or not;
if the video stream is successfully played based on the first video signal, intercepting an input video stream image of the first video signal;
and carrying out image analysis on the input video stream image to obtain first analysis result data of the first video signal.
6. The method for testing a video signal of a domain controller according to claim 2, wherein traversing the plurality of video output modes of the video output terminal determines second recognition result data of the second video signal in the plurality of video output modes, comprises:
for each video output mode of the video output end, calling a preset test tool to verify whether a second video signal in the video output mode successfully plays a video stream or not;
if the video stream is successfully played based on the second video signal, capturing an output video stream image of the second video signal;
and carrying out image analysis on the output video stream image to obtain second analysis result data of the second video signal.
7. The video signal testing method of a domain controller according to claim 1, wherein the determining a functional state of a video signal input output function of the domain controller based on the first analysis result data and the second analysis result data comprises:
if the first analysis result data is the same as the preset video input image data and the second analysis result data is the same as the preset video output image data, determining that the video signal input and output function of the domain controller is in a normal working state;
and if the first analysis result data is different from the preset video input image data or the second analysis result data is different from the preset video output image data, determining that the video signal input and output functions of the domain controller are in an abnormal state.
8. A video signal testing apparatus for a domain controller, the domain controller comprising a video input and a video output, the testing apparatus comprising:
the acquisition module is used for acquiring a first video signal, wherein the first video signal is a video signal which is acquired by the camera shooting assembly in a preset test mode and is received by the video input terminal;
The first determining module is used for determining first analysis result data of the first video signal under various input test modes of the video input end and second analysis result data of the second video signal under various output test models of the video output end, wherein the second video signal is received after the first video signal is transmitted back to the video input end through the video output end;
and the second determining module is used for determining the functional state of the video signal input/output function of the domain controller based on the first analysis result data and the second analysis result data.
9. A computer device communicatively connected to a domain controller, the computer device comprising a processor and a memory for storing a computer program which when executed by the processor implements a video signal testing method of the domain controller as claimed in any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the video signal testing method of a domain controller according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310745938.5A CN116708758A (en) | 2023-06-25 | 2023-06-25 | Video signal testing method, device and equipment of domain controller and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310745938.5A CN116708758A (en) | 2023-06-25 | 2023-06-25 | Video signal testing method, device and equipment of domain controller and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116708758A true CN116708758A (en) | 2023-09-05 |
Family
ID=87827436
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310745938.5A Pending CN116708758A (en) | 2023-06-25 | 2023-06-25 | Video signal testing method, device and equipment of domain controller and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116708758A (en) |
-
2023
- 2023-06-25 CN CN202310745938.5A patent/CN116708758A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108663374B (en) | Test method, test device and test system of display device | |
CN105389809B (en) | Display performance testing method, system and device | |
EP3528490B1 (en) | Image data frame synchronization method and terminal | |
JP7182865B2 (en) | Display control device, display control method, and program | |
US20200388089A1 (en) | Title method, apparatus and system for processing vehicle diagnosis case and diagnosis device | |
CN111626094A (en) | Reversing automatic test system and method for vehicle-mounted entertainment system | |
CN107948508A (en) | A kind of vehicle-mounted end image capturing system and method | |
CN113852795B (en) | Video picture adjusting method and device, electronic equipment and storage medium | |
CN114579005A (en) | Method, system, and computer readable medium for performing routing tasks using augmented reality | |
CN105049964A (en) | Loss monitoring method of user terminal and user terminal | |
CN116708758A (en) | Video signal testing method, device and equipment of domain controller and storage medium | |
CN106888353A (en) | A kind of image-pickup method and equipment | |
CN117176919A (en) | Fault simulation device and system for video real-time feedback process and vehicle testing method | |
CN117851255A (en) | Integration method, system and software for automatically testing HUD | |
CN106507079A (en) | A kind of color rendition method and device | |
CN111885373A (en) | Automatic detection method and device for product test video link | |
CN116634133A (en) | Intelligent camera testing method, system, equipment and readable storage medium | |
TWI708976B (en) | Display device and control method thereof | |
CN113382182B (en) | Live broadcast picture control method and device, storage medium and equipment | |
CN107920207B (en) | Image transmission system and method based on PPC software improved AOI system | |
CN220964987U (en) | Fault simulation device and system for video real-time feedback process | |
CN111836087A (en) | Method and device for processing TV log information based on mobile phone capture | |
CN221945154U (en) | Structured light camera and object three-dimensional shape reconstruction device | |
CN220653423U (en) | Signal conversion device | |
CN115497654B (en) | Test method, device and system for ECP manual instruction of reactor protection system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |