Video playback test method, device and system

By acquiring video images in real time and performing RGB distribution histogram preprocessing, the video playback abnormal status is identified and classified, which solves the problems of low efficiency and poor reliability of video playback testing in the existing technology, and achieves more efficient and reliable video testing.

CN114630112BActive Publication Date: 2024-10-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210268537.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2024-10-15
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

In the existing technology, video playback testing has low efficiency and poor reliability, resulting in low reliability of test results and mechanical operation, making it easy to miss.

Method used

By acquiring video images in real time and performing RGB distribution histogram preprocessing, it can determine whether video playback has problems such as freezing, freezes, black screens, blurred screens, and playback errors based on preset conditions, and use different image preprocessing algorithms to identify and classify abnormal states.

Benefits of technology

It improves the reliability and efficiency of video testing, can accurately determine freezing and freezing problems during video playback, and sets different preset conditions for different types of playback problems, enhancing the comprehensiveness and accuracy of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114630112B_ABST
    Figure CN114630112B_ABST
Patent Text Reader

Abstract

The present invention proposes a video playback test method, comprising: acquiring in real time a video image of a complete interface played on a display screen of a test machine to be tested; preprocessing the acquired original images of the complete interface video respectively, and judging whether the test machine to be tested has a first type of playback problem according to an RGB distribution histogram after preprocessing of the first image and a preset condition; if the first preset condition is met, then there is a playback freeze in the first type of playback problem, and the first preset condition is that the number of times that the RGB distribution histogram similarity of the corresponding original image of the interface video in any time period within a first preset time period is greater than a preset number threshold is greater than a preset number threshold; if the second preset condition is met, then there is a playback freeze in the first type of playback problem. The present invention also proposes a video playback test device and system, which effectively improves the reliability and efficiency of video testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video testing, and in particular to a video playback testing method, device and system. Background Art

[0002] Visual inspection technology is a method of measuring, identifying and judging images by machines instead of human eyes. The state information of the entity is first converted into an image signal through the lighting system, acquisition system and analysis system, and then converted into a digital signal after analysis and processing by a certain algorithm. According to the lighting system, detection content and detection technology, it can be divided into a variety of targeted and dedicated visual inspection systems. In recent years, due to the popularization and development of this technology in various fields, its equipment cost has gradually decreased, and the acquisition means and processing and analysis technologies suitable for different detection environments are also very mature. The design can completely avoid the situation of insufficient functions or overflow of functions.

[0003] In SIT testing (System Integration Testing) and software testing, it is often necessary to play high-quality videos for a long time and detect whether there are any problems with the playback. In the prior art, the test content is generally completed manually, that is, manually playing video files and manually monitoring the playback status. However, its reliability and accuracy are often poor, the credibility of the test results is low, and the operation of this test content is relatively mechanical, which wastes test resources and is prone to omissions. Summary of the invention

[0004] In order to solve the problems existing in the prior art, the present invention innovatively proposes a video playback test method, device and system, which effectively solves the problems of low efficiency and poor reliability of video playback test in the prior art, and effectively improves the reliability and efficiency of video testing.

[0005] A first aspect of the present invention provides a video playback test method, comprising:

[0006] Real-time acquisition of the video image of the complete interface played on the display screen of the test machine to be tested;

[0007] The obtained original images of the complete interface video are preprocessed respectively, wherein the preprocessing includes a first image preprocessing, and the first image preprocessing is to obtain an RGB distribution histogram corresponding to the original image of the complete interface video;

[0008] According to the RGB distribution histogram after preprocessing of the first image and the preset conditions, determine whether the test machine to be tested has a first type of playback problem, wherein the first type of playback problem includes playback stuttering and playback freeze problems, and the preset conditions include a first preset condition and a second preset condition. If the first preset condition is met, playback stuttering in the first type of playback problem exists, and the first preset condition is that in any time period within the first preset time period, the number of times the similarity of the RGB distribution histogram of the original image of the corresponding interface video is greater than a preset similarity threshold is greater than a preset number threshold; if the second preset condition is met, playback freeze in the first type of playback problem exists.

