Decoding box stability test method, program product, storage medium and electronic device
By using the test host and image acquisition device in the decoding box test, the abnormal situation of the displayed image is analyzed, and the problem of low efficiency in the stability testing of decoding box in the prior art is solved, and fast and accurate stability evaluation is achieved.
Patent Information
- Application Number
- CN202411863174.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, the decoding box stability testing is inefficient, making it difficult to effectively evaluate the stability of multiple startups and long-term display screens.
The test host drives the decoding box to be tested and acquires the screen of multiple sub-channels from the monitoring screen input unit. After the decoding box to be tested is decoded and spliced, it is output to the display device. The test host controls the image acquisition device to capture the display image of the display device, and determines whether there is an abnormality by analyzing the displayed image.
Improve the efficiency of decoding box stability testing, can quickly and accurately evaluate the stability of multiple startups and long-term display screens, reducing the dependence of manual inspections.
Smart Images

Figure CN119906803A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to computer-related fields, and in particular, to a decoding box stability testing method, a program product, a storage medium, and an electronic device. Background Art
[0002] The multi-channel decoding box receives the video signal of the security monitoring IPC (usually H.264, H.265 and other video encoding formats), completes the signal decoding of each sub-channel, extracts the image, splices the images of multiple sub-channels into a large picture, and outputs this large picture to the display. It is generally used in video surveillance centers in hotels, buildings and other places, so that supervisors can "see the sub-pictures of all IPC cameras on one screen."
[0003] For decoding box products, the core function is to display the picture. One of the stability indicators is "multiple startup image stability". The box is repeatedly started. After each startup, the box itself can normally complete the entire process of receiving multiple signals, decoding, splicing large images, and outputting to the display without error. The second stability indicator is "long-term display image stability". After the main program of the box is started, the output large image can continue to display normally without image interruption or some of the sub-images not being displayed. If this abnormal situation occurs within 7x24 hours, it is considered that the stability does not meet the standard.
[0004] The current test for "multiple startup image output stability" generally starts the main program repeatedly, and then determines whether the image output of each sub-channel is normal. If there is no abnormality in N tests, it is considered passed. If after one of the startups, the output large image has a few missing sub-images, or the entire large image has no image, it is considered a test failure. The stability test is inefficient.
[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present disclosure provide a decoding box stability testing method, a program product, a storage medium, and an electronic device to at least solve the technical problem of low efficiency of decoding box stability testing in the prior art.
[0007] According to one aspect of an embodiment of the present disclosure, a method for testing the stability of a decoding box is provided, comprising: a testing host drives the decoding box to be tested to start, and obtains images of multiple sub-paths from a monitoring image input unit; the decoding box to be tested completes decoding of the images of the multiple sub-paths internally, splices the images of the multiple sub-paths into a large image, and outputs it to a display device; the testing host controls an image acquisition device to capture a display image of the display device, and determines whether the display image of the display device is abnormal by analyzing the display image.
[0008] Optionally, the test host drives the decoding box to be tested to start, including: the test host sends a command to the program of the decoding box to be tested through the serial port to control the program of the decoding box to be tested to restart.
[0009] Optionally, the test host drives the decoding box to be tested to start, including: the test host drives a relay to power off the decoding box to be tested, and then powers on to start a program of the decoding box to be tested.
[0010] Optionally, in the case of starting the decoding box to be tested multiple times, the first process of the test host drives the decoding box to be tested to start; when the decoding box to be tested is started, the second process of the test host controls the image acquisition device to shoot the display image displayed by the display device; after shooting for a preset time, the third process of the test host captures the display image from the captured display image sequence, and determines whether there is an abnormality in the display image of the display device by analyzing the display image.
[0011] Optionally, the method further includes: when the shooting duration reaches a target duration, the second process controls the image acquisition device to end shooting.
[0012] Optionally, when no problem is found in the display image of the display device during an analysis, the first process drives the decoding box to be tested to start and continue the next test; when it is determined in an analysis that there is an abnormality in the display image of the display device, the first process is terminated.
[0013] Optionally, determining whether there is an abnormality in the displayed image of the display device includes: converting the displayed image into a grayscale image; binarizing the grayscale image to obtain a binary image; dividing the binary image into a plurality of sub-images according to pre-marked position information, calculating a grayscale mean for each sub-image, each sub-image corresponding to a sub-path screen; comparing the grayscale mean of each sub-image with a preset threshold, and if at least one sub-image has a grayscale mean lower than the preset threshold, determining that there is an abnormality in the displayed image of the display device.
[0014] According to another aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, which implements the above-mentioned method for testing the stability of a decoding box when executed by a processor.
[0015] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned decoding box stability testing method when running.
[0016] According to another aspect of an embodiment of the present disclosure, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the above-mentioned decoding box stability testing method.
[0017] In the disclosed embodiment, the test host drives the decoding box to be tested to start, and obtains the images of multiple sub-channels from the monitoring image input unit; the decoding box to be tested completes decoding of the images of multiple sub-channels internally, splices the images of multiple sub-channels into a large image, and outputs it to the display device; the test host controls the image acquisition device to capture the display image of the display device, and determines whether the display image of the display device is abnormal by analyzing the display image. This solves the technical problem of low efficiency of stability testing of decoding boxes in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:
[0019] Figure 1 is a hardware structure block diagram of a mobile terminal according to an optional decoding box stability testing method of an embodiment of the present disclosure;
[0020] Figure 2 is a flow chart of an optional method for testing the stability of a decoding box according to an embodiment of the present disclosure;
[0021] Figure 3 is a hardware connection diagram of an optional test method for determining display stability of a multi-channel decoding box according to an embodiment of the present disclosure;
[0022] Figure 4 is a schematic diagram of an image inspection process collaboration method according to an embodiment of the present disclosure;
[0023] Figure 5 is a schematic diagram of converting an optional camera image into a grayscale image according to an embodiment of the present disclosure;
[0024] Figure 6is an optional grayscale according to an embodiment of the present disclosure Figure 2 Schematic diagram of the image after valueization. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present disclosure, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present disclosure.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a sequence of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0027] The decoding box stability test method embodiment provided in the present disclosure can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for testing the stability of a decoding box according to an embodiment of the present disclosure. Figure 1 As shown, the mobile terminal 10 may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the test method for the stability of the decoding box in the embodiment of the present disclosure. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0029] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0030] In this embodiment, a method for testing the stability of a decoding box is also provided. Figure 2 is a flow chart of a method for testing the stability of a decoding box according to an embodiment of the present disclosure, such as Figure 2 As shown, the testing method flow of the decoding box stability includes the following steps:
[0031] Step S202: the test host drives the decoding box to be tested to start, and obtains the images of multiple sub-channels from the monitoring image input unit.
[0032] Step S204: the decoding box to be tested decodes the images of the multiple sub-channels internally, splices the images of the multiple sub-channels into a large image, and outputs it to a display device.
[0033] Step S206 , the test host controls the image acquisition device to capture the display image of the display device, and determines whether there is any abnormality in the display image of the display device by analyzing the display image.
[0034] In this embodiment, the decoding box stability test may include but is not limited to application in: all products involving image encoding and decoding, streaming media imaging, and products with screens, including various monitoring-type IPC network cameras, mobile phones, tablet computers, laptops, portable displays, central control devices with screens and other electronic devices, all of which may have problems with output image stability.
[0035] Through the embodiments provided by the present disclosure, the test host drives the decoding box to be tested to start, and obtains the pictures of multiple sub-channels from the monitoring picture input unit; the decoding box to be tested completes decoding of the pictures of multiple sub-channels internally, splices the pictures of multiple sub-channels into a large picture, and outputs it to the display device; the test host controls the image acquisition device to capture the display image of the display device, and determines whether the display image of the display device is abnormal by analyzing the display image, and ends the test if the image displayed by the display device is abnormal. This solves the technical problem of low efficiency of stability testing of decoding boxes in the prior art.
[0036] Optionally, the test host drives the decoding box to be tested to start, which may include: the test host sends a command to the program of the decoding box to be tested through the serial port to control the program of the decoding box to be tested to restart.
[0037] In this embodiment, the test host controls the decoding box to be tested through the serial port, and controls the power-off and start-up of the decoding box to be tested through the relay. By sending commands through the export, instructions can be sent to the decoding box to be tested quickly and accurately.
[0038] Among them, in this embodiment, a relay is introduced in the stability test. The device under test can be controlled. The restart program can be completed by command without powering off, or the box application can be started by driving the relay to power off the device first, and then power on to start the main program.
[0039] Optionally, the test host drives the decoding box to be tested to start, which may include: the test host drives a relay to power off the decoding box to be tested, and then powers on to start the program of the decoding box to be tested.
[0040] In this embodiment, each time the decoding box program to be tested is started, the restart program is completed by command without powering off, or the decoding box to be tested is powered off by driving a relay, and then powered on to start the main program to start the decoding box test.
[0041] Optionally, in the case of starting the decoding box to be tested multiple times, the first process of the test host drives the decoding box to be tested to start; when the decoding box to be tested is started, the second process of the test host controls the image acquisition device to shoot the display image displayed by the display device; after shooting for a preset time, the third process of the test host captures the display image from the captured display image sequence, and determines whether there is an abnormality in the display image of the display device by analyzing the display image.
[0042] In this embodiment, for multiple startup tests, three processes can be executed. No invalid waiting is done between the processes, thereby compressing the single test cycle and obtaining a large number of test results in a short time, thereby improving output efficiency.
[0043] Optionally, the above method may further include: when the shooting duration reaches the target duration, the second process controls the image acquisition device to end shooting.
[0044] Optionally, the above method may also include: if no problem is found in the display image of the display device in one analysis, the first process drives the decoding box to be tested to start to continue the next test; if it is determined in one analysis that there is an abnormality in the display image of the display device, the first process is terminated.
[0045] Optionally, determining whether there is an abnormality in a displayed image of a display device may include: converting the displayed image into a grayscale image; binarizing the grayscale image to obtain a binary image; dividing the binary image into a plurality of sub-images according to pre-marked position information, calculating a grayscale mean for each sub-image, each sub-image corresponding to a sub-path screen; comparing the grayscale mean of each sub-image with a preset threshold, and if the grayscale mean of at least one sub-image is lower than the preset threshold, determining that there is an abnormality in the displayed image of the display device.
[0046] In this embodiment, the final screen display is analyzed and judged, the image is first grayed, then binarized, and finally compared with the empirical value to draw a conclusion. This avoids the problem that only checking the log may miss the log is normal but the picture is abnormal. The algorithm has low complexity, low cost and high accuracy. The judgment logic of whether the output image of the decoding box is abnormal is solidified in the script. Whether it is multiple startup tests or long-term tests, it can automatically determine whether the image is abnormal, without relying on manual inspection and manual analysis of video recordings, freeing up human resources.
[0047] As an embodiment, the present disclosure also provides a test method for determining the display stability of a multi-channel decoding box. In order to automatically cover the test of "multiple startup image stability" and "long-term display image stability", such as Figure 3 As shown in the figure, the hardware connection diagram of the test method for determining the display stability of the multi-channel decoding box is shown in the figure. Figure 3As shown, it includes a network connected to multiple IPCs, a decoding box product to be tested, a monitor connected to the decoding box via an HDMI interface, the monitor is used to display the spliced large image output by the box, a test host connected to the decoding box, and a camera facing the monitor is connected to the test host to monitor whether the image output each time the test is normal.
[0048] The monitoring screen input unit refers to multiple IPC devices that input the decoding box to be tested through the network.
[0049] Device under test, decoding box under test.
[0050] Test the host, control the decoding box through the serial port, and control the power-off and startup of the box through the relay.
[0051] The display device receives the final output image from the decoding box.
[0052] The camera that monitors the display device is connected to the test host to determine whether the image output is abnormal.
[0053] When the test starts, the test host drives the device box to start up and obtains multiple sub-channel images from the monitoring screen input unit. The device box decodes the multiple sub-channel images internally, splices the multiple sub-channel images into a large image, and outputs it to the display device. The test host then takes a picture from the camera of the monitoring display device, and determines whether the image displayed by the display device is abnormal by analyzing the picture.
[0054] It should be noted that what is meant here is that the screen becomes black due to the failure of image output or a certain sub-screen has no output content and the sub-screen appears black.
[0055] The specific implementation process is as follows: the test starts after the connection is completed: the test host sends a command to trigger the decoding box product to be tested to start the main program, and then the decoding box product to be tested will automatically complete the actions of receiving multiple IPC signals, decoding, splicing out a large image, and outputting the image to the display.
[0056] After waiting for a few seconds (leaving 3 seconds for the box to be tested to output the image), the test host sends a command to the camera. After receiving the command, the camera connected to the test host starts recording the display in front of it. During the recording process, one frame is captured (i.e., a picture containing the display image).
[0057] The test host captures the screen on the display from the original picture (the captured coordinates need to be calibrated in advance, and can be used all the time after calibration);
[0058] Convert the screenshot to a grayscale image; perform image binarization on the grayscale image (for each pixel, if its grayscale value is less than the threshold value 127, the grayscale value of the pixel in the binarized image will be set to 0; if its grayscale value is greater than or equal to 127, its grayscale value is set to 255) to obtain a binarized image. Extract multiple sub-images from the binarized image one by one according to multiple pre-calibrated rectangular frames. Assuming that the large image is composed of 9 sub-images, 9 sub-images are obtained.
[0059] Calculate the "average grayscale value of pixels" in each sub-image; determine whether this "average grayscale value of pixels" is greater than the empirical value or less than the threshold compared with the predetermined threshold. If it is greater than the threshold, it means that the sub-image is not black; if it is less than the threshold, it means that the sub-image is black; if there is a black image in the sub-image, it is considered that an abnormality has occurred and the main program is terminated. If not found, continue.
[0060] In this embodiment, a relay is used to cover two test scenarios. Each time the box program is started, you can choose to restart the program through a command without powering off to start the test, or you can choose to drive the relay to power off the device first, and then power on to start the main program to start the box application. This covers the test of two customer usage scenarios.
[0061] In this embodiment, for multiple startup tests, such as Figure 4 As shown in the figure, the image inspection process collaborative method is a schematic diagram. In order to obtain a large number of test results within a limited time, it is necessary to compress the time consumption of each cycle. A cycle is the process from starting the box program to output the image to analyzing the image to check whether there is any abnormality.
[0062] In this embodiment, three processes work together. The main process (first process) is responsible for controlling the startup of the box program. After the first process is started, the video recording process (second process) is notified to start recording. After about 10 seconds of recording, the image analysis process (third process) is notified to capture the video. Figure 1 The image content is analyzed by the second process, and then the second process continues to record until about 25 seconds have passed. After receiving the analysis request, the third process will start the analysis and then give a judgment on whether an abnormality has occurred. The three processes are executed asynchronously. If the third process does not find that there is a problem of one less channel in one analysis, the main process will be notified to continue the next test. If an abnormality is found, the main process will be notified to stop and preserve the on-site environment. Such a test cycle is about 40 seconds, which shortens the test time.
[0063] In this embodiment, the final output image can be directly analyzed, avoiding the situation where problems may be missed by indirect behaviors such as analyzing logs. In order to achieve the purpose of analyzing images and checking whether there is a loss of one channel of images, the following algorithm is designed:
[0064] a. Take a picture with the camera and get a color image;
[0065] b. Convert color images to grayscale images, such as Figure 5 As shown, a schematic diagram of converting a camera image into a grayscale image;
[0066] c. Binarize the grayscale image to obtain a binary image, such as Figure 6 As shown, grayscale Figure 2 Schematic diagram of the image after value conversion;
[0067] d. According to the pre-marked location information, the large image is divided into small images, and the grayscale mean of each small image is calculated and compared with the empirical threshold. If the mean is lower than the threshold, it means that this area is very dark. That is, the sub-path without the image is found, and the anomaly is discovered.
[0068] It should be noted that when it is necessary to test the "stability of multiple-startup image output", the test process is to repeat the above test process thousands of times until a product problem occurs and the test program is terminated, or the test passes when the predetermined number of times is reached without any abnormality.
[0069] It should also be noted that when the "long-term display image stability" needs to be tested, the environment is set up the same as in this embodiment. The test process is that after the test is started, the image abnormality analysis is looped every few seconds until the test program is terminated due to product problems, or no abnormality is found for 7x24 hours.
[0070] Through this embodiment, the following benefits are achieved during the test process: no human judgment is required, and the final product image effect is automatically determined by using fixed code, so that thousands of tests can be automatically performed. Efficiency is improved. The situation where only checking the logs will miss the situation where the logs are normal but the box image is abnormal is avoided. The time consumption of a single test is shortened, and a large number of test results are obtained in a short time, which enhances the persuasiveness of the test results.
[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0072] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0073] An embodiment of the present disclosure further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0074] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0075] S1, the test host drives the decoding box to be tested to start, and obtains the images of multiple sub-channels from the monitoring image input unit.
[0076] S2, the decoding box to be tested decodes the images of multiple sub-channels internally, splices the images of multiple sub-channels into a large image, and outputs it to the display device.
[0077] S3, the test host controls the image acquisition device to capture the display image of the display device, and determines whether there is any abnormality in the display image of the display device by analyzing the display image.
[0078] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0079] An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0080] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0081] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0082] S1, the test host drives the decoding box to be tested to start, and obtains the images of multiple sub-channels from the monitoring image input unit.
[0083] S2, the decoding box to be tested decodes the images of multiple sub-channels internally, splices the images of multiple sub-channels into a large image, and outputs it to the display device.
[0084] S3, the test host controls the image acquisition device to capture the display image of the display device, and determines whether there is any abnormality in the display image of the display device by analyzing the display image.
[0085] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0086] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present disclosure can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any specific combination of hardware and software.
[0087] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for testing the stability of a decoding box, characterized in that: include: The test host drives the decoding box to be tested to start, and obtains the images of multiple sub-channels from the monitoring image input unit; The decoding box to be tested decodes the images of the multiple sub-channels internally, splices the images of the multiple sub-channels into a large image, and outputs the large image to a display device; The test host controls the image acquisition device to capture the display image of the display device, and determines whether there is an abnormality in the display image of the display device by analyzing the display image.
2. The method according to claim 1, characterized in that: The test host drives the decoding box to be tested to start, including: The test host sends a command to the program of the decoding box to be tested through the serial port to control the program of the decoding box to be tested to restart.
3. The method according to claim 1, characterized in that: The test host drives the decoding box to be tested to start, including: The test host drives the relay to power off the decoding box to be tested, and then powers on to start the program of the decoding box to be tested.
4. The method according to claim 1, characterized in that In the case of starting the decoding box to be tested multiple times, the first process of the test host drives the decoding box to be tested to start; When the decoding box to be tested is started, the second process of the test host controls the image acquisition device to capture the display image displayed by the display device; After the preset shooting time, the third process of the test host captures a display image from the displayed image sequence obtained by shooting, and determines whether there is an abnormality in the display image of the display device by analyzing the display image.
5. The method according to claim 4, characterized in that The method further includes: when the shooting duration reaches a target duration, the second process controls the image acquisition device to end shooting.
6. The method according to claim 4, characterized in that If no problem is found in the display image of the display device during one analysis, the first process drives the decoding box to be tested to start and continue the next test; When it is determined in an analysis that a display image of the display device is abnormal, the first process is terminated.
7. The method according to claim 1, characterized in that The determining whether there is an abnormality in the display image of the display device comprises: Converting the displayed image into a grayscale image; performing binarization processing on the grayscale image to obtain a binary image; According to the pre-marked position information, the binary image is divided into a plurality of sub-images, the grayscale mean of each sub-image is calculated, and each sub-image corresponds to a sub-path screen; The grayscale mean of each sub-image is compared with a preset threshold value respectively. If the grayscale mean of at least one sub-image is lower than the preset threshold value, it is determined that the displayed image of the display device is abnormal.
8. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.