CN113691803A - Method, device, equipment and medium for testing audio and video interface function - Google Patents

Method, device, equipment and medium for testing audio and video interface function Download PDF

Info

Publication number
CN113691803A
CN113691803A CN202111007248.7A CN202111007248A CN113691803A CN 113691803 A CN113691803 A CN 113691803A CN 202111007248 A CN202111007248 A CN 202111007248A CN 113691803 A CN113691803 A CN 113691803A
Authority
CN
China
Prior art keywords
data
image
analysis
standard
test
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.)
Withdrawn
Application number
CN202111007248.7A
Other languages
Chinese (zh)
Inventor
王浪
张永发
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Xieer Technology Co ltd
Original Assignee
Dongguan Xieer Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dongguan Xieer Technology Co ltd filed Critical Dongguan Xieer Technology Co ltd
Priority to CN202111007248.7A priority Critical patent/CN113691803A/en
Publication of CN113691803A publication Critical patent/CN113691803A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for testing audio and video interface functions. Wherein the method comprises the following steps: acquiring original data input by an audio/video interface, and analyzing the original data to obtain analyzed data; the analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image; if the target image matched with the first standard image of the standard data exists in the analysis data, determining the target data meeting the test condition in the analysis data; the standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image; comparing the target data with the standard data to obtain a comparison result; and determining a test result based on the comparison result and a preset constraint condition. By executing the scheme, the function test of the audio and video output interface can be realized, the test efficiency can be improved, the test cost is saved, and the test space is saved.

Description

