Equipment testing method and device, equipment and storage medium

By recording and slicing the audio and video of the equipment to be tested, extracting and comparing the characteristic values, the problem of inaccurate manual judgment is solved, and more efficient and accurate equipment testing is achieved.

CN119445431APending Publication Date: 2025-02-14SHENZHEN JIUZHOU ELECTRIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411430701.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The prior art uses manual viewing of video to judge the test results of the test equipment to be tested and the subjective impact has caused the judgment to be inaccurate.

Method used

By recording and slicing the audio and video played by the test prototype, the slice characteristic values ​​of the sliced ​​audio and video are determined, and these characteristic values ​​are compared with the sample characteristic values ​​in the preset database to generate the device test results.

Benefits of technology

Improves the accuracy of equipment testing, reduces the subjective impact of manual judgment, and saves testing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119445431A_ABST
    Figure CN119445431A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of equipment testing, and provides an equipment testing method and device, equipment and a storage medium, and the method comprises the steps: recording an audio / video played by a to-be-tested prototype, carrying out the slicing of a recording result, obtaining a sliced audio / video, determining the slicing feature value of the sliced audio / video, and carrying out the testing of the to-be-tested prototype. And performing equipment testing on the to-be-tested prototype through the slice feature value and a sample feature value in a preset database, which indicates that the audio and video of which the test result is to be judged can be sliced according to the preset time length and the feature value of the audio and video slice in the preset time period is compared with the sample feature value; compared with the existing manual check, the judgment accuracy is improved, and the time is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of equipment testing, and in particular to an equipment testing method, apparatus, device and storage medium. Background Art

[0002] With the continuous improvement of electronic technology and industrial automation, the production scale and complexity of electronic equipment and mechanized equipment have also increased. In order to ensure product quality and the normal operation of the production line, equipment testing has become an indispensable part of the factory production process. The main purpose of equipment testing is to detect whether there are hardware problems in the equipment and ensure its normal function and stable performance.

[0003] In the prior art, the audio and video played by the device to be tested is generally manually viewed to determine whether the output is normal. Since the judgment is made by manually viewing the video, there are problems such as inaccurate judgment and long time consumption.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide a device testing method, apparatus, equipment and storage medium, aiming to solve the problem that the prior art uses manual video viewing to judge the test results of the device to be tested, which is subjective and leads to inaccurate judgment.

[0006] To achieve the above objectives, the present application proposes a device testing method, the method comprising:

[0007] Record the audio and video played by the test sample, and slice the recording result to obtain the sliced ​​audio and video;

[0008] Determine the slice feature value of the sliced ​​audio and video, and perform device testing on the to-be-tested prototype by using the slice feature value and the sample feature value in a preset database to obtain a test result.

[0009] In one embodiment, the slice audio and video feature values ​​include video slice feature values ​​and audio slice feature values, the sample feature values ​​include picture sample feature values ​​and audio sample feature values, and the step of performing device testing on the to-be-tested prototype by using the slice feature values ​​and the sample feature values ​​in a preset database to obtain the test result includes:

[0010] Compare the video slice feature value with the picture sample feature value to obtain a video test comparison result of the sample to be tested;

[0011] Compare the audio slice feature value with the audio sample feature value to obtain an audio test comparison result of the sample machine to be tested;

[0012] The test result of the sample machine to be tested is generated based on the video test comparison result and the audio test comparison result.

[0013] In one embodiment, the step of comparing the video slice feature value with the picture sample feature value to obtain the video test comparison result of the to-be-tested sample includes:

[0014] Acquire the similarity between the feature value of the video slice and the feature value of the picture sample based on a preset picture feature comparison algorithm;

[0015] If the similarity is greater than or equal to a first preset threshold, the video output is normal as the video test comparison result of the sample to be tested.

[0016] In one embodiment, after the step of obtaining the similarity between the feature value of the video slice and the feature value of the picture sample based on a preset picture feature comparison algorithm, the method further includes:

[0017] If the similarity is less than the first preset threshold, performing mosaic determination and no video determination on the recording result;

[0018] The determination result is used as the video test comparison result of the sample to be tested.

[0019] In one embodiment, the step of comparing the audio slice feature value with the audio sample feature value to obtain the audio test comparison result of the sample to be tested includes:

[0020] Based on a preset audio feature comparison algorithm, a first feature value comparison is performed on the audio slice feature value at the starting time point of the sliced ​​audio and video with the audio sample feature value to obtain a first comparison result;

[0021] If the first comparison result is greater than or equal to the second preset threshold, the audio synchronization is used as the audio test comparison result of the sample machine to be tested.

[0022] In one embodiment, after the step of performing a first feature value comparison on the audio slice feature value at the starting time point of the sliced ​​audio and video with the audio sample feature value based on a preset audio feature comparison algorithm and obtaining the first comparison result, the step further includes:

[0023] If the first comparison result is less than the second preset threshold, determining an adjacent time point based on the starting time point;

[0024] Performing a secondary feature value comparison on the audio slice feature value at the adjacent time points and the audio sample feature value to obtain a secondary comparison result;

[0025] If the secondary comparison result is greater than or equal to the second preset threshold, taking the time asynchrony as the audio test comparison result of the sample to be tested;

[0026] If the secondary comparison result is less than the second preset threshold, the audio asynchrony and the time asynchrony are taken as the audio test comparison result of the sample machine to be tested.

[0027] In one embodiment, before the step of recording the audio and video played by the test sample and slicing the recording result to obtain the sliced ​​audio and video, the step further includes:

[0028] Record the audio and video played by the qualified prototype, and slice the obtained qualified recording results to obtain sample sliced ​​audio and video;

[0029] Determine sample feature values ​​of the sample sliced ​​audio and video, and build a preset database based on the sample feature values.

[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a device testing apparatus, the device comprising:

[0031] The slicing module is used to record the audio and video played by the test sample and slice the recording results to obtain sliced ​​audio and video;

[0032] The test module is used to determine the slice characteristic value of the sliced ​​audio and video, and perform equipment testing on the to-be-tested prototype by using the slice characteristic value and the sample characteristic value in a preset database to obtain a test result.

[0033] In addition, to achieve the above objectives, the present application also proposes a device testing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the device testing method described above.

[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the device testing method described above are implemented.

[0035] The present application proposes a device testing method, apparatus, equipment and storage medium, the method comprising: recording the audio and video played by the test prototype, and slicing the recording results to obtain the sliced ​​audio and video, determining the slice characteristic values ​​of the sliced ​​audio and video, and performing device testing on the test prototype through the slice characteristic values ​​and the sample characteristic values ​​in a preset database. This means that the present application can slice the audio and video for the test result to be judged according to a preset duration and compare the characteristic values ​​of the audio and video slices in a preset time period with the sample characteristic values, and obtain the judgment result of the test result to be judged according to the comparison result. Compared with the existing manual review, the accuracy of the judgment is improved and time is saved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0037] In order to more clearly illustrate the embodiments of the present application 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 labor.

[0038] Figure 1 A flowchart of a first embodiment of the device testing method proposed in this embodiment;

[0039] Figure 2 A flowchart of building a preset database in the device testing method provided in this embodiment;

[0040] Figure 3 A flow chart of a second embodiment of the device testing method proposed in this embodiment;

[0041] Figure 4 An example workflow diagram of the device testing method provided in this embodiment;

[0042] Figure 5 A diagram of a device testing apparatus provided for this embodiment;

[0043] Figure 6 Schematic diagram of the structure of a device testing device suitable for implementing the present embodiment.

[0044] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0048] It is understandable that with the continuous improvement of electronic technology and industrial automation, the production scale and complexity of electronic and mechanized equipment have also increased. From smartphones, tablets to smart homes and industrial robots, various electronic and mechanized equipment have penetrated into every aspect of our lives and become an important force in promoting social progress. However, with the increasing complexity of equipment functions and the continuous expansion of production scale, ensuring product quality and normal operation of production lines faces huge challenges. Equipment testing is a key link in ensuring product quality and normal operation of production lines. Its main purpose is to detect whether there are hardware problems in the equipment, ensure that its functions are normal, its performance is stable, and meet the needs and standards of users. Equipment testing runs through the entire life cycle of equipment production, from the design stage to the production stage, and then to the after-sales stage, rigorous testing is required.

[0049] Currently, production line workers or professional testers usually observe and operate the equipment, and judge whether it is qualified based on the equipment's operating status and output results. Since manual judgment is easily affected by subjective factors, there are differences in the experience and skill levels of different testers, resulting in inaccurate judgment results. In addition, manual testing requires a lot of time and manpower, and it is difficult to adapt to the needs of large-scale production.

[0050] Therefore, in order to solve the problem that the prior art uses manual video viewing to judge the test results of the test equipment to be tested, which is subject to subjective influence and leads to inaccurate judgment, the present embodiment proposes a device testing method, apparatus, equipment and storage medium. The method includes: recording the audio and video played by the test prototype, and slicing the recording results to obtain sliced ​​audio and video, determining slice feature values ​​of the sliced ​​audio and video, and performing device testing on the test prototype through the slice feature values ​​and the sample feature values ​​in a preset database. This shows that the present application can slice the audio and video of the test result to be judged according to a preset duration and compare the feature values ​​of the audio and video slices according to the preset time period with the sample feature values, and obtain the judgment result of the test result to be judged according to the comparison result. Compared with the existing manual viewing, the accuracy of the judgment is improved and time is saved.

[0051] For ease of understanding, the following combination Figures 1 to 6 The device testing method provided in the embodiment of the present application and the device testing method, apparatus, device and storage medium provided in the following embodiments are specifically introduced.

[0052] The present application provides a device testing method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the device testing method proposed in this embodiment.

[0053] like Figure 1 As shown, the method includes:

[0054] Step S10: Record the audio and video played by the test sample, and slice the recording result to obtain sliced ​​audio and video.

[0055] It should be noted that the execution subject of this embodiment can be a computing service device with device testing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device that can realize the above functions, etc. The following takes the device testing device (hereinafter referred to as the device) as an example to illustrate this embodiment and the following embodiments. Among them, in this embodiment, the above-mentioned device has a video recording module and an audio recording module.

[0056] It should be noted that the above-mentioned prototype to be tested may be a device that needs to be tested to determine whether it is qualified, and the above-mentioned audio and video may be a video containing audio provided by a user to the above-mentioned prototype to be tested for playback. This shows that in this embodiment, the above-mentioned prototype to be tested is a device that can play audio and video.

[0057] The above-mentioned recording result may be the recorded audio and video obtained by recording the test prototype that is playing the video containing audio provided by the user. The above-mentioned sliced ​​audio and video may be the video slice or audio slice obtained by slicing the above-mentioned recording result according to the user-preset time interval (such as 2ms). The video slice may also be a video screenshot taken from the above-mentioned video at a user-preset time point (such as the starting point of the video, a time point two minutes after the starting point, etc.).

[0058] In the specific implementation process, the above-mentioned device records the audio and video provided by the user through the above-mentioned video recording module and audio recording module to obtain the above-mentioned recording results, and slices the recording results according to the time interval preset by the user to obtain video slices and audio slices.

[0059] Step S20: determining a slice feature value of the sliced ​​audio and video, and performing a device test on the to-be-tested prototype by using the slice feature value and a sample feature value in a preset database to obtain a test result.

[0060] It should be noted that the above-mentioned slice feature value may be a video slice feature value or at least one of the audio slice feature values. The above-mentioned video slice feature value may be a feature value of a video screenshot obtained by slicing the video in the above-mentioned recording result. The above-mentioned audio slice feature value may be a feature value of an audio fragment obtained by slicing the audio in the above-mentioned recording result.

[0061] In addition, it should be noted that the above-mentioned preset database can be a database composed of several sample feature values, the above-mentioned sample feature values ​​can be video sample feature values ​​or audio sample feature values, and the above-mentioned sample feature values ​​can be feature values ​​obtained by slicing and feature extracting qualified recording results obtained by the user through recording a qualified prototype that plays the video provided by the user.

[0062] In a specific implementation, the above-mentioned device extracts features from the video screenshots in the above-mentioned sliced ​​audio and video through a preset image feature extraction algorithm (such as a grayscale histogram method or a color histogram method, etc.), and extracts features from the audio clips in the above-mentioned sliced ​​audio and video through a preset audio feature extraction algorithm (such as an autocorrelation function method or a linear prediction coefficient method, etc.). After extracting the feature value, the above-mentioned device compares the extracted feature value with the sample slice feature value obtained by pre-processing the qualified recording result obtained by recording the qualified sample to obtain the test result.

[0063] In order to obtain the preset database and the sample slice feature values ​​therein, the step of recording the audio and video played by the test sample and slicing the recording result, and obtaining the sliced ​​audio and video, further includes:

[0064] Step S01: Record the audio and video played by the qualified prototype, and slice the obtained qualified recording results to obtain sample sliced ​​audio and video.

[0065] Step S02: Determine sample feature values ​​of the sample sliced ​​audio and video, and construct a preset database based on the sample feature values.

[0066] It should be noted that the qualified prototype can be a device that the user has judged as qualified, the qualified recording result, and the qualified prototype and the to-be-tested prototype belong to the same type of device. The qualified recording result can be the audio and video obtained by the device through the video recording module and the audio recording module to record the qualified prototype playing the audio and video. The sample sliced ​​audio and video can be a sample video slice or sample audio slice obtained by slicing the qualified recording result according to the time interval preset by the user. The video slice can also be a video screenshot taken from the video at the time point preset by the user.

[0067] In a specific implementation, the above-mentioned device records the above-mentioned qualified prototype that plays the above-mentioned audio and video through the video recording module and the audio recording module to obtain a qualified recording result, and slices the recording result according to the time interval preset by the above-mentioned user to obtain sample video slices and sample audio slices, and extracts features from the sample video slices and sample audio slices through the above-mentioned preset image feature extraction algorithm and the above-mentioned preset audio feature extraction algorithm to obtain sample feature values ​​of the sample slice audio and video, and constructs a preset database based on the sample feature values.

[0068] In one example, reference Figure 2 , Figure 2 The device testing method provided in this embodiment is provided with a preset database construction flow chart. First, a reference prototype (a standard machine determined to be qualified) is prepared. The camera and microphone of the AI ​​test device are placed in specific positions. Generally, the camera needs to fully capture the display screen, and the microphone needs to be placed in the speaker position (equivalent to Figure 2 Then, when the benchmark prototype plays the test stream, the AI ​​test device is started to record and sound the video (equivalent to Figure 2 The AI ​​device records audio and video in the test stream. After the test stream is played, the AI ​​test device slices the recorded video and audio into segments, usually 2 seconds each. AI processes the feature values ​​of the video screenshots and audio at specific intervals in each segment. The specific time can be 100ms or 200ms. The feature value of the picture can select multiple feature values ​​(according to different picture feature comparison algorithms) (equivalent to Figure 2The AI ​​device pre-processes the audio and video) and saves them to the database. For the audio part, it will be 400ms before the time point (if it is less than the longest one) and 400ms after the time point (if it is less than the longest one), and then the feature value of this audio will be obtained and saved to the database according to the time of 2ms (according to different audio feature comparison algorithms) (equivalent to Figure 2 The AI ​​device saves the corresponding feature values ​​of audio and video to the database).

[0069] This embodiment proposes a device testing method, which includes: recording the audio and video played by the test prototype, and slicing the recording results to obtain the sliced ​​audio and video, determining the slice characteristic values ​​of the sliced ​​audio and video, and performing device testing on the test prototype through the slice characteristic values ​​and the sample characteristic values ​​in a preset database. This means that the present application can slice the audio and video for the test result to be judged according to a preset duration and compare the characteristic values ​​of the audio and video slices in the preset time period with the sample characteristic values, and obtain the judgment result of the test result to be judged according to the comparison result. Compared with the existing manual review, the accuracy of the judgment is improved and time is saved.

[0070] Based on the first embodiment, in the second embodiment, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be described in detail later. Figure 3 , Figure 3 This is a flow chart of the second embodiment of the device testing method proposed in this embodiment. It is known from the content of the first embodiment that the above-mentioned slice audio and video feature values ​​include video slice feature values ​​and audio slice feature values, and the above-mentioned sample feature values ​​include picture sample feature values ​​and audio sample feature values. In order to further accurately obtain the device test result of the above-mentioned device to be tested, the device test of the sample to be tested is performed on the device to be tested through the slice feature values ​​and the sample feature values ​​in the preset database to obtain the test result, including:

[0071] Step S21: Compare the video slice feature value with the picture sample feature value to obtain the video test comparison result of the sample to be tested.

[0072] It should be noted that the video test comparison result may be a result obtained by the above device based on the video played by the above device to be tested.

[0073] Further, in order to compare the above video slice feature value with the above picture sample feature value to obtain a test result, step S21 includes:

[0074] Step S211: obtaining the similarity between the video slice feature value and the picture sample feature value based on a preset picture feature comparison algorithm.

[0075] Step S212: If the similarity is greater than or equal to a first preset threshold, the video output is normal as the video test comparison result of the sample to be tested.

[0076] It should be understood that the above-mentioned preset image feature value comparison algorithm can be used to calculate the algorithm of feature value similarity (such as SIFT, SURF, ORB, etc.), the above-mentioned first preset threshold value can be a similarity threshold value pre-set by the user, and the above-mentioned similarity can be the value of the degree of similarity between the feature value of the video slice and the feature value of the image sample. In a specific implementation, the above-mentioned device uses an algorithm to extract the key feature points of the image, and then compares the similarity of these feature points, and when the above-mentioned similarity is greater than or equal to the first preset threshold value, the video output is normal as the video test comparison result of the tested prototype.

[0077] It can be understood that in order to test the above-mentioned prototype to be tested to obtain a test result, after the step of obtaining the similarity between the feature value of the video slice and the feature value of the picture sample based on the preset picture feature comparison algorithm, it also includes:

[0078] If the similarity is less than the first preset threshold, performing mosaic determination and no video determination on the recording result;

[0079] The determination result is used as the video test comparison result of the sample to be tested.

[0080] It should be noted that the mosaic judgment can be used to identify and detect whether there is a mosaic effect in the image during image processing or video analysis. The mosaic is an image processing technology that divides the image into small blocks and blurs each block to hide the image details. The no video judgment can be based on the recording result to determine whether the test sample does not play the video provided by the user. The judgment result can be video damage or video missing.

[0081] In a specific implementation, when the above-mentioned device determines that the above-mentioned similarity is less than the first preset threshold value, it uses a preset algorithm to perform mosaic judgment and no-video judgment on the recording result corresponding to the above-mentioned video slice feature value. When the no-video judgment of the above-mentioned recording result is that there is video, a mosaic judgment is performed. If the above-mentioned mosaic judgment result is that there is a mosaic, the video damage is taken as the above-mentioned judgment result; if the no-video judgment of the above-mentioned recording result is that there is no video, the video missing is taken as the above-mentioned judgment result.

[0082] Step S22: Compare the audio slice feature value with the audio sample feature value to obtain an audio test comparison result of the sample to be tested.

[0083] It should be noted that the audio test comparison result may be a result obtained by the above-mentioned device based on the audio played by the above-mentioned device to be tested.

[0084] Further, in order to compare the audio slice feature value with the audio sample feature value to obtain a test result, step S22 includes:

[0085] Step S221: Based on a preset audio feature comparison algorithm, the audio slice feature value at the starting time point of the sliced ​​audio and video is compared with the audio sample feature value for the first time to obtain a first comparison result.

[0086] Step S222: If the first comparison result is greater than or equal to a second preset threshold, the audio synchronization is used as the audio test comparison result of the sample machine to be tested.

[0087] It should be understood that the above-mentioned starting time point can be the time point when the above-mentioned test prototype starts to play the video provided by the user, the above-mentioned preset audio feature value comparison algorithm can be used to calculate the algorithm of feature value similarity (such as cosine similarity, Euclidean distance, etc.), the above-mentioned second preset threshold value can be a threshold value pre-set by the user, and the above-mentioned first comparison result can be the similarity between the above-mentioned feature values, or it can be the distance between the above-mentioned feature values. This embodiment uses similarity for illustration but does not make specific restrictions. In a specific implementation, after obtaining the above-mentioned audio slice feature value, the above-mentioned device calculates the similarity between the above-mentioned audio slice feature value and the above-mentioned audio sample feature value through the above-mentioned preset feature value comparison algorithm. When the similarity is greater than or equal to the second preset threshold value, it is determined that the audio test comparison result of the test prototype is audio synchronization.

[0088] It can be understood that in order to test the above-mentioned prototype to be tested and obtain the test result, the step of performing a first feature value comparison on the audio slice feature value at the starting time point of the sliced ​​audio and video with the audio sample feature value based on a preset audio feature comparison algorithm, and obtaining the first comparison result, further includes:

[0089] If the first comparison result is less than the second preset threshold, determining an adjacent time point based on the starting time point;

[0090] Performing a secondary feature value comparison on the audio slice feature value at the adjacent time points and the audio sample feature value to obtain a secondary comparison result;

[0091] If the secondary comparison result is greater than or equal to the second preset threshold, taking the time asynchrony as the audio test comparison result of the sample to be tested;

[0092] If the secondary comparison result is less than the second preset threshold, the audio asynchrony and the time asynchrony are taken as the audio test comparison result of the sample machine to be tested.

[0093] It should be noted that the adjacent time points may be time points with a preset time interval before and after the starting time point, and the preset time interval may be a time interval set in advance by the user based on the provided playback video. The secondary comparison result may be the similarity between the feature values ​​or the distance between the feature values. This embodiment uses similarity for illustration but does not impose any specific limitation.

[0094] In a specific implementation, after determining that the result of the first comparison is less than the second preset threshold, the device performs a secondary feature value comparison on the audio slice feature value at the adjacent time points and the audio sample feature value to obtain a new similarity, and compares the new similarity with the second preset threshold. When the similarity is greater than or equal to the second preset threshold, the time asynchrony is used as the audio test comparison result of the sample to be tested. If the new similarity is less than the second preset threshold, the audio asynchrony and time asynchrony are used as the audio test comparison results of the sample to be tested.

[0095] Among them, in the above-mentioned comparison process, the similarity between the audio feature value at the adjacent time point before the above-mentioned starting time point and the above-mentioned sample feature value can be first compared with the size of the second preset threshold. If it is greater than or equal to, the time asynchrony is taken as the above-mentioned audio test comparison result. If the similarity between the feature value at the above-mentioned adjacent time point and the sample feature value is less than the second preset threshold, the similarity between the audio feature value at the adjacent time point after the above-mentioned starting time point and the above-mentioned sample feature value is compared with the size of the second preset threshold. If the similarity is greater than or equal to the second preset threshold, the time asynchrony is taken as the above-mentioned audio test comparison result. If the similarity is less than the second preset threshold, the time asynchrony is taken as the above-mentioned audio test comparison result. Then the audio asynchrony and time asynchrony are taken as the audio test comparison results of the above-mentioned sample machine to be tested.

[0096] Step S23: generating a test result of the to-be-tested sample machine based on the video test comparison result and the audio test comparison result.

[0097] It should be noted that the above test result may be a result formed based on the above video test comparison result and audio test comparison result.

[0098] In a specific implementation, the above device generates the test result of the to-be-tested sample machine based on the video test comparison result and the audio test comparison result, and stores the result in a storage module for user viewing.

[0099] In one example, refer to Figure 4 , Figure 4 This is an example workflow diagram of the device testing method provided in this embodiment. 1. The test environment is exactly the same as the prototype environment, and then the AI ​​test device is turned on to wait for the test, and the AI ​​test device waits for recording video and audio; 2. The test device starts playing the same video (equivalent to Figure 4 The test machine starts playing), and the AI ​​test device starts recording video and audio at the same time; 3. The AI ​​test device slices in real time, and then processes the feature values ​​of the sliced ​​video in real time and matches them with the feature values ​​of the corresponding time period in the database. If the match reaches the expected threshold, it can be determined that the device video output is normal; 4. If the video match does not reach the threshold, it is judged as failed, and mosaic judgment and no video judgment will be performed at the same time. Different types of failures are classified and recorded in the database; 5. Match the feature values ​​of the audio, and first start matching from the slice point. If there is no match, match the feature value before the slice point first. If there is no match, match the feature value after the slice point. After matching, record the time difference in the database, which is the time difference of the audio and video being out of sync. If there is no match before and after, save it as completely out of sync; 6. Generally speaking, the result can be determined by testing one slice, which can shorten the production test time and give accurate judgments. After the test, switch to the next device (equivalent to Figure 4 Next test machine), and then repeat the process from 2 to 5; 7. If it is a stability aging judgment, all slices can be judged to the end, and the judgment can be repeated and the results can be saved.

[0100] This embodiment also provides a device testing device, please refer to Figure 5 , Figure 5 A diagram of a device testing apparatus provided for this embodiment, wherein the device testing apparatus comprises:

[0101] The slicing module is used to record the audio and video played by the test sample and slice the recording results to obtain sliced ​​audio and video;

[0102] The test module is used to determine the slice characteristic value of the sliced ​​audio and video, and perform equipment testing on the to-be-tested prototype by using the slice characteristic value and the sample characteristic value in a preset database to obtain a test result.

[0103] The device testing device provided in this embodiment also needs to be explained that the above-mentioned slicing module includes a video recording module and an audio recording module. The device testing method in the above-mentioned embodiment can solve the problem that the prior art uses manual video viewing to judge the test results of the device to be tested, which is subjective and leads to inaccurate judgment. Compared with the prior art, the beneficial effects of the device testing device provided in this embodiment are the same as the beneficial effects of the device testing method provided in the above-mentioned embodiment, and the other technical features in the device testing device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0104] This embodiment provides a device testing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the device testing method in the above-mentioned embodiment 1.

[0105] Reference below Figure 6 , Figure 6 : is a schematic diagram of a device test device suitable for implementing the present embodiment. The device test device in the present application embodiment may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The device testing device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0106] like Figure 6As shown, the device test device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the device test device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the device test device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a device test device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0107] In particular, according to the present embodiment, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the present embodiment includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present embodiment are executed.

[0108] The device testing device provided in this embodiment adopts the device testing method in the above embodiment, which can solve the problem that the prior art uses manual video viewing to judge the test results of the device to be tested, which is subjective and leads to inaccurate judgment. Compared with the prior art, the beneficial effects of the device testing device provided in this embodiment are the same as the beneficial effects of the device testing method provided in the above embodiment, and other technical features in the device testing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0109] It should be understood that the various parts disclosed in this embodiment can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0110] The above is only a specific implementation of this embodiment, but the protection scope of this embodiment is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in this embodiment, which should be included in the protection scope of this embodiment. Therefore, the protection scope of this embodiment should be based on the protection scope of the claims.

[0111] This embodiment provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the device testing method in the above embodiment.

[0112] The computer-readable storage medium provided in this embodiment may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including, but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0113] The computer-readable storage medium may be included in the device testing device; or may exist independently without being assembled into the device testing device.

[0114] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the device testing device, the device testing device is enabled to perform device testing.

[0115] The computer program code for performing the operations of the present embodiment may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0116] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present embodiment. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0117] The modules involved in the description of this embodiment may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0118] The readable storage medium provided in this embodiment is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned device testing method, and is intended to solve the problem that the prior art uses manual video viewing to judge the test results of the device to be tested, which is subjective and leads to inaccurate judgment. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this embodiment are the same as the beneficial effects of the device testing method provided in the above-mentioned embodiment, and will not be repeated here.

