CN116743990B - Video stream testing method and video stream testing processing method of embedded equipment - Google Patents
Video stream testing method and video stream testing processing method of embedded equipment Download PDFInfo
- Publication number
- CN116743990B CN116743990B CN202311030128.8A CN202311030128A CN116743990B CN 116743990 B CN116743990 B CN 116743990B CN 202311030128 A CN202311030128 A CN 202311030128A CN 116743990 B CN116743990 B CN 116743990B
- Authority
- CN
- China
- Prior art keywords
- target
- test
- video
- folder
- address
- 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.)
- Active
Links
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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8455—Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream
-
- 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)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Biomedical Technology (AREA)
- Computing Systems (AREA)
- Medical Informatics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present specification relates to a video stream test method and a video stream test processing method for an embedded device. The video stream testing method comprises the following steps: acquiring a target test program address, a first target video identification and a target test image address which are sent by the server; acquiring and executing the target test program in the target equipment folder based on the target test program address; and acquiring a first target test image required by the target test program in the target equipment folder based on the first target video identification and the target test image address. According to the embodiment of the specification, the test image and the test program are not required to be deployed into the corresponding embedded equipment respectively, and all the test processes and the control flow are carried out through the server, so that the deployment time cost of the data and the program and the test flow time cost are reduced, and the overall test time cost of the embedded equipment can be shortened.
Description
Technical Field
The present disclosure relates to the field of embedded device testing technologies, and in particular, to a video stream testing method and a video stream testing processing method for an embedded device.
Background
In order to ensure that the embedded device functions normally, has stable performance and good compatibility and has enough safety, the function and performance of the embedded device are ensured to meet expectations, and corresponding function or performance tests are usually performed on the embedded device. In the related art, the test for the embedded device is generally to migrate test data and a test program into a development board of the embedded device in advance, then run the test program at the development board, and perform the test based on the test data.
Because the embedded devices are independent, the test mode in the related art can greatly increase the operation cost and the test time due to frequent data and program migration. In particular, when video stream testing is concerned, the volume of the test data is larger, and more test time is occupied when the test data is transplanted.
Disclosure of Invention
The present specification aims to solve at least one of the technical problems in the related art to some extent. Therefore, an object of the present disclosure is to provide a video stream testing method for an embedded device, which can deploy both a test image and a test program on a server, and remotely control the embedded device by using the server to complete a test, thereby reducing the testing time.
The second objective of the present disclosure is to provide a video stream testing processing method for an embedded device.
A third object of the present disclosure is to provide a video stream testing system for an embedded device.
A fourth object of the present disclosure is to provide a video stream testing apparatus for an embedded device.
A fifth object of the present disclosure is to provide a video stream test processing apparatus for an embedded device.
A sixth object of the present specification is to propose an embedded device.
A seventh object of the present specification is to propose an electronic device.
An eighth object of the present specification is to propose a computer readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present disclosure provides a video stream testing method of an embedded device, where the video stream testing method is applied to the embedded device; the embedded equipment test system comprises a first target test image and a target test program required by the embedded equipment test, and a target equipment folder stored in a server connected with the embedded equipment remotely; the target equipment folder is mounted on the embedded equipment; the method comprises the following steps: acquiring a target test program address, a first target video identification and a target test image address which are sent by the server; acquiring and executing the target test program in the target equipment folder based on the target test program address; and acquiring a first target test image required by the target test program in the target equipment folder based on the first target video identification and the target test image address.
In some embodiments of the present specification, the video stream testing method further includes: under the condition that the execution of the target test program is completed, sending a test result to the server; the test result is determined according to the comparison condition between the image processing result of the first target test image and the corresponding expected processing result in the target test program in the process of executing the target test program by the embedded equipment.
In some embodiments of the present specification, the video stream testing method further includes: and in the execution process of the target test program, if a second target test image except the first target test image is required to test the embedded equipment, sending a video identification request of a second target video identification corresponding to the second target test image to the server.
In some embodiments of the present specification, obtaining a first target test image required by the target test program in the target device folder based on the first target video identification and the target test image address includes: determining an image folder for storing the test image in the target equipment folder based on the target test image address; and determining a target test image folder with the file identification consistent with the first target video identification based on the first target video identification in the image folder, and acquiring the first target test image in the target test image folder.
In order to achieve the above object, an embodiment of a second aspect of the present disclosure provides a video stream test processing method of an embedded device, where the video stream test processing method is applied to a server; the video stream test processing method comprises the following steps: executing a test control program to acquire a first target video identification and remotely connecting with target embedded equipment; the target embedded device is an embedded device which needs to be tested by using a first target test image corresponding to the first target video identifier; the target equipment folder in the server is mounted on the target embedded equipment; the target equipment folder corresponds to a target test image address and a target test program address; transmitting the first target video identification, the target test image address and the target test program address to the target embedded device; and the target embedded device acquires a target test program required by the test from the target device folder based on the target test program address, and acquires the first target test image from the target device folder based on the first target video identifier and the target test image address.
In some embodiments of the present disclosure, the video stream test processing method further includes: receiving a video identification request sent by the target embedded equipment; wherein the video identification request includes a second target video identification in addition to the first target video identification; reading the second target video identification in the video identification message queue under the condition that the second target video identification exists in the video identification message queue; and sending the second target video identification and the target test image address to the target embedded device.
In some embodiments of the present disclosure, the video stream test processing method further includes: receiving a test result sent by the target embedded equipment; the test result is determined according to the comparison condition between the image processing result of the first target test image and the corresponding expected processing result in the target test program in the process of executing the target test program by the embedded equipment.
In some embodiments of the present description, the server is deployed with a video identification message queue; the obtaining the first target video identifier includes: and acquiring the first target video identification from the video identification message queue.
In some embodiments of the present description, the target device folder includes a video folder storing a number of test videos; the server is further provided with a video address message queue; the generation mode of the video identification message queue comprises the following steps: executing a video address traversing program to traverse test video addresses of all test videos in the video folder and sending the test video addresses to the video address message queue; executing a video processing program to read any one test video address in the video address message queue, performing frame extraction processing on a test video corresponding to the test video address to obtain a test image in a preset format, and then sending a video identifier corresponding to the test video to the video identifier message queue; and repeating the process of executing the video processing program until the video identifications corresponding to all the test videos in the video folder are sent to the video identification message queue.
In some embodiments of the present description, the target device folder includes an image folder storing a test image; after performing frame extraction processing on the test video corresponding to the test video address to obtain a test image in a preset format, the method further comprises the following steps: and storing the test image into a test image folder in the image folder, and taking a video identifier corresponding to the test video as a file identifier of the test image folder.
In some embodiments of the present disclosure, performing frame extraction processing on the test video corresponding to the test video address to obtain a test image in a preset format includes: performing frame extraction processing on the test video based on a preset frame extraction frequency to obtain a plurality of intermediate images in an intermediate format; and carrying out format conversion processing on the plurality of intermediate images to obtain a plurality of test images in the preset format.
To achieve the above object, an embodiment of a third aspect of the present disclosure provides a video stream testing system for an embedded device, where the video stream testing system includes a server and the embedded device; the first target test image and the target test program required by the embedded device test are stored in a target device folder in the server; the target equipment folder is mounted on the embedded equipment; the server is remotely connected with the embedded equipment; the first target test image corresponds to a first target video identifier; the target equipment folder corresponds to a target test image address and a target test program address; the server is used for sending the first target video identification, the target test image address and the target test program address to the embedded equipment; the embedded device is used for acquiring a target test program address, a first target video identifier and a target test image address which are sent by the server, acquiring and executing the target test program in the target device folder based on the target test program address, and acquiring a first target test image required by the target test program in the target device folder based on the first target video identifier and the target test image address.
To achieve the above object, a fourth aspect of the present disclosure provides a video stream testing apparatus for an embedded device. The embedded equipment test system comprises a first target test image and a target test program required by the embedded equipment test, and a target equipment folder stored in a server connected with the embedded equipment remotely; the target equipment folder is mounted on the embedded equipment; the video stream testing device comprises: the first acquisition module is used for acquiring a target test program address, a first target video identifier and a target test image address which are sent by the server; a program acquisition module, configured to acquire and execute the target test program in the target device folder based on the target test program address; and the image acquisition module is used for acquiring a first target test image required by the target test program in the target equipment folder based on the first target video identifier and the target test image address.
In order to achieve the above object, a fifth aspect of the present disclosure provides a video stream test processing apparatus for an embedded device. The video stream test processing device comprises: the test control module is used for executing a test control program to acquire a first target video identification and remotely connect with the target embedded equipment; the target embedded device is an embedded device which needs to be tested by using a first target test image corresponding to the first target video identifier; the target equipment folder in the server is mounted on the target embedded equipment; the target equipment folder corresponds to a target test image address and a target test program address; the sending module is used for sending the first target video identifier, the target test image address and the target test program address to the target embedded equipment; and the target embedded device acquires a target test program required by the test from the target device folder based on the target test program address, and acquires the first target test image from the target device folder based on the first target video identifier and the target test image address.
To achieve the above object, an embodiment of a sixth aspect of the present specification proposes an embedded device, the embedded device including a processor, a memory, and a video stream test program stored in the memory and configured to be executed by the processor, the processor implementing the video stream test method according to any one of the first aspects when executing the video stream test program.
To achieve the above object, an embodiment of a seventh aspect of the present specification proposes an electronic device including a processor, a memory, and a video stream test processing program stored in the memory and configured to be executed by the processor, the processor implementing the video stream test processing method according to any one of the second aspects when executing the video stream test processing program.
To achieve the above object, an eighth aspect of the present disclosure provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when executed, controls a device on which the computer-readable storage medium is located to perform the video stream testing method according to any one of the first aspects and/or the video stream testing processing method according to any one of the second aspects.
By the above embodiment, the target test program and the first target test image required for the embedded device test are deployed in the target device folder in the server, and the target device folder is mounted on the embedded device at the same time. The embedded device can acquire the target test program and the first target test image to complete the test process through the remote connection of the server and the embedded device and through the mounted target device file and the address and the identifier sent by the server. According to the embodiment of the specification, the test image and the test program are not required to be deployed into the corresponding embedded equipment respectively, and all the test processes and the control flow are carried out through the server, so that the deployment time cost of the data and the program and the test flow time cost are reduced, and the overall test time cost of the embedded equipment can be shortened.
Additional aspects and advantages of the present description will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the present description.
Drawings
Fig. 1a is a schematic diagram of a video stream testing system of an embedded device according to an embodiment of the present disclosure.
Fig. 1b is a schematic diagram of a device folder provided in an embodiment of the present disclosure.
Fig. 2 is a flowchart of a video stream testing method of an embedded device in an embodiment of the present disclosure.
Fig. 3 is a flowchart of a video stream test processing method of an embedded device according to an embodiment of the present disclosure.
Fig. 4 is a flowchart of a method for generating a video identification message queue according to an embodiment of the present disclosure.
Fig. 5 is a schematic diagram of a server distributed architecture according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of a video stream testing apparatus of an embedded device in an embodiment of the present disclosure.
Fig. 7 is a schematic structural diagram of a video stream test processing apparatus of an embedded device according to an embodiment of the present disclosure.
Fig. 8 is a schematic structural diagram of an embedded device according to an embodiment of the present disclosure.
Fig. 9 is a schematic structural view of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present specification are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of illustrating the present description and are not to be construed as limiting the present description.
Embedded device testing is an important step in ensuring that embedded system functionality and performance meet expectations. The following are several requirements for embedded device testing: 1. system stability and reliability: embedded devices are commonly used for mission-critical and sensitive applications such as medical devices, aerospace systems, automotive control systems, and the like. Comprehensive testing of these devices is a necessary means to ensure stable operation and reliable operation under a variety of operating conditions. Testing may help discover and repair potential failures, vulnerabilities, or software errors, thereby reducing the risk of a system crash, data loss, or security vulnerabilities. 2. And (3) functional verification: embedded devices typically have a variety of functions and features including sensors, communication modules, user interfaces, and the like. Testing can verify whether the functionality of the device is working as intended and ensure proper interaction between the individual functions. Therefore, the equipment can be ensured to normally operate according to design requirements in actual use. 3. Performance evaluation: the performance of an embedded device is one of the key factors for its successful operation. Testing may evaluate the performance of a device under different load conditions, such as response time, processing power, power consumption, etc. Through the tests, the performance of the equipment can be optimized, the user experience is improved, and the performance requirements are met. 4. Compatibility and interoperability: embedded devices typically need to interact with other devices or systems. Testing may ensure compatibility of a device with other devices or systems and verify interoperability thereof. This ensures that the device can communicate and integrate seamlessly with other devices. 5. Safety: the security of embedded devices is critical, especially for devices connected to the network. Testing can help discover potential security vulnerabilities, or attack surfaces and take appropriate action to enhance the security of the device. This is important for protecting user data, preventing unauthorized access or manipulation, and protecting against potential network attacks.
In summary, the embedded device test is a key step for ensuring normal device function, stable performance, good compatibility and sufficient security. It helps to improve the quality, reliability and user satisfaction of embedded systems while reducing the occurrence of potential risks and problems. In the related art, the test of the embedded device is generally to migrate test data and a test program into a development board of the embedded device in advance, and then run the test program on the development board to perform the test based on the test data. Because the embedded devices are independent, and under the condition that the number of the embedded devices to be tested is large, the operation cost and the test time are greatly increased due to frequent data and program transplanting in the test mode in the related technology. In particular to a video stream test, which has a larger volume of video stream test data and occupies more test time when test data are transplanted. Therefore, the embodiment of the specification provides a video stream testing method and a video stream testing processing method of an embedded device.
The embodiment of the specification provides a scene example of a video stream testing method and a video stream testing processing method of an embedded device, and the video stream testing method and the video stream testing processing method of the embedded device are applied to a video stream testing system of the embedded device shown in fig. 1 a. The video stream testing system includes a server 102 and several embedded devices 104. The video stream testing method of the embedded device is applied to the embedded device 104 in the video stream testing system, and the video stream testing processing method of the embedded device is applied to the server 102 in the video stream testing system.
In this scenario example, referring to fig. 1b, a test folder root_path is configured in the server 102, and a device folder corresponding to each embedded device 104 is stored in the test folder root_path. The file names of the device folders may employ IP addresses corresponding to when the embedded device 104 is connected to the server 102. The device folder comprises a video folder for storing test videos, an image folder for storing test images and a test program. For example, referring to fig. 1B, if three embedded devices need to be tested, the IP address of the embedded device a when connected to the server 102 is IP1, the IP address of the embedded device B when connected to the server 102 is IP2, and the IP address of the embedded device C when connected to the server 102 is IP3. The respective test folders in the server 102 include three device folders with file names IP1, IP2, and IP3, respectively. The device folder IP1 includes a video folder video storing a test video for testing the embedded device a, an image folder Frame storing a test image required for testing the embedded device a, and a test program IP1 required for testing the embedded device a. The test image in the image folder Frame is obtained by performing Frame extraction processing on the test video. Each test video corresponds to a test image folder. For example, a test image obtained by performing frame extraction processing on the test video1 is stored in a test image folder video 1. Video1 may be understood as a Video identification of the test Video 1.
Illustratively, taking embedded device a as an example, a first target test image and a target test program required for the embedded device a test are stored in a target device folder IP1 in the server 102. The target device folder IP1 is mounted in the embedded device A, or the test folder root_path is directly mounted in the embedded device A. The first target test image corresponds to a first target video identifier, and the first target video identifier is consistent with a file identifier of a first test image folder storing the first target test image. The file identification may be a file name. The target device folder IP1 corresponds to a target test image address and a target test program address. The target test image address points to an image folder Frame in the target device folder IP 1. The target test program address points to the target test program in the target device folder IP 1.
The server 102 is configured to send the first target video identification, the target test image address, and the target test program address to the embedded device a. The embedded device a is configured to obtain a target test program address, a first target video identifier, and a target test image address sent by the server 102, obtain and execute a target test program in a target device folder based on the target test program address, and obtain a first target test image required by the target test program in the target device folder based on the first target video identifier and the target test image address. In the event that execution of the target test program is complete, the test results are sent to the server 102. The test result is determined according to the comparison condition between the image processing result of the first target test image and the corresponding expected processing result in the target test program in the process of executing the target test program by the embedded device A.
It should be noted that, when the target device folder on the server 102 is successfully installed under a certain directory of the embedded device 104, the embedded device 104 may directly access the files in the target device folder. The mount operation may make the remote folder available in the local file system as if it were a local folder. Thus, the embedded device 104 may access the first target test image and the target test program in the corresponding target device folder directly through the corresponding target test image address and the target test program address.
Fig. 2 is a flowchart of a video stream testing method of an embedded device in an embodiment of the present disclosure. Referring to fig. 2, the video stream testing method includes the following steps:
s210, acquiring a target test program address, a first target video identification and a target test image address which are sent by a server.
S220, acquiring and executing the target test program in the target device folder based on the target test program address.
S230, acquiring a first target test image required by the target test program in the target device folder based on the first target video identification and the target test image address.
It should be noted that, the test program in the embodiment of the present specification is a computer program written to perform the test of the embedded device, and includes test logic and execution steps. The test program is responsible for invoking the software system or component of the embedded device under test and performing the corresponding operations and verification according to the predefined test case. The test program may be written using different programming languages and test frameworks to enable automated testing. The test image is an input value of test data required by the test program to test the embedded device. Test data is the input value and expected output data used in the test process. They are used to simulate various conditions and conditions in a real environment to verify that the function and behavior of the software under test meet expectations.
In the embodiments of the present description, the video stream testing method is applied to an embedded device. The first target test image and the target test program required for the embedded device test are stored in a target device folder in a server connected to the embedded device remotely. The target device folder is mounted on the embedded device.
Specifically, a test folder is configured in the server, and a plurality of device folders respectively corresponding to the embedded devices are stored in the test folder. The file name of the device folder may use the IP address of the corresponding embedded device when it is connected to the server. And testing a device folder with the file name consistent with the IP address when the embedded device and the server are connected, namely a target device folder corresponding to the embedded device. The target device folder stores a target test program and a first target test image required by the embedded device test.
The first target test image may be understood as an input value in the test data, which is obtained by processing the first target test video. In an embodiment of the present description, the testing of the first target test video by the embedded device is performed by performing image processing on a first target test image obtained by processing the first target test video.
The device folder comprises a video folder for storing test videos, an image folder for storing test images and a test program. When configuring the test folder, the server configures corresponding test program addresses and test image addresses for the device folders corresponding to different embedded devices. The test program address points to the test program in the device folder; the test image address points to an image folder in the device folder. The video identification is used to determine a first target test image in the image folder.
In the embodiment of the present disclosure, after the target device folder corresponding to the embedded device is mounted to the embedded device, the server may be remotely connected to the embedded device to initiate a test procedure for the embedded device. After the remote connection, the server sends the target test program address, the first target video identifier and the target test image address as parameters to the embedded device. After the embedded device acquires the target test program address, the first target video identifier and the target test image address, the embedded device can acquire the target test program in the target device folder based on the target test program address, and simultaneously execute the target test program to start testing. The embedded device may determine, in the target device folder, a corresponding first target test image into the image folder based on the target test image address and the first target video identification. Then, in the process of executing the target test program, the first target test image is used as an input value of test data to test the embedded device.
By the above embodiment, the target test program and the first target test image required for the embedded device test are deployed in the target device folder in the server, and the target device folder is mounted on the embedded device at the same time. The embedded device can acquire the target test program and the first target test image to complete the test process through the remote connection of the server and the embedded device and through the mounted target device file and the address and the identifier sent by the server. According to the embodiment of the specification, the test images and the test programs are not required to be deployed into the corresponding embedded equipment respectively, the test control flow of the embedded equipment can be completed in the server, the deployment time cost of the data and the programs and the test flow are reduced, and therefore the test time cost is reduced.
In some embodiments of the present description, the video stream testing method further includes: and sending the test result to the server under the condition that the execution of the target test program is completed. The test result is determined according to the comparison condition between the image processing result of the first target test image and the corresponding expected processing result in the target test program in the process of executing the target test program by the embedded equipment.
In the test method in the related art, the embedded equipment completes the test, the test result is stored in the development board of the embedded equipment, the result uploading is complex, the test result cannot be synchronized in time, and the test efficiency is reduced.
Thus, in the embodiment of the present disclosure, the server is remotely connected to the embedded device, and in the case that the execution of the target test program of the embedded device is completed, the embedded device may directly send the test result to the server to synchronize the test result with the server.
The test result is determined according to the comparison condition between the image processing result of the first target test image and the corresponding expected processing result in the target test program in the process of executing the target test program by the embedded equipment. In particular, the expected processing result may be understood as data of expected output among the test data. If the consistency degree of the image processing result of the embedded equipment and the expected processing result reaches the preset proportion, the corresponding function test result of the embedded equipment can be determined to be better. The predetermined ratio may be set according to a degree of fault tolerance for the embedded device.
In some embodiments of the present description, the video stream testing method further includes: in the execution process of the target test program, if the embedded device is tested by a second target test image except the first target test image, a video identification request of a second target video identification corresponding to the second target test image is sent to the server.
In embodiments of the present description, the embedded device test procedure may require more than one set of test data, and may require multiple sets. In this case, in the execution process of the target test program, after the test of the first set of data is completed based on the first target test image, if the embedded device is further tested by using the second target test image other than the first target test image, the embedded device may send a video identification request to the server to obtain the address of the second target test image in the target device folder. The video identification request comprises a second target video identification corresponding to the second target test image.
It will be appreciated that all of the test images required by the embedded device to execute the target test program are stored in the target device folder.
In some embodiments of the present description, acquiring a first target test image required by a target test program in a target device folder based on a first target video identification and a target test image address includes: an image folder in the target device folder storing the test image is determined based on the target test image address. And determining a target test image folder with the file identification consistent with the first target video identification based on the first target video identification in the image folder, and acquiring a first target test image in the target test image folder.
The device folder comprises a video folder for storing test videos, an image folder for storing test images and a test program. The image folder comprises a plurality of test image folders for storing test images. A test image folder stores a test image corresponding to a test video. The file identification of the test image folder may employ a video identification corresponding to the test video. For example, the video name of the corresponding test video may be directly used as the file name of the test image folder.
For example, referring to fig. 1b, the device folder IP1 includes a video folder video storing test videos video1, video2, and video 3; storing image folder frames of the test image folder video1, the test image folder video2 and the test image folder video 3; test procedure IP1. The test image folder video1 stores test images corresponding to the test video 1; the test images corresponding to the test video2 are stored in the test image folder video 2; and the test images corresponding to the test video3 are stored in the test image folder video 3.
In one example, in the case where the embedded device IP1 obtains the first target video identifier and the first target test image address, the image folder Frame may be first located in the target device folder IP1 based on the first target test image address, then the target test image folder storing the first target test image may be determined in the image folder Frame based on the first target video identifier, and the first target test image may be obtained in the target test image folder.
It can be understood that after the embedded device sends the video identification request of the second target video identification corresponding to the second target test image to the server, the second target test image can be obtained in the target device folder based on the second target video identification and the target test image address under the condition that the second target video identification and the target test image address sent by the server for the second target test image are received.
Fig. 3 is a flowchart of a video stream testing processing method of an embedded device according to an embodiment of the present disclosure. The video stream test processing method is applied to the server. Referring to fig. 3, the video stream testing processing method includes:
and S310, executing a test control program to acquire a first target video identification and remotely connecting with the target embedded device.
The target embedded device is an embedded device which needs to be tested by using a first target test image corresponding to the first target video identifier. The target equipment folder in the server is mounted on the target embedded equipment; the target device folder corresponds to a target test image address and a target test program address.
S320, the first target video identification, the target test image address and the target test program address are sent to the target embedded device.
The target embedded device obtains a target test program needed by the test from a target device folder based on the target test program address, and obtains a first target test image from the target device folder based on the first target video identification and the target test image address.
In the embodiment of the present disclosure, when the server finishes processing the first target test video to obtain the first target test image corresponding to the first target test video, the server may obtain the corresponding first target video identifier. Under the condition that the server acquires the first target video identification, the target embedded equipment which needs to be tested by using the first target test image corresponding to the first target video identification is firstly determined. In one example, the server may determine which embedded device needs to be tested using the first target test image by traversing all of the stored test programs, or may determine the target embedded device by a pre-stored device test record table.
Corresponding configuration files can be configured for different embedded devices in the server. For example, the IP address, port number, user name, password, and corresponding test image address and test program address of the embedded device may be configured in a configuration file. Wherein the test image address and the test program address may be represented in the form of a directory. For example, referring to fig. 1b, the test program address corresponding to the test program IP1 in the device folder IP1 may be "/root_path/embedded device IP 1/test program IP1.Py".
Specifically, a test control program is executed, a first target video identifier is obtained, and a target embedded device corresponding to the first target video identifier is determined. And completing remote connection with the target embedded device based on the IP address, the port number, the user name and the password of the embedded device in the configuration file corresponding to the target embedded device. For example, a remote connection may be established with the embedded device using a remote control protocol (e.g., SSH) or a remote management tool (e.g., remote desktop application) or one of the telnetlib's standard libraries of Python. The IP address, port number, user name and password of the target embedded device in the configuration file are used as authentication information of remote connection.
After the server is remotely connected with the embedded equipment, the first target video identification, the target test image address and the target test program address can be sent to the target embedded equipment in the form of parameters, so that the target embedded equipment can acquire a target test program required by a test from a target equipment folder based on the target test program address, and can acquire a first target test image from the target equipment folder based on the first target video identification and the target test image address. It will be appreciated that the target device folder has been mounted to the target embedded device at the server prior to the remote connection. Illustratively, the target device folder is mounted under the mnt directory of the target embedded device.
By the above embodiment, the target test program and the first target test image required for the embedded device test are deployed in the target device folder in the server, and the target device folder is mounted on the embedded device at the same time. The embedded device can acquire the target test program and the first target test image to complete the test process through the remote connection of the server and the embedded device and through the mounted target device file and the address and the identifier sent by the server. According to the embodiment of the specification, the test image and the test program are not required to be deployed into the corresponding embedded equipment respectively, and all the test processes and the control flow are carried out through the server, so that the deployment time cost of the data and the program and the test flow time cost are reduced, and the overall test time cost of the embedded equipment can be shortened.
In some embodiments of the present description, obtaining the first target video identification includes: and acquiring the first target video identification from the video identification message queue.
In the embodiments of the present description, the server is deployed with a video identification message queue. After the test control program is started and executed, a video identifier can be randomly acquired in the video identifier message queue as a first target video identifier. And then determining the target embedded equipment corresponding to the first target video identification, and remotely connecting with the target embedded equipment.
In some embodiments of the present disclosure, the video stream test processing method further includes: and receiving a video identification request sent by the target embedded equipment. Wherein the video identification request includes a second target video identification in addition to the first target video identification. And in the case that the second target video identification exists in the video identification message queue, reading the second target video identification in the video identification message queue. And sending the second target video identification and the target test image address to the target embedded device.
The server is remotely connected with the target embedded device, so that after the target embedded device executes the target test program, the video identification request sent by the embedded device can be received. The video identification request includes a second target video identification in addition to the first target video identification. The embedded equipment requests to acquire a second target test image corresponding to the second target video identification to continue testing.
In the embodiment of the present disclosure, after performing frame extraction processing on a test video to obtain a test image, a server sends a test video identifier corresponding to the test video to a video identifier message queue. Therefore, if the second target video identifier does not exist in the video identifier message queue, the server is not complete to process the frame extraction of the second target test video corresponding to the second target video identifier, and a second target test image corresponding to the second target test video is not obtained.
Thus, after receiving the video identification request sent by the target embedded device, it is first determined in the video identification message queue whether the second target video identification included therein is present. And in the case that the second target video identification exists in the video identification message queue, reading the second target video identification in the video identification message queue. And sending the second target video identification and the target test image address to the target embedded device.
The target test video and the corresponding target test image required by the target embedded equipment test are stored in the target equipment folder, so that the target test image address sent together with the second target video identifier and the target test image address sent together with the first target video identifier are consistent, and are the test image addresses configured in the configuration file corresponding to the target embedded equipment.
In some embodiments of the present disclosure, the video stream test processing method further includes: and receiving a test result sent by the target embedded equipment. The test result is determined according to the comparison condition between the image processing result of the first target test image and the corresponding expected processing result in the target test program in the process of executing the target test program by the embedded equipment.
In the embodiment of the present disclosure, the server is remotely connected to the embedded device, and may receive the request and other information sent from the embedded device in real time. Therefore, after the embedded equipment test is completed, namely, the execution of the target test program is completed, the test result can be directly sent to the server. The server can timely know whether the performance or the function situation of the embedded device meets the expectations.
In some embodiments of the present description, the target device folder includes a video folder that stores a number of test videos; the server is also deployed with a video address message queue. Referring to fig. 4, the generation method of the video identification message queue includes:
s410, executing a video address traversing program to traverse the test video addresses of all the test videos in the video folder, and sending the test video addresses to the video address message queue.
S420, executing a video processing program to read any one test video address in the video address message queue, performing frame extraction processing on the test video corresponding to the test video address to obtain a test image in a preset format, and then sending a video identifier corresponding to the test video to the video identifier message queue.
S430, repeatedly executing the video processing program until the video identifications corresponding to all the test videos in the video folder are sent to the video identification message queue.
Referring to fig. 1b, a test folder root_path is configured in the server, and an equipment folder corresponding to each embedded equipment is stored in the test folder root_path. The file name of the device folder may use the IP address of the corresponding embedded device when connected to the server. The device folder comprises a video folder for storing test videos, an image folder for storing test images and a test program.
In the embodiment of the present disclosure, the initial test data for testing the embedded device is a test video, and one processing manner of the test video by the embedded device is that the test image obtained by extracting frames from the test video is processed. For example, embedded devices are used to identify whether an electric car is present in a section of elevator video. Then the frame extraction processing can be performed on the elevator video to obtain a plurality of frame test images corresponding to the elevator video. Then, the embedded equipment performs image recognition on the test image, and whether the condition of the electric vehicle exists in the elevator video can be judged. Thus, in the device folder of the server, the test video is initially pre-stored only in the video folder. And after the test video is subjected to frame extraction processing to obtain a corresponding test image, the test image is stored in an image folder.
In the embodiment of the present disclosure, the server may test multiple embedded devices in parallel, the number of test videos may be large, and the process of processing the test videos may take a certain time. Thus, to reduce processing time for batch test video processing while reducing congestion due to excessive data, the present embodiments employ a distributed architecture for video processing.
Specifically, referring to fig. 5, the server in the embodiment of the present disclosure is deployed with a video address traversing program, a video processing program, a test control program, and a video address message queue and a video identification message queue.
The server executes a video address traversing program to traverse the test video addresses of all the test videos pre-stored in the video file folder in the device file folder corresponding to the embedded device to be tested, and a video address message queue sent by the traversed test video addresses.
The server executes a video processing program to perform frame extraction processing on the test videos corresponding to all the test video addresses in the video address message queue. Specifically, a video processing program is executed, and any one of the test video addresses in the video address message queue is read, which can be read randomly or in a preset sequence. And acquiring the test video in the address based on the read test video address. And performing frame extraction processing on the test video to obtain a test image in a preset format, and then sending a video identifier corresponding to the test video subjected to frame extraction processing to a video identifier message queue. And repeating the process until all the video identifications corresponding to all the test videos pre-stored in the video folder in the device folder corresponding to the tested embedded device are sent to the video identification message queue.
The video address traversing program, the video processing program, and the test control program in the embodiments of the present disclosure respectively execute different tasks. The video address traversing procedure is used as a service end of the task distributor and is responsible for reading test video tasks in a video folder in the equipment folder; the video processing program is responsible for extracting the test video into corresponding test images according to the set rules; the test control program is responsible for remotely connecting the embedded equipment and interacting information with the embedded equipment so as to enable the embedded equipment to complete the test process. The three programs are respectively responsible for different tasks, and the messages are transmitted through the two message queues without mutual influence, so that the blocking condition does not exist in the three stages of the whole testing process, and the testing time of the embedded equipment is greatly reduced.
And the distributed processing mode can enable the server to simultaneously test a plurality of embedded devices in parallel, and the embedded devices can share test programs and test data. By using a remote connection mode, the starting of the target test program of the embedded equipment is integrated into the whole test flow through the test control program, an independent starting step is not needed, and the automation degree of the whole test flow is higher.
In some embodiments of the present description, the target device folder includes an image folder in which the test image is stored. After the frame extraction processing is carried out on the test video corresponding to the test video address to obtain the test image in the preset format, the video stream test processing method further comprises the following steps: and storing the test image into a test image folder in the image folder, and taking a video identifier corresponding to the test video as a file identifier of the test image folder.
Referring to fig. 1b, the target device folder corresponding to each embedded device includes an image folder for storing the test image. For example, the image folders Frame in the device folder IP1, the device folder IP2, and the device folder IP3 in the figure. Taking the device folder IP1 as an example, the video folder in the device folder IP1 includes three test videos video1, video2, and video3. After performing frame extraction processing on the test video1 to obtain a test image corresponding to the test video1, the server stores all the test images corresponding to the test video1 in the same test image folder, and takes the video identifier corresponding to the test video1 as the file identifier of the test image folder. For example, the video identification video1 is used as a file name of a test image folder storing a test image corresponding to the test video 1.
In some embodiments of the present disclosure, performing frame extraction processing on a test video corresponding to a test video address to obtain a test image in a preset format, including: and performing frame extraction processing on the test video based on a preset frame extraction frequency to obtain a plurality of intermediate images in an intermediate format. And carrying out format conversion processing on the plurality of intermediate images to obtain a plurality of test images with preset formats.
Illustratively, the test video is subjected to frame extraction, which typically results in an image in jpg format, while the test image required for testing the embedded device may be in other preset formats, such as YUV format. Therefore, after the test video is subjected to frame extraction processing according to the preset frame extraction frequency, the intermediate image can be subjected to format conversion processing so as to obtain a test image with a preset format. The preset extraction frequency is determined according to the performance requirement of the embedded equipment.
Corresponding to the above embodiment, the embodiment of the present disclosure further provides a video stream testing system of an embedded device. The video stream testing system comprises a server and an embedded device. The first target test image and the target test program required for the embedded device test are stored in a target device folder in the server. The target equipment folder is mounted on the embedded equipment; the server is remotely connected with the embedded equipment; the first target test image corresponds to a first target video identification. The target device folder corresponds to a target test image address and a target test program address.
The server is used for sending the first target video identification, the target test image address and the target test program address to the embedded equipment.
The embedded device is used for acquiring a target test program address, a first target video identifier and a target test image address which are sent by the server, acquiring and executing a target test program in a target device folder based on the target test program address, and acquiring a first target test image required by the target test program in the target device folder based on the first target video identifier and the target test image address.
By the above embodiment, the target test program and the first target test image required for the embedded device test are deployed in the target device folder in the server, and the target device folder is mounted on the embedded device at the same time. The embedded device can acquire the target test program and the first target test image to complete the test process through the remote connection of the server and the embedded device and through the mounted target device file and the address and the identifier sent by the server. According to the embodiment of the specification, the test image and the test program are not required to be deployed into the corresponding embedded equipment respectively, and all the test processes and the control flow are carried out through the server, so that the deployment time cost of the data and the program and the test flow time cost are reduced, and the overall test time cost of the embedded equipment can be shortened.
For specific limitations of the video stream testing system of the embedded device, reference may be made to the above limitations of the video stream testing method and the video stream testing processing method of the embedded device, which are not repeated herein.
Corresponding to the above embodiment, the embodiment of the present disclosure further provides a video stream testing apparatus for an embedded device. Referring to fig. 6, a first target test image and a target test program required for the embedded device test are stored in a target device folder in a server remotely connected to the embedded device. The target device folder is mounted on the embedded device. The video stream testing device comprises:
the first obtaining module 610 is configured to obtain a target test program address, a first target video identifier, and a target test image address sent by the server.
The program obtaining module 620 is configured to obtain and execute the target test program in the target device folder based on the target test program address.
The image obtaining module 630 is configured to obtain, in the target device folder, a first target test image required by the target test program based on the first target video identifier and the target test image address.
According to the video stream testing apparatus of the embodiment of the present specification, by disposing the target test program and the first target test image required for the embedded device test in the target device folder in the server, the target device folder is mounted on the embedded device at the same time. The embedded device can acquire the target test program and the first target test image to complete the test process through the remote connection of the server and the embedded device and through the mounted target device file and the address and the identifier sent by the server. According to the embodiment of the specification, the test image and the test program are not required to be deployed into the corresponding embedded equipment respectively, and all the test processes and the control flow are carried out through the server, so that the deployment time cost of the data and the program and the test flow time cost are reduced, and the overall test time cost of the embedded equipment can be shortened.
For specific limitations of the video stream testing apparatus of the embedded device, reference may be made to the above limitation of the video stream testing method of the embedded device, and no further description is given here. The modules in the video stream testing device of the embedded device can be all or partially implemented by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Corresponding to the above embodiment, the embodiment of the present disclosure further provides a video stream test processing device of the embedded device. Referring to fig. 7, the video stream test processing apparatus includes:
the test control module 710 is configured to execute a test control program to obtain a first target video identifier and remotely connect with a target embedded device.
The target embedded device is an embedded device which needs to be tested by using a first target test image corresponding to the first target video identifier. The target equipment folder in the server is mounted on the target embedded equipment; the target device folder corresponds to a target test image address and a target test program address.
And a sending module 720, configured to send the first target video identifier, the target test image address, and the target test program address to the target embedded device.
The target embedded device obtains a target test program needed by the test from a target device folder based on the target test program address, and obtains a first target test image from the target device folder based on the first target video identification and the target test image address.
According to the video stream test processing of the embedded device in the embodiment of the specification, the target test program and the first target test image required by the embedded device test are deployed in the target device folder in the server, and meanwhile, the target device folder is mounted on the embedded device. The embedded device can acquire the target test program and the first target test image to complete the test process through the remote connection of the server and the embedded device and through the mounted target device file and the address and the identifier sent by the server. According to the embodiment of the specification, the test image and the test program are not required to be deployed into the corresponding embedded equipment respectively, and all the test processes and the control flow are carried out through the server, so that the deployment time cost of the data and the program and the test flow time cost are reduced, and the overall test time cost of the embedded equipment can be shortened.
For specific limitation of the video stream test processing device of the embedded device, reference may be made to the limitation of the video stream test processing method of the embedded device hereinabove, and the description thereof will not be repeated here. The modules in the video stream test processing device of the embedded device can be all or partially realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Corresponding to the above embodiment, the embodiment of the present disclosure further provides an embedded device.
Fig. 8 is a block diagram of an embedded device according to one embodiment of the present description. As shown in fig. 8, the embedded device 800 includes a first memory 804, a first processor 802, and a video stream test program 806 stored in the first memory 804 and executable on the processor 802, where the video stream test program 806 is executed by the first processor 802 to implement the video stream test method according to any of the above embodiments.
According to the embedded device of the embodiment of the present disclosure, when the first processor 802 executes the video stream test program 806, it is not necessary to deploy the test image and the test program into the corresponding embedded device respectively, and all the test processes and control flows are performed by the server, so that the deployment time cost of the data and the program and the test flow time cost are reduced, and the overall test time cost of the embedded device can be shortened.
Corresponding to the above embodiment, the embodiment of the present specification further provides an electronic device.
Fig. 9 is a block diagram of an electronic device according to one embodiment of the present description. As shown in fig. 9, the electronic device 900 includes a second memory 904, a second processor 902, and a video stream test processing program 906 stored in the second memory 904 and capable of running on the second processor 902, where the video stream test processing program 906 is executed by the second processor 902, to implement the video stream test processing method according to any of the above embodiments.
According to the electronic device of the embodiment of the present disclosure, when the processor 902 executes the video stream test processing program 906, it is not necessary to deploy the test image and the test program into the corresponding embedded device respectively, and all the test processes and control flows are performed by the server, so that the deployment time cost of the data and the program and the test flow time cost are reduced, and the overall test time cost of the embedded device can be shortened.
Corresponding to the above embodiments, embodiments of the present specification also provide a computer-readable storage medium. The computer readable storage medium comprises a stored computer program, wherein the computer program when run controls a device in which the computer readable storage medium is located to perform the video stream testing method and/or the video stream testing processing method according to any of the embodiments described above.
According to the computer readable storage medium of the embodiment of the specification, when the computer program runs, the test image and the test program do not need to be deployed in the corresponding embedded equipment respectively, and all the test processes and the control flow are carried out through the server, so that the deployment time cost of the data and the program and the test flow time cost are reduced, and the overall test time cost of the embedded equipment can be shortened.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, for example, may be considered as a ordered listing of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It should be understood that portions of this specification may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present specification. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present specification, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present specification and simplifying the description, and do not indicate or imply that the device or element being referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the present specification.
Furthermore, the terms "first," "second," and the like, as used in the embodiments of the present specification, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or as implicitly indicating the number of technical features indicated in the embodiments. Thus, the definition of a term "first," "second," or the like in an embodiment of this specification can expressly or implicitly indicate that at least one such feature is included in the embodiment. In the description of the present specification, the word "plurality" means at least two or more, for example, two, three, four, etc., unless explicitly defined otherwise in the embodiments.
In this specification, unless clearly indicated or limited otherwise in the examples, the terms "mounted," "connected," and "fixed" as used in the examples are to be construed broadly, and for example, the connection may be a fixed connection, a removable connection, or an integral unit, and it is to be appreciated that the connection may also be a mechanical connection, an electrical connection, or the like; of course, it may be directly connected, or indirectly connected through an intermediate medium, or may be in communication with each other, or in interaction with each other. The specific meaning of the terms in this specification can be understood by those skilled in the art according to specific embodiments.
In this specification, unless expressly stated or limited otherwise, a first feature "up" or "down" a second feature may be the first and second features in direct contact, or the first and second features in indirect contact via an intervening medium. Moreover, a first feature being "above," "over" and "on" a second feature may be a first feature being directly above or obliquely above the second feature, or simply indicating that the first feature is level higher than the second feature. The first feature being "under", "below" and "beneath" the second feature may be the first feature being directly under or obliquely below the second feature, or simply indicating that the first feature is less level than the second feature.
Although embodiments of the present disclosure have been shown and described above, it should be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.
Claims (15)
1. The video stream testing method of the embedded equipment is characterized in that the video stream testing method is applied to the embedded equipment; the embedded equipment test system comprises a first target test image and a target test program required by the embedded equipment test, and a target equipment folder stored in a server connected with the embedded equipment remotely; the target equipment folder is mounted on the embedded equipment; the method comprises the following steps:
acquiring a target test program address, a first target video identification and a target test image address which are sent by the server;
acquiring and executing the target test program in the target equipment folder based on the target test program address;
and acquiring a first target test image required by the target test program in the target equipment folder based on the first target video identification and the target test image address.
2. The video stream testing method according to claim 1, wherein the method further comprises:
under the condition that the execution of the target test program is completed, sending a test result to the server; the test result is determined according to the comparison condition between the image processing result of the first target test image and the corresponding expected processing result in the target test program in the process of executing the target test program by the embedded equipment.
3. The video stream testing method according to claim 1, wherein the method further comprises: and in the execution process of the target test program, if a second target test image except the first target test image is required to test the embedded equipment, sending a video identification request of a second target video identification corresponding to the second target test image to the server.
4. The video stream testing method according to claim 1, wherein acquiring the first target test image required by the target test program in the target device folder based on the first target video identification and the target test image address, comprises:
Determining an image folder for storing the test image in the target equipment folder based on the target test image address;
and determining a target test image folder with the file identification consistent with the first target video identification based on the first target video identification in the image folder, and acquiring the first target test image in the target test image folder.
5. The video stream test processing method of the embedded equipment is characterized in that the video stream test processing method is applied to a server; the method comprises the following steps:
executing a test control program to acquire a first target video identification and remotely connecting with target embedded equipment; the target embedded device is an embedded device which needs to be tested by using a first target test image corresponding to the first target video identifier; the target equipment folder in the server is mounted on the target embedded equipment; the target equipment folder corresponds to a target test image address and a target test program address;
transmitting the first target video identification, the target test image address and the target test program address to the target embedded device; and the target embedded device acquires a target test program required by the test from the target device folder based on the target test program address, and acquires the first target test image from the target device folder based on the first target video identifier and the target test image address.
6. The video stream test processing method according to claim 5, wherein the server is deployed with a video identification message queue; the obtaining the first target video identifier includes:
and acquiring the first target video identification from the video identification message queue.
7. The video stream test processing method according to claim 6, further comprising:
receiving a video identification request sent by the target embedded equipment; wherein the video identification request includes a second target video identification in addition to the first target video identification;
reading the second target video identification in the video identification message queue under the condition that the second target video identification exists in the video identification message queue;
and sending the second target video identification and the target test image address to the target embedded device.
8. The video stream test processing method according to claim 5, further comprising:
receiving a test result sent by the target embedded equipment; the test result is determined according to the comparison condition between the image processing result of the first target test image and the corresponding expected processing result in the target test program in the process of executing the target test program by the embedded equipment.
9. The video stream test processing method according to claim 6, wherein the target device folder includes a video folder storing a plurality of test videos; the server is further provided with a video address message queue; the generation mode of the video identification message queue comprises the following steps:
executing a video address traversing program to traverse test video addresses of all test videos in the video folder and sending the test video addresses to the video address message queue;
executing a video processing program to read any one test video address in the video address message queue, performing frame extraction processing on a test video corresponding to the test video address to obtain a test image in a preset format, and then sending a video identifier corresponding to the test video to the video identifier message queue;
and repeating the process of executing the video processing program until the video identifications corresponding to all the test videos in the video folder are sent to the video identification message queue.
10. The video stream test processing method according to claim 9, wherein the target device folder includes an image folder storing a test image; after performing frame extraction processing on the test video corresponding to the test video address to obtain a test image in a preset format, the method further comprises the following steps:
And storing the test image into a test image folder in the image folder, and taking a video identifier corresponding to the test video as a file identifier of the test image folder.
11. The method for testing and processing a video stream according to claim 9, wherein the performing frame extraction processing on the test video corresponding to the test video address to obtain a test image in a preset format includes:
performing frame extraction processing on the test video based on a preset frame extraction frequency to obtain a plurality of intermediate images in an intermediate format;
and carrying out format conversion processing on the plurality of intermediate images to obtain a plurality of test images in the preset format.
12. The video stream testing system of the embedded device is characterized by comprising a server and the embedded device; the first target test image and the target test program required by the embedded device test are stored in a target device folder in the server; the target equipment folder is mounted on the embedded equipment; the server is remotely connected with the embedded equipment; the first target test image corresponds to a first target video identifier; the target equipment folder corresponds to a target test image address and a target test program address;
The server is used for sending the first target video identification, the target test image address and the target test program address to the embedded equipment;
the embedded device is used for acquiring a target test program address, a first target video identifier and a target test image address which are sent by the server, acquiring and executing the target test program in the target device folder based on the target test program address, and acquiring a first target test image required by the target test program in the target device folder based on the first target video identifier and the target test image address.
13. An embedded device comprising a processor, a memory, and a video stream test program stored in the memory and configured to be executed by the processor, the processor implementing the video stream test method of any one of claims 1 to 4 when the video stream test program is executed.
14. An electronic device comprising a processor, a memory, and a video stream test handler stored in the memory and configured to be executed by the processor, the processor implementing the video stream test handler method of any one of claims 5 to 11 when the video stream test handler is executed.
15. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform the video stream testing method according to any one of claims 1 to 4 and/or the video stream testing processing method according to any one of claims 5 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311030128.8A CN116743990B (en) | 2023-08-16 | 2023-08-16 | Video stream testing method and video stream testing processing method of embedded equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311030128.8A CN116743990B (en) | 2023-08-16 | 2023-08-16 | Video stream testing method and video stream testing processing method of embedded equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116743990A CN116743990A (en) | 2023-09-12 |
CN116743990B true CN116743990B (en) | 2023-10-27 |
Family
ID=87910082
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311030128.8A Active CN116743990B (en) | 2023-08-16 | 2023-08-16 | Video stream testing method and video stream testing processing method of embedded equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116743990B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000043880A1 (en) * | 1999-01-21 | 2000-07-27 | Bsquare Corporation | A system and method for testing and validating devices having an embedded operating system |
CN101459552A (en) * | 2007-12-12 | 2009-06-17 | 英业达股份有限公司 | Automatic testing method |
CN112463615A (en) * | 2020-12-03 | 2021-03-09 | 中国工商银行股份有限公司 | Application testing method and device, computing equipment and medium |
CN114253824A (en) * | 2020-09-22 | 2022-03-29 | Igg新加坡有限私人贸易公司 | Game compatibility testing method and system |
WO2022151853A1 (en) * | 2021-01-15 | 2022-07-21 | 苏州浪潮智能科技有限公司 | Method for switching operating system to execute test task, system and medium |
-
2023
- 2023-08-16 CN CN202311030128.8A patent/CN116743990B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000043880A1 (en) * | 1999-01-21 | 2000-07-27 | Bsquare Corporation | A system and method for testing and validating devices having an embedded operating system |
CN101459552A (en) * | 2007-12-12 | 2009-06-17 | 英业达股份有限公司 | Automatic testing method |
CN114253824A (en) * | 2020-09-22 | 2022-03-29 | Igg新加坡有限私人贸易公司 | Game compatibility testing method and system |
CN112463615A (en) * | 2020-12-03 | 2021-03-09 | 中国工商银行股份有限公司 | Application testing method and device, computing equipment and medium |
WO2022151853A1 (en) * | 2021-01-15 | 2022-07-21 | 苏州浪潮智能科技有限公司 | Method for switching operating system to execute test task, system and medium |
Also Published As
Publication number | Publication date |
---|---|
CN116743990A (en) | 2023-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112486629B (en) | Micro-service state detection method, micro-service state detection device, electronic equipment and storage medium | |
CN108347476B (en) | Cross-machine-room data synchronization method and device and server | |
CN114884838B (en) | Monitoring method and server of Kubernetes component | |
CN111506358B (en) | Method and device for updating container configuration | |
CN113326159B (en) | Method, apparatus, system and computer readable storage medium for fault injection | |
CN113094251B (en) | Method and device for testing embedded system, computer equipment and storage medium | |
CN110618853B (en) | Detection method, device and equipment for zombie container | |
KR20170133781A (en) | Apparatus and Method for Testing and diagnosing Virtual Infrastructure | |
CN116743990B (en) | Video stream testing method and video stream testing processing method of embedded equipment | |
CN101800672A (en) | Equipment detection method and equipment | |
JP2020144542A (en) | Defect reproduction support system and defect reproduction support method | |
CN112527468A (en) | Alliance chain one-stop type automatic deployment and test method and system | |
CN116546551B (en) | Wireless network equipment detection method, device and system | |
CN117472759A (en) | Interface testing methods, devices, storage media and computer equipment | |
CN109039770B (en) | A method, device and related equipment for refreshing server CMC | |
CN112261051B (en) | User registration method, device and system | |
CN112104513A (en) | Visual software load method, device, equipment and storage medium | |
CN113810241B (en) | Testing method and device for kubernetes cluster | |
CN118646595B (en) | Method, equipment and storage medium for repairing server to avoid secret mutual trust | |
CN117956263B (en) | Image processing method, device, computer equipment and medium for vehicle camera | |
CN116208476B (en) | Method and device for automatically configuring route by virtual machine, electronic equipment and storage medium | |
WO2022247422A1 (en) | Resource queue management interface verification method, electronic device, and storage medium | |
CN116647434A (en) | Operation and maintenance service deployment method and device and operation and maintenance system | |
CN116938781A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN117424834A (en) | Vehicle-mounted communication diagnosis method, device and system based on SOA and DDS |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |