WO2023245584A1 - 摄像组件测试方法、装置、电子设备及存储介质 - Google Patents

摄像组件测试方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023245584A1
WO2023245584A1 PCT/CN2022/100928 CN2022100928W WO2023245584A1 WO 2023245584 A1 WO2023245584 A1 WO 2023245584A1 CN 2022100928 W CN2022100928 W CN 2022100928W WO 2023245584 A1 WO2023245584 A1 WO 2023245584A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
frame
video stream
camera component
information
Prior art date
Application number
PCT/CN2022/100928
Other languages
English (en)
French (fr)
Inventor
崔亮
耿小荃
任伟博
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to PCT/CN2022/100928 priority Critical patent/WO2023245584A1/zh
Priority to CN202280004588.0A priority patent/CN117859324A/zh
Publication of WO2023245584A1 publication Critical patent/WO2023245584A1/zh

Links

Images

Classifications

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

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a camera component testing method, device, electronic equipment and storage medium.
  • automatic testing solutions for camera component stability usually involve writing automated test cases for the camera component to test the stability of the camera component.
  • the process of recording video by the camera component there may be delayed transmission of network data.
  • Slow response of the equipment, etc. can easily be confused with the stability performance of the camera component itself. This is reflected on the visual interface, that is, the video image recorded by the camera component is unresponsive and disconnected.
  • the present disclosure aims to solve one of the technical problems in the related art, at least to a certain extent.
  • the purpose of this disclosure is to propose a camera component testing method, device, electronic equipment and storage medium, which can effectively improve the stability test accuracy of the camera component and improve the stability test effect.
  • the camera component testing method proposed by the embodiment of the first aspect of the present disclosure includes: obtaining a first video stream and a second video stream corresponding to the first video stream, wherein the first video stream is a specified image of the camera component in the operating system. Recording results; determining the first video information of the first video stream, and determining the second video information of the second video stream; and testing the stability index of the camera component based on the first video information and the second video information.
  • obtaining the first video stream and the second video stream corresponding to the first video stream includes: controlling the camera component in the operating system to record the target image to obtain the first video stream; obtaining the development management The application running in the system records the video of the target image as the second video stream.
  • controlling the camera component in the operating system to record the target image to obtain the first video stream includes: controlling the camera component in the operating system to record the target image to obtain the initial video stream; obtaining the support preset The video stream displayed on the display screen of the interface is used as the first video stream, wherein the camera component transmits the initial video stream to the display screen via the preset interface.
  • obtaining the video recorded by the application program running in the development management system on the target image as a second video stream includes: sending a video collection instruction to the development management system; receiving the second video stream transmitted by the development management system, Among them, the development management system responds to the video collection instruction and controls the application program to record the target image to obtain the second video stream.
  • determining the first video information of the first video stream includes: performing frame analysis on the first video stream to obtain multiple first video frames; determining the first frame corresponding to each first video frame. content and the first difference time, where the first difference time describes the time difference between the collection time of the first video frame and the reference collection time; multiple first frame contents and multiple first difference times are used as the first video information.
  • determining the second video information of the second video stream includes: performing frame analysis on the second video stream to obtain multiple second video frames; determining the second frame corresponding to each second video frame. content and a second difference time, where the second difference time describes the time difference between the collection time of the second video frame and the reference collection time; multiple second frame contents and multiple second difference times are used as the second video information.
  • performing a stability test on the camera component based on the first video information and the second video information includes: obtaining process log information of the camera component;
  • performing a stability test on the camera component based on the first video information, the second video information, and the process log information includes: based on the first difference time and the second difference time, from a plurality of first video frames Determine the first abnormal video frame in the first abnormal video frame; determine the second abnormal video frame from the plurality of first video frames according to the first frame content and the second frame content; determine the second abnormal video frame according to the first abnormal video frame, the second abnormal video frame, and The process log information is used to test the stability of the camera component.
  • determining the first abnormal video frame from the plurality of first video frames according to the first difference time and the second difference time includes: determining the time between the first difference time and the second difference time. Difference; if the time difference is greater than the time difference threshold, the first video frame to which the first difference time belongs is regarded as the first abnormal video frame.
  • determining the second abnormal video frame from the plurality of first video frames based on the content of the first frame and the content of the second frame includes: determining the first abnormal video frame based on the content of the first frame and the content of the second frame. Whether the video frame generates a specified content event; if the first video frame generates a specified content event, the first video frame is determined to be the second abnormal video frame.
  • performing a stability test on the camera component based on the first abnormal video frame, the second abnormal video frame, and process log information includes: parsing the first frame log of the first abnormal video frame from the process log information. information; parse the second frame log information of the second abnormal video frame from the process log information; determine the abnormal type information of the camera component based on the first frame log information and the second frame log information.
  • the camera component testing method proposed by the embodiment of the first aspect of the present disclosure obtains a first video stream and a second video stream corresponding to the first video stream, where the first video stream is the recording of a specified image by the camera component in the operating system.
  • the first video information of the first video stream is determined
  • the second video information of the second video stream is determined
  • the stability index of the camera component is tested based on the first video information and the second video information, which can effectively improve the camera component.
  • the camera component testing device proposed by the embodiment of the second aspect of the present disclosure includes: an acquisition module, used to acquire a first video stream, and a second video stream corresponding to the first video stream, wherein the first video stream is in the operating system.
  • the camera component records the specified image; a determination module is used to determine the first video information of the first video stream and determine the second video information of the second video stream; and a testing module is used to determine the first video information and the second video information of the second video stream.
  • Video information test the stability index of camera components.
  • the acquisition module includes: a control sub-module, used to control the camera component in the operating system to record the target image to obtain the first video stream; and the acquisition sub-module, used to obtain the data running in the development management system.
  • the application records the resulting video of the target image as a second video stream.
  • control submodule is specifically used to: control the camera component in the operating system to record the target image to obtain an initial video stream; obtain the video stream displayed on the display screen that supports the preset interface as the first video stream, wherein the camera component transmits the initial video stream to the display screen via a preset interface.
  • the acquisition submodule is specifically configured to: send a video collection instruction to the development management system; receive the second video stream transmitted by the development management system, wherein the development management system responds to the video collection instruction and controls the application recording The target image gets the second video stream.
  • the determination module is specifically configured to: perform frame analysis on the first video stream to obtain multiple first video frames; determine the first frame content and first difference time corresponding to each first video frame. , wherein the first difference time describes the time difference between the collection time of the first video frame and the reference collection time; multiple first frame contents and multiple first difference times are used as the first video information.
  • the determining module is further configured to: perform frame analysis on the second video stream to obtain a plurality of second video frames; determine the second frame content and the second difference time corresponding to each second video frame. , wherein the second difference time describes the time difference between the collection time of the second video frame and the reference collection time; multiple second frame contents and multiple second difference times are used as the second video information.
  • the test module is specifically configured to: obtain process log information of the camera component; and perform a stability test on the camera component based on the first video information, the second video information, and the process log information.
  • the test module is further configured to: determine the first abnormal video frame from multiple first video frames based on the first difference time and the second difference time; determine the first abnormal video frame based on the first frame content and the second frame content. content, determine the second abnormal video frame from the plurality of first video frames; perform a stability test on the camera component based on the first abnormal video frame, the second abnormal video frame, and the process log information.
  • test module is also configured to: determine the time difference between the first difference time and the second difference time; if the time difference is greater than the time difference threshold, then change the first video to which the first difference time belongs frame as the first abnormal video frame.
  • the test module is further configured to: determine whether the first video frame generates a specified content event based on the first frame content and the second frame content; if the first video frame generates a specified content event, determine whether the first video frame generates a specified content event.
  • the video frame is the second abnormal video frame.
  • the test module is also configured to: parse the first frame log information of the first abnormal video frame from the process log information; parse the second frame log information of the second abnormal video frame from the process log information; Determine the abnormality type information of the camera component based on the first frame log information and the second frame log information.
  • the camera component testing device proposed by the embodiment of the second aspect of the present disclosure obtains a first video stream and a second video stream corresponding to the first video stream, where the first video stream is the recording of a specified image by the camera component in the operating system.
  • the first video information of the first video stream is determined
  • the second video information of the second video stream is determined
  • the stability index of the camera component is tested based on the first video information and the second video information, which can effectively improve the camera component.
  • the third embodiment of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the program, the implementation of the first embodiment of the present disclosure is implemented. Proposed camera component testing method.
  • the fourth embodiment of the present disclosure provides a non-transitory computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the camera component testing method as proposed in the first embodiment of the present disclosure is implemented.
  • the fifth embodiment of the present disclosure provides a computer program product.
  • the camera component testing method proposed in the first embodiment of the present disclosure is executed.
  • Figure 1 is a schematic flow chart of a camera component testing method proposed by an embodiment of the present disclosure
  • Figure 2 is a schematic flow chart of a camera component testing method proposed by another embodiment of the present disclosure.
  • Figure 3 is a schematic diagram of the testing framework of the camera component in the embodiment of the present disclosure.
  • Figure 4 is a schematic flow chart of a camera component testing method proposed by another embodiment of the present disclosure.
  • Figure 5 is a schematic structural diagram of a camera component testing device proposed by an embodiment of the present disclosure.
  • Figure 6 is a schematic structural diagram of a camera component testing device according to another embodiment of the present disclosure.
  • FIG. 7 illustrates a block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure.
  • FIG. 1 is a schematic flowchart of a camera component testing method proposed by an embodiment of the present disclosure.
  • the execution subject of the camera component testing method in this embodiment is a camera component testing device, which can be implemented by software and/or hardware, and can be configured in electronic equipment, without limitation.
  • An electronic device is a device that sends data to or receives data from other devices via communication facilities. That is to say, the electronic device can be, for example, a terminal device, a computer device, etc. that are capable of network communication connections. This does not mean limit.
  • the electronic device can be a TV set-top box, a TV stick, etc., and if the operating system is configured in the TV set-top box or TV stick, and the stability test operation is performed to obtain the test data, then the camera component testing method in the embodiment of the present disclosure can be used. , conduct stability tests on the camera components of the operating systems in the aforementioned TV set-top boxes and TV sticks, without any restrictions.
  • the camera component testing method includes:
  • S101 Obtain a first video stream and a second video stream corresponding to the first video stream, where the first video stream is obtained by recording a specified image by the camera component in the operating system.
  • the operating system refers to the computer program that manages computer hardware and software resources.
  • the operating system can handle basic tasks such as managing and configuring memory, determining the priority of system resource supply and demand, controlling input devices and output devices, operating networks, and managing file systems. affairs.
  • the operating system also provides an operation interface for users to interact with the system.
  • the operating system in the embodiment of the present disclosure may refer to any type of operating system, and there is no limitation on this.
  • the video stream obtained by recording the specified image by the camera component in the operating system may be called the first video stream.
  • the central processor can control the camera component to record the specified image within a period of time to obtain the first video stream.
  • a test case can be configured and the camera component can be controlled based on the test case to make it Video recording is performed on specified images within a period of time to obtain the first video stream. There is no limit to this.
  • the video stream obtained by video recording the above-mentioned specified image as a test reference can be called a second video stream.
  • the second video stream can be the development and management system's processing of the specified image. It can be obtained from video recording, or it can be obtained from video recording of specified images by other reference equipment, and there is no limit to this.
  • the development management system refers to the process-centered, through the management (project management, data management) of product development activities (process) and results (drawing data, empirical knowledge), continuously accumulating product development process knowledge, forming a closed loop system.
  • S102 Determine the first video information of the first video stream, and determine the second video information of the second video stream.
  • the first video information of the first video stream can be determined, and the second video information of the second video stream can be determined, and the second video can be Information is used as a test reference to conduct a stability test on the camera component based on the first video stream recorded by the camera component. Since the second video stream corresponding to the first video stream will not be affected by the response of the device mounted on the camera component itself, And the influence of network data transmission quality, so that when the stability test of the camera component is performed by combining the second video information and the first video stream recorded by the camera component, the stability of the camera component can be effectively identified.
  • the index information used to describe the content, quality, characteristics, etc. of the first video stream may be called the first video information
  • the index information used to describe the content, quality, characteristics, etc. of the second video stream may be called the third video information.
  • Video information used to describe the content, quality, characteristics, etc. of the first video stream.
  • the content, quality, characteristics and other indicators of the first video stream can be analyzed frame by frame to obtain each video.
  • the index information of the frame is used as the first video information.
  • the content, quality, characteristics and other indicators of the second video stream can also be analyzed frame by frame to obtain the index information of each video frame as the second video information. There is no limit to this. .
  • the first video information and the second video information can be input into the pre-trained stability test model, so as to Obtain the stability index output by the stability test model, or you can also automatically execute pre-configured test cases, and analyze the first video information and the second video information based on the executed test cases to obtain the stability index of the camera component. There is no restriction on this.
  • the first video stream and the second video stream corresponding to the first video stream are obtained, where the first video stream is obtained by recording the specified image by the camera component in the operating system, and the first video stream is determined.
  • first video information and determine the second video information of the second video stream; and test the stability index of the camera component based on the first video information and the second video information, which can effectively improve the stability test accuracy of the camera component and improve Stability test effect.
  • FIG. 2 is a schematic flowchart of a camera component testing method proposed by another embodiment of the present disclosure.
  • the camera component testing method includes:
  • S201 Control the camera component in the operating system to record the target image to obtain the first video stream.
  • FIG. 3 is a schematic diagram of the camera component testing framework in an embodiment of the present disclosure.
  • the camera component testing framework includes a server, a device under test (camera component in the operating system), a reference device, a development management system, a video Imaging device, wherein the video imaging device plays a specified image, and the server can start an actual test case, and based on the actual test case, the device under test (the camera component in the operating system) is controlled to record the specified image played by the video imaging device, The first video stream is obtained.
  • the server can start a reference test case to issue a video recording instruction to the development management system.
  • the development management system responds to the video recording instruction and controls the reference device mounted on it (the reference device can be the development management system). application running in the management system), and then transmits the obtained second video stream to the server side, so that the server can perform stability calculations on the camera component based on the first video stream and the second video stream collected by the two devices.
  • the camera component in the operating system can also be controlled. Record the target image to obtain an initial video stream, and obtain the video stream displayed on the display screen that supports the preset interface as the first video stream, wherein the camera component transmits the initial video stream to the display screen via the preset interface.
  • the default interface is such as High Definition Multimedia Interface (HDMI).
  • HDMI High Definition Multimedia Interface
  • the initial video stream can be transmitted to the display screen through the HDMI interface, and then it can be displayed in the buffer of the system video output in real time.
  • the video stream carried by the HDMI signal is intercepted directly and the intercepted video stream is used as the first video stream.
  • the first video stream can be obtained frame by frame directly from the video stream displayed on the display screen. There is no restriction on this. .
  • the video stream played and displayed by the application can be intercepted frame by frame and in real time in the server background to obtain the second video stream.
  • obtaining the video recorded by the application running in the development management system on the target image as the second video stream may be to send a video collection instruction to the development management system and receive the second video transmitted by the development management system.
  • Video stream in which the development management system responds to the video collection instruction and controls the application program to record the target image to obtain the second video stream, thereby triggering the application program in the development management system to record the target image based on the video collection instruction method to facilitate the synchronization of the two-way video collection. Control and management to improve the practicality of camera component testing methods.
  • S203 Determine the first video information of the first video stream, and determine the second video information of the second video stream.
  • S204 Test the stability index of the camera component based on the first video information and the second video information.
  • the camera component in the operating system is controlled to record the target image to obtain the first video stream, and the video recorded by the application program running in the development management system to record the target image is obtained as the second video stream, and the first video stream is determined.
  • the first video information of the video stream, and determining the second video information of the second video stream, and testing the stability index of the camera component based on the first video information and the second video information can effectively ensure that the first video stream and the second video stream are The consistency between the two video streams, when based on the second video stream as the test reference, maximizes the test reference effect, improves the referability of the second video stream, and thereby improves the accuracy of the stability test of the camera component.
  • FIG. 4 is a schematic flowchart of a camera component testing method proposed by another embodiment of the present disclosure.
  • the camera component testing method includes:
  • S401 Obtain a first video stream and a second video stream corresponding to the first video stream, where the first video stream is obtained by recording a specified image by the camera component in the operating system.
  • S402 Perform frame analysis on the first video stream to obtain multiple first video frames.
  • the embodiment of the present disclosure can extract the first video stream frame by frame, and use each extracted video frame as the first video frame.
  • each first video frame can also be determined.
  • the collection timestamp of the video frame, and the first video frame is marked based on the collection timestamp to facilitate subsequent test analysis.
  • S403 Determine the first frame content and the first difference time corresponding to each first video frame, where the first difference time describes the time difference between the collection time of the first video frame and the reference collection time, and combine multiple first The frame content and a plurality of first difference times are used as the first video information.
  • each first video frame can be analyzed separately, and the picture content currently presented by the first video frame can be used as the first frame content. Difference is made between the acquisition time of the first video frame indicated by the above timestamp and a reference acquisition time, and the resulting time difference is used as the first difference time, where the reference acquisition time can be extracted from the specified image, and can be Specify the playback time of the corresponding frame content in the image as the reference acquisition time, and there is no restriction on this.
  • S404 Perform frame analysis on the second video stream to obtain multiple second video frames.
  • the embodiment of the present disclosure can extract the second video stream frame by frame, and use each extracted video frame as a second video frame.
  • each second video stream can also be determined.
  • the collection timestamp of the video frame, and the second video frame is marked based on the collection timestamp to facilitate subsequent test analysis.
  • S405 Determine the second frame content and the second difference time corresponding to each second video frame, where the second difference time describes the time difference between the collection time of the second video frame and the reference collection time, and combine multiple second The frame content and a plurality of second difference times are used as the second video information.
  • each second video frame can be analyzed separately, and the picture content currently presented by the second video frame can be used as the second frame content.
  • the embodiment of the present disclosure can start two additional threads to determine the running status of the stability test case based on one thread.
  • This thread can parse the process log information related to the camera component in real time and based on another thread. Detect the output of the video stream at the bottom of the hardware without any restrictions.
  • the process log information is used to describe the operating status information of the camera component.
  • the operating status information for example, collects the system processor operating information, memory, disk, network, and process information of the operating system during the test, and the resource information occupied by each process. memory, failure screenshots, etc.
  • S407 Perform a stability test on the camera component based on the first video information, the second video information, and the process log information.
  • a plurality of first frame contents and a plurality of first difference times are used as the first video information
  • a plurality of second frame contents and a plurality of second difference times are used as the second video information
  • the process log information of the camera component is obtained.
  • the first video information, the second video information, and the process log information can be combined to conduct a stability test on the camera component. This not only effectively avoids delays in network data transmission, slow response of electronic equipment, etc. that affect the stability of the camera component itself, but also The stability of the camera component can be analyzed and processed in conjunction with the operating status information of the camera component, effectively improving the comprehensiveness of the stability test of the camera component.
  • the first abnormal video frame may be determined from a plurality of first video frames based on the first difference time and the second difference time, and based on the first frame content and the second frame content, the first abnormal video frame may be determined from Determine the second abnormal video frame among the plurality of first video frames, and perform a stability test on the camera component based on the first abnormal video frame, the second abnormal video frame, and the process log information, providing an effective stability test method for easy implementation and deployment.
  • the first video frame to which the first difference time belongs that has a larger difference compared with the second difference time can be determined as the first abnormal video frame.
  • the first abnormal video frame which can indicate that there is freezing or unresponsiveness when collecting the first abnormal video frame.
  • content comparison analysis can be performed on the content of the first frame and the content of the second frame. If the content of the first frame appears relative to the content of the second frame, If the content is black screen, blue screen, frame stuck, etc., it can be determined that the first video frame to which the first frame of content belongs is the second abnormal video frame.
  • the process log information can also be combined to compare the first abnormal video frame and the second abnormal video frame. Carry out detailed analysis of frame anomalies and obtain stability test results.
  • the time difference between the first difference time and the second difference time may be determined, and when the time difference is greater than the time difference threshold, the first video frame to which the first difference time belongs is used as the An abnormal video frame, and based on the content of the first frame and the content of the second frame, determining whether the first video frame generates a specified content event, and when the first video frame generates a specified content event, determining the first video frame as the second abnormal video frame.
  • the specified content event may be, for example, a content black screen event, a blue screen event, a frame stuck event, etc.
  • the time difference threshold may be, for example, 1 second. Then it is determined that the time difference between the first difference time and the second difference time is greater than 1 Seconds, it can be determined that the camera component is stuck or unresponsive when collecting the first abnormal video frame. If it is determined that the first video frame generates a content black screen event, blue screen event, frame stuck event, etc., it can be determined that the first frame The first video frame to which the content belongs is the second abnormal video frame.
  • the first frame log information of the first abnormal video frame can also be parsed from the process log information
  • the second frame log information of the second abnormal video frame can be parsed from the process log information, and according to The first frame log information and the second frame log information determine the abnormal type information of the camera component, realize quantification of the stability test results of the camera component, facilitate the visual presentation of the stability test results, and improve the stability test of the camera component. Intuitiveness.
  • the first frame of log information may be log information related to the first abnormal video frame in the process log information
  • the second frame log information may be log information related to the second abnormal video frame in the process log information
  • the process log information can be parsed based on the mark of the first abnormal video frame to extract the first frame log information.
  • the process log information can be parsed based on the mark of the second abnormal video frame to extract the third frame.
  • the second frame of log information is then combined to determine the abnormal type information of the camera component by combining the first frame of log information and the second frame of log information.
  • abnormal type information for example, the camera component is unresponsive, the camera component is disconnected, the camera component is delayed, etc.
  • the first video stream and the second video stream corresponding to the first video stream are obtained, where the first video stream is obtained by recording the specified image by the camera component in the operating system, and the first video stream is determined.
  • first video information and determine the second video information of the second video stream; and test the stability index of the camera component based on the first video information and the second video information, which can effectively improve the stability test accuracy of the camera component and improve Stability test effect.
  • the first video information, the second video information, and the process log information can be combined to conduct a stability test on the camera component, which not only effectively avoids delays in network data transmission, slow response of electronic equipment, etc. that affect the stability of the camera component itself, but also can The stability of the camera component is analyzed and processed in conjunction with the operating status information of the camera component, effectively improving the comprehensiveness of the stability test of the camera component.
  • FIG. 5 is a schematic structural diagram of a camera component testing device according to an embodiment of the present disclosure.
  • the camera component testing device 50 includes:
  • the acquisition module 501 is used to acquire a first video stream and a second video stream corresponding to the first video stream, where the first video stream is obtained by recording a specified image by the camera component in the operating system;
  • Determining module 502 used to determine the first video information of the first video stream, and determine the second video information of the second video stream;
  • the testing module 503 is used to test the stability index of the camera component based on the first video information and the second video information.
  • the acquisition module 501 includes:
  • the control sub-module 5011 is used to control the camera component in the operating system to record the target image to obtain the first video stream;
  • the acquisition sub-module 5012 is used to acquire the video recorded by the application program running in the development management system on the target image as the second video stream.
  • control submodule 5011 is specifically used for:
  • the video stream displayed on the display screen that supports the preset interface is obtained as the first video stream, wherein the camera component transmits the initial video stream to the display screen via the preset interface.
  • the acquisition sub-module 5012 is specifically used for:
  • the determining module 502 is specifically used for:
  • the determining module 502 is also used to:
  • test module 503 is specifically used for:
  • test module 503 is also used for:
  • test module 503 is also used for:
  • the first video frame to which the first difference time belongs is regarded as the first abnormal video frame.
  • test module 503 is also used for:
  • the first video frame If the first video frame generates a specified content event, the first video frame is determined to be the second abnormal video frame.
  • test module 503 is also used for:
  • the present disclosure also provides a camera component testing device.
  • the implementation of the camera component testing method is also applicable to the camera component testing device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
  • the third video stream of the first video stream is determined.
  • the present disclosure also proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the program, the aforementioned embodiments of the present disclosure are implemented. Proposed camera component testing method.
  • the present disclosure also proposes a non-transitory computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the camera component testing method as proposed in the previous embodiments of the present disclosure is implemented.
  • the present disclosure also proposes a computer program product.
  • the instruction processor in the computer program product is executed, the camera component testing method proposed in the previous embodiments of the present disclosure is executed.
  • FIG. 7 illustrates a block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure.
  • the electronic device 12 shown in FIG. 7 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.
  • electronic device 12 is embodied in the form of a general-purpose computing device.
  • Components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting various system components (including system memory 28 and processing unit 16).
  • Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerated port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include but are not limited to Industry Standard Architecture (hereinafter referred to as: ISA) bus, Micro Channel Architecture (Micro Channel Architecture; hereafter referred to as: MAC) bus, enhanced ISA bus, video electronics Standards Association (Video Electronics Standards Association; hereinafter referred to as: VESA) local bus and Peripheral Component Interconnection (hereinafter referred to as: PCI) bus.
  • ISA Industry Standard Architecture
  • MAC Micro Channel Architecture
  • VESA Video Electronics Standards Association
  • PCI Peripheral Component Interconnection
  • Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and nonvolatile media, removable and non-removable media.
  • the memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter referred to as: RAM) 30 and/or cache memory 32.
  • Electronic device 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 7, commonly referred to as a "hard drive").
  • a disk drive may be provided for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and a disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disk read-only memory).
  • Disc Read Only Memory hereinafter referred to as: CD-ROM
  • DVD-ROM Digital Video Disc Read Only Memory
  • each drive may be connected to bus 18 through one or more data media interfaces.
  • Memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of embodiments of the present disclosure.
  • a program/utility 40 having a set of (at least one) program modules 42 may be stored, for example, in memory 28 , each of these examples or some combination may include the implementation of a network environment.
  • Program modules 42 generally perform functions and/or methods in the embodiments described in this disclosure.
  • Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 12, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 12 to communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 22.
  • the electronic device 12 can also communicate with one or more networks (such as a local area network (Local Area Network; hereinafter referred to as: LAN), a wide area network (Wide Area Network; hereinafter referred to as: WAN)) and/or a public network, such as the Internet, through the network adapter 20 ) communication.
  • networks such as a local area network (Local Area Network; hereinafter referred to as: LAN), a wide area network (Wide Area Network; hereinafter referred to as: WAN)
  • a public network such as the Internet
  • network adapter 20 communicates with other modules of electronic device 12 via bus 18 .
  • other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
  • the processing unit 16 executes programs stored in the system memory 28 to perform various functional applications and data processing, for example, implementing the camera component testing method mentioned in the previous embodiment.
  • various parts of the present disclosure may be implemented in hardware, software, firmware, or combinations thereof.
  • various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a logic gate circuit with a logic gate circuit for implementing a logic function on a data signal.
  • Discrete logic circuits application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
  • the program can be stored in a computer-readable storage medium.
  • the program can be stored in a computer-readable storage medium.
  • each functional unit in various embodiments of the present disclosure may be integrated into one processing module, each unit may exist physically alone, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
  • the storage media mentioned above can be read-only memory, magnetic disks or optical disks, etc.

Abstract

本公开提出一种摄像组件测试方法、装置、电子设备及存储介质,该方法包括:获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得,确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息,以及根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标。通过本公开,能够有效提升摄像组件的稳定性测试准确率,提升稳定性测试效果。

Description

摄像组件测试方法、装置、电子设备及存储介质 技术领域
本公开涉及计算机技术领域,尤其涉及一种摄像组件测试方法、装置、电子设备及存储介质。
背景技术
电子设备通常搭载操作系统,摄像组件作为操作系统中的一个重要模块,如何验证其功能的稳定性也就成为了一个亟需解决的问题。
相关技术中,摄像组件稳定性自动化测试方案,通常是针对摄像组件编写自动化测试用例,以对摄像组件稳定性进行测试,但是,摄像组件在录制视频的过程中,可能存在网络数据延迟传输,电子设备反应慢等情况,这与摄像组件自身的稳定性表现易于混淆,反应在可视界面上,即呈现出摄像组件所录制视频画面无响应、断开的异常。
这种方式下,摄像组件的稳定性测试准确率不高,稳定性测试效果不佳。
发明内容
本公开旨在至少在一定程度上解决相关技术中的技术问题之一。
为此,本公开的目的在于提出一种摄像组件测试方法、装置、电子设备及存储介质,能够有效提升摄像组件的稳定性测试准确率,提升稳定性测试效果。
本公开第一方面实施例提出的摄像组件测试方法,包括:获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得;确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息;以及根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标。
在一种实施方式中,获取第一视频流,和与第一视频流对应的第二视频流,包括:控制操作系统中摄像组件对目标影像进行录制,以得到第一视频流;获取开发管理系统中所运行应用程序对目标影像录制所得视频作为第二视频流。
在一种实施方式中,控制操作系统中摄像组件对目标影像进行录制,以得到第一视频流,包括:控制操作系统中摄像组件对目标影像进行录制,以得到初始视频流;获取支持预设接口的显示屏中所显示视频流作为第一视频流,其中,摄像组件经由预设接口将初始视频流传输至显示屏。
在一种实施方式中,获取开发管理系统中所运行应用程序对目标影像录制所得视频作为第二视频流,包括:向开发管理系统发送视频采集指令;接收开发管理系统传输的第二视频流,其中,开发管理系统响应于视频采集指令,控制应用程序录制目标影像得到第二视频流。
在一种实施方式中,确定第一视频流的第一视频信息,包括:对第一视频流进行帧解析,得到多个第一视频帧;确定与每个第一视频帧对应的第一帧内容和第一差异时间,其中,第一差异时间描述第一视频帧的采集时间与参考采集时间之间的时间差;将多个第一帧内容和多个第一差异时间作为第一视频信息。
在一种实施方式中,确定第二视频流的第二视频信息,包括:对第二视频流进行帧解析,得到多个第二视频帧;确定与每个第二视频帧对应的第二帧内容和第二差异时间,其中,第二差异时间描述第二 视频帧的采集时间与参考采集时间之间的时间差;将多个第二帧内容和多个第二差异时间作为第二视频信息。
在一种实施方式中,根据第一视频信息和第二视频信息,对摄像组件进行稳定性测试,包括:获取摄像组件的进程日志信息;
根据第一视频信息、第二视频信息,以及进程日志信息对摄像组件进行稳定性测试。
在一种实施方式中,根据第一视频信息、第二视频信息,以及进程日志信息对摄像组件进行稳定性测试,包括:根据第一差异时间和第二差异时间,从多个第一视频帧中确定出第一异常视频帧;根据第一帧内容和第二帧内容,从多个第一视频帧中确定出第二异常视频帧;根据第一异常视频帧、第二异常视频帧,以及进程日志信息对摄像组件进行稳定性测试。
在一种实施方式中,根据第一差异时间和第二差异时间,从多个第一视频帧中确定出第一异常视频帧,包括:确定第一差异时间和第二差异时间之间的时间差值;如果时间差值大于时差阈值,则将第一差异时间所属的第一视频帧作为第一异常视频帧。
在一种实施方式中,根据第一帧内容和第二帧内容,从多个第一视频帧中确定出第二异常视频帧,包括:根据第一帧内容和第二帧内容,确定第一视频帧是否产生指定内容事件;如果第一视频帧产生指定内容事件,则确定第一视频帧为第二异常视频帧。
在一种实施方式中,根据第一异常视频帧、第二异常视频帧,以及进程日志信息对摄像组件进行稳定性测试,包括:从进程日志信息中解析第一异常视频帧的第一帧日志信息;从进程日志信息中解析第二异常视频帧的第二帧日志信息;根据第一帧日志信息和第二帧日志信息,确定摄像组件的异常类型信息。
本公开第一方面实施例提出的摄像组件测试方法,通过获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得,确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息,以及根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标,能够有效提升摄像组件的稳定性测试准确率,提升稳定性测试效果。
本公开第二方面实施例提出的摄像组件测试装置,包括:获取模块,用于获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得;确定模块,用于确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息;以及测试模块,用于根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标。
在一种实施方式中,获取模块,包括:控制子模块,用于控制操作系统中摄像组件对目标影像进行录制,以得到第一视频流;获取子模块,用于获取开发管理系统中所运行应用程序对目标影像录制所得视频作为第二视频流。
在一种实施方式中,控制子模块,具体用于:控制操作系统中摄像组件对目标影像进行录制,以得到初始视频流;获取支持预设接口的显示屏中所显示视频流作为第一视频流,其中,摄像组件经由预设接口将初始视频流传输至显示屏。
在一种实施方式中,获取子模块,具体用于:向开发管理系统发送视频采集指令;接收开发管理系统传输的第二视频流,其中,开发管理系统响应于视频采集指令,控制应用程序录制目标影像得到第二视频流。
在一种实施方式中,确定模块,具体用于:对第一视频流进行帧解析,得到多个第一视频帧;确定 与每个第一视频帧对应的第一帧内容和第一差异时间,其中,第一差异时间描述第一视频帧的采集时间与参考采集时间之间的时间差;多个第一帧内容和多个第一差异时间作为第一视频信息。
在一种实施方式中,确定模块,还用于:对第二视频流进行帧解析,得到多个第二视频帧;确定与每个第二视频帧对应的第二帧内容和第二差异时间,其中,第二差异时间描述第二视频帧的采集时间与参考采集时间之间的时间差;将多个第二帧内容和多个第二差异时间作为第二视频信息。
在一种实施方式中,测试模块,具体用于:获取摄像组件的进程日志信息;根据第一视频信息、第二视频信息,以及进程日志信息对摄像组件进行稳定性测试。
在一种实施方式中,测试模块,还用于:根据第一差异时间和第二差异时间,从多个第一视频帧中确定出第一异常视频帧;根据第一帧内容和第二帧内容,从多个第一视频帧中确定出第二异常视频帧;根据第一异常视频帧、第二异常视频帧,以及进程日志信息对摄像组件进行稳定性测试。
在一种实施方式中,测试模块,还用于:确定第一差异时间和第二差异时间之间的时间差值;如果时间差值大于时差阈值,则将第一差异时间所属的第一视频帧作为第一异常视频帧。
在一种实施方式中,测试模块,还用于:根据第一帧内容和第二帧内容,确定第一视频帧是否产生指定内容事件;如果第一视频帧产生指定内容事件,则确定第一视频帧为第二异常视频帧。
在一种实施方式中,测试模块,还用于:从进程日志信息中解析第一异常视频帧的第一帧日志信息;从进程日志信息中解析第二异常视频帧的第二帧日志信息;根据第一帧日志信息和第二帧日志信息,确定摄像组件的异常类型信息。
本公开第二方面实施例提出的摄像组件测试装置,通过获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得,确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息,以及根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标,能够有效提升摄像组件的稳定性测试准确率,提升稳定性测试效果。
本公开第三方面实施例提出了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行程序时,实现如本公开第一方面实施例提出的摄像组件测试方法。
本公开第四方面实施例提出了一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开第一方面实施例提出的摄像组件测试方法。
本公开第五方面实施例提出了一种计算机程序产品,当计算机程序产品中的指令由处理器执行时,执行如本公开第一方面实施例提出的摄像组件测试方法。
本公开附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本公开的实践了解到。
附图说明
本公开上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1是本公开一实施例提出的摄像组件测试方法的流程示意图;
图2是本公开另一实施例提出的摄像组件测试方法的流程示意图;
图3是本公开实施例中摄像组件测试框架示意图;
图4是本公开另一实施例提出的摄像组件测试方法的流程示意图;
图5是本公开一实施例提出的摄像组件测试装置的结构示意图;
图6是本公开另一实施例提出的摄像组件测试装置的结构示意图;
图7示出了适于用来实现本公开实施方式的示例性电子设备的框图。
具体实施方式
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本公开,而不能理解为对本公开的限制。相反,本公开的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。
图1是本公开一实施例提出的摄像组件测试方法的流程示意图。
需要说明的是,本实施例的摄像组件测试方法的执行主体为摄像组件测试装置,该装置可以由软件和/或硬件的方式实现,该装置可以配置在电子设备中,对此不做限制。
电子设备,是一种经由通信设施向其他设备发送数据或接收其他设备数据的设备,也即是说,该电子设备可以例如为能够进行网络通信连接的终端设备、计算机设备等,对此不做限制。
举例而言,电子设备可为电视机顶盒、电视棒等,在该电视机顶盒、电视棒中配置操作系统,并进行稳定性测试操作得到测试数据,则可以基于本公开实施例中的摄像组件测试方法,对前述电视机顶盒、电视棒中操作系统的摄像组件进行稳定性测试,对此不做限制。
如图1所示,该摄像组件测试方法,包括:
S101:获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得。
其中,操作系统,是指管理计算机硬件与软件资源的计算机程序,操作系统可以处理如管理与配置内存、决定系统资源供需的优先次序、控制输入设备与输出设备、操作网络与管理文件系统等基本事务。同时操作系统也提供一个供用户与系统交互的操作界面。
本公开实施例中的操作系统可以是指任意类型的操作系统,对此不做限制。
其中,操作系统中摄像组件对指定影像录制所得的视频流,可以被称为第一视频流。
其中,可以由中央处理器控制摄像组件在一段时间范围内对指定影像进行视频录制,得到第一视频流,或者,也可以配置测试用例,并基于该测试用例对摄像组件进行摄像控制,使其在一段时间范围内对指定影像进行视频录制,得到第一视频流,对此不做限制。
其中,基于上述一段时间范围持续的时长,对上述指定影像进行视频录制所得作为测试参考的视频流,可以被称为第二视频流,该第二视频流,可以是开发管理系统对指定影像进行视频录制所得,或者,也可以是其他参考设备对指定影像进行视频录制所得,对此不做限制。
其中,开发管理系统,是指以流程为中心,通过对产品开发活动(流程)和结果(图纸数据,经验知识)的管理(项目管理,数据管理),不断积累产品开发过程知识,形成一个闭环的系统。
S102:确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息。
上述在获取第一视频流,和与第一视频流对应的第二视频流之后,可以确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息,将第二视频信息作为测试参考,以基于摄像组件所录制的第一视频流对摄像组件进行稳定性测试,由于与第一视频流对应的第二视频流,并不会受到摄像组件所搭 载设备自身响应情况,以及网络数据传输质量的影响,从而当联合第二视频信息与摄像组件所录制的第一视频流对摄像组件进行稳定性测试时,能够有效识别出摄像组件的稳定性情况。
其中,用于描述第一视频流的内容、质量、特征等指标信息,可以被称为第一视频信息,用于描述第二视频流的内容、质量、特征等指标信息,可以被称为第二视频信息。
上述在确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息时,可以对第一视频流逐帧地进行内容、质量、特征等指标进行分析,得到每一视频帧的指标信息作为第一视频信息,还可以对第二视频流逐帧地进行内容、质量、特征等指标进行分析,得到每一视频帧的指标信息作为第二视频信息,对此不做限制。
S103:根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标。
上述在确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息之后,可以将第一视频信息和第二视频信息输入至预先训练的稳定性测试模型之中,以得到稳定性测试模型输出的稳定性指标,或者,还可以自动化地执行预先配置的测试用例,并基于所执行测试用例分析第一视频信息和第二视频信息,得到摄像组件的稳定性指标,对此不做限制。
本实施例中,通过获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得,并确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息;以及根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标,能够有效提升摄像组件的稳定性测试准确率,提升稳定性测试效果。
图2是本公开另一实施例提出的摄像组件测试方法的流程示意图。
如图2所示,该摄像组件测试方法,包括:
S201:控制操作系统中摄像组件对目标影像进行录制,以得到第一视频流。
如图3所示,图3是本公开实施例中摄像组件测试框架示意图,其中,该摄像组件测试框架中包括服务器、被测设备(操作系统中摄像组件)、参照设备、开发管理系统,视频影像装置,其中,视频影像装置播放指定影像,可以由服务器启动一个实际测试用例,基于该实际测试用例控制被测设备(操作系统中摄像组件)对视频影像装置所播放的指定影像进行视频录制,得到第一视频流,相应的,可以由服务器启动一个参考测试用例向开发管理系统发出视频录制指令,由开发管理系统响应于视频录制指令,控制其上搭载的参照设备(该参照设备可以是开发管理系统中所运行应用程序),而后将所得第二视频流传输至服务器侧,以供服务器基于两路装置采集的第一视频流和第二视频流对摄像组件进行稳定性运算。
可选地,一些实施例中,考虑到摄像组件所录制视频流通常会提供至显示屏进行播放,为了便于对摄像组件所录制视频流的捕捉和可视化视频分析处理,还可以控制操作系统中摄像组件对目标影像进行录制,以得到初始视频流,获取支持预设接口的显示屏中所显示视频流作为第一视频流,其中,摄像组件经由预设接口将初始视频流传输至显示屏。
其中,预设接口例如高清多媒体接口(High Definition Multimedia Interface,HDMI)。
举例而言,在控制操作系统中摄像组件对目标影像进行录制,以得到初始视频流之后,可以经由该HDMI接口将初始视频流传输至显示屏,而后,可以在系统视频输出的缓冲区中实时地截取HDMI信号所携带的视频流,将截取到的视频流作为第一视频流,或者,可以直接从显示屏中所显示视频流进行逐帧地截取得到第一视频流,对此不做限制。
S202:获取开发管理系统中所运行应用程序对目标影像录制所得视频作为第二视频流。
举例而言,在控制开发管理系统中所运行应用程序对目标影像录制所得视频之后,可以在服务器后台对应用程序所播放显示视频流进行逐帧地、实时地截取,得到第二视频流。
可选地,一些实施例中,获取开发管理系统中所运行应用程序对目标影像录制所得视频作为第二视频流,可以是向开发管理系统发送视频采集指令,并接收开发管理系统传输的第二视频流,其中,开发管理系统响应于视频采集指令,控制应用程序录制目标影像得到第二视频流,从而基于视频采集指令方式触发开发管理系统中应用程序录制目标影像,便于两路视频采集的同步控制和管理,提升摄像组件测试方法的实用性。
S203:确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息。
S204:根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标。
针对S203和S204的描述说明可以具体参见上述实施例,在此不再赘述。
本实施例中,通过控制操作系统中摄像组件对目标影像进行录制,以得到第一视频流,并获取开发管理系统中所运行应用程序对目标影像录制所得视频作为第二视频流,确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息,以及根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标,能够有效地保证第一视频流和第二视频流之间的一致性,当基于第二视频流作为测试参考时,最大化地保障测试参考效果,提升第二视频流的可参考性,进而提升摄像组件的稳定性测试准确率。
图4是本公开另一实施例提出的摄像组件测试方法的流程示意图。
如图4所示,该摄像组件测试方法,包括:
S401:获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得。
针对S401的描述说明可以具体参见上述实施例,在此不再赘述。
S402:对第一视频流进行帧解析,得到多个第一视频帧。
本公开实施例在获取第一视频流后,可以对第一视频流进行逐帧提取,并将所提取的各个视频帧作为第一视频帧,在逐帧提取时,还可以确定每个第一视频帧的采集时间戳,并基于该采集时间戳对第一视频帧进行标记处理,便于后续的测试分析。
S403:确定与每个第一视频帧对应的第一帧内容和第一差异时间,其中,第一差异时间描述第一视频帧的采集时间与参考采集时间之间的时间差,将多个第一帧内容和多个第一差异时间作为第一视频信息。
上述在对第一视频流进行帧解析,得到多个第一视频帧之后,可以对每个第一视频帧分别进行解析,将该第一视频帧当前所呈现的画面内容作为第一帧内容,将上述时间戳所指示的第一视频帧的采集时间与一个参考采集时间做差值,并将所得时间差值作为第一差异时间,其中,该参考采集时间可以从指定影像中提取,可以将指定影像中相应帧内容的播放时间作为参考采集时间,对此不做限制。
S404:对第二视频流进行帧解析,得到多个第二视频帧。
本公开实施例在获取第二视频流后,可以对第二视频流进行逐帧提取,并将所提取的各个视频帧作为第二视频帧,在逐帧提取时,还可以确定每个第二视频帧的采集时间戳,并基于该采集时间戳对第二视频帧进行标记处理,便于后续的测试分析。
S405:确定与每个第二视频帧对应的第二帧内容和第二差异时间,其中,第二差异时间描述第二视 频帧的采集时间与参考采集时间之间的时间差,将多个第二帧内容和多个第二差异时间作为第二视频信息。
上述在对第二视频流进行帧解析,得到多个第二视频帧之后,可以对每个第二视频帧分别进行解析,将该第二视频帧当前所呈现的画面内容作为第二帧内容,将上述时间戳所指示的第二视频帧的采集时间与参考采集时间做差值,并将所得时间差值作为第二差异时间,其中,该参考采集时间可以从指定影像中提取,可以将指定影像中相应帧内容的播放时间作为参考采集时间,对此不做限制。
S406:获取摄像组件的进程日志信息。
本公开实施例在稳定性测试过程中,可以另外启动两个线程,基于一个线程判断稳定性测试用例的运行情况,该线程可以实时地解析摄像组件相关的进程日志信息,并基于另一个线程来检测硬件底层的视频流的输出情况,对此不做限制。
其中,该进程日志信息用于描述摄像组件的运行状况信息,运行状况信息,例如,测试过程中收集操作系统的系统处理器运行信息、内存、磁盘、网络、进程信息,各进程占用资源信息、内存、失败截屏等。
S407:根据第一视频信息、第二视频信息,以及进程日志信息对摄像组件进行稳定性测试。
上述在将多个第一帧内容和多个第一差异时间作为第一视频信息,将多个第二帧内容和多个第二差异时间作为第二视频信息,并获取摄像组件的进程日志信息之后,可以联合第一视频信息、第二视频信息,以及进程日志信息对摄像组件进行稳定性测试,不仅有效避免网络数据延迟传输,电子设备反应慢等情况影响摄像组件自身的稳定性表现,还能够联合摄像组件的运行状况信息共同对摄像组件的稳定性进行分析处理,有效提升摄像组件稳定性测试的全面性。
可选地,一些实施例中,可以根据第一差异时间和第二差异时间,从多个第一视频帧中确定出第一异常视频帧,并根据第一帧内容和第二帧内容,从多个第一视频帧中确定出第二异常视频帧,以及根据第一异常视频帧、第二异常视频帧,以及进程日志信息对摄像组件进行稳定性测试,提供了一种有效的稳定性测试方法,便于实施和部署。
其中,由于第二差异时间和第二帧内容可以被作为参考,则可以确定与第二差异时间相比较差异较大的第一差异时间所属的第一视频帧作为第一异常视频帧,此时,可以表明采集第一异常视频帧时存在卡顿或者无响应现象,相应地,可以对第一帧内容和第二帧内容进行内容比对分析,如果第一帧内容相对于第二帧内容出现内容黑屏、蓝屏、画幅卡住等情况,则可以确定该第一帧内容所属第一视频帧为第二异常视频帧,另外,还可以联合进程日志信息对第一异常视频帧和第二异常视频帧的异常情况进行精细分析,得到稳定性测试结果。
可选地,一些实施例中,可以确定第一差异时间和第二差异时间之间的时间差值,并在时间差值大于时差阈值时,将第一差异时间所属的第一视频帧作为第一异常视频帧,以及根据第一帧内容和第二帧内容,确定第一视频帧是否产生指定内容事件,并在第一视频帧产生指定内容事件时,确定第一视频帧为第二异常视频帧。
其中,指定内容事件,可以例如为内容黑屏事件、蓝屏事件、画幅卡住事件等,时差阈值可以例如为1秒,则在确定第一差异时间和第二差异时间之间的时间差值大于1秒时,即可以确定摄像组件采集第一异常视频帧时存在卡顿或者无响应现象,而如果确定第一视频帧产生内容黑屏事件、蓝屏事件、画幅卡住事件等,可以确定该第一帧内容所属第一视频帧为第二异常视频帧。
可选地,一些实施例中,还可以从进程日志信息中解析第一异常视频帧的第一帧日志信息,并从进程日志信息中解析第二异常视频帧的第二帧日志信息,以及根据第一帧日志信息和第二帧日志信息,确定摄像组件的异常类型信息,实现对摄像组件的稳定性测试结果进行量化处理,便于稳定性测试结果的可视化呈现,提升摄像组件的稳定性测试的直观性。
其中,第一帧日志信息,可以是进程日志信息中与该第一异常视频帧相关的日志信息,第二帧日志信息,可以是进程日志信息中与该第二异常视频帧相关的日志信息,则可以基于第一异常视频帧的标记对进程日志信息进行解析,以从中提取出第一帧日志信息,相应地,基于第二异常视频帧的标记对进程日志信息进行解析,以从中提取出第二帧日志信息,而后,联合第一帧日志信息和第二帧日志信息确定摄像组件的异常类型信息。
其中,异常类型信息,例如,摄像组件无响应、摄像组件断开连接、摄像组件延迟等等。
本实施例中,通过获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得,并确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息;以及根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标,能够有效提升摄像组件的稳定性测试准确率,提升稳定性测试效果。通过将多个第一帧内容和多个第一差异时间作为第一视频信息,将多个第二帧内容和多个第二差异时间作为第二视频信息,并获取摄像组件的进程日志信息之后,可以联合第一视频信息、第二视频信息,以及进程日志信息对摄像组件进行稳定性测试,不仅有效避免网络数据延迟传输,电子设备反应慢等情况影响摄像组件自身的稳定性表现,还能够联合摄像组件的运行状况信息共同对摄像组件的稳定性进行分析处理,有效提升摄像组件稳定性测试的全面性。
图5是本公开一实施例提出的摄像组件测试装置的结构示意图。
如图5所示,该摄像组件测试装置50,包括:
获取模块501,用于获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得;
确定模块502,用于确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息;以及
测试模块503,用于根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标。
在本公开的一些实施例中,如图6所示,图6是本公开另一实施例提出的摄像组件测试装置的结构示意图,其中,获取模块501,包括:
控制子模块5011,用于控制操作系统中摄像组件对目标影像进行录制,以得到第一视频流;
获取子模块5012,用于获取开发管理系统中所运行应用程序对目标影像录制所得视频作为第二视频流。
在本公开的一些实施例中,其中,控制子模块5011,具体用于:
控制操作系统中摄像组件对目标影像进行录制,以得到初始视频流;
获取支持预设接口的显示屏中所显示视频流作为第一视频流,其中,摄像组件经由预设接口将初始视频流传输至显示屏。
在本公开的一些实施例中,其中,获取子模块5012,具体用于:
向开发管理系统发送视频采集指令;
接收开发管理系统传输的第二视频流,其中,开发管理系统响应于视频采集指令,控制应用程序录制目标影像得到第二视频流。
在本公开的一些实施例中,其中,确定模块502,具体用于:
对第一视频流进行帧解析,得到多个第一视频帧;
确定与每个第一视频帧对应的第一帧内容和第一差异时间,其中,第一差异时间描述第一视频帧的采集时间与参考采集时间之间的时间差;
将多个第一帧内容和多个第一差异时间作为第一视频信息。
在本公开的一些实施例中,其中,确定模块502,还用于:
对第二视频流进行帧解析,得到多个第二视频帧;
确定与每个第二视频帧对应的第二帧内容和第二差异时间,其中,第二差异时间描述第二视频帧的采集时间与参考采集时间之间的时间差;
将多个第二帧内容和多个第二差异时间作为第二视频信息。
在本公开的一些实施例中,其中,测试模块503,具体用于:
获取摄像组件的进程日志信息;
根据第一视频信息、第二视频信息,以及进程日志信息对摄像组件进行稳定性测试。
在本公开的一些实施例中,其中,测试模块503,还用于:
根据第一差异时间和第二差异时间,从多个第一视频帧中确定出第一异常视频帧;
根据第一帧内容和第二帧内容,从多个第一视频帧中确定出第二异常视频帧;
根据第一异常视频帧、第二异常视频帧,以及进程日志信息对摄像组件进行稳定性测试。
在本公开的一些实施例中,其中,测试模块503,还用于:
确定第一差异时间和第二差异时间之间的时间差值;
如果时间差值大于时差阈值,则将第一差异时间所属的第一视频帧作为第一异常视频帧。
在本公开的一些实施例中,其中,测试模块503,还用于:
根据第一帧内容和第二帧内容,确定第一视频帧是否产生指定内容事件;
如果第一视频帧产生指定内容事件,则确定第一视频帧为第二异常视频帧。
在本公开的一些实施例中,其中,测试模块503,还用于:
从进程日志信息中解析第一异常视频帧的第一帧日志信息;
从进程日志信息中解析第二异常视频帧的第二帧日志信息;
根据第一帧日志信息和第二帧日志信息,确定摄像组件的异常类型信息。
与上述图1至图4实施例提供的摄像组件测试方法相对应,本公开还提供一种摄像组件测试装置,由于本公开实施例提供的摄像组件测试装置与上述图1至图4实施例提供的摄像组件测试方法相对应,因此在摄像组件测试方法的实施方式也适用于本公开实施例提供的摄像组件测试装置,在本公开实施例中不再详细描述。
本实施例中,通过获取第一视频流,和与第一视频流对应的第二视频流,其中,第一视频流是操作系统中摄像组件对指定影像录制所得,确定第一视频流的第一视频信息,并确定第二视频流的第二视频信息,以及根据第一视频信息和第二视频信息,测试摄像组件的稳定性指标,能够有效提升摄像组件的稳定性测试准确率,提升稳定性测试效果。
为了实现上述实施例,本公开还提出一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行程序时,实现如本公开前述实施例提出的摄像组件测试方法。
为了实现上述实施例,本公开还提出一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开前述实施例提出的摄像组件测试方法。
为了实现上述实施例,本公开还提出一种计算机程序产品,当计算机程序产品中的指令处理器执行时,执行如本公开前述实施例提出的摄像组件测试方法。
图7示出了适于用来实现本公开实施方式的示例性电子设备的框图。图7显示的电子设备12仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图7所示,电子设备12以通用计算设备的形式表现。电子设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry Standard Architecture;以下简称:ISA)总线,微通道体系结构(Micro Channel Architecture;以下简称:MAC)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association;以下简称:VESA)局域总线以及外围组件互连(Peripheral Component Interconnection;以下简称:PCI)总线。
电子设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被电子设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。
存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory;以下简称:RAM)30和/或高速缓存存储器32。电子设备12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图7未显示,通常称为“硬盘驱动器”)。
尽管图7中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如:光盘只读存储器(Compact Disc Read Only Memory;以下简称:CD-ROM)、数字多功能只读光盘(Digital Video Disc Read Only Memory;以下简称:DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本公开各实施例的功能。
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本公开所描述的实施例中的功能和/或方法。
电子设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该电子设备12交互的设备通信,和/或与使得该电子设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,电子设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(Local Area Network;以下简称:LAN),广域网(Wide Area Network;以下简称:WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与电子设备12的其它模块通信。 应当明白,尽管图中未示出,可以结合电子设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。
处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现前述实施例中提及的摄像组件测试方法。
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。
需要说明的是,在本公开的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本公开的描述中,除非另有说明,“多个”的含义是两个或两个以上。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本公开的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本公开的实施例所属技术领域的技术人员所理解。
应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本公开各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本公开的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管上面已经示出和描述了本公开的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本公开的限制,本领域的普通技术人员在本公开的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (24)

  1. 一种摄像组件测试方法,其特征在于,包括:
    获取第一视频流,和与所述第一视频流对应的第二视频流,其中,所述第一视频流是操作系统中摄像组件对指定影像录制所得;
    确定所述第一视频流的第一视频信息,并确定所述第二视频流的第二视频信息;以及
    根据所述第一视频信息和所述第二视频信息,测试所述摄像组件的稳定性指标。
  2. 如权利要求1所述的方法,其特征在于,所述获取第一视频流,和与所述第一视频流对应的第二视频流,包括:
    控制所述操作系统中摄像组件对目标影像进行录制,以得到所述第一视频流;
    获取开发管理系统中所运行应用程序对所述目标影像录制所得视频作为所述第二视频流。
  3. 如权利要求2所述的方法,其特征在于,所述控制所述操作系统中摄像组件对目标影像进行录制,以得到所述第一视频流,包括:
    控制所述操作系统中摄像组件对目标影像进行录制,以得到初始视频流;
    获取支持预设接口的显示屏中所显示视频流作为所述第一视频流,其中,所述摄像组件经由所述预设接口将所述初始视频流传输至所述显示屏。
  4. 如权利要求2所述的方法,其特征在于,所述获取开发管理系统中所运行应用程序对所述目标影像录制所得视频作为所述第二视频流,包括:
    向所述开发管理系统发送视频采集指令;
    接收所述开发管理系统传输的所述第二视频流,其中,所述开发管理系统响应于所述视频采集指令,控制所述应用程序录制所述目标影像得到所述第二视频流。
  5. 如权利要求1所述的方法,其特征在于,所述确定所述第一视频流的第一视频信息,包括:
    对所述第一视频流进行帧解析,得到多个第一视频帧;
    确定与每个所述第一视频帧对应的第一帧内容和第一差异时间,其中,所述第一差异时间描述所述第一视频帧的采集时间与参考采集时间之间的时间差;
    将多个所述第一帧内容和多个所述第一差异时间作为所述第一视频信息。
  6. 如权利要求5所述的方法,其特征在于,所述确定所述第二视频流的第二视频信息,包括:
    对所述第二视频流进行帧解析,得到多个第二视频帧;
    确定与每个所述第二视频帧对应的第二帧内容和第二差异时间,其中,所述第二差异时间描述所述第二视频帧的采集时间与所述参考采集时间之间的时间差;
    将多个所述第二帧内容和多个所述第二差异时间作为所述第二视频信息。
  7. 如权利要求6所述的方法,其特征在于,所述根据所述第一视频信息和所述第二视频信息,对所述摄像组件进行稳定性测试,包括:
    获取所述摄像组件的进程日志信息;
    根据所述第一视频信息、所述第二视频信息,以及所述进程日志信息对所述摄像组件进行稳定性测试。
  8. 如权利要求7所述的方法,其特征在于,所述根据所述第一视频信息、所述第二视频信息,以 及所述进程日志信息对所述摄像组件进行稳定性测试,包括:
    根据所述第一差异时间和所述第二差异时间,从所述多个第一视频帧中确定出第一异常视频帧;
    根据所述第一帧内容和所述第二帧内容,从所述多个第一视频帧中确定出第二异常视频帧;
    根据所述第一异常视频帧、所述第二异常视频帧,以及所述进程日志信息对所述摄像组件进行稳定性测试。
  9. 如权利要求8所述的方法,其特征在于,所述根据所述第一差异时间和所述第二差异时间,从所述多个第一视频帧中确定出第一异常视频帧,包括:
    确定所述第一差异时间和所述第二差异时间之间的时间差值;
    如果所述时间差值大于时差阈值,则将所述第一差异时间所属的第一视频帧作为所述第一异常视频帧。
  10. 如权利要求8所述的方法,其特征在于,所述根据所述第一帧内容和所述第二帧内容,从所述多个第一视频帧中确定出第二异常视频帧,包括:
    根据所述第一帧内容和所述第二帧内容,确定所述第一视频帧是否产生指定内容事件;
    如果所述第一视频帧产生所述指定内容事件,则确定所述第一视频帧为所述第二异常视频帧。
  11. 如权利要求8所述的方法,其特征在于,所述根据所述第一异常视频帧、所述第二异常视频帧,以及所述进程日志信息对所述摄像组件进行稳定性测试,包括:
    从所述进程日志信息中解析所述第一异常视频帧的第一帧日志信息;
    从所述进程日志信息中解析所述第二异常视频帧的第二帧日志信息;
    根据所述第一帧日志信息和所述第二帧日志信息,确定所述摄像组件的异常类型信息。
  12. 一种摄像组件测试装置,其特征在于,包括:
    获取模块,用于获取第一视频流,和与所述第一视频流对应的第二视频流,其中,所述第一视频流是操作系统中摄像组件对指定影像录制所得;
    确定模块,用于确定所述第一视频流的第一视频信息,并确定所述第二视频流的第二视频信息;以及
    测试模块,用于根据所述第一视频信息和所述第二视频信息,测试所述摄像组件的稳定性指标。
  13. 如权利要求12所述的装置,其特征在于,所述获取模块,包括:
    控制子模块,用于控制所述操作系统中摄像组件对目标影像进行录制,以得到所述第一视频流;
    获取子模块,用于获取开发管理系统中所运行应用程序对所述目标影像录制所得视频作为所述第二视频流。
  14. 如权利要求13所述的装置,其特征在于,所述控制子模块,具体用于:
    控制所述操作系统中摄像组件对目标影像进行录制,以得到初始视频流;
    获取支持预设接口的显示屏中所显示视频流作为所述第一视频流,其中,所述摄像组件经由所述预设接口将所述初始视频流传输至所述显示屏。
  15. 如权利要求13所述的装置,其特征在于,所述获取子模块,具体用于:
    向所述开发管理系统发送视频采集指令;
    接收所述开发管理系统传输的所述第二视频流,其中,所述开发管理系统响应于所述视频采集指令,控制所述应用程序录制所述目标影像得到所述第二视频流。
  16. 如权利要求12所述的装置,其特征在于,所述确定模块,具体用于:
    对所述第一视频流进行帧解析,得到多个第一视频帧;
    确定与每个所述第一视频帧对应的第一帧内容和第一差异时间,其中,所述第一差异时间描述所述第一视频帧的采集时间与参考采集时间之间的时间差;
    将多个所述第一帧内容和多个所述第一差异时间作为所述第一视频信息。
  17. 如权利要求16所述的装置,其特征在于,所述确定模块,还用于:
    对所述第二视频流进行帧解析,得到多个第二视频帧;
    确定与每个所述第二视频帧对应的第二帧内容和第二差异时间,其中,所述第二差异时间描述所述第二视频帧的采集时间与所述参考采集时间之间的时间差;
    将多个所述第二帧内容和多个所述第二差异时间作为所述第二视频信息。
  18. 如权利要求17所述的装置,其特征在于,所述测试模块,具体用于:
    获取所述摄像组件的进程日志信息;
    根据所述第一视频信息、所述第二视频信息,以及所述进程日志信息对所述摄像组件进行稳定性测试。
  19. 如权利要求18所述的装置,其特征在于,所述测试模块,还用于:
    根据所述第一差异时间和所述第二差异时间,从所述多个第一视频帧中确定出第一异常视频帧;
    根据所述第一帧内容和所述第二帧内容,从所述多个第一视频帧中确定出第二异常视频帧;
    根据所述第一异常视频帧、所述第二异常视频帧,以及所述进程日志信息对所述摄像组件进行稳定性测试。
  20. 如权利要求19所述的装置,其特征在于,所述测试模块,还用于:
    确定所述第一差异时间和所述第二差异时间之间的时间差值;
    如果所述时间差值大于时差阈值,则将所述第一差异时间所属的第一视频帧作为所述第一异常视频帧。
  21. 如权利要求19所述的装置,其特征在于,所述测试模块,还用于:
    根据所述第一帧内容和所述第二帧内容,确定所述第一视频帧是否产生指定内容事件;
    如果所述第一视频帧产生所述指定内容事件,则确定所述第一视频帧为所述第二异常视频帧。
  22. 如权利要求19所述的装置,其特征在于,所述测试模块,还用于:
    从所述进程日志信息中解析所述第一异常视频帧的第一帧日志信息;
    从所述进程日志信息中解析所述第二异常视频帧的第二帧日志信息;
    根据所述第一帧日志信息和所述第二帧日志信息,确定所述摄像组件的异常类型信息。
  23. 一种电子设备,其特征在于,包括:
    至少一个处理器;以及
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-11中任一项所述的摄像组件测试方法。
  24. 一种存储有计算机指令的非瞬时计算机可读存储介质,其特征在于,其中,所述计算机指令用于使所述计算机执行权利要求1-11中任一项所述的摄像组件测试方法。
PCT/CN2022/100928 2022-06-23 2022-06-23 摄像组件测试方法、装置、电子设备及存储介质 WO2023245584A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/100928 WO2023245584A1 (zh) 2022-06-23 2022-06-23 摄像组件测试方法、装置、电子设备及存储介质
CN202280004588.0A CN117859324A (zh) 2022-06-23 2022-06-23 摄像组件测试方法、装置、电子设备及存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/100928 WO2023245584A1 (zh) 2022-06-23 2022-06-23 摄像组件测试方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023245584A1 true WO2023245584A1 (zh) 2023-12-28

Family

ID=89378925

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/100928 WO2023245584A1 (zh) 2022-06-23 2022-06-23 摄像组件测试方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN117859324A (zh)
WO (1) WO2023245584A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657548A (zh) * 2016-01-07 2016-06-08 Tcl通力电子(惠州)有限公司 视频播放设备的故障测试方法及系统
US20180286030A1 (en) * 2017-03-31 2018-10-04 Hcl Technologies Limited System and method for testing an electronic device
CN111028222A (zh) * 2019-12-11 2020-04-17 广州视源电子科技股份有限公司 视频检测方法和装置、计算机存储介质及相关设备
CN112153374A (zh) * 2020-09-25 2020-12-29 腾讯科技(深圳)有限公司 视频帧图像的测试方法、装置、设备、计算机存储介质
CN113891070A (zh) * 2021-10-29 2022-01-04 北京环境特性研究所 一种网络摄像机延迟时间的测量方法和装置
CN114071120A (zh) * 2020-08-03 2022-02-18 炬才微电子(深圳)有限公司 摄像头测试系统、方法、存储介质及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657548A (zh) * 2016-01-07 2016-06-08 Tcl通力电子(惠州)有限公司 视频播放设备的故障测试方法及系统
US20180286030A1 (en) * 2017-03-31 2018-10-04 Hcl Technologies Limited System and method for testing an electronic device
CN111028222A (zh) * 2019-12-11 2020-04-17 广州视源电子科技股份有限公司 视频检测方法和装置、计算机存储介质及相关设备
CN114071120A (zh) * 2020-08-03 2022-02-18 炬才微电子(深圳)有限公司 摄像头测试系统、方法、存储介质及电子设备
CN112153374A (zh) * 2020-09-25 2020-12-29 腾讯科技(深圳)有限公司 视频帧图像的测试方法、装置、设备、计算机存储介质
CN113891070A (zh) * 2021-10-29 2022-01-04 北京环境特性研究所 一种网络摄像机延迟时间的测量方法和装置

Also Published As

Publication number Publication date
CN117859324A (zh) 2024-04-09

Similar Documents

Publication Publication Date Title
US20210134329A1 (en) System and method for event data collection and video alignment
US8744238B2 (en) Method and apparatus for automated content marking
US8484515B2 (en) Methods and systems for monitoring quality of a video/audio playback device
WO2015096729A1 (zh) 多媒体直播举报的方法、终端、服务器及系统
GB2470417A (en) A test system for a set top box.
DK2654225T3 (en) UPstream ERROR DETECTION
US8086904B2 (en) Event-based setting of process tracing scope
US20080028370A1 (en) Simultaneous viewing of multiple tool execution results
CN109391847A (zh) 流媒体卡顿的监测方法及监测装置
US7711866B2 (en) Methods to test multimedia devices on computer systems
EP2731015B1 (en) Computer infrastructure performance system
CN113824987A (zh) 直播间首帧耗时的确定方法、介质、装置和计算设备
WO2023245584A1 (zh) 摄像组件测试方法、装置、电子设备及存储介质
US7433533B2 (en) Video performance evaluation
US8824872B2 (en) Display control apparatus, reproduction system, and recording medium in which display control is performed based on a detected event
CN109739607B (zh) 动态图像加载方法、装置、设备及存储介质
CN115878379A (zh) 一种数据备份方法、主服务器、备份服务器及存储介质
CN113055667B (zh) 一种视频质量检测方法、装置、电子设备和存储介质
KR20170138367A (ko) 컴퓨터 시스템에 포함된 하드웨어의 에러 발생 여부를 통합적으로 관리하여 백업 및 복구를 수행하여 외부 단말에 알리는 방법
CN110502416B (zh) 应用卡顿检测方法、装置、计算机设备及可读介质
KR20050015723A (ko) 동영상 화면 재생시 발생하는 불량 요소 검출 장치 및검출 방법
KR101484783B1 (ko) 디지털 비디오 레코더와 하드디스크 관리방법
KR101793263B1 (ko) 컴퓨터 시스템에 포함된 하드웨어의 에러 발생 여부를 통합적으로 관리하여 백업 및 복구를 수행하여 외부 단말에 알리는 방법
WO2023240927A1 (zh) 一种终端能力测试系统、方法、设备和存储介质
US9661362B1 (en) Testing set top appliance boxes

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22947355

Country of ref document: EP

Kind code of ref document: A1