[0009] Optionally, the second preset condition is that the first preset condition is satisfied, and the number of times that the RGB distribution histogram similarity of the original image of the corresponding interface video is greater than a preset similarity threshold in any time period within the second preset time period is greater than a preset number threshold, the second preset time period is located after the first preset time period, is continuous with the first preset time period, and the duration of the second preset time period is greater than the duration of the first preset time period.

[0010] Optionally, the second preset condition is that the first preset condition is satisfied, and the RGB distribution histograms of the corresponding original images of the interface video in any two time periods within the second preset time period are the same, the second preset time period is located after the first preset time period, is continuous with the first preset time period, and the duration of the second preset time period is greater than the duration of the first preset time period.

[0011] Optionally, the preprocessing also includes second image preprocessing and third image preprocessing. The second image preprocessing is to perform grayscale processing and OSTU algorithm processing on the original image of the complete video of the interface in sequence; the third image preprocessing is to perform binarization processing on the original image of the complete video of the interface.

[0012] Furthermore, it also includes:

[0013] Determine whether the complete video image of the interface after the first image preprocessing is consistent with the complete video image of the interface after the second image preprocessing. If they are consistent, there is a second type of playback problem. If they are inconsistent, there is no second type of playback problem, wherein the second type of playback problem includes a black screen.

[0014] Optionally, the preprocessing further includes fourth image preprocessing, and the fourth image preprocessing is Laplacian operator filtering processing.

[0015] Furthermore, it also includes:

[0016] Determine whether the variance between pixels in the complete video image of the interface after the fourth image preprocessing is less than a preset variance threshold. If so, there is a third type of playback problem. If not, there is no third type of playback problem, wherein the third type of playback problem includes a flowery screen.

[0017] Optionally, it also includes:

[0018] It is detected in real time whether there is a square structure in the original image of the complete video of the interface. If there is a square structure, there is a fourth type of playback problem, wherein the fourth type of playback problem includes a playback error.

[0019] A second aspect of the present invention provides a video playback test device, comprising:

[0020] An acquisition module acquires in real time the video image of the complete interface played by the display screen of the test machine to be tested;

[0021] A preprocessing module preprocesses the acquired original images of the complete interface video respectively, wherein the preprocessing includes a first image preprocessing, and the first image preprocessing is to obtain an RGB distribution histogram corresponding to the original image of the complete interface video;

[0022] The judgment module judges whether the test machine to be tested has a first type of playback problem based on the RGB distribution histogram after preprocessing of the first image and the preset conditions, wherein the first type of playback problem includes playback stuttering and playback freeze problems, and the preset conditions include a first preset condition and a second preset condition. If the first preset condition is met, playback stuttering in the first type of playback problem exists, and the first preset condition is that in any time period within a first preset time period, the number of times that the similarity of the RGB distribution histogram of the original image of the corresponding interface video is greater than a preset similarity threshold is greater than a preset number threshold; if the second preset condition is met, playback freeze in the first type of playback problem exists.

[0023] The third aspect of the present invention provides a video playback test system, comprising: an image acquisition unit and an image processing unit, wherein the image acquisition unit is used to acquire in real time a video image of a complete interface played on a display screen of a test machine to be tested, and send the video image of the complete interface played on the display screen of the test machine to be tested acquired in real time to the image processing unit; the image processing unit is used to receive the video image of the complete interface played on the display screen of the test machine to be tested acquired in real time sent by the image acquisition unit, and pre-process the acquired original image of the complete video of the interface, wherein the pre-processing comprises a first image pre-processing, and the first image pre-processing is to obtain the RG corresponding to the original image of the complete video of the interface B distribution histogram; according to the RGB distribution histogram after preprocessing of the first image and the preset conditions, determine whether the test machine to be tested has the first type of playback problem, wherein the first type of playback problem includes playback stuttering and playback freeze problems, and the preset conditions include a first preset condition and a second preset condition. If the first preset condition is met, then the first type of playback problem, which is playback stuttering, exists. The first preset condition is that in any time period within the first preset time period, the number of times that the RGB distribution histogram similarity of the original image of the corresponding interface video is greater than a preset similarity threshold is greater than a preset number threshold; if the second preset condition is met, then the first type of playback problem, which is playback freeze, exists.

[0024] The technical solution adopted by the present invention includes the following technical effects:

[0025] 1. The present invention determines whether the test machine to be tested has a first type of playback problem based on the RGB distribution histogram after preprocessing of the first image and preset conditions. For common playback problems, different algorithms can be designed in the subsequent image processing process to identify and classify abnormal conditions that occur during the playback process, effectively solving the problems of low efficiency and poor reliability of video playback testing in the prior art, and effectively improving the reliability and efficiency of video testing.

[0026] 2. In the technical solution of the present invention, if the first preset condition is met, the first type of playback problem, which is playback freeze, exists; if the second preset condition is met, the first type of playback problem, which is playback freeze, exists; the second type of playback problem, the third type of playback problem, and the fourth type of playback problem can also be tested. Different preset conditions are set for different types of playback problems, which facilitates the analysis of video images after different image preprocessing to determine whether the corresponding playback problem occurs, which not only improves the efficiency of the video playback test, but also further improves the reliability of the video test.

[0027] 3. This solution can not only determine whether there is a freeze problem during video playback, but also determine whether there is a freeze problem, which makes it easier to understand the video playback status of the test machine to be tested based on the test results, thereby improving the comprehensiveness of the video test.

[0028] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0030] Figure 1 Schematic diagram of the process of the method of Example 1 in the scheme of the present invention (I);

[0031] Figure 2 Schematic diagram of the process of the method of Example 1 in the scheme of the present invention (II);

[0032] Figure 3 Schematic diagram of the process of the method of Example 1 in the scheme of the present invention (III);

[0033] Figure 4 Schematic diagram (IV) of the process of the method of Example 1 in the scheme of the present invention;

[0034] Figure 5 This is a schematic diagram of the structure of the device in Example 2 of the present invention;

[0035] Figure 6 This is a schematic diagram of the structure of the system of Example 3 in the solution of the present invention. DETAILED DESCRIPTION

[0036] In order to clearly illustrate the technical features of the present solution, the present invention is described in detail below through specific implementation methods and in conjunction with the accompanying drawings. The disclosure below provides many different embodiments or examples for realizing different structures of the present invention. In order to simplify the disclosure of the present invention, the components and settings of specific examples are described below. In addition, the present invention may repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. It should be noted that the components illustrated in the accompanying drawings are not necessarily drawn to scale. The present invention omits the description of known components and processing techniques and processes to avoid unnecessary limitations on the present invention.

[0037] Embodiment 1

[0038] like Figure 1 As shown, the present invention provides a video playback test method, comprising:

[0039] S1, real-time acquisition of a video image of a complete interface played on the display screen of the test machine to be tested;

[0040] S2, preprocessing the acquired original images of the complete interface video respectively, wherein the preprocessing includes a first image preprocessing, and the first image preprocessing is to obtain an RGB distribution histogram corresponding to the original image of the complete interface video;

[0041] S3, determining whether the RGB distribution histogram after the first image preprocessing meets the first preset condition, if the determination result is yes, executing step S4; if the determination result is no, executing step S5;

[0042] S4, the test machine to be tested has a playback jamming problem in the first type of playback problem;

[0043] S5: The test machine to be tested does not have the playback jamming problem in the first type of playback problem;

[0044] S6, determining whether the RGB distribution histogram after the preprocessing of the first image meets the second preset condition, if the determination result is yes, executing step S7; if the determination result is no, executing step S8;

[0045] S7, the test machine to be tested has a playback stuck problem in the first type of playback problem;

[0046] S8: The test machine to be tested does not have the playback stuck problem in the first type of playback problem.

[0047] Among them, steps S3-S5 and steps S6-S8 can be executed in parallel or sequentially, and the present invention does not limit this.

[0048] In step S1, first, a video image of the complete interface played on the display screen of the test machine to be tested is acquired in real time, so that the video being played on the display screen of the test machine to be tested can be completely captured (the playback process is complete, and each frame of the image interface during the playback process is complete), and a lower frame rate is used to reduce the impact of shooting the screen.

[0049] In steps S2-S8, the obtained original images of the complete interface video are preprocessed respectively, wherein the preprocessing includes a first image preprocessing, and the first image preprocessing is to obtain an RGB distribution histogram corresponding to the original image of the complete interface video; the preset conditions include a first preset condition and a second preset condition, and if the first preset condition is met, there is a first type of playback problem in which playback freezes, and the first preset condition is that in any time period within a first preset time period, the number of times that the similarity of the RGB distribution histogram of the corresponding original image of the interface video is greater than a preset similarity threshold is greater than a preset number threshold; if the second preset condition is met, there is a first type of playback problem in which playback freezes.

[0050] Furthermore, the second preset condition may be that the first preset condition is satisfied, and the number of times that the RGB distribution histogram similarity of the original image of the corresponding interface video is greater than the preset similarity threshold in any time period within the second preset time period is greater than the preset number threshold, the second preset time period is located after the first preset time period, is continuous with the first preset time period, and the duration of the second preset time period is greater than the duration of the first preset time period. Specifically, the number of times that the RGB (RGB color mode, i.e., RGB color system, representing the colors of the three channels of red, green, and blue) distribution histogram similarity of the original image of the corresponding interface video is greater than the preset similarity threshold in any time period within the first preset time period is greater than the preset number threshold. Among them, the similarity of the RGB distribution histograms of the original images of the corresponding interface videos at different times can be judged by the distance of the RGB distribution histograms, that is, the distance of the same color channel (R or G or B) in different RGB distribution histograms is used to characterize the similarity. The closer the distance, the higher the corresponding similarity. The preset similarity threshold can correspond to the distance threshold of the same color channel (R or G or B) in different RGB distribution histograms; that is, the distance of all color channels (R, G, B) in different RGB distribution histograms is less than the preset distance threshold, and it can be judged that the similarity of the RGB distribution histogram of the image is greater than the preset similarity threshold. If the number or frequency of highly similar RGB distribution histograms (the similarity is greater than the preset similarity threshold) in any time period within the first preset time period is greater than the preset number threshold, that is, the high density of highly similar RGB distribution histograms in a certain time period within the first preset time period, the first preset condition is met. When the video freezes or freezes, it may be due to insufficient memory frequency and the asynchronous decoding, playback, and parsing modules of the player. When this phenomenon occurs, the characteristics of the image are more obvious.

[0051] The analysis and judgment of the freezing phenomenon is as follows: on the basis of the freezing judgment time a (the first preset time period), the freezing judgment time b (the second preset time period) is added, and the same comparison and analysis is performed within time b. Time b is longer than time a. When the freezing analysis results corresponding to time a and time b are repeated, it can be judged that the video has an irreversible freezing condition. When the freezing analysis results corresponding to time a and time b are not repeated, it is judged that a freezing phenomenon has occurred.

[0052] Furthermore, the second preset condition may also be that the first preset condition is satisfied, and the RGB distribution histograms of the original images of the corresponding interface video in any two time periods within the second preset time period are the same, the second preset time period is located after the first preset time period, is continuous with the first preset time period, and the duration of the second preset time period is greater than the duration of the first preset time period. That is, if the RGB distribution histograms of the corresponding images in different time periods within time b are the same, it can also be determined that the video is irreversibly stuck.

[0053] Furthermore, the preprocessing also includes a second image preprocessing and a third image preprocessing. The second image preprocessing is to perform grayscale processing and OSTU algorithm (maximum inter-class variance method or Otsu algorithm, which is an algorithm to determine the threshold, and the image is fixed threshold binarization performed with this threshold, and the inter-class variance is the largest. It divides the image into background and foreground parts according to the grayscale characteristics of the image, and the segmentation with the largest inter-class variance means the smallest probability of misclassification) processing on the original image of the complete video of the interface in sequence; the third image preprocessing is to perform binarization processing on the original image of the complete video of the interface.

[0054] Furthermore, if Figure 2 As shown, the present invention also provides a video playback test method, which also includes:

[0055] S9, determining whether the complete video image of the interface after the first image preprocessing is consistent with the complete video image of the interface after the second image preprocessing, if the determination result is yes, executing step S10, if the determination result is no, executing step S11;

[0056] S10, there is a second type of playback problem; wherein the second type of playback problem includes a black screen;

[0057] S11, there is no second type of playback problem.

[0058] Among them, in steps S9-S11, when a black screen appears in the video, it may be due to file damage or hardware failure.

[0059] Furthermore, the preprocessing may also include a fourth image preprocessing, and the fourth image preprocessing is a Laplacian operator filtering process.

[0060] Furthermore, if Figure 3 As shown, the present invention also provides a video playback test method, which also includes:

[0061] S12, determining whether the variance between pixels in the complete video image of the interface after the fourth image preprocessing is less than a preset variance threshold, if the determination result is yes, executing step S13, if the determination result is no, executing step S14;

[0062] S13, there is a third type of playback problem; wherein the second type of playback problem includes a distorted screen;

[0063] S14, then there is no third type of playback problem.

[0064] Among them, in steps S12-S14, when the video playback has a screen distortion problem, it may be due to damage to the video file itself, damage to the header information; or file format, player decoding problems; or hardware problems. For such complex situations, complete records need to be kept for subsequent analysis. The screen distortion phenomenon can be calculated by filtering the image with the Laplace operator and calculating the variance of the pixels in the image frame, and setting a threshold to determine whether the screen distortion phenomenon occurs.

[0065] Furthermore, if Figure 4 As shown, the present invention also provides a video playback test method, which also includes:

[0066] S15, detecting in real time whether there is a square structure in the original image of the complete video of the interface, if the judgment result is yes, executing step S16, if the judgment result is no, executing step S17;

[0067] S16, there is a fourth type of playback problem; wherein the fourth type of playback problem includes a playback error;

[0068] S17, then there is no fourth type of playback problem.

[0069] In steps S15-S17, when a playback error occurs, it is searched whether there is a structure with similar features to a pop-up box in the screen, and a square structure with similar features is detected. If one is detected, it can be determined as a playback error.

[0070] Different types of playback problems and different playback problems of the same type can be processed and judged sequentially or in parallel, and can be flexibly adjusted according to the image processing speed. The present invention does not make any limitation here.

[0071] The present invention determines whether the test machine to be tested has a first type of playback problem based on the RGB distribution histogram after preprocessing of the first image and preset conditions. For common playback problems, different algorithms can be designed in the subsequent image processing process to identify and classify abnormal conditions occurring in the playback process, thereby effectively solving the problems of low efficiency and poor reliability of video playback testing in the prior art, and effectively improving the reliability and efficiency of video testing.

[0072] In the technical solution of the present invention, if the first preset condition is met, the playback freeze in the first type of playback problem exists; if the second preset condition is met, the playback freeze in the first type of playback problem exists; the second type of playback problem, the third type of playback problem, and the fourth type of playback problem can also be tested. Different preset conditions are set for different types of playback problems, which is convenient for judging whether the corresponding playback problem occurs based on the analysis of the video image after different image preprocessing, which not only improves the efficiency of the video playback test, but also further improves the reliability of the video test.

[0073] This solution can not only determine whether there is a freeze problem during video playback, but also determine whether there is a freeze problem, which makes it easier to understand the video playback status of the test machine to be tested based on the test results, thereby improving the comprehensiveness of the video test.

[0074] Embodiment 2

[0075] like Figure 5 As shown, the technical solution of the present invention also provides a video playback test device, comprising:

[0076] An acquisition module 101 acquires in real time a video image of a complete interface played on a display screen of a test machine to be tested;

[0077] The preprocessing module 102 preprocesses the acquired original images of the complete interface video respectively, wherein the preprocessing includes a first image preprocessing, and the first image preprocessing is to obtain an RGB distribution histogram corresponding to the original image of the complete interface video;

[0078] The judgment module 103 judges whether the test machine to be tested has a first type of playback problem based on the RGB distribution histogram after preprocessing of the first image and the preset conditions, wherein the first type of playback problem includes playback stuttering and playback freeze problems, and the preset conditions include a first preset condition and a second preset condition. If the first preset condition is met, playback stuttering in the first type of playback problem exists, and the first preset condition is that in any time period within a first preset time period, the number of times that the similarity of the RGB distribution histogram of the original image of the corresponding interface video is greater than a preset similarity threshold is greater than a preset number threshold; if the second preset condition is met, playback freeze in the first type of playback problem exists.

[0079] The present invention determines whether the test machine to be tested has a first type of playback problem based on the RGB distribution histogram after preprocessing of the first image and preset conditions. For common playback problems, different algorithms can be designed in the subsequent image processing process to identify and classify abnormal conditions occurring in the playback process, thereby effectively solving the problems of low efficiency and poor reliability of video playback testing in the prior art, and effectively improving the reliability and efficiency of video testing.

[0080] In the technical solution of the present invention, if the first preset condition is met, the playback freeze in the first type of playback problem exists; if the second preset condition is met, the playback freeze in the first type of playback problem exists; the second type of playback problem, the third type of playback problem, and the fourth type of playback problem can also be tested. Different preset conditions are set for different types of playback problems, which is convenient for judging whether the corresponding playback problem occurs based on the analysis of the video image after different image preprocessing, which not only improves the efficiency of the video playback test, but also further improves the reliability of the video test.

[0081] This solution can not only determine whether there is a freeze problem during video playback, but also determine whether there is a freeze problem, which makes it easier to understand the video playback status of the test machine to be tested based on the test results, thereby improving the comprehensiveness of the video test.

[0082] Embodiment 3

[0083] like Figure 6 As shown, the technical solution of the present invention also provides a video playback test system, including: an image acquisition unit 201 and an image processing unit 202, the image acquisition unit 201 is used to acquire in real time a video image of a complete interface played on the display screen of the test machine to be tested, and send the video image of the complete interface played on the display screen of the test machine to be tested acquired in real time to the image processing unit 202; the image processing unit 202 is used to receive the video image of the complete interface played on the display screen of the test machine to be tested sent by the image acquisition unit 201, and pre-process the acquired original image of the complete video of the interface, wherein the pre-processing includes a first image pre-processing, the first image pre-processing is to acquire the complete video of the interface RGB distribution histogram corresponding to the original image; according to the RGB distribution histogram after preprocessing of the first image and the preset conditions, determine whether the test machine to be tested has the first type of playback problem, wherein the first type of playback problem includes playback stuttering and playback freeze problems, and the preset conditions include the first preset condition and the second preset condition. If the first preset condition is met, the first type of playback problem, which is playback stuttering, exists. The first preset condition is that in any time period within the first preset time period, the number of times that the similarity of the RGB distribution histogram of the original image of the corresponding interface video is greater than the preset similarity threshold is greater than the preset number threshold; if the second preset condition is met, the first type of playback problem, which is playback freeze, exists.

[0084] The image acquisition unit 201 can be a common CMOS camera, and the image processing unit 202 can be a server or a single-chip microcomputer. First, the image acquisition module 201 is set up to face the display screen of the test machine to be tested; by adjusting the angle of the image acquisition unit 201, the video being played can be completely captured (the playback process is complete, and each frame of the image interface is complete during the playback process), and a lower frame rate is used to reduce the impact of shooting the screen.

[0085] The present invention determines whether the test machine to be tested has a first type of playback problem based on the RGB distribution histogram after preprocessing of the first image and preset conditions. For common playback problems, different algorithms can be designed in the subsequent image processing process to identify and classify abnormal conditions occurring in the playback process, thereby effectively solving the problems of low efficiency and poor reliability of video playback testing in the prior art, and effectively improving the reliability and efficiency of video testing.

[0086] In the technical solution of the present invention, if the first preset condition is met, the playback freeze in the first type of playback problem exists; if the second preset condition is met, the playback freeze in the first type of playback problem exists; the second type of playback problem, the third type of playback problem, and the fourth type of playback problem can also be tested. Different preset conditions are set for different types of playback problems, which is convenient for judging whether the corresponding playback problem occurs based on the analysis of the video image after different image preprocessing, which not only improves the efficiency of the video playback test, but also further improves the reliability of the video test.

[0087] This solution can not only determine whether there is a freeze problem during video playback, but also determine whether there is a freeze problem, which makes it easier to understand the video playback status of the test machine to be tested based on the test results, thereby improving the comprehensiveness of the video test.

[0088] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A video playback test method, characterized in that: include: Real-time acquisition of the video image of the complete interface played on the display screen of the test machine to be tested; The obtained original images of the complete interface video are preprocessed respectively, wherein the preprocessing includes a first image preprocessing, and the first image preprocessing is to obtain an RGB distribution histogram corresponding to the original image of the complete interface video; According to the RGB distribution histogram after preprocessing of the first image and the preset conditions, it is determined whether the test machine to be tested has a first type of playback problem, wherein the first type of playback problem includes playback jamming and playback freezing problems, and the preset conditions include a first preset condition and a second preset condition. If the first preset condition is met, the playback jamming in the first type of playback problem exists, and the first preset condition is that in any time period within the first preset time period, the number of times that the RGB distribution histogram similarity of the original image of the corresponding interface video is greater than a preset similarity threshold is greater than a preset number threshold; if the second preset condition is met, the playback freezing in the first type of playback problem exists; the second preset condition is that the first preset condition is met. The condition is met, and the number of times that the RGB distribution histogram of the original image of the corresponding interface video in any time period within the second preset time period is greater than the preset number threshold, the second preset time period is located after the first preset time period, is continuous with the first preset time period, and the duration of the second preset time period is greater than the duration of the first preset time period; or, to meet the first preset condition, and the RGB distribution histograms of the original image of the corresponding interface video in any two time periods within the second preset time period are the same, the second preset time period is located after the first preset time period, is continuous with the first preset time period, and the duration of the second preset time period is greater than the duration of the first preset time period.

2. A video playback test method according to claim 1, characterized in that: The preprocessing also includes second image preprocessing and third image preprocessing. The second image preprocessing is to perform grayscale processing and OSTU algorithm processing on the original image of the complete video of the interface in sequence; the third image preprocessing is to perform binarization processing on the original image of the complete video of the interface.

3. A video playback test method according to claim 2, characterized in that: include: Determine whether the complete video image of the interface after the first image preprocessing is consistent with the complete video image of the interface after the second image preprocessing. If they are consistent, there is a second type of playback problem. If they are inconsistent, there is no second type of playback problem, wherein the second type of playback problem includes a black screen.

4. A video playback test method according to claim 1, characterized in that: The preprocessing further includes a fourth image preprocessing, and the fourth image preprocessing is a Laplacian operator filtering process.

