Method, apparatus and medium for time-lapse statistics of a camera
By verifying the expected camera acquisition delay, the accuracy of the acquisition timestamp is ensured, which solves the problem of inaccurate camera delay statistics and improves the accuracy of delay performance judgment.
Patent Information
- Application Number
- CN202311331304.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-13
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2043-10-13
AI Technical Summary
Inaccurate camera delay statistics lead to inaccurate assessment of camera performance, affecting monitoring effectiveness.
By verifying the expected acquisition delay, the accuracy of the acquisition timestamp is ensured. The screen is used to acquire the image frame acquisition timestamp and candidate process timestamp. The accuracy of the acquisition timestamp is determined based on the expected acquisition delay of the acquisition timestamp and the timer timestamp. If it is accurate, the target delay statistics are determined based on the target timestamp.
It improves the accuracy of camera delay performance assessment, solves the problem of data acquisition timestamp offsetting and falsification, and ensures the reliability of delay statistics.
Smart Images

Figure CN119835376B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of cameras, and in particular to a camera delay time statistical method, device, equipment and medium. BACKGROUND
[0002] Currently, cameras are commonly used in the monitoring industry for real-time monitoring of areas, and in order to improve the real-time performance of the monitoring picture, the monitoring industry has strict low-index requirements for the delay time parameter of the cameras in use.
[0003] The acquisition delay time accounts for a large proportion in the delay time parameter, and the acquisition delay time is affected by the acquisition timestamp, and some manufacturers will offset the acquisition timestamp backward in order to meet the low-index requirement of the delay time, so that the obtained acquisition delay time is smaller than the actual delay time, resulting in that the obtained acquisition delay time cannot truly reflect the delay time performance of the camera. Moreover, other process delay times in subsequent processes are also determined based on the acquisition timestamp, so that the inaccuracy of the acquisition timestamp will also cause the inaccuracy of the other process delay times, affecting the judgment of the performance of the camera. SUMMARY
[0004] The present application provides a camera delay time statistical method, device, equipment and medium to solve the problem of inaccurate camera delay time statistics.
[0005] According to an aspect of the present application, a camera delay time statistical method is provided, characterized in that the method comprises:
[0006] controlling a camera to be detected to perform picture acquisition on a timer screen to obtain an acquisition image frame, and determining a timer timestamp according to the acquisition image frame;
[0007] acquiring an acquisition timestamp of the acquisition image frame and a candidate process timestamp of the acquisition image frame when the camera to be detected processes the acquisition image frame;
[0008] determining whether the acquisition timestamp is accurate according to an acquisition delay time expectation of the timer timestamp and the acquisition timestamp;
[0009] if yes, determining a target delay time statistical result according to a target timestamp; wherein the target timestamp is the candidate process timestamp and the acquisition timestamp, or the candidate process timestamp.
[0010] According to another aspect of the present application, a camera delay time statistical device is provided, characterized by comprising:
[0011] a picture acquisition module, configured to control a camera to be detected to perform picture acquisition on a timer screen to obtain an acquisition image frame, and determine a timer timestamp according to the acquisition image frame;
[0012] a timestamp obtaining module, configured to obtain a collection timestamp of the collection image frame and a candidate process timestamp of the collection image frame when the to-be-detected camera processes the collection image frame;
[0013] a collection timestamp verification module, configured to determine whether the collection timestamp is accurate according to a collection delay expectation of the collection timestamp and the timer timestamp;
[0014] a delay statistics module, configured to determine a target delay statistics result according to a target timestamp if the collection timestamp is accurate; wherein the target timestamp is the candidate process timestamp and the collection timestamp, or the candidate process timestamp.
[0015] According to another aspect of the present application, an electronic device is provided, which comprises:
[0016] at least one processor; and
[0017] a memory connected to the at least one processor in communication; wherein,
[0018] the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the delay statistics method of the camera according to any one of the embodiments of the present application.
[0019] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to execute the delay statistics method of the camera according to any one of the embodiments of the present application when executed.
[0020] The technical solution of the embodiments of the present application verifies the collection delay expectation to ensure the accuracy of the collection timestamp, solves the problem that the collection timestamp can be offset and falsified, and improves the accuracy of the judgment on the delay performance of the camera.
[0021] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0023] Figure 1 is a flow chart of a time delay statistics method of a camera according to an embodiment of the present application;
[0024] Figure 2 is a first acquisition time axis schematic diagram of a camera according to an embodiment of the present application;
[0025] Figure 3 is a second acquisition time axis schematic diagram of a camera according to an embodiment of the present application;
[0026] Figure 4 is a structural schematic diagram of a time delay statistics device of a camera according to an embodiment of the present application;
[0027] Figure 5 is a structural schematic diagram of an electronic device implementing a time delay statistics method of a camera according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the personnel in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by the personnel in the art without creative labor should belong to the protection scope of the present application.
[0029] It should be noted that the terms "candidate", "target" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to the clearly listed steps or units, but can include other steps or units not clearly listed or inherent to the process, method, product or device.
[0030] Embodiment one
[0031] Figure 1A flowchart of a camera delay time statistical method is provided for the first embodiment of the present application. The embodiment can be applied to the case of statistical delay time of a camera. The method can be executed by a delay time statistical device of the camera. The delay time statistical device can be realized in the form of hardware and / or software. The delay time statistical device can be configured in a camera or a server with computing and communication capabilities. As shown in FIG. 1, the method comprises the following steps. Figure 1
[0032] In S110, the camera to be detected is controlled to capture a picture of the timer screen to obtain a captured image frame, and a timer timestamp is determined according to the captured image frame.
[0033] In order to accurately obtain the accurate timestamp of the camera to be detected at the capturing moment, the camera to be detected is controlled to capture a picture of the timer screen in the embodiment. The timer screen is synchronized with the camera at the millisecond level to avoid introducing too much error in subsequent delay time calculation.
[0034] Optionally, the timer timestamp displayed on the timer screen is used as the absolute timestamp of the capturing moment in the embodiment. However, the time displayed on the timer screen cannot be displayed at the millisecond level. Therefore, in order to reduce the error between the timer timestamp and the absolute timestamp, the timer screen uses a high-frame-rate refreshed millisecond timer screen.
[0035] Specifically, on the basis of millisecond-level synchronization of the timer screen, the camera and the decoding end, the camera to be detected is controlled to capture a picture of the timer screen. The decoding end decodes the received image frame and performs text recognition. The time on the timer screen is extracted from the text recognition result of the captured image frame as the timer timestamp.
[0036] In S120, the capturing timestamp of the captured image frame and the candidate process timestamp of the captured image frame are obtained when the camera to be detected processes the captured image frame.
[0037] When the camera to be detected transmits the captured captured image frame, a series of processings are required, such as encoding process, packaging process, sending process and decoding process of the decoding end. Optionally, the candidate process includes encoding, packaging, sending and / or decoding.
[0038] Specifically, after the camera captures a picture of the timer screen, the capturing module in the camera obtains a complete captured image frame, and records the corresponding timestamp of completing the capturing as the capturing timestamp. According to the requirement of delay time statistics, the corresponding completion time of the subsequent process, i.e., the candidate process timestamp, is recorded.
[0039] S130, determining whether the acquisition timestamp is accurate according to the acquisition time delay expectation of the acquisition timestamp and the timer timestamp.
[0040] Since the acquisition timestamp will be offset and counterfeited by the manufacturer, in order to ensure the accuracy of the acquisition timestamp and also to ensure the accuracy of the candidate delay statistical result, a plurality of acquisition time delays are obtained, and whether the acquisition timestamp is accurate is determined according to the acquisition time delay expectation of the plurality of acquisition time delays.
[0041] Specifically, according to the acquisition time delay history statistical result, the acquisition time delay expectation is accurate under the condition of meeting the preset condition, so a plurality of corresponding acquisition timestamps and timer timestamps of the to-be-detected camera are counted, a plurality of acquisition time delays are determined according to the difference between the timer timestamp and the acquisition timestamp, and then whether the acquisition timestamp of the to-be-detected camera is accurate is determined according to whether the acquisition time delay expectation determined by the plurality of acquisition time delays meets the preset condition. Optionally, the preset condition is related to the inherent parameter of the to-be-detected camera.
[0042] In a feasible embodiment, the acquisition frame interval parameter of the to-be-detected camera is an integer multiple of the shutter time parameter, and the shutter time parameter is less than the screen refresh interval parameter of the timer screen.
[0043] Correspondingly, determining whether the acquisition timestamp is accurate according to the acquisition time delay expectation of the acquisition timestamp and the timer timestamp comprises:
[0044] determining the acquisition time delay distribution information and the acquisition time delay expectation according to the acquisition timestamp and the timer timestamp; if the acquisition time delay distribution information conforms to the normal distribution, and the acquisition time delay expectation is greater than 0 and less than the screen refresh interval parameter, it is determined that the acquisition timestamp is accurate.
[0045] Specifically, the determination process of the preset condition corresponding to the acquisition time delay expectation is as follows:
[0046] Set the actual real time as T, which is linear and continuous, but the timer screen cannot be refreshed continuously in milliseconds due to the screen refresh rate, and can only be updated with the screen refresh frequency. Set the screen refresh interval parameter as a constant G0, in milliseconds, and assume that the first refresh time of the timer screen is X0, then the display time Y on the timer screen at any real time T is: Y=X0+(T-X0) / / G0*G0+△Ts; wherein / / represents integer division, and△Ts is the system random error generated in each refresh cycle. For example, the first refresh time X0 of the timer screen is 105 ms, and the screen refresh frequency is 50 Hz, so the screen refresh interval parameter is 20 ms; the timer screen display time will be refreshed at intervals of about 20 ms: {105ms±△Ts, 125ms±△Ts, 145ms±△Ts…}.
[0047] The speed of the camera capturing the picture will be affected by the shutter time, and the camera shutter time parameter is set as a constant G1, that is, the camera needs to take a time constant G1 from starting to capture a frame of picture image to completing the capture. In addition, since the capture time is discrete, the interval between two frame picture images is related to the camera frame rate, and the capture frame interval parameter is set as a constant G2. Assume that the capture starts from time S, and the corresponding capture timestamp is Xn, that is, the capture timestamp is Xn∈{S+0*G2+G1+△Tc, S+1*G2+G1+△Tc, S+2*G2+G1+△Tc,..., S+(n-1)*G2+G1+△Tc}; wherein△Tc is the system random error of each capture.
[0048] Substitute the capture timestamp Xn into the real time T, then the timer screen display timestamp Y(n) captured on each frame of the camera, that is, the timer timestamp should be:
[0049] Y(n)=X0+(T-X0) / / G0*G0+△Ts;
[0050] =X0+(S+(n-1)*G2+G1+△Tc-X0) / / G0*G0+△Ts.
[0051] Wherein, the capture delay is equal to the capture timestamp minus the timer timestamp: Xn-Y(n)=S+(n-1)*G2+G1+△Tc-(X0+(S+(n-1)*G2+G1+△Tc-X0) / / G0*G0+△Ts)
[0052] In order to simplify the operation process: take X0 as 0, that is, start refreshing the counter from 0 seconds; take S as the time of the first capture; then Xn-Y(n)=S+(n-1)*G2+G1+△Tc-(S+(n-1)*G2+G1+△Tc) / / G0*G0-△Ts.
[0053] Further, in order to determine the acquisition delay satisfying rule, it is determined that when G2 is set as an integer multiple of G1, (S+(n-1)*G2+G1+△Tc) / / G0*G0=S+(n-1)*G2+G1+△Tc; further, G1 is set as G0, that is, the shutter time parameter is smaller than the screen refresh interval parameter, then according to the formula of Xn-Y(n), it is determined that:
[0054] When S+G1 is smaller than G0, the first acquisition time axis diagram of the camera is as shown in Figure 2 Therefore:
[0055] n=1; X1-Y(1)=S+G1+△Tc-△Ts;
[0056] n=2; X2-Y(2)=S+G1+△Tc-△Ts;…
[0057] Therefore, the acquisition delay Xn-Y(n)=S+G1+△Tc-△Ts.
[0058] When S+G1 is greater than G0, the second acquisition time axis diagram of the camera is as shown in Figure 3 Therefore:
[0059] n=1; X1-Y(1)=S+G1-G0+△Tc-△Ts;
[0060] n=2; X2-Y(2)=S+G1-G0+△Tc-△Ts;…
[0061] Therefore, the acquisition delay Xn-Y(n)=S+G1-G0+△Tc-△Ts.
[0062] According to the acquisition delay obtained from the above two cases, the amount of parameters involved in the acquisition delay is a constant, and the acquisition delay is also a constant, that is, the acquisition delay satisfies the normal distribution, and according to the formula, the expected value of the acquisition delay is greater than 0 and less than G0. Correspondingly, it is determined that the preset condition satisfies the normal distribution, and the expected value of the acquisition delay is greater than 0 and less than G0.
[0063] Specifically, according to the determination process of the above preset condition, when judging whether the acquisition timestamp is accurate according to the preset condition, the acquisition frame interval parameter of the camera to be detected needs to be set as an integer multiple of the shutter time parameter, and the shutter time parameter needs to be smaller than the screen refresh interval parameter of the timer screen. On this basis, a plurality of acquisition delays are obtained, and the acquisition delay expectation is determined according to the acquisition delay. If the acquisition delay distribution information determined according to the plurality of acquisition delays is consistent with the normal distribution, and the acquisition delay expectation is greater than 0 and less than the screen refresh interval parameter, it is determined that the acquisition timestamp is accurate.
[0064] Exemplarily, when the collection timestamp is offset fraudulently, there are two cases: fixed offset and random offset. When the collection timestamp is fixed offset, the collection delay expectation is always greater than G0, so that the collection timestamp is verified to be inaccurate. Further, in order to avoid the case that the collection delay expectation is always greater than G0 when the collection timestamp is offset fraudulently, the collection timestamp is offset randomly. However, due to the random offset, the collection delay distribution does not conform to the normal distribution, so that the collection timestamp is verified to be inaccurate. In summary, the above preset conditions can be used to determine whether the collection timestamp is accurate by using the collection delay distribution and the collection delay expectation.
[0065] S140, if the collection timestamp is accurate, determining a target delay statistical result according to a target timestamp; wherein the target timestamp is the candidate process timestamp and the collection timestamp, or the candidate process timestamp.
[0066] If the collection timestamp is inaccurate, the internal parameters of the camera under test need to be corrected, and then the delay statistics is performed until the collection timestamp is verified to be accurate. If the collection timestamp is accurate, the delay statistical result can be determined according to the difference between the corresponding process timestamps.
[0067] In a feasible embodiment, the candidate process timestamp includes an encoding process timestamp;
[0068] Correspondingly, determining the target delay statistical result according to the target timestamp includes:
[0069] Obtaining an encoding delay statistical result according to the encoding process timestamp and the collection timestamp.
[0070] The encoding process refers to the encoding action performed by the camera before transmitting the collected image frame. For example, the collected image frame is encoded into H.264 format for transmission. The timestamp at which the encoding module in the camera completes the encoding of each collected image frame is the encoding process timestamp. For example, the encoding process timestamp is recorded after each frame is encoded into the corresponding format.
[0071] Specifically, when determining the encoding delay statistical result corresponding to the encoding process, the encoding delay is determined according to the encoding process timestamp and the collection timestamp, and the encoding delay statistical result is determined according to a plurality of encoding delays. The encoding delay statistical result includes encoding delay distribution information. In a feasible embodiment, the encoding delay statistical result includes an encoding delay expectation and an encoding delay variance. Specifically, the encoding delay expectation and the encoding delay variance are determined according to a plurality of encoding delays.
[0072] In a feasible embodiment, the candidate process timestamp includes an encoding process timestamp and a decoding process timestamp;
[0073] Correspondingly, the target delay statistical result is determined according to the target timestamp, including:
[0074] The network transmission delay statistical result is obtained according to the packet process timestamp and the decoding process timestamp.
[0075] The packet process refers to the action of the camera on the encoded image frame, and the camera will send the packaged image frame to the decoding end after the image frame is packaged.
[0076] Specifically, when determining the network transmission delay statistical result corresponding to the network transmission process, the network transmission delay is determined according to the difference between the decoding process timestamp and the packet process timestamp, and the network transmission delay statistical result is determined according to a plurality of network transmission delays. The network transmission delay statistical result includes network transmission delay distribution information. In a feasible embodiment, the network transmission delay statistical result includes network transmission delay expectation and network transmission delay variance. Specifically, the network transmission delay expectation and the network transmission delay variance are determined according to a plurality of network transmission delays.
[0077] In a feasible embodiment, after the target timestamp is determined, the method further includes:
[0078] The accuracy of the target delay statistical result is determined according to the target delay normal distribution verification result;
[0079] The target process performance evaluation result is determined according to the delay expectation;
[0080] The target process stability evaluation result is determined according to the delay variance.
[0081] The target delay includes the acquisition delay, the encoding delay and the network transmission delay, the delay expectation includes the acquisition delay expectation, the encoding delay expectation and the network transmission delay expectation, and the delay variance includes the acquisition delay variance, the encoding delay variance and the network transmission delay variance.
[0082] Specifically, the accuracy of the corresponding delay statistical result can be determined according to the collection delay, the encoding delay and the network transmission delay. For example, if the encoding delay does not satisfy the normal distribution, it is determined that the encoding delay statistical result is incorrect, that is, the encoding process timestamp is incorrect. The performance evaluation result of the corresponding process can be determined according to the collection delay expectation, the encoding delay expectation and the network transmission delay expectation. For example, the lower the collection delay expectation, the better the camera collection performance; the lower the encoding delay expectation, the better the device encoding and ISP performance; the lower the network transmission delay expectation, the better the camera network card performance. The stability evaluation result of the corresponding process can be determined according to the collection delay variance, the encoding delay variance and the network transmission delay variance. For example, the lower the collection delay variance, the better the camera collection stability; the lower the encoding delay variance, the better the device encoding and ISP stability; the lower the network transmission delay variance, the better the camera network card stability.
[0083] The technical scheme of the embodiment of the application verifies the collection delay expectation to ensure the accuracy of the collection timestamp, solves the problem that the collection timestamp can be offset and falsified, and improves the accuracy of the camera delay performance judgment.
[0084] Embodiment two
[0085] The embodiment is another camera delay statistical method provided by the application, and is a preferred example of the above embodiment. The method comprises:
[0086] First, the millisecond level synchronization of the timer screen, the camera and the decoding end is performed.
[0087] The collection frame interval parameter of the camera to be detected is set as an integer multiple of the shutter time parameter, and the shutter time parameter is less than the screen refresh interval parameter of the timer screen. The camera is controlled to collect pictures on the timer screen, and the absolute timestamp of the current collected picture is recorded as TimeStamp_Original.
[0088] The camera collection module records the collection timestamp TimeStamp_VI of each frame of image after the collection is completed. For example, the collection timestamp is usually recorded when the collection module obtains complete first frame RAW data.
[0089] The camera encoding module records the encoding process timestamp TimeStamp_Encode of each frame after the encoding is completed. For example, the encoding process timestamp is usually recorded after each frame is encoded in a corresponding encoding format such as H.264.
[0090] The camera packaging module records the packet process timestamp TimeStamp_PACKET of each frame after the packet is completed. For example, the packet process timestamp is usually recorded after each frame is packeted, such as RTP packeting.
[0091] The camera sending module adds all the time stamps (TimeStamp_VI, TimeStamp_Encode, TimeStamp_PACKET) to the transmission data SEI and sends them out with each frame of data.
[0092] The decoding end receiving module records the decoding process time stamp TimeStamp_Recv of each frame received.
[0093] After decoding each frame, the decoding end performs character recognition and extracts the timer time TimeStamp_Original from the image picture.
[0094] The acquisition time stamp TimeStamp_VI and the timer time stamp TimeStamp_Original are used to determine the acquisition delay distribution information and the acquisition delay expectation. If the acquisition delay distribution information conforms to a normal distribution, and the acquisition delay expectation is greater than 0 and less than the screen refresh interval parameter, it is determined that the acquisition time stamp is real and valid, and the acquisition time stamp is prevented from being tampered with.
[0095] The encoding process time stamp is subtracted from the acquisition time stamp to obtain the encoding delay (TimeStamp_Encode-TimeStamp_VI), which is a key data reflecting the encoding and ISP performance of the device.
[0096] The decoding process time stamp is subtracted from the packet process time stamp to obtain the network transmission delay (TimeStamp_Recv-TimeStamp_Encode), which reflects the network card performance of the device.
[0097] Further, the encoding delay and the network transmission delay can be verified for normal distribution to verify the accuracy of the encoding delay and the network transmission delay. Then, the encoding delay expectation and the encoding delay variance, and the network transmission delay expectation and the network transmission delay variance are obtained according to the encoding delay and the network transmission. The performance of the corresponding process is evaluated by the expectation, and the stability of the corresponding process is evaluated by the variance.
[0098] The embodiment can realize the full-process delay statistics of acquisition, encoding, packeting, and transmission of the camera when monitoring, improve the delay statistics efficiency, and through the constraint condition for delay statistics, the delay data can be converged to a normal distribution to ensure the reliability of the acquisition time stamp. Moreover, the performance and stability evaluation results can be obtained through the expectation and variance analysis of the delay results of each process link.
[0099] Embodiment Three
[0100] Figure 4 A structure schematic diagram of a delay statistics device of a camera provided for the embodiment three of the application. As shown inFigure 4 The device comprises:
[0101] The picture acquisition module 410 is configured to control a camera to be detected to acquire a picture of a timer screen, to obtain an acquisition image frame, and to determine a timer timestamp according to the acquisition image frame.
[0102] The timestamp acquisition module 420 is configured to acquire an acquisition timestamp of the acquisition image frame and a candidate process timestamp of the acquisition image frame when the camera to be detected processes the acquisition image frame.
[0103] The acquisition timestamp verification module 430 is configured to determine whether the acquisition timestamp is accurate according to an acquisition delay expectation of the acquisition timestamp and the timer timestamp.
[0104] The delay statistical module 440 is configured to determine a target delay statistical result according to a target timestamp if the acquisition timestamp is accurate, wherein the target timestamp is the candidate process timestamp and the acquisition timestamp, or the candidate process timestamp.
[0105] Optionally, the acquisition frame interval parameter of the camera to be detected is an integer multiple of a shutter time parameter, and the shutter time parameter is less than a screen refresh interval parameter of the timer screen.
[0106] Correspondingly, the acquisition timestamp verification module is specifically configured to:
[0107] determine acquisition delay distribution information and an acquisition delay expectation according to the acquisition timestamp and the timer timestamp.
[0108] If the acquisition delay distribution information conforms to a normal distribution, and the acquisition delay expectation is greater than 0 and less than the screen refresh interval parameter, it is determined that the acquisition timestamp is accurate.
[0109] Optionally, the candidate process timestamp comprises an encoding process timestamp.
[0110] Correspondingly, the delay statistical module is specifically configured to:
[0111] obtain an encoding delay statistical result according to the encoding process timestamp and the acquisition timestamp.
[0112] Optionally, the encoding delay statistical result comprises an encoding delay expectation and an encoding delay variance.
[0113] Optionally, the candidate process timestamp comprises an encapsulation process timestamp and a decoding process timestamp.
[0114] Correspondingly, the delay statistical module is specifically configured to:
[0115] According to the packet flow timestamp and the decoding flow timestamp, a network transmission delay statistical result is obtained.
[0116] Optionally, the network transmission delay statistical result comprises a network transmission delay expectation and a network transmission delay variance.
[0117] Optionally, the apparatus further comprises a performance evaluation module, configured to, after determining the target delay statistical result according to the target timestamp,
[0118] According to the target delay normal distribution verification result, the accuracy of the target delay statistical result is determined.
[0119] According to the delay expectation, a target flow performance evaluation result is determined.
[0120] According to the delay variance, a target flow stability evaluation result is determined.
[0121] The delay statistical apparatus of the camera provided in the embodiments of the present application can execute the delay statistical method of the camera provided in any of the embodiments of the present application, and has the function modules and beneficial effects corresponding to the execution method.
[0122] In the technical solution of the present application, the acquisition, storage, use, processing and the like of data comply with the relevant provisions of national laws and regulations, and do not violate public order and good customs.
[0123] Embodiment Four
[0124] According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0125] Figure 5 A structural schematic diagram of an electronic device 10 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the present application described and / or claimed in this document.
[0126] As Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., communicatively connected to the at least one processor 11, where the memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or loaded into the random access memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0127] Various components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc., an output unit 17, such as various types of displays, a speaker, etc., a storage unit 18, such as a magnetic disk, an optical disk, etc., and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0128] The processor 11 can be various general and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs various methods and processes described above, such as the method of camera delay statistics.
[0129] In some embodiments, the method of camera delay statistics can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method of camera delay statistics described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the method of camera delay statistics by any other appropriate means, such as by means of firmware.
[0130] The various embodiments of the systems and techniques described above can be implemented in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a complex programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0131] Computer programs used to implement the processes of the application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer program
[0132] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store computer programs for use by or in connection with an instruction execution system, apparatus, or device. Computer-readable storage media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0133] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0134] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0135] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0136] It should be understood that the various forms of flow shown above can be re-ordered, added to, or deleted from without departing from the scope of the present disclosure. For example, the steps recited in the present disclosure can be executed in parallel, executed in sequence, or executed in a different order, as long as the desired results of the present disclosure are achieved, and the present disclosure is not limited herein.
[0137] The specific embodiments described above are not intended to be limiting, and persons skilled in the art will appreciate that various modifications, combinations, sub-combinations and alternatives can be made to the specific embodiments without departing from the spirit and principles of the disclosure. Accordingly, the disclosure is not limited to the specific embodiments described above, but only by the scope of the appended claims.
Claims
1. A method of delay statistics for a video camera, characterized by, The method includes: Controlling the camera to be detected to capture images of the timer screen to obtain captured image frames, and determining the timer timestamp based on the captured image frames; When the camera to be detected processes the acquired image frame, acquiring an acquisition timestamp of the acquired image frame and a candidate process timestamp of the acquired image frame; determining whether the acquisition timestamp is accurate based on the acquisition timestamp and the expected acquisition delay of the timer timestamp; If yes, determine the target delay statistics result according to the target timestamp; wherein the target timestamp is the candidate process timestamp and the acquisition timestamp, or the candidate process timestamp; Wherein, the acquisition frame interval parameter of the camera to be detected is an integer multiple of the shutter time parameter, and the shutter time parameter is smaller than the screen refresh interval parameter of the timer screen; Accordingly, determining whether the acquisition timestamp is accurate according to the acquisition timestamp and the expected acquisition delay of the timer timestamp includes: Determining acquisition delay distribution information and acquisition delay expectation according to the acquisition timestamp and the timer timestamp; If the acquisition delay distribution information conforms to a normal distribution, and the acquisition delay expectation is greater than 0 and less than the screen refresh interval parameter, it is determined that the acquisition timestamp is accurate.
2. The method of claim 1, wherein, The candidate process timestamp includes an encoding process timestamp; Accordingly, the target delay statistics are determined based on the target timestamp, including: The coding delay statistics result is obtained according to the coding process timestamp and the acquisition timestamp.
3. The method of claim 2, wherein, The coding delay statistics include coding delay expectation and coding delay variance.
4. The method of claim 1, wherein, The candidate process timestamps include a packet process timestamp and a decoding process timestamp; Accordingly, the target delay statistics are determined based on the target timestamp, including: A network transmission delay statistical result is obtained according to the packet process timestamp and the decoding process timestamp.
5. The method of claim 4, wherein, The network transmission delay statistical result includes the network transmission delay expectation and the network transmission delay variance.
6. The method according to claim 3 or 5, characterized in that, After determining the target delay statistical result according to the target timestamp, the method further includes: Determining the accuracy of the target delay statistical result based on the normal distribution verification result of the target delay; Determine the target process performance evaluation results based on the delay expectation; The target process stability evaluation result is determined based on the delay variance.
7. A time-lapse statistics device for a video camera, characterized by include: The image acquisition module is used to control the camera to be detected to acquire images of the timer screen to obtain acquired image frames, and determine the timer timestamp based on the acquired image frames; A timestamp acquisition module, configured to acquire an acquisition timestamp of the acquired image frame and a candidate process timestamp of the acquired image frame when the camera to be detected processes the acquired image frame; an acquisition timestamp verification module, configured to determine whether the acquisition timestamp is accurate based on the acquisition timestamp and an expected acquisition delay of the timer timestamp; A delay statistics module, configured to determine a target delay statistics result according to a target timestamp if the acquisition timestamp is accurate; wherein the target timestamp is the candidate process timestamp and the acquisition timestamp, or the candidate process timestamp; The acquisition frame interval parameter of the camera to be detected is an integer multiple of a shutter time parameter, and the shutter time parameter is less than a screen refresh interval parameter of the timer screen. Correspondingly, the acquisition timestamp verification module is specifically configured to: determine acquisition delay distribution information and an acquisition delay expectation according to the acquisition timestamp and the timer timestamp; if the acquisition delay distribution information conforms to a normal distribution, and the acquisition delay expectation is greater than 0 and less than the screen refresh interval parameter, it is determined that the acquisition timestamp is accurate.
8. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the delay statistical method of the camera according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, and the computer instructions are used to enable the processor to implement the delay statistical method of the camera according to any one of claims 1-6 when executed.
Citation Information
Patent Citations
Method and apparatus for determining collection time of image
CN106791815A
Delay statistic method, device, system and storage medium
CN109039819A