[0119] This embodiment also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the device testing method as described above are implemented.

[0120] The computer program product provided in this embodiment can solve the problem that the prior art uses manual video viewing to judge the test results of the device to be tested, which is subjective and leads to inaccurate judgment. Compared with the prior art, the beneficial effects of the computer program product provided in this embodiment are the same as the beneficial effects of the device testing method provided in the above embodiment, and will not be repeated here.

[0121] The above descriptions are only some embodiments, and are not intended to limit the patent scope of this embodiment. All equivalent structural changes made using the contents of the specification and drawings of this application under the technical concept of this application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of this application.

Claims

1. A device testing method, characterized in that: The method comprises: Record the audio and video played by the test sample, and slice the recording result to obtain the sliced ​​audio and video; Determine the slice feature value of the sliced ​​audio and video, and perform device testing on the to-be-tested prototype by using the slice feature value and the sample feature value in a preset database to obtain a test result.

2. The method according to claim 1, characterized in that The slice audio and video feature values ​​include video slice feature values ​​and audio slice feature values, the sample feature values ​​include picture sample feature values ​​and audio sample feature values, and the step of performing device testing on the to-be-tested prototype by using the slice feature values ​​and the sample feature values ​​in a preset database to obtain a test result includes: Compare the video slice feature value with the picture sample feature value to obtain a video test comparison result of the sample to be tested; Compare the audio slice feature value with the audio sample feature value to obtain an audio test comparison result of the sample machine to be tested; The test result of the sample machine to be tested is generated based on the video test comparison result and the audio test comparison result.