5. A video playback test method according to claim 4, characterized in that: include: Determine whether the variance between pixels in the complete video image of the interface after the fourth image preprocessing is less than a preset variance threshold. If so, there is a third type of playback problem. If not, there is no third type of playback problem, wherein the third type of playback problem includes a distorted screen.

6. A video playback test method according to any one of claims 1 to 5, characterized in that: include: It is detected in real time whether there is a square structure in the original image of the complete video of the interface. If there is a square structure, there is a fourth type of playback problem, wherein the fourth type of playback problem includes a playback error.

7. A video playback test device, characterized in that: include: An acquisition module acquires in real time the video image of the complete interface played by the display screen of the test machine to be tested; A preprocessing module preprocesses the acquired original images of the complete interface video respectively, wherein the preprocessing includes a first image preprocessing, and the first image preprocessing is to obtain an RGB distribution histogram corresponding to the original image of the complete interface video; The judgment module judges whether the test machine to be tested has a first type of playback problem according to the RGB distribution histogram after preprocessing of the first image and the preset conditions, wherein the first type of playback problem includes playback jamming and playback freezing problems, and the preset conditions include a first preset condition and a second preset condition. If the first preset condition is met, the playback jamming in the first type of playback problem exists, and the first preset condition is that the number of times that the RGB distribution histogram similarity of the original image of the corresponding interface video in any time period within the first preset time period is greater than a preset similarity threshold is greater than a preset number threshold; if the second preset condition is met, the playback freezing in the first type of playback problem exists; the second preset condition is that the first preset condition is met. The condition is set, and the number of times that the RGB distribution histogram of the corresponding original image of the interface video in any time period within the second preset time period is greater than the preset number threshold, the second preset time period is located after the first preset time period, is continuous with the first preset time period, and the duration of the second preset time period is greater than the duration of the first preset time period; or, to meet the first preset condition, and the RGB distribution histograms of the corresponding original image of the interface video in any two time periods within the second preset time period are the same, the second preset time period is located after the first preset time period, is continuous with the first preset time period, and the duration of the second preset time period is greater than the duration of the first preset time period.

8. A video playback test system, characterized in that: include: An image acquisition unit and an image processing unit, wherein the image acquisition unit is used to acquire in real time a video image of a complete interface played on the display screen of a test machine to be tested, and send the acquired video image of the complete interface played on the display screen of the test machine to be tested to the image processing unit; the image processing unit is used to receive the video image of the complete interface played on the display screen of the test machine to be tested sent by the image acquisition unit, and preprocess the acquired original image of the complete video of the interface, respectively, wherein the preprocessing includes a first image preprocessing, and the first image preprocessing is to obtain an RGB distribution histogram corresponding to the original image of the complete video of the interface; according to the RGB distribution histogram after the first image preprocessing and the preset conditions, it is judged whether the test machine to be tested has a first type of playback problem, wherein the first type of playback problem includes playback jamming and playback freezing problems, and the preset conditions include a first preset condition and a second preset condition, and if the first preset condition is met, then there is playback jamming in the first type of playback problem, and the first preset condition is The number of times that the RGB distribution histogram of the original image of the corresponding interface video is greater than the preset similarity threshold in any time period within the first preset time period is greater than the preset number threshold; if the second preset condition is met, the playback freeze in the first type of playback problem exists; the second preset condition is that the first preset condition is met, and the number of times that the RGB distribution histogram of the original image of the corresponding interface video is greater than the preset similarity threshold in any time period within the second preset time period is greater than the preset number threshold, the second preset time period is located after the first preset time period, is continuous with the first preset time period, and the duration of the second preset time period is greater than the duration of the first preset time period; or, the first preset condition is met, and the RGB distribution histograms of the original image of the corresponding interface video in any two time periods within the second preset time period are the same, the second preset time period is located after the first preset time period, is continuous with the first preset time period, and the duration of the second preset time period is greater than the duration of the first preset time period.