Method, device, equipment and medium for testing audio and video interface function
Technical Field
The embodiment of the invention relates to the technical field of audio and video interface testing, in particular to a method, a device, equipment and a medium for testing audio and video interface functions.
Background
With the development of the society, the intelligent terminal, the audio and video equipment and the broadcast television network terminal equipment all support HDMI and DP protocols and interfaces, and the HDMI interface and the DP interface become audio and video interfaces with the widest application and the highest market share. Meanwhile, along with the continuous popularization of high-definition, 4K and 8K audio and video sources, the detection and judgment of the quality of output signals of the audio and video interfaces become more and more important and more popular.
The audio and video output interface test in the related art generally includes the following modes: automatic test judgment, namely a high-speed and high-end electric signal analysis instrument is combined with a synchronous signal transmitting device for comparison test, the single machine is high in cost, the test system is complex, the occupied space is large, and related instruments and technologies are mainly monopolized by foreign leading enterprises; adopt actual receiving terminal object (TV set, display etc.) to test, carry out audio identification, video image observation by the manual work and judge, production efficiency is low can't carry out automated test, and production environment noise is big, 4K (8K) super large screen hi-lite display image, and is huge to the physical and mental health injury of detection personnel, and efficiency of software testing is low simultaneously, the product occupies work space greatly etc. leads to the manufacturing enterprise to synthesize with high costs.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for testing the functions of an audio and video interface, which can realize the function test of the audio and video output interface, improve the test efficiency, save the test cost and save the test space.
In a first aspect, an embodiment of the present invention provides a method for testing an audio/video interface function, where the method includes: acquiring original data input by an audio/video interface, and analyzing the original data to obtain analyzed data; the analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image;
if a target image matched with the first standard image of the standard data exists in the analysis data, determining the target data meeting the test conditions in the analysis data; the standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image;
comparing the target data with the standard data to obtain a comparison result;
and determining a test result based on the comparison result and a preset constraint condition.
In a second aspect, an embodiment of the present invention further provides a device for testing an audio/video interface function, where the device includes: the analysis data acquisition module is used for acquiring original data input by the audio and video interface and analyzing the original data to obtain analysis data; the analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image;
the target data determining module is used for determining target data meeting the test conditions in the analysis data if a target image matched with a first standard image of the standard data exists in the analysis data; the standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image;
the comparison result determining module is used for comparing the target data with the standard data and obtaining a comparison result;
and the test result determining module is used for determining a test result based on the comparison result and a preset constraint condition.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for testing the audio/video interface function according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for testing the audio/video interface function according to any one of the embodiments of the present invention.
According to the technical scheme provided by the embodiment of the invention, the original data input by the audio and video interface is obtained, and the original data is analyzed to obtain the analyzed data; the analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image; if the target image matched with the first standard image of the standard data exists in the analysis data, determining the target data meeting the test condition in the analysis data; the standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image; comparing the target data with the standard data to obtain a comparison result; and determining a test result based on the comparison result and a preset constraint condition. By executing the scheme, the function test of the audio and video output interface can be realized, the test efficiency can be improved, the test cost is saved, and the test space is saved.
Drawings
Fig. 1 is a flowchart of a method for testing audio/video interface functions according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for testing audio/video interface functions according to an embodiment of the present invention;
fig. 3a is a schematic structural diagram of a system for testing audio/video interface functions according to an embodiment of the present invention;
fig. 3b is a flowchart of a method for testing audio/video interface functions according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for testing audio/video interface functions according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a method for testing audio/video interface functions according to an embodiment of the present invention, where the method may be performed by a device for testing audio/video interface functions, where the device may be implemented by software and/or hardware, and the device may be configured in an electronic device for testing audio/video interface functions. The method is applied to a scene of performing function test on the audio and video interface. As shown in fig. 1, the technical solution provided by the embodiment of the present invention specifically includes:
and S110, acquiring original data input by the audio and video interface, and analyzing the original data to obtain analyzed data.
The analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image.
Specifically, the audio/video interface may be a transmission interface of digital high-definition audio/video stream. The audio/video Interface may be a High Definition Multimedia Interface (HDMI), a dp (display port) Interface, or another Interface. The HDMI interface is adopted as a line transmission path by display equipment such as a television, a projector and the like, a set-top box used at home and a well-known game host platform. DisplayPort can provide a number of different connection solutions for PCs, monitors, display panels, projectors, and high-resolution content applications. The scheme can test the audio and video interface function of the equipment integrated with the audio and video interface so as to test whether the data output by the audio and video interface of the equipment is correct or not. According to the scheme, the original data output by the audio and video interface of the equipment can be obtained, and the original data is analyzed to obtain the analyzed data. The original data is serial data, including audio data and video data. The analysis data is parallel data and comprises at least one analysis image obtained by analyzing video data in the original data and analysis sound corresponding to the analysis image obtained by analyzing audio data in the original data. The format of the analysis image may be RGB format, and the format of the analysis image may also be YCbCr format. The form of the analysis sound may be stereo, mono, left, right, surround 4, or surround 8. The method of analyzing the original data to obtain the analyzed data may refer to the related art.
And S120, if the target image matched with the first standard image of the standard data exists in the analysis data, determining the target data meeting the test condition in the analysis data.
The standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image.
Specifically, the standard data may be reference data for verifying whether the audio/video interface functions normally. The standard data may be pre-stored standard image data and standard sound data corresponding to the standard image data. The format of the standard image may be an RGB format, and the format of the standard image may also be a YCbCr format. The standard sound may be in the form of stereo sound, mono sound, left sound, right sound, surround 4 sound, or surround 8 sound. The standard data can be obtained by analyzing data output by equipment with a normal audio/video interface function, and the standard data can also be obtained in other forms.
Wherein, the scheme starts to execute the test action only when the image synchronization signal is received. Specifically, the image synchronization signal indicates the start of one frame of image. Since the raw data is continuously input, the analysis data obtained by analyzing the raw data is also continuous. In the process of continuously inputting the analysis data, the beginning of each frame of analysis picture corresponds to an image synchronization signal. According to the scheme, if the target image matched with the first standard image of the standard data exists in the analysis data, for example, the consistency rate of the target image and the first standard image is more than 95%, the analysis data corresponding to the standard data is found, and the target data meeting the test condition in the analysis data can be determined. The test condition may be test time, the test condition may also be test quantity, and the test condition may be set according to actual needs. According to the scheme, the target data can be determined according to the target images and the test quantity, and also can be determined according to the target images and the test time.
And S130, comparing the target data with the standard data to obtain a comparison result.
Specifically, the comparison result may be a numerical value, which is a similarity value between the target data and the standard data, or a difference value between the target data and the standard data. The comparison result may be consistent or inconsistent, for example, whether the format of the target image is consistent with the format of the corresponding standard image, and whether the format of the target sound is consistent with the format of the corresponding standard sound. According to the scheme, each target image in the target data can be compared with each standard image in the standard data respectively to obtain the comparison result of each target image, and then the comparison result of the target data is obtained. According to the scheme, each target image in the target data can be compared with each standard image in the standard data, the sound corresponding to each target image is compared with the sound corresponding to each standard image in the standard data, the comparison result of each target image and each target sound is obtained, and the comparison result of the target data is further obtained.
And S140, determining a test result based on the comparison result and a preset constraint condition.
The preset constraint condition may be preset thresholds of different dimensions. The preset constraint condition may be, for example, an image difference threshold, a sound difference threshold, an image format, a signal state, and may be set according to actual needs. The method and the device can determine the result of the audio/video interface function test according to the comparison result of the target data and the standard data and the preset constraint condition, such as the number of tested frames of images, the total image consistency rate of the target data and the standard data, the total sound consistency rate of the target data and the standard data, and the like.
According to the technical scheme provided by the embodiment of the invention, the original data input by the audio and video interface is obtained, and the original data is analyzed to obtain the analyzed data; the analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image; if the target image matched with the first standard image of the standard data exists in the analysis data, determining the target data meeting the test condition in the analysis data; the standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image; comparing the target data with the standard data to obtain a comparison result; and determining a test result based on the comparison result and a preset constraint condition. By executing the scheme, the function test of the audio and video output interface can be realized, the test efficiency can be improved, the test cost is saved, and the test space is saved.
Fig. 2 is a flowchart of a method for testing an audio/video interface function according to an embodiment of the present invention, and the embodiment performs optimization based on the above embodiment. As shown in fig. 2, the method for testing the audio/video interface function in the embodiment of the present invention may include:
s210, acquiring original data input by an audio/video interface, and analyzing the original data to obtain analyzed data.
And S220, judging whether a target image matched with the first standard image of the standard data exists in the analysis data.
If yes, go to S230; if not, go to S260.
S230: and determining target data meeting the test conditions in the analysis data, and executing S240.
In a possible embodiment, optionally, determining target data in the parsed data that meets the test condition includes: and taking the arrival time stamp of the target image as a starting time point, taking the test time in the test condition as a time length, and intercepting the analysis image and the analysis sound corresponding to the analysis image within the time length as target data.
For example, in this scheme, if the time stamp of the arrival of the target image is 0:0:0 and the test time is 20s, the target data is an analytic image and an analytic sound corresponding to the analytic image in the time period, where 0:0:0 is used as the starting time point, 20s is used as the time length, and 0: 0-0: 0:20 is used.
In this way, the time stamp of the arrival of the target image is set as the start time point, the test time in the test condition is set as the time length, and the analysis image and the analysis sound corresponding to the analysis image within the time length are extracted as the target data. The target data to be tested in the analytic data can be determined according to the testing time, the function test of the audio/video output interface can be realized, the testing efficiency can be improved, the testing cost can be saved, and the testing space can be saved.
In another possible embodiment, optionally, determining target data in the parsed data that meets the test condition includes: and taking the target image as a starting image, and sequentially intercepting analysis images of the test quantity in the test condition and analysis sounds corresponding to the analysis images as target data.
For example, in the present embodiment, if the test number is 30 frames of images, the target data is 30 frames of analysis images and analysis sounds corresponding to the 30 frames of analysis images, which are sequentially cut from the target image as a starting image.
Thus, the target image is used as a start image, and the analysis images of the test number and the analysis sounds corresponding to the analysis images in the test condition are sequentially cut out as target data. The target data to be tested in the analytic data can be determined according to the test quantity, the function test of the audio/video output interface can be realized, the test efficiency can be improved, the test cost can be saved, and the test space can be saved.
S240, comparing the target data with the standard data to obtain a comparison result, and executing S250.
In a possible embodiment, optionally, comparing the target data with the standard data to obtain a comparison result, including: and comparing each target image in the target data with each standard image respectively to obtain a comparison result.
Illustratively, taking a first frame of analysis image in the target data as an example, the scheme compares the analysis image with a first frame of standard image, and compares whether values of corresponding pixel points of two frames of images are the same, the similarity rate is large, whether formats of the images are consistent, and the like. And by analogy, comparison results of all the analysis images in the target data are obtained.
Therefore, the comparison result is obtained by comparing each target image in the target data with each standard image. The video function test of the audio and video output interface can be realized, the test efficiency can be improved, the test cost is saved, and the test space is saved.
In another possible embodiment, optionally, comparing the target data with the standard data to obtain a comparison result, including: and comparing each target image in the target data with each standard image respectively, and comparing the target sound corresponding to each target image with the standard sound corresponding to each standard image to obtain a comparison result.
Illustratively, the present scheme tests 50 parsed images within 1s, each frame of image having sound produced. Taking the first frame of the analysis image as an example, the scheme compares the analysis image with the first frame of the standard image, and respectively compares whether the values of the corresponding pixel points of the two frames of images are the same, the similarity rate, whether the formats of the images are consistent, and the like. Respectively acquiring the sound of the two frames of images at 0.02s, namely respectively acquiring the analytic sound and the standard sound when 0.02s, comparing the similarity of the two sounds, and judging whether the sound types are the same, for example, whether the sound types are all monophonic, stereophonic, left channel and right channel; in the case of surround sound, it is not all 4 surround sound, or it is not all 8 surround sound. It is possible to judge whether or not the 0.02s analyzed sound matches the standard sound recorded before and the content of the change in the 0.02s sound. And by analogy, obtaining a comparison result of the target data.
Therefore, the comparison result is obtained by comparing each target image in the target data with each standard image respectively and comparing the target sound corresponding to each target image with the standard sound corresponding to each standard image. The audio and video function test of the audio and video output interface can be realized, the test efficiency can be improved, the test cost is saved, and the test space is saved.
And S250, determining a test result based on the comparison result and a preset constraint condition.
And S260, outputting test exception information.
Specifically, if the analysis data does not include a target image matching the first standard image of the standard data, it indicates that the analysis data does not include data to be tested matching the standard image, and generates and outputs information of test abnormality.
According to the technical scheme provided by the embodiment of the invention, the original data input by the audio and video interface is obtained, and the original data is analyzed to obtain the analyzed data; determining whether a target image matched with a first standard image of the standard data exists in the analysis data, if so, determining the target data meeting the test conditions in the analysis data; comparing the target data with the standard data to obtain a comparison result; and determining a test result based on the comparison result and a preset constraint condition. And if the target image matched with the first standard image of the standard data does not exist in the analysis data, outputting test abnormal information. By executing the scheme, the function test of the audio and video output interface can be realized, the test efficiency can be improved, the test cost is saved, and the test space is saved.
The High Definition Multimedia Interface (HDMI) and the DP Interface are all digital video and audio transmission interfaces, and can transmit uncompressed audio and video signals. The HDMI interface and the DP interface can simultaneously transmit audio and video signals, and the audio and video signals adopt the same wire, so that the installation difficulty of a system line is greatly simplified. With the development of society, an intelligent terminal, audio and video equipment and broadcast television network terminal equipment all support HDMI and DP protocols and interfaces, and the HDMI interface and the DP interface become multimedia digital interfaces with the widest application and the highest market share. Along with the continuous popularization of high-definition, 4K and 8K audio and video sources, the detection and judgment of the quality of audio and video data output by the HDMI interface and the DP interface become more and more important and more popular.
In the related art, the audio/video output interface test generally has two modes: 1. the automatic test judgment adopts a high-speed and high-end electric signal analysis instrument to be combined with a synchronous signal transmitting device for comparison test. The method has the advantages of expensive single machine cost, complex test system, large occupied space and the like. And related instruments and technologies are mainly monopolized by foreign leading enterprises. 2. Adopt actual receiving terminal object (TV set, display etc.) to test, carry out audio identification, video image observation by the manual work and judge, production efficiency is low can't carry out automated test, and production environment noise is big, 4K (8K) super large screen hi-lite display image, and is huge to the physical and mental health injury of detection personnel, and efficiency of software testing is low simultaneously, the product occupies work space greatly etc. leads to the manufacturing enterprise to synthesize with high costs.
As shown in fig. 3a, the audio/video interface function test system provided in the embodiment of the present invention may include the following modules:
(1) the HDMI input or the DP input is an audio/video output interface of the object to be detected, and video image information (such as RGB, YCbCr and other formats) is generated after the audio/video information is analyzed to obtain analyzed data.
The image information contains pixel values, resolution, line-field synchronization information and the like, and the audio information contains stereo multi-channel information. The audio/video analysis module (with a plurality of analysis chips corresponding to different formats) analyzes the serial data (audio/video data) into parallel data (the pixel value, resolution, sound size, volume and frequency of each frame of image are analyzed, the sound comprises stereo, single channel, left channel, right channel, surround 4 channels or 8 channels), and each image has resolution (representing the number of pixels, and each pixel has a value).
(2) The setting data includes the standard of each test judgment, the setting data of signal analysis, the result output mode, the content and other relevant configuration parameter data.
(3) And the external communication is used for setting data operation, pre-storing image data, reading and writing audio data, obtaining a test result and detailed conclusion data and the like.
(4) The pre-stored image and audio data refer to standard data sources for test comparison, and can be written in after data input by HDMI or DP is analyzed, and can also be directly obtained through external communication.
(5, operation input and output result refer to the correlation of each test starting, pre-stored data learning, test result state output and the like.
(6) The Field Programmable Gate Array (FPGA) comprises a comparator and a controller, and refers to system operation logic control, data test comparison, test judgment result statistics, result information output and control.
The analysis data is compared with standard data prestored in the comparator, for example, a picture is compared with a prestored standard image one by one, including whether the comparison of the sound signals is consistent or not and whether the comparison signals are consistent or not. How high the consistency of the output result of the comparator is, how many thresholds of each pixel or each sound deviation are, how many comparison time is, and how many frames are. Each comparison produces and outputs a comparison result. And setting data as a data judgment standard, inputting the comparison result and the data judgment standard into the controller, and outputting a final test result by the controller.
Fig. 3b is a flowchart of a method for testing audio/video interface functions according to an embodiment of the present invention, and in order to more clearly describe the technical solution of the present invention, as shown in fig. 3b, the technical solution according to the embodiment of the present invention may include the following steps:
the learning mode is to use standard data obtained after the HDMI input or DP input is analyzed as pre-stored data. And providing comparison data for the next product when performing the functional test. The learning mode is performed at the start of the image synchronization signal. The learning mode may be manually set, the content or time of the learning mode may be specified in the setting data, and the audio/video data in a specified amount or a specified time may be learned, for example, 1s may be 40 frames, and 1s may also be 120 frames. And after the learning is finished, the learning mode is automatically exited.
The audio and video interface test is that under the working mode, firstly determining the target data of the test: and judging whether the analysis picture in the analysis data is matched with the first standard picture, and if not, continuing to wait. If there is a match, the test flag is enabled (indicating whether it is data to be tested or not), the test is started, the target data is determined based on the test time or number of tests, and only the test identifies the yield or consistency of the target data during that time.
The technical scheme provided by the embodiment of the invention is practical, economic, convenient and fast, can be used in a plug-and-play manner, and solves the problems of complex system, high cost or manual detection and judgment and the like in the related technology.
Fig. 4 is a schematic structural diagram of a device for testing audio/video interface functions according to an embodiment of the present invention, where the device may be configured in an electronic device for testing audio/video interface functions, as shown in fig. 4, the device includes:
the analysis data acquisition module 410 is configured to acquire original data input by an audio/video interface, and analyze the original data to obtain analysis data; the analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image;
a target data determining module 420, configured to determine, if a target image matching a first standard image of standard data exists in the analysis data, target data that meets a test condition in the analysis data; the standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image;
a comparison result determining module 430, configured to compare the target data with the standard data, and obtain a comparison result;
a test result determining module 440, configured to determine a test result based on the comparison result and a preset constraint condition.
Optionally, the target data determining module 420 is specifically configured to: and taking the arrival time stamp of the target image as a starting time point, taking the test time in the test condition as a time length, and intercepting the analysis image and the analysis sound corresponding to the analysis image within the time length as target data.
Optionally, the target data determining module 420 is specifically configured to: and taking the target image as a starting image, and sequentially intercepting analysis images of the test quantity in the test condition and analysis sounds corresponding to the analysis images as target data.
Optionally, the comparison result determining module 430 is specifically configured to: and comparing each target image in the target data with each standard image respectively to obtain a comparison result.
Optionally, the comparison result determining module 430 is specifically configured to: and comparing each target image in the target data with each standard image respectively, and comparing the target sound corresponding to each target image with the standard sound corresponding to each standard image to obtain a comparison result.
Optionally, the apparatus further includes an abnormal information output module, configured to output test abnormal information if a target image matching a first standard image of the standard data does not exist in the analysis data.
The device provided by the embodiment can execute the method for testing the audio and video interface function provided by any embodiment of the invention, and has the corresponding functional module and beneficial effects of the execution method.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device includes:
one or more processors 510, one processor 510 being illustrated in FIG. 5;
a memory 520;
the apparatus may further include: an input device 530 and an output device 540.
The processor 510, the memory 520, the input device 530 and the output device 540 of the apparatus may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The memory 520 is a non-transitory computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a method for testing audio/video interface functions in the embodiment of the present invention. The processor 510 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 520, that is, implementing the method for testing the audio/video interface function of the above method embodiment, that is:
acquiring original data input by an audio/video interface, and analyzing the original data to obtain analyzed data; the analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image;
if a target image matched with the first standard image of the standard data exists in the analysis data, determining the target data meeting the test conditions in the analysis data; the standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image;
comparing the target data with the standard data to obtain a comparison result;
and determining a test result based on the comparison result and a preset constraint condition.
The memory 520 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 520 may optionally include memory located remotely from processor 510, which may be connected to a terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus. The output device 540 may include a display device such as a display screen.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for testing audio/video interface functions, that is, the method includes:
acquiring original data input by an audio/video interface, and analyzing the original data to obtain analyzed data; the analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image;
if a target image matched with the first standard image of the standard data exists in the analysis data, determining the target data meeting the test conditions in the analysis data; the standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image;
comparing the target data with the standard data to obtain a comparison result;
and determining a test result based on the comparison result and a preset constraint condition.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A method for testing audio and video interface functions is characterized by comprising the following steps:
acquiring original data input by an audio/video interface, and analyzing the original data to obtain analyzed data; the analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image;
if a target image matched with the first standard image of the standard data exists in the analysis data, determining the target data meeting the test conditions in the analysis data; the standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image;
comparing the target data with the standard data to obtain a comparison result;
and determining a test result based on the comparison result and a preset constraint condition.
2. The method of claim 1, wherein determining target data in the parsed data that satisfy a test condition comprises:
and taking the arrival time stamp of the target image as a starting time point, taking the test time in the test condition as a time length, and intercepting the analysis image and the analysis sound corresponding to the analysis image within the time length as target data.
3. The method of claim 1, wherein determining target data in the parsed data that satisfy a test condition comprises:
and taking the target image as a starting image, and sequentially intercepting analysis images of the test quantity in the test condition and analysis sounds corresponding to the analysis images as target data.
4. The method of claim 1, wherein comparing the target data with the standard data and obtaining a comparison result comprises:
and comparing each target image in the target data with each standard image respectively to obtain a comparison result.
5. The method of claim 1, wherein comparing the target data with the standard data and obtaining a comparison result comprises:
and comparing each target image in the target data with each standard image respectively, and comparing the target sound corresponding to each target image with the standard sound corresponding to each standard image to obtain a comparison result.
6. The method of claim 1, further comprising:
and if the target image matched with the first standard image of the standard data does not exist in the analysis data, outputting test abnormal information.
7. A testing device for audio/video interface function is characterized by comprising:
the analysis data acquisition module is used for acquiring original data input by the audio and video interface and analyzing the original data to obtain analysis data; the analysis data comprises at least one analysis image and analysis sound corresponding to the analysis image;
the target data determining module is used for determining target data meeting the test conditions in the analysis data if a target image matched with a first standard image of the standard data exists in the analysis data; the standard data comprises at least one pre-stored standard image and standard sound corresponding to the standard image;
the comparison result determining module is used for comparing the target data with the standard data and obtaining a comparison result;
and the test result determining module is used for determining a test result based on the comparison result and a preset constraint condition.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of testing the functionality of an audio-visual interface as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method of testing the functionality of an audio-visual interface as claimed in any one of claims 1 to 6.
CN202111007248.7A 2021-08-30 2021-08-30 Method, device, equipment and medium for testing audio and video interface function Withdrawn CN113691803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111007248.7A CN113691803A (en) 2021-08-30 2021-08-30 Method, device, equipment and medium for testing audio and video interface function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111007248.7A CN113691803A (en) 2021-08-30 2021-08-30 Method, device, equipment and medium for testing audio and video interface function

Publications (1)

Publication Number Publication Date
CN113691803A true CN113691803A (en) 2021-11-23

Family

ID=78584064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111007248.7A Withdrawn CN113691803A (en) 2021-08-30 2021-08-30 Method, device, equipment and medium for testing audio and video interface function

Country Status (1)

Country Link
CN (1) CN113691803A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116634075A (en) * 2023-07-20 2023-08-22 芯动微电子科技(珠海)有限公司 FPGA-based video interface data self-correction platform and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116634075A (en) * 2023-07-20 2023-08-22 芯动微电子科技(珠海)有限公司 FPGA-based video interface data self-correction platform and method
CN116634075B (en) * 2023-07-20 2023-12-01 芯动微电子科技(珠海)有限公司 FPGA-based video interface data self-correction platform and method

Similar Documents

Publication Publication Date Title
CN109842795B (en) Audio and video synchronization performance testing method and device, electronic equipment and storage medium
WO2017092343A1 (en) Video data detection method and device
US10965904B2 (en) Display method and display device, television and storage medium
CN103873852A (en) Multi-mode parallel video quality fault detection method and device
US8558876B2 (en) Method and a system for generating a signal for a video display unit
US10945020B2 (en) Electronic apparatus and method of operating the same
US11678024B2 (en) Subtitle information display method and apparatus, and electronic device, and computer readable medium
US20160065791A1 (en) Sound image play method and apparatus
CN110335590B (en) Voice recognition test method, device and system
CN111988647A (en) Sound and picture synchronous adjusting method, device, equipment and medium
CN104519351A (en) Automatic test method for set top boxes
CN104834498A (en) Signal processing method and device
US20160373816A1 (en) Automation testing apparatus
CN113691803A (en) Method, device, equipment and medium for testing audio and video interface function
CN113992926B (en) Interface display method, device, electronic equipment and storage medium
CN110581988B (en) Signal quality detection method and device, electronic equipment and storage medium
US20110170007A1 (en) Image processing device, image control method, and computer program
US11503365B2 (en) Electronic apparatus and control method thereof
CN112055253B (en) Method and device for adding and multiplexing independent subtitle stream
CN111163310B (en) Television audio test method, device, equipment and computer readable storage medium
CN109600571B (en) Multimedia resource transmission test system and multimedia resource transmission test method
CN112702595A (en) SVAC2.0 video comparison method and system thereof
CN112312208A (en) Multimedia information processing method and device, storage medium and electronic equipment
WO2018151540A1 (en) Electronic apparatus for playing substitutional advertisement and method for controlling method thereof
CN111601157B (en) Audio output method and display device

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20211123

WW01 Invention patent application withdrawn after publication