3. The method according to claim 2, characterized in that The step of comparing the video slice feature value with the picture sample feature value to obtain the video test comparison result of the sample to be tested includes: Acquire the similarity between the feature value of the video slice and the feature value of the picture sample based on a preset picture feature comparison algorithm; If the similarity is greater than or equal to a first preset threshold, the video output is normal as the video test comparison result of the sample to be tested.

4. The method according to claim 3, characterized in that After the step of obtaining the similarity between the feature value of the video slice and the feature value of the picture sample based on a preset picture feature comparison algorithm, the method further includes: If the similarity is less than the first preset threshold, performing mosaic determination and no video determination on the recording result; The determination result is used as the video test comparison result of the sample to be tested.

5. The method according to claim 2, characterized in that The step of comparing the audio slice feature value with the audio sample feature value to obtain the audio test comparison result of the sample machine to be tested includes: Based on a preset audio feature comparison algorithm, a first feature value comparison is performed on the audio slice feature value at the starting time point of the sliced ​​audio and video with the audio sample feature value to obtain a first comparison result; If the first comparison result is greater than or equal to the second preset threshold, the audio synchronization is used as the audio test comparison result of the sample machine to be tested.

6. The method according to claim 5, characterized in that After the step of performing a first feature value comparison on the audio slice feature value at the starting time point of the sliced ​​audio and video with the audio sample feature value based on a preset audio feature comparison algorithm to obtain the first comparison result, the method further includes: If the first comparison result is less than the second preset threshold, determining an adjacent time point based on the starting time point; Performing a secondary feature value comparison on the audio slice feature value at the adjacent time points and the audio sample feature value to obtain a secondary comparison result; If the secondary comparison result is greater than or equal to the second preset threshold, taking the time asynchrony as the audio test comparison result of the sample to be tested; If the secondary comparison result is less than the second preset threshold, the audio asynchrony and the time asynchrony are taken as the audio test comparison result of the sample machine to be tested.

7. The method according to any one of claims 1 to 6, characterized in that Before the step of recording the audio and video played by the test sample and slicing the recording result to obtain the sliced ​​audio and video, the method further includes: Record the audio and video played by the qualified prototype, and slice the obtained qualified recording results to obtain sample sliced ​​audio and video; Determine sample feature values ​​of the sample sliced ​​audio and video, and build a preset database based on the sample feature values.

8. A device testing apparatus, characterized in that: The device comprises: The slicing module is used to record the audio and video played by the test sample and slice the recording results to obtain sliced ​​audio and video; The test module is used to determine the slice characteristic value of the sliced ​​audio and video, and perform equipment testing on the to-be-tested prototype by using the slice characteristic value and the sample characteristic value in a preset database to obtain a test result.

9. A device testing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the device testing method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the device testing method according to any one of claims 1 to 7 are implemented.