WO2023174346A1 - Collision detection method, electronic device, and computer readable medium - Google Patents

Collision detection method, electronic device, and computer readable medium Download PDF

Info

Publication number
WO2023174346A1
WO2023174346A1 PCT/CN2023/081702 CN2023081702W WO2023174346A1 WO 2023174346 A1 WO2023174346 A1 WO 2023174346A1 CN 2023081702 W CN2023081702 W CN 2023081702W WO 2023174346 A1 WO2023174346 A1 WO 2023174346A1
Authority
WO
WIPO (PCT)
Prior art keywords
detection
collision
time
conflict
collisions
Prior art date
Application number
PCT/CN2023/081702
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2023174346A1 publication Critical patent/WO2023174346A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • 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 communication technology, and specifically to a collision detection method, an electronic device, and a computer-readable medium.
  • Video data packets are transmitted in frame units.
  • Common frame types include I frames and P frames.
  • the I frame constructs the image background and moving subjects, contains complete picture information, and has a low compression rate. It is the basis for P frame decoding.
  • P frames rely on I frames for inter-frame prediction, difference transmission, and higher compression rates.
  • the I frame Since the amount of data in an I frame is much larger than that of a P frame, after passing through a bandwidth-limited transmission channel, the I frame will take up more transmission time, which may cause reception delays at the receiving end. If the transmission time of the I frame exceeds a certain threshold, it will cause video playback freeze at the receiving end.
  • I-frame collision has become an important factor affecting video user experience.
  • Embodiments of the present disclosure provide a collision detection method, an electronic device, and a computer-readable medium.
  • an embodiment of the present disclosure provides a collision detection method, including: determining a detection time of at least one video frame in at least one conflict detection window, wherein the detection time of the video frame includes a starting time and an end of the video frame. time; generate a set to be detected corresponding to the conflict detection window according to the detection time of the video frame, wherein the detection times in the set to be detected are arranged in chronological order; according to the conflict detection window corresponding The set to be detected is used for collision detection of video frames.
  • embodiments of the present disclosure provide an electronic device, including: one or more processors; a memory on which one or more programs are stored. When the one or more programs are processed by the one or more The processor executes, so that the one or more processors implement the collision detection method described in the first aspect of the embodiment of the present disclosure.
  • an embodiment of the present disclosure provides a computer-readable medium on which a computer program is stored.
  • the program is executed by a processor, the collision detection method described in the first aspect of the embodiment of the present disclosure is implemented.
  • Figure 1 is a flow chart of the collision detection method provided by the present disclosure
  • FIG. 2 is a block diagram of the electronic device provided by the present disclosure.
  • Figure 3 is a block diagram of a computer-readable medium provided by the present disclosure.
  • Figure 4 is a schematic diagram of collision detection provided by the present disclosure.
  • Figure 5 is another schematic diagram of collision detection provided by the present disclosure.
  • the present disclosure provides a collision detection method, including steps S1 to S3.
  • step S1 the detection time of at least one video frame in at least one conflict detection window is determined, wherein the detection time of the video frame includes the start time and the end time of the video frame.
  • step S2 a set to be detected corresponding to the conflict detection window is generated according to the detection time of the video frame, where the detection times in the set to be detected are arranged in chronological order.
  • step S3 collision detection of video frames is performed according to the set to be detected corresponding to the conflict detection window.
  • the embodiment of the present disclosure places no special limit on the length of the conflict detection window.
  • the length of the conflict detection window can be set as needed.
  • a video frame can be an I frame or a P frame.
  • video frame collision means that several video frames overlap in transmission time.
  • the embodiment of the present disclosure does not place a special limit on the number of video frames colliding at the same time.
  • the number of colliding video frames may be 1, indicating that no collision occurs; the number of colliding video frames may be 2 or more.
  • performing collision detection may include determining the combination of video frames in which the collision occurs, determining the time when the collision occurs, determining the probability of collision, determining the duty cycle, and determining the time of collision. of traffic.
  • the embodiments of the present disclosure do not impose special limitations on this.
  • the start time and end time of the video frame are determined, and the start time and end time of the video frame are formed into a set to be detected in chronological order, and then the video is performed based on the set to be detected.
  • Frame collision detection can determine the time of collision, collision probability, duty cycle, traffic during collision, etc., which can serve as the basis for subsequent I-frame avoidance and help improve the video user experience.
  • the following rules need to be met:
  • a conflict detection window several video frames with only the end time and no start time will be generated.
  • the starting time is set to the first time.
  • the first time can be the starting time of the conflict detection window, or the starting time of any one of the several video frames, or it can be any time, as long as it ensures that there is only the end time.
  • the starting time of video frames without starting time can all be the same; in a conflict detection window, the ending time of several video frames with only starting time and no ending time is set as the second time, and the second time can be It is the end time of the conflict detection window, or it can be the end time of any one of the several video frames, or it can be any time, as long as the end time of several video frames with only the starting time and no end time is ensured to be the same. ; Put the end time on the boundary of the conflict detection window into the set to be detected corresponding to the previous conflict detection window, and put the starting time on the boundary of the conflict detection window into the set to be detected corresponding to the next conflict detection window.
  • the embodiment of the present disclosure does not place any special limitations on how to perform collision detection on video frames.
  • performing collision detection of video frames based on the set to be detected corresponding to the conflict detection window includes: determining the number of frames in the conflict detection window based on the set to be detected corresponding to the conflict detection window.
  • determining the number of n-flow collisions in the conflict detection window according to the set to be detected corresponding to the conflict detection window includes: according to the detection time in the set to be detected corresponding to the conflict detection window. In order, each target detection time is detected in turn to determine the number of n-flow collisions in the conflict detection window, where the target detection time is the detection time when the flag bit in the set to be detected is the first flag bit, The first flag indicates that the corresponding detection time has not been detected; wherein, the target Detection at the detection time includes: determining the number of n-flow collisions before the target detection time, n, based on the relationship between the target detection time and the previous detection time, and the flag bits of each detection time before the target detection time. is an integer greater than or equal to 1.
  • determining the number of n-flow collisions before the target detection moment includes: When the target detection time is the same as the previous detection time and the target detection time is the end time, set the flag bit of the target detection time and the flag bit of the start time corresponding to the target detection time.
  • the previous detection time is In the case of the starting time, count the number i of starting times before the target detection time when the flag bit is the first flag bit, and add 1 to the first counter corresponding to the i-flow collision, where i is a positive integer; In the case that the target detection time is different from the previous detection time and the target detection time is the end time, count the number j of the start time whose flag bit is the first flag bit before the target detection time, Add 1 to the first counter corresponding to the collision of j stream, where j is a positive integer; set the flag bit of the target detection time and the flag bit of the starting time corresponding to the target detection time as the second flag bit .
  • performing collision detection of video frames according to the set to be detected corresponding to the conflict detection window also includes: determining the occurrence of n-stream collisions based on the number of n-stream collisions in the conflict detection window. The combination of colliding video streams and the time period during which n streams collide, where n is an integer greater than or equal to 1.
  • the first collision probability is calculated based on actual counting results.
  • performing collision detection of video frames according to the set to be detected corresponding to the conflict detection window also includes: determining based on the number of n-stream collisions occurring in the conflict detection window.
  • a first collision probability wherein the first collision probability represents the probability of n-flow collision occurring, and n is an integer greater than or equal to 1.
  • determining the first collision probability according to the number of n-flow collisions occurring in the conflict detection window includes: in the case that the first counter corresponding to the n-flow collision is not cleared, according to the collision detection window corresponding of the set to be detected, determine the number of n-flow collisions in the conflict detection window, and obtain the total number of n-flow collisions, where n is an integer greater than or equal to 1; accumulate the value of the first counter to obtain the number of collisions. The total number of times; the first collision probability is calculated based on the total number of n-flow collisions and the total number of collisions.
  • calculating the first collision probability can be expressed as the following formula:
  • Pi represents the probability of i-flow collision
  • counter_i represents the number of i-flow collisions
  • i is a positive integer.
  • the second collision probability is calculated based on the event count results.
  • performing collision detection of video frames according to the set to be detected corresponding to the conflict detection window also includes: determining based on the number of n-stream collisions occurring in the conflict detection window.
  • a second collision probability wherein the second collision probability represents the probability that n flow collisions are the maximum number of flow collisions, and n is an integer greater than or equal to 1.
  • Determining the second collision probability includes: for the conflict detection window, determine the maximum value of n according to the number of n-flow collisions in the conflict detection window to obtain the maximum number of flow collisions; and add the second counter corresponding to the maximum number of flow collisions Add 1; calculate the second collision probability according to the value of the second counter and the number of conflict detection windows.
  • calculating the second collision probability can be expressed as the following formula:
  • P i,max represents the probability that the i-flow collision is the maximum number of flow collisions in the conflict detection window
  • counter_i_max represents the number of conflict detection windows corresponding to the i-flow collision being the maximum number of flow collisions in the conflict detection window
  • total number of sampling times is the conflict The total number of detection windows.
  • performing collision detection of video frames according to the to-be-detected set corresponding to the conflict detection window also includes: calculating a duty cycle, where the duty cycle represents the total proportion of n-stream collisions.
  • the proportion of time, n is an integer greater than or equal to 1.
  • the duty cycle is the ratio of the collision time of n streams to the total sampling time.
  • conflictPeriod_n represents the collision time of n streams.
  • performing collision detection of video frames according to the to-be-detected set corresponding to the conflict detection window also includes: calculating the traffic when n flow collisions occur, where n is greater than or equal to 1. integer.
  • starttime(l) represents the starting time of video frame l
  • endtime(l) represents the end time of video frame l
  • determining the detection moment of at least one video frame in at least one conflict detection window includes: aggregating messages at a target aggregation level and determining the detection moment of the video frame, wherein, The above target aggregation levels include camera level, Either application level or cell level.
  • determining the detection moment of at least one video frame in at least one conflict detection window includes: determining the detection moment of the video frame according to video frame level data.
  • the present disclosure also provides an electronic device, which includes: one or more processors 101; a memory 102 on which one or more programs are stored.
  • processors 101 When one or more programs are processed by one or more processors, Execute, causing one or more processors to implement any of the above collision detection methods.
  • the electronic device may also include one or more I/O interfaces 103, connected between the processor and the memory, and configured to implement information exchange between the processor and the memory.
  • I/O interfaces 103 connected between the processor and the memory, and configured to implement information exchange between the processor and the memory.
  • the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically such as SDRAM). , DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I/O interface (read-write interface) 103 is connected between the processor 101 and the memory 102 to implement The processor 101 interacts with information of the memory 102, including but not limited to a data bus and the like.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • FLASH flash memory
  • the I/O interface (read-write interface) 103 is connected between the processor 101 and the memory 102 to implement
  • the processor 101 interacts with information of the memory 102, including but not limited to a data bus and the like.
  • processor 101 memory 102, and I/O interface 103 are connected to each other and, in turn, to other components of the computing device via bus 104.
  • the present disclosure also provides a computer-readable medium on which a computer program is stored.
  • the program is executed by a processor, any one of the above collision detection methods is implemented.
  • This example uses the video frame as an I frame for illustration.
  • This example does not impose special restrictions on application scenarios.
  • it can be a camera-level data flow aggregation scenario, an application-level APP data flow aggregation scenario, or a cell-level data flow aggregation scenario.
  • the data to be detected includes IP packet-level data contained in I frames in the video stream (this solution does not provide specific video stream service identification technology), including but not limited to: the arrival time of the IP packet, IP five-tuple information, Packet size information, etc.
  • the data to be detected includes video stream data at multiple aggregation levels, including but not limited to the following levels.
  • Camera level Identify based on IP five-tuple, and perform collision detection on camera-level video IP packet flow.
  • APP level Identified based on IP address (addr) and port number (port). Collision detection is performed after aggregating the video IP packet streams of the same APP.
  • Cell level Identified based on NR CGI (Cell Global Identifier, cell global identifier). Collision detection is performed after aggregating video IP packet flows in the same cell.
  • the data to be detected may also include video frame-level data such as I frames and P frames calculated after preprocessing, including but not limited to: frame start time, frame end time, frame duration, frame type, IP quintuple information, frame size information, etc.
  • video frame-level data such as I frames and P frames calculated after preprocessing, including but not limited to: frame start time, frame end time, frame duration, frame type, IP quintuple information, frame size information, etc.
  • I-frame collision detection includes:
  • the length of the conflict detection window can be set to any value as needed. Based on the current device local time, record the arrival time of the first IP data packet of the I frame of each video stream within the conflict detection window as the start time (starttime) of the I frame. Record the arrival time of the last IP data packet of the I frame as the end time of the I frame.
  • flag bit flag for each I frame's starttime and endtime respectively and initialize it to 0.
  • counter_1 represents the number of times an I frame (ie, no collision) is recorded. Initialize all counters to 0.
  • step 1
  • conflict detection window 2 As shown in the example in Figure 4, there are a total of 6 I frames of the video stream in two adjacent conflict detection windows.
  • the set t detected by conflict detection window 2 is:
  • t [4_starttime,5_starttime,4_endtime,5_endtime,6_start time,6_endtime];
  • the I frame start time 4_starttime of stream 4 and the I frame start time 5_starttime of stream 5 can be set to the starting time of conflict detection window 2; they can also be set to 4_starttime of stream 4.
  • the principle is 4_starttime
  • the value of 5_starttime must be set to the same value, otherwise the number of collision frames will be overcounted.
  • This example provides two methods for calculating collision probability: the method based on actual counts and the method based on event counts.
  • the difference between the two methods is that the counting algorithm of the collision counter in the collision detection window is different.
  • the method based on actual counting can record the number of all collision combinations that occur within the current conflict detection window;
  • the method based on event counting is based on the previous counting method and filters out the events with the largest number of collisions within the conflict detection window. That is, what is considered based on the event counting method is that what needs to be resolved within a certain period of time is the event of the scene with the largest number of collision frames.
  • conflict detection window 1 As shown in the example in Figure 5, there are a total of 6 video I frames in three adjacent conflict detection windows.
  • Calculating the first collision probability can be expressed as the following formula:
  • Pi represents the probability of i-flow collision
  • counter_i represents the number of i-flow collisions
  • i is a positive integer.
  • P i,max represents the probability that the i-flow collision is the maximum number of flow collisions in the conflict detection window
  • counter_i_max represents the probability that the i-flow collision is the maximum number of flow collision pairs in the conflict detection window.
  • the corresponding number of conflict detection windows, "total sampling times" is the total number of conflict detection windows.
  • conflictPeriod_n represents the collision time of n streams.
  • starttime(l) represents the starting time of video frame l
  • endtime(l) represents the end time of video frame l
  • Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media.
  • computer storage media Including but not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, magnetic disk storage or other magnetic storage devices, or may be used for storage Any other medium on which the information is desired and can be accessed by the computer.
  • communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
  • Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a general illustrative sense only and not for purpose of limitation. In some instances, it will be apparent to those skilled in the art that features, characteristics and/or elements described in connection with a particular embodiment may be used alone, or may be used in conjunction with other embodiments, unless expressly stated otherwise. Features and/or components used in combination. Accordingly, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Abstract

The present disclosure provides a collision detection method, comprising: determining a detection moment of at least one video frame in at least one conflict detection window, wherein the detection moment of the video frame comprises a start moment and an end moment of the video frame; according to the detection moment of the video frame, generating a set to be detected corresponding to the conflict detection window, wherein detection moments in said set are arranged in a time sequence; and performing collision detection on the video frame according to said set corresponding to the conflict detection window. The present disclosure further provides an electronic device and a computer readable medium.

Description

碰撞检测方法、电子设备、计算机可读介质Collision detection method, electronic device, computer readable medium
相关申请的交叉引用Cross-references to related applications
本申请要求于2022年3月16日提交的名称为“碰撞检测方法、电子设备、计算机可读介质”的中国专利申请CN 202210258184.6的优先权,其全部内容通过引用并入本文中。This application claims priority to Chinese patent application CN 202210258184.6 titled "Collision detection method, electronic device, computer-readable medium" submitted on March 16, 2022, the entire content of which is incorporated herein by reference.
技术领域Technical field
本公开涉及通信技术领域,具体涉及一种碰撞检测方法、一种电子设备、一种计算机可读介质。The present disclosure relates to the field of communication technology, and specifically to a collision detection method, an electronic device, and a computer-readable medium.
背景技术Background technique
视频数据报文是以帧为单位传输的,常见帧类型包括I帧和P帧。I帧构建图像背景和运动主体,包含完整画面信息,压缩率较低,是P帧解码基础。P帧依靠I帧进行帧间预测,差值传送,压缩率较高。Video data packets are transmitted in frame units. Common frame types include I frames and P frames. The I frame constructs the image background and moving subjects, contains complete picture information, and has a low compression rate. It is the basis for P frame decoding. P frames rely on I frames for inter-frame prediction, difference transmission, and higher compression rates.
由于I帧数据量比P帧大很多,在经过带宽受限的传输通道后,I帧会占用更多的传输时间,可能导致接收端出现接收延迟的问题。如果I帧的传输时间超过了某个门限,那么就会导致接收端出现视频播放卡顿的现象。Since the amount of data in an I frame is much larger than that of a P frame, after passing through a bandwidth-limited transmission channel, the I frame will take up more transmission time, which may cause reception delays at the receiving end. If the transmission time of the I frame exceeds a certain threshold, it will cause video playback freeze at the receiving end.
I帧碰撞成为影响视频用户体验的重要因素。I-frame collision has become an important factor affecting video user experience.
发明内容Contents of the invention
本公开实施例提供一种碰撞检测方法、一种电子设备、一种计算机可读介质。Embodiments of the present disclosure provide a collision detection method, an electronic device, and a computer-readable medium.
第一方面,本公开实施例提供一种碰撞检测方法,包括:确定至少一个冲突检测窗中至少一个视频帧的检测时刻,其中,所述视频帧的检测时刻包括视频帧的起始时刻和结束时刻;根据所述视频帧的检测时刻生成所述冲突检测窗对应的待检测集合,其中,所述待检测集合中的检测时刻按照时间先后顺序排列;根据所述冲突检测窗对应 的待检测集合进行视频帧的碰撞检测。In a first aspect, an embodiment of the present disclosure provides a collision detection method, including: determining a detection time of at least one video frame in at least one conflict detection window, wherein the detection time of the video frame includes a starting time and an end of the video frame. time; generate a set to be detected corresponding to the conflict detection window according to the detection time of the video frame, wherein the detection times in the set to be detected are arranged in chronological order; according to the conflict detection window corresponding The set to be detected is used for collision detection of video frames.
第二方面,本公开实施例提供一种电子设备,包括:一个或多个处理器;存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本公开实施例第一方面所述的碰撞检测方法。In a second aspect, embodiments of the present disclosure provide an electronic device, including: one or more processors; a memory on which one or more programs are stored. When the one or more programs are processed by the one or more The processor executes, so that the one or more processors implement the collision detection method described in the first aspect of the embodiment of the present disclosure.
第三方面,本公开实施例提供一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现本公开实施例第一方面所述的碰撞检测方法。In a third aspect, an embodiment of the present disclosure provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the collision detection method described in the first aspect of the embodiment of the present disclosure is implemented.
附图说明Description of the drawings
图1是本公开提供的碰撞检测方法的流程图;Figure 1 is a flow chart of the collision detection method provided by the present disclosure;
图2是本公开提供的电子设备的组成框图;Figure 2 is a block diagram of the electronic device provided by the present disclosure;
图3是本公开提供的计算机可读介质的组成框图;Figure 3 is a block diagram of a computer-readable medium provided by the present disclosure;
图4是本公开提供的碰撞检测的示意图;Figure 4 is a schematic diagram of collision detection provided by the present disclosure;
图5是本公开提供的碰撞检测的另一示意图。Figure 5 is another schematic diagram of collision detection provided by the present disclosure.
具体实施方式Detailed ways
为使本领域的技术人员更好地理解本公开的技术方案,下面结合附图对本公开提供的碰撞检测方法、电子设备、计算机可读介质进行详细描述。In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the collision detection method, electronic equipment, and computer-readable media provided by the present disclosure will be described in detail below in conjunction with the accompanying drawings.
在下文中将参考附图更充分地描述示例实施例,但是所述示例实施例可以以不同形式来体现且不应当被解释为限于本文阐述的实施例。反之,提供这些实施例的目的在于使本公开透彻和完整,并将使本领域技术人员充分理解本公开的范围。Example embodiments will be described more fully below with reference to the accompanying drawings, which may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully understand the scope of the disclosure to those skilled in the art.
在不冲突的情况下,本公开各实施例及实施例中的各特征可相互组合。The embodiments of the present disclosure and the features in the embodiments may be combined with each other without conflict.
如本文所使用的,术语“和/或”包括一个或多个相关列举条目的任何和所有组合。As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
本文所使用的术语仅用于描述特定实施例,且不意欲限制本公开。如本文所使用的,单数形式“一个”和“该”也意欲包括复数形 式,除非上下文另外清楚指出。还将理解的是,当本说明书中使用术语“包括”和/或“由……制成”时,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加一个或多个其它特征、整体、步骤、操作、元件、组件和/或其群组。The terminology used herein is used to describe particular embodiments only and is not intended to limit the disclosure. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well. formula, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and/or "made of" are used in this specification, the presence of stated features, integers, steps, operations, elements and/or components is specified but does not exclude the presence or Add one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
除非另外限定,否则本文所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本公开的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本文明确如此限定。Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be construed to have meanings consistent with their meanings in the context of the relevant art and the present disclosure, and will not be construed as having idealized or excessive formal meanings, Unless expressly so limited herein.
参照图1,本公开提供一种碰撞检测方法,包括步骤S1至S3。Referring to Figure 1, the present disclosure provides a collision detection method, including steps S1 to S3.
在步骤S1、确定至少一个冲突检测窗中至少一个视频帧的检测时刻,其中,所述视频帧的检测时刻包括视频帧的起始时刻和结束时刻。In step S1, the detection time of at least one video frame in at least one conflict detection window is determined, wherein the detection time of the video frame includes the start time and the end time of the video frame.
在步骤S2、根据所述视频帧的检测时刻生成所述冲突检测窗对应的待检测集合,其中,所述待检测集合中的检测时刻按照时间先后顺序排列。In step S2, a set to be detected corresponding to the conflict detection window is generated according to the detection time of the video frame, where the detection times in the set to be detected are arranged in chronological order.
在步骤S3、根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测。In step S3, collision detection of video frames is performed according to the set to be detected corresponding to the conflict detection window.
本公开实施例对冲突检测窗的长度不做特殊限定。在一些实施例中,冲突检测窗的长度可以根据需要设定。The embodiment of the present disclosure places no special limit on the length of the conflict detection window. In some embodiments, the length of the conflict detection window can be set as needed.
本公开实施例对视频帧不做特殊限定。例如,视频帧可以是I帧,也可以是P帧。The embodiment of the present disclosure does not impose special limitations on video frames. For example, a video frame can be an I frame or a P frame.
在本公开实施例中,视频帧碰撞是指若干个视频帧在传输时间上存在重叠。本公开实施例对同一时刻碰撞的视频帧的数量不做特殊限定。例如,碰撞的视频帧的数量可以为1,表示没有发生碰撞;碰撞的视频帧的数量可以为2个或两个以上。In the embodiment of the present disclosure, video frame collision means that several video frames overlap in transmission time. The embodiment of the present disclosure does not place a special limit on the number of video frames colliding at the same time. For example, the number of colliding video frames may be 1, indicating that no collision occurs; the number of colliding video frames may be 2 or more.
在本公开实施例中,进行碰撞检测可以包括确定发生碰撞的视频帧组合,也可以包括确定发生碰撞的时间,也可以包括确定碰撞概率,也可以包括确定占空比,还可以包括确定碰撞时的流量。本公开实施例对此不做特殊限定。 In the embodiment of the present disclosure, performing collision detection may include determining the combination of video frames in which the collision occurs, determining the time when the collision occurs, determining the probability of collision, determining the duty cycle, and determining the time of collision. of traffic. The embodiments of the present disclosure do not impose special limitations on this.
本公开实施例提供的碰撞检测方法中,通过确定视频帧的起始时刻和结束时刻,并将视频帧的起始时刻和结束时刻按照时间先后顺序组成待检测集合,然后基于待检测集合进行视频帧的碰撞检测,能够确定碰撞的时间、碰撞概率、占空比、碰撞时的流量等,从而作为后续I帧规避的基础,有利于提升视频用户的体验。In the collision detection method provided by the embodiment of the present disclosure, the start time and end time of the video frame are determined, and the start time and end time of the video frame are formed into a set to be detected in chronological order, and then the video is performed based on the set to be detected. Frame collision detection can determine the time of collision, collision probability, duty cycle, traffic during collision, etc., which can serve as the basis for subsequent I-frame avoidance and help improve the video user experience.
在本公开实施例中,根据视频帧的检测时刻生成冲突检测窗对应的待检测集合时,需满足以下规则:在一个冲突检测窗中,将只有结束时刻、没有起始时刻的若干视频帧的起始时刻设置为第一时刻,第一时刻可以是该冲突检测窗的起始时刻,也可以该若干视频帧中的任意一者的起始时刻,还可以是任意时刻,只要保证只有结束时刻、没有起始时刻的视频帧的起始时刻都同即可;在一个冲突检测窗中,将只有起始时刻、没有结束时刻的若干视频帧的结束时刻设置为第二时刻,第二时刻可以是该冲突检测窗的结束时刻,也可以该若干视频帧中的任意一者的结束时刻,还可以是任意时刻,只要保证只有起始时刻、没有结束时刻的若干视频帧的结束时刻相同即可;将冲突检测窗边界上的结束时刻放入前一个冲突检测窗对应的待检测集合,将冲突检测窗边界上的起始时刻放入后一个冲突检测窗对应的待检测集合。In the embodiment of the present disclosure, when generating a set to be detected corresponding to the conflict detection window based on the detection time of the video frame, the following rules need to be met: In a conflict detection window, several video frames with only the end time and no start time will be generated. The starting time is set to the first time. The first time can be the starting time of the conflict detection window, or the starting time of any one of the several video frames, or it can be any time, as long as it ensures that there is only the end time. , the starting time of video frames without starting time can all be the same; in a conflict detection window, the ending time of several video frames with only starting time and no ending time is set as the second time, and the second time can be It is the end time of the conflict detection window, or it can be the end time of any one of the several video frames, or it can be any time, as long as the end time of several video frames with only the starting time and no end time is ensured to be the same. ; Put the end time on the boundary of the conflict detection window into the set to be detected corresponding to the previous conflict detection window, and put the starting time on the boundary of the conflict detection window into the set to be detected corresponding to the next conflict detection window.
本公开实施例对于如何进行视频帧的碰撞检测不做特殊限定。The embodiment of the present disclosure does not place any special limitations on how to perform collision detection on video frames.
在一些实施例中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测(即,步骤S3)包括:根据所述冲突检测窗对应的待检测集合,确定所述冲突检测窗中发生n流碰撞的次数,其中,n流碰撞是指n个所述视频帧的传输时段存在时间重叠,n为大于或等于1的整数。In some embodiments, performing collision detection of video frames based on the set to be detected corresponding to the conflict detection window (ie, step S3) includes: determining the number of frames in the conflict detection window based on the set to be detected corresponding to the conflict detection window. The number of n-stream collisions that occur, where n-stream collision means that the transmission periods of n video frames overlap in time, and n is an integer greater than or equal to 1.
在一些实施例中,根据所述冲突检测窗对应的待检测集合,确定所述冲突检测窗中发生n流碰撞的次数包括:按照所述冲突检测窗对应的待检测集合中所述检测时刻的顺序,依次对各个目标检测时刻进行检测,确定所述冲突检测窗中发生n流碰撞的次数,其中,所述目标检测时刻为所述待检测集合中标志位为第一标志位的检测时刻,所述第一标志位表征对应的检测时刻未进行检测;其中,对所述目标 检测时刻进行检测包括:根据所述目标检测时刻与前一个检测时刻的关系,以及所述目标检测时刻之前的各个检测时刻的标志位,确定所述目标检测时刻之前发生n流碰撞的次数,n为大于或等于1的整数。In some embodiments, determining the number of n-flow collisions in the conflict detection window according to the set to be detected corresponding to the conflict detection window includes: according to the detection time in the set to be detected corresponding to the conflict detection window. In order, each target detection time is detected in turn to determine the number of n-flow collisions in the conflict detection window, where the target detection time is the detection time when the flag bit in the set to be detected is the first flag bit, The first flag indicates that the corresponding detection time has not been detected; wherein, the target Detection at the detection time includes: determining the number of n-flow collisions before the target detection time, n, based on the relationship between the target detection time and the previous detection time, and the flag bits of each detection time before the target detection time. is an integer greater than or equal to 1.
在一些实施例中,根据所述目标检测时刻与前一个检测时刻的关系,以及所述目标检测时刻之前的各个检测时刻的标志位,确定所述目标检测时刻之前发生n流碰撞的次数包括:在所述目标检测时刻与前一个检测时刻相同、且所述目标检测时刻为结束时刻的情况下,将所述目标检测时刻的标志位和所述目标检测时刻对应的起始时刻的标志位设置为第二标志位,所述第二标志位表征对应的检测时刻已进行检测;在所述目标检测时刻与前一个检测时刻不同、且所述目标检测时刻为起始时刻、前一个检测时刻为起始时刻的情况下,统计所述目标检测时刻之前标志位为所述第一标志位的起始时刻的数量i,将i流碰撞对应的第一计数器加1,其中,i为正整数;在所述目标检测时刻与前一个检测时刻不同、且所述目标检测时刻为结束时刻的情况下,统计所述目标检测时刻之前标志位为所述第一标志位的起始时刻的数量j,将j流碰撞对应的第一计数器加1,其中,j为正整数;将所述目标检测时刻的标志位和所述目标检测时刻对应的起始时刻的标志位设置为所述第二标志位。In some embodiments, based on the relationship between the target detection moment and the previous detection moment, and the flag bits of each detection moment before the target detection moment, determining the number of n-flow collisions before the target detection moment includes: When the target detection time is the same as the previous detection time and the target detection time is the end time, set the flag bit of the target detection time and the flag bit of the start time corresponding to the target detection time. is the second flag bit, which indicates that the corresponding detection time has been detected; when the target detection time is different from the previous detection time, and the target detection time is the starting time, the previous detection time is In the case of the starting time, count the number i of starting times before the target detection time when the flag bit is the first flag bit, and add 1 to the first counter corresponding to the i-flow collision, where i is a positive integer; In the case that the target detection time is different from the previous detection time and the target detection time is the end time, count the number j of the start time whose flag bit is the first flag bit before the target detection time, Add 1 to the first counter corresponding to the collision of j stream, where j is a positive integer; set the flag bit of the target detection time and the flag bit of the starting time corresponding to the target detection time as the second flag bit .
例如,待检测集合用数组t进行表示,每一个检测时刻对应数组t中的一个元素;flag=0表示第一标识位,flag=1表示第二标识位;数组t的长度为N,k=2...N,即,从第二个元素开始检索该数组中flag=0的值;For example, the set to be detected is represented by an array t, and each detection moment corresponds to an element in the array t; flag=0 represents the first flag bit, flag=1 represents the second flag bit; the length of the array t is N, k= 2...N, that is, starting from the second element, retrieve the value of flag=0 in the array;
在t[k]等于t[k-1]的情况下:In the case where t[k] is equal to t[k-1]:
若t[k]是起始时刻(starttime),则不处理;If t[k] is the starting time (starttime), it will not be processed;
若t[k]是结束时刻(endtime),则设置t[k]对应流的starttime的flag=1,endtime的flag=1;If t[k] is the end time (endtime), set the flag=1 of the starttime of the corresponding stream to t[k] and the flag=1 of the endtime;
在t[k]不等于t[k-1]的情况下:When t[k] is not equal to t[k-1]:
若t[k]是starttime,如果t[k-1]是endtime则不处理;否则,统计t[k]前starttime的flag=0的流数i,认为该i个流发生碰撞(即,发生i流碰撞),对应的第一计数器counter_i+1; If t[k] is starttime, if t[k-1] is endtime, it will not be processed; otherwise, the number of flows i with flag = 0 in the starttime before t[k] is counted, and the i flows are considered to have collided (i.e., occurred i stream collision), the corresponding first counter counter_i+1;
若t[k]是endtime,则统计该值之前starttime的flag=0的流数j,认为该j个流发生碰撞(即,发生j流碰撞),对应的counter_j+1;If t[k] is endtime, count the number j of flows with flag=0 in starttime before this value, and consider that the j flows collide (that is, j flow collision occurs), and the corresponding counter_j+1;
设置t[k]对应流的starttime的flag=1,endtime的flag=1。Set the flag=1 of the starttime and the flag=1 of the endtime of the corresponding stream in t[k].
在一些实施例中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测(即,步骤S3)还包括:根据所述冲突检测窗中发生n流碰撞的次数,确定发生n流碰撞的视频流的组合及发生n流碰撞的时间段,n为大于或等于1的整数。In some embodiments, performing collision detection of video frames according to the set to be detected corresponding to the conflict detection window (ie, step S3) also includes: determining the occurrence of n-stream collisions based on the number of n-stream collisions in the conflict detection window. The combination of colliding video streams and the time period during which n streams collide, where n is an integer greater than or equal to 1.
在一些实施例中,基于实际计数结果计算第一碰撞概率。In some embodiments, the first collision probability is calculated based on actual counting results.
相应地,在一些实施例中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测(即,步骤S3)还包括:根据所述冲突检测窗中发生n流碰撞的次数,确定第一碰撞概率,其中,所述第一碰撞概率表征发生n流碰撞的概率,n为大于或等于1的整数。Correspondingly, in some embodiments, performing collision detection of video frames according to the set to be detected corresponding to the conflict detection window (ie, step S3) also includes: determining based on the number of n-stream collisions occurring in the conflict detection window. A first collision probability, wherein the first collision probability represents the probability of n-flow collision occurring, and n is an integer greater than or equal to 1.
在一些实施例中,根据所述冲突检测窗中发生n流碰撞的次数,确定第一碰撞概率包括:在n流碰撞对应的第一计数器不清零的情况下,根据所述冲突检测窗对应的待检测集合,确定所述冲突检测窗中发生n流碰撞的次数,得到发生n流碰撞的总次数,n为大于或等于1的整数;将第一计数器的值进行累加,得到发生碰撞的总次数;根据发生n流碰撞的总次数和发生碰撞的总次数,计算所述第一碰撞概率。In some embodiments, determining the first collision probability according to the number of n-flow collisions occurring in the conflict detection window includes: in the case that the first counter corresponding to the n-flow collision is not cleared, according to the collision detection window corresponding of the set to be detected, determine the number of n-flow collisions in the conflict detection window, and obtain the total number of n-flow collisions, where n is an integer greater than or equal to 1; accumulate the value of the first counter to obtain the number of collisions. The total number of times; the first collision probability is calculated based on the total number of n-flow collisions and the total number of collisions.
例如,计算第一碰撞概率可以表示为如下公式:
For example, calculating the first collision probability can be expressed as the following formula:
其中,Pi表示发生i流碰撞的概率,counter_i表示发生i流碰撞的次数,i为正整数。Among them, Pi represents the probability of i-flow collision, counter_i represents the number of i-flow collisions, and i is a positive integer.
在一些实施例中,基于事件计数结果计算第二碰撞概率。In some embodiments, the second collision probability is calculated based on the event count results.
相应地,在一些实施例中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测(即,步骤S3)还包括:根据所述冲突检测窗中发生n流碰撞的次数,确定第二碰撞概率,其中,所述第二碰撞概率表征n流碰撞为最大数量流碰撞的概率,n为大于或等于1的整数。Correspondingly, in some embodiments, performing collision detection of video frames according to the set to be detected corresponding to the conflict detection window (ie, step S3) also includes: determining based on the number of n-stream collisions occurring in the conflict detection window. A second collision probability, wherein the second collision probability represents the probability that n flow collisions are the maximum number of flow collisions, and n is an integer greater than or equal to 1.
在一些实施例中,根据所述冲突检测窗中发生n流碰撞的次数, 确定第二碰撞概率包括:对于所述冲突检测窗,根据所述冲突检测窗发生n流碰撞的次数,确定n的最大取值,得到最大数量流碰撞;将最大数量流碰撞对应的第二计数器加1;根据第二计数器的值与冲突检测窗的数量,计算所述第二碰撞概率。In some embodiments, according to the number of n-flow collisions occurring in the conflict detection window, Determining the second collision probability includes: for the conflict detection window, determine the maximum value of n according to the number of n-flow collisions in the conflict detection window to obtain the maximum number of flow collisions; and add the second counter corresponding to the maximum number of flow collisions Add 1; calculate the second collision probability according to the value of the second counter and the number of conflict detection windows.
例如,计算第二碰撞概率可以表示为如下公式:
For example, calculating the second collision probability can be expressed as the following formula:
其中,Pi,max表示i流碰撞为冲突检测窗中最大数目流碰撞的概率,counter_i_max表示i流碰撞为冲突检测窗中最大数目流碰撞对应的冲突检测窗数量,“总采样次数”为冲突检测窗的总数。Among them, P i,max represents the probability that the i-flow collision is the maximum number of flow collisions in the conflict detection window, counter_i_max represents the number of conflict detection windows corresponding to the i-flow collision being the maximum number of flow collisions in the conflict detection window, and the "total number of sampling times" is the conflict The total number of detection windows.
在一些实施例中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测(即,步骤S3)还包括:计算占空比,其中,所述占空比表征n流碰撞占总时间的比例,n为大于或等于1的整数。In some embodiments, performing collision detection of video frames according to the to-be-detected set corresponding to the conflict detection window (ie, step S3) also includes: calculating a duty cycle, where the duty cycle represents the total proportion of n-stream collisions. The proportion of time, n is an integer greater than or equal to 1.
在本公开实施例中,占空比为n流碰撞的时间占采样总时间的比例。In the embodiment of the present disclosure, the duty cycle is the ratio of the collision time of n streams to the total sampling time.
例如,占空比计算如下:1帧碰撞占空比=conflictPeriod_1/总时间;2帧碰撞占空比=conflictPeriod_2/总时间;以此类推……,n帧碰撞占空比=conflictPeriod_n/总时间。For example, the duty cycle is calculated as follows: 1 frame collision duty cycle = conflictPeriod_1/total time; 2 frame collision duty cycle = conflictPeriod_2/total time; and so on..., n frame collision duty cycle = conflictPeriod_n/total time.
其中,conflictPeriod_n表示n流碰撞的时间。Among them, conflictPeriod_n represents the collision time of n streams.
在一些实施例中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测(即,步骤S3)还包括:计算发生n流碰撞时的流量,其中,n为大于或等于1的整数。In some embodiments, performing collision detection of video frames according to the to-be-detected set corresponding to the conflict detection window (ie, step S3) also includes: calculating the traffic when n flow collisions occur, where n is greater than or equal to 1. integer.
例如,计算发生n流碰撞时的流量如下:For example, calculating the flow rate when n-flow collision occurs is as follows:
计算发生n流碰撞的每一个视频帧l的流量(kbps):其中,starttime(l)表示视频帧l的起始时刻,endtime(l)表示视频帧l的结束时刻;Calculate the traffic (kbps) of each video frame l where n-stream collision occurs: Among them, starttime(l) represents the starting time of video frame l, and endtime(l) represents the end time of video frame l;
计算发生n流碰撞时的流量(kbps): Calculate the traffic (kbps) when n-flow collision occurs:
在一些实施例中,确定至少一个冲突检测窗中至少一个视频帧的检测时刻(即,步骤S1)包括:将目标汇聚等级的报文进行汇聚,确定所述视频帧的检测时刻,其中,所述目标汇聚等级包括摄像头级、 应用级、小区级中的任意一者。In some embodiments, determining the detection moment of at least one video frame in at least one conflict detection window (ie, step S1) includes: aggregating messages at a target aggregation level and determining the detection moment of the video frame, wherein, The above target aggregation levels include camera level, Either application level or cell level.
在一些实施例中,确定至少一个冲突检测窗中至少一个视频帧的检测时刻(即,步骤S1)包括:根据视频帧级别的数据,确定所述视频帧的检测时刻。In some embodiments, determining the detection moment of at least one video frame in at least one conflict detection window (ie, step S1) includes: determining the detection moment of the video frame according to video frame level data.
参照图2,本公开还提供一种电子设备,其包括:一个或多个处理器101;存储器102,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现上述任意一项的碰撞检测方法。Referring to Figure 2, the present disclosure also provides an electronic device, which includes: one or more processors 101; a memory 102 on which one or more programs are stored. When one or more programs are processed by one or more processors, Execute, causing one or more processors to implement any of the above collision detection methods.
此外,电子设备还可以包括一个或多个I/O接口103,连接在处理器与存储器之间,配置为实现处理器与存储器的信息交互。In addition, the electronic device may also include one or more I/O interfaces 103, connected between the processor and the memory, and configured to implement information exchange between the processor and the memory.
处理器101为具有数据处理能力的器件,其包括但不限于中央处理器(CPU)等;存储器102为具有数据存储能力的器件,其包括但不限于随机存取存储器(RAM,更具体如SDRAM、DDR等)、只读存储器(ROM)、带电可擦可编程只读存储器(EEPROM)、闪存(FLASH);I/O接口(读写接口)103连接在处理器101与存储器102间,实现处理器101与存储器102的信息交互,其包括但不限于数据总线等。The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically such as SDRAM). , DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I/O interface (read-write interface) 103 is connected between the processor 101 and the memory 102 to implement The processor 101 interacts with information of the memory 102, including but not limited to a data bus and the like.
在一些实施例中,处理器101、存储器102和I/O接口103通过总线104相互连接,进而与计算设备的其它组件连接。In some embodiments, processor 101, memory 102, and I/O interface 103 are connected to each other and, in turn, to other components of the computing device via bus 104.
参照图3,本公开还提供一种计算机可读介质,其上存储有计算机程序,程序被处理器执行时实现上述任意一种碰撞检测方法。Referring to FIG. 3 , the present disclosure also provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, any one of the above collision detection methods is implemented.
为了使本领域技术人员能够更清楚地理解本公开实施例提供的技术方案,下面通过具体的示例,对本公开实施例提供的技术方案进行详细说明。In order to enable those skilled in the art to more clearly understand the technical solutions provided by the embodiments of the present disclosure, the technical solutions provided by the embodiments of the present disclosure are described in detail below through specific examples.
示例Example
本示例以视频帧为I帧进行说明。本示例对应用场景不做特殊限定。例如,可以是摄像头级数据流汇聚场景,也可以是应用级APP数据流汇聚场景,还可以是小区级数据流汇聚场景。This example uses the video frame as an I frame for illustration. This example does not impose special restrictions on application scenarios. For example, it can be a camera-level data flow aggregation scenario, an application-level APP data flow aggregation scenario, or a cell-level data flow aggregation scenario.
待检测数据包括视频流中的I帧包含的IP报文级别的数据(本方案不提供具体的视频流业务识别技术),包括但不限于:IP报文的到达时刻,IP五元组信息,包大小信息等。 The data to be detected includes IP packet-level data contained in I frames in the video stream (this solution does not provide specific video stream service identification technology), including but not limited to: the arrival time of the IP packet, IP five-tuple information, Packet size information, etc.
待检测数据包括多种汇聚等级的视频流数据,包括但不限于以下各种级别。The data to be detected includes video stream data at multiple aggregation levels, including but not limited to the following levels.
摄像头级:根据IP五元组进行识别,对摄像头级的视频IP报文流进行碰撞检测。Camera level: Identify based on IP five-tuple, and perform collision detection on camera-level video IP packet flow.
APP级:根据IP地址(addr)和端口号(port)进行识别。对同一个APP的视频IP报文流汇聚之后做碰撞检测。APP level: Identified based on IP address (addr) and port number (port). Collision detection is performed after aggregating the video IP packet streams of the same APP.
小区级:根据NR CGI(Cell Global Identifier,小区全局标识符)进行识别。对同一小区的视频IP报文流汇聚之后做碰撞检测。Cell level: Identified based on NR CGI (Cell Global Identifier, cell global identifier). Collision detection is performed after aggregating video IP packet flows in the same cell.
可选地,待检测数据也可以包括经过预处理后计算得到的I帧、P帧等视频帧级别的数据,包括但不限于:帧起始时刻,帧结束时刻,帧持续时长,帧类型,IP五元组信息,帧大小信息等。Optionally, the data to be detected may also include video frame-level data such as I frames and P frames calculated after preprocessing, including but not limited to: frame start time, frame end time, frame duration, frame type, IP quintuple information, frame size information, etc.
I帧碰撞检测包括:I-frame collision detection includes:
设置冲突检测窗(conflictWindow),该冲突检测窗的长度可根据需要设置为任意值。以当前设备本地时间为准,记录冲突检测窗内的每个视频流的I帧的第一个IP数据包的到达时刻,作为该I帧的起始时刻(starttime)。记录该I帧的最后一个IP数据包到达时刻,作为该I帧的结束时刻(endtime)。Set the conflict detection window (conflictWindow). The length of the conflict detection window can be set to any value as needed. Based on the current device local time, record the arrival time of the first IP data packet of the I frame of each video stream within the conflict detection window as the start time (starttime) of the I frame. Record the arrival time of the last IP data packet of the I frame as the end time of the I frame.
对每个I帧的starttime和endtime分别设置标志位flag并初始化为0。该标志位的作用是确定当前时刻是否已经被用于计算碰撞概率。当flag=0时,表示该flag所对应的时刻参与概率计算;当flag=1时,表示该flag所对应的时刻不参与碰撞概率计算。Set the flag bit flag for each I frame's starttime and endtime respectively and initialize it to 0. The purpose of this flag is to determine whether the current moment has been used to calculate the collision probability. When flag=0, it means that the time corresponding to the flag participates in the probability calculation; when flag=1, it means that the time corresponding to the flag does not participate in the collision probability calculation.
为每个检测冲突窗设置一组I帧碰撞计数器counter_n(n=1、2、3...),用于记录当前窗口内发生n个I帧碰撞的次数。counter_1表示记录到一个I帧(即,无碰撞)出现的次数。将所有计数器初始化为0。A set of I-frame collision counters counter_n (n=1, 2, 3...) is set for each conflict detection window, which is used to record the number of n I-frame collisions in the current window. counter_1 represents the number of times an I frame (ie, no collision) is recorded. Initialize all counters to 0.
例如,假设某个冲突检测窗中(假设其中有5个视频流业务)的统计结果是counter_2=2,counter_3=1,其他计数器均为0,即,出现了2次两帧碰撞和1次三帧碰撞。For example, assume that the statistical results in a certain conflict detection window (assuming there are 5 video streaming services) are counter_2=2, counter_3=1, and other counters are all 0, that is, there are two two-frame collisions and one three-frame collision. Frame collision.
步骤1:step 1:
将冲突检测窗内所有流的starttime和endtime组合并排序, 生成集合t。若冲突检测窗内某些流只有endtime,则将这些流的starttime也放入该集合并设置为相同值。冲突检测窗边界上的endtime放入前一个冲突检测窗的集合,冲突检测窗边界上的starttime放入后一个冲突检测窗的集合。Combine and sort the starttime and endtime of all flows within the conflict detection window, Generate the set t. If some flows within the conflict detection window only have endtime, the starttime of these flows will also be put into this set and set to the same value. The endtime on the boundary of the conflict detection window is put into the set of the previous conflict detection window, and the starttime on the boundary of the conflict detection window is put into the set of the next conflict detection window.
如图4所示示例,相邻两个冲突检测窗口内共有6个视频流的I帧,冲突检测窗2检测到的集合t为:As shown in the example in Figure 4, there are a total of 6 I frames of the video stream in two adjacent conflict detection windows. The set t detected by conflict detection window 2 is:
t=[4_starttime,5_starttime,4_endtime,5_endtime,6_start time,6_endtime];t=[4_starttime,5_starttime,4_endtime,5_endtime,6_start time,6_endtime];
需要说明的是,图4中流4的I帧起始时间4_starttime和流5的I帧起始时间5_starttime可设置为冲突检测窗2的起始时刻;也可以设置为流4的4_starttime,原则是4_starttime和5_starttime的值必须设置为相同的值,否则会多算碰撞帧数。It should be noted that in Figure 4, the I frame start time 4_starttime of stream 4 and the I frame start time 5_starttime of stream 5 can be set to the starting time of conflict detection window 2; they can also be set to 4_starttime of stream 4. The principle is 4_starttime The value of 5_starttime must be set to the same value, otherwise the number of collision frames will be overcounted.
步骤2:Step 2:
假设步骤1组合排序后的数组t的长度为N,k=2...N,即,从第二个元素开始检索该数组中flag=0的值。Assume that the length of the combined sorted array t in step 1 is N, k=2...N, that is, the value of flag=0 in the array is retrieved starting from the second element.
在t[k]等于t[k-1]的情况下:In the case where t[k] is equal to t[k-1]:
若t[k]是起始时刻(starttime),则不处理;If t[k] is the starting time (starttime), it will not be processed;
若t[k]是结束时刻(endtime),则设置t[k]对应流的starttime的flag=1,endtime的flag=1;If t[k] is the end time (endtime), set the flag=1 of the starttime of the corresponding stream to t[k] and the flag=1 of the endtime;
在t[k]不等于t[k-1]的情况下:When t[k] is not equal to t[k-1]:
若t[k]是starttime,如果t[k-1]是endtime则不处理;否则,统计t[k]前starttime的flag=0的流数i,认为该i个流发生碰撞(即,发生i流碰撞),对应的第一计数器counter_i+1;If t[k] is starttime, if t[k-1] is endtime, it will not be processed; otherwise, the number of flows i with flag = 0 in the starttime before t[k] is counted, and the i flows are considered to have collided (i.e., occurred i stream collision), the corresponding first counter counter_i+1;
若t[k]是endtime,则统计该值之前starttime的flag=0的流数j,认为该j个流发生碰撞(即,发生j流碰撞),对应的counter_j+1;If t[k] is endtime, count the number j of flows with flag=0 in starttime before this value, and consider that the j flows collide (that is, j flow collision occurs), and the corresponding counter_j+1;
设置t[k]对应流的starttime的flag=1,endtime的flag=1。Set the flag=1 of the starttime and the flag=1 of the endtime of the corresponding stream in t[k].
当检测到发生碰撞时,需要记录发生碰撞的流组合(例如,一个4流碰撞记录各流编号[3,6,10,19]),并计算各流碰撞组合所对应的碰撞时间段conflictPeroid=t[i]-t[i-1],单位毫秒(ms)。When a collision is detected, it is necessary to record the colliding flow combination (for example, a 4-flow collision records each flow number [3, 6, 10, 19]), and calculate the collision time period corresponding to each flow collision combination conflictPeroid= t[i]-t[i-1], unit millisecond (ms).
1)计算碰撞概率: 1) Calculate collision probability:
本示例提供两种碰撞概率的计算方式:基于实际计数的方式与基于事件计数的方式。两种方式区别在于冲突检测窗内碰撞计数器的计数算法不同。基于实际计数的方式可以记录当前冲突检测窗口内发生的所有的碰撞组合数目;基于事件计数的方式是在前一种计数方式的基础上,筛选出冲突检测窗内发生碰撞数目最大的事件。即,基于事件计数的方式所考虑的是,在一定时间段内需要解决的是碰撞帧数最多的场景这个事件。This example provides two methods for calculating collision probability: the method based on actual counts and the method based on event counts. The difference between the two methods is that the counting algorithm of the collision counter in the collision detection window is different. The method based on actual counting can record the number of all collision combinations that occur within the current conflict detection window; the method based on event counting is based on the previous counting method and filters out the events with the largest number of collisions within the conflict detection window. That is, what is considered based on the event counting method is that what needs to be resolved within a certain period of time is the event of the scene with the largest number of collision frames.
如图5所示示例,在相邻的三个冲突检测窗内,共有6个视频I帧。以冲突检测窗1为例,在当前突检测窗内,基于实际计数数目的方式输出的计数结果为counter_1=1,counter_2=1,即,当前突检测窗内记录到发生过一次一帧碰撞(即,无碰撞)以及一次两帧碰撞。而基于事件计数的方式则只输出当前突检测窗内记录到的最大碰撞流数目counter_2=1,即,当前突检测窗内发生了两帧碰撞。As shown in the example in Figure 5, there are a total of 6 video I frames in three adjacent conflict detection windows. Taking conflict detection window 1 as an example, in the current sudden detection window, the counting results output based on the actual count number are counter_1=1, counter_2=1, that is, one frame collision is recorded in the current sudden detection window ( i.e. no collision) and a two-frame collision. The method based on event counting only outputs the maximum number of collision flows counter_2=1 recorded in the current sudden detection window, that is, two frame collisions have occurred in the current sudden detection window.
a、基于实际计数结果的第一碰撞概率:a. The first collision probability based on the actual counting results:
当前冲突窗口检测完成后,统计每种I帧冲突的次数,保存计数器计数结果不清零,并与下一次检测结果对应的数器数值进行累加,最后统计每个counter的总次数。After the detection of the current conflict window is completed, count the number of conflicts for each I frame, save the counter count result and accumulate it with the counter value corresponding to the next detection result, and finally count the total number of each counter.
计算第一碰撞概率可以表示为如下公式:
Calculating the first collision probability can be expressed as the following formula:
其中,Pi表示发生i流碰撞的概率,counter_i表示发生i流碰撞的次数,i为正整数。Among them, Pi represents the probability of i-flow collision, counter_i represents the number of i-flow collisions, and i is a positive integer.
b、基于事件计数结果的第二碰撞概率:b. Second collision probability based on event counting results:
当前冲突窗口检测完成后,只记录参与碰撞帧数最多的事件(即,counter_n中非0值中的最大n值),相应的事件计数器(即,第二计数器)count_n+1;每个冲突检测窗检测结束后,I帧碰撞的各个实际计数数目的计数器(即,第一计数器)counter清0。After the current conflict window detection is completed, only the event with the largest number of collision frames (i.e., the largest n value among non-zero values in counter_n) is recorded, and the corresponding event counter (i.e., the second counter) count_n+1; each conflict detection After the window detection is completed, the counter of each actual count number of I frame collisions (ie, the first counter) is cleared to 0.
计算第二碰撞概率可以表示为如下公式:
Calculating the second collision probability can be expressed as the following formula:
其中,Pi,max表示i流碰撞为冲突检测窗中最大数目流碰撞的概率,counter_i_max表示i流碰撞为冲突检测窗中最大数目流碰撞对 应的冲突检测窗数量,“总采样次数”为冲突检测窗的总数。Among them, P i,max represents the probability that the i-flow collision is the maximum number of flow collisions in the conflict detection window, and counter_i_max represents the probability that the i-flow collision is the maximum number of flow collision pairs in the conflict detection window. The corresponding number of conflict detection windows, "total sampling times" is the total number of conflict detection windows.
2)计算占空比:2) Calculate the duty cycle:
当前冲突窗口检测完成后,统计每种I帧冲突的次数,保存计数器计数结果不清零,并与下一次检测结果对应的各计数器数值进行累加,最后统计每个counter的总次数。After the detection of the current conflict window is completed, count the number of conflicts for each I frame, save the counter count results and accumulate them with the counter values corresponding to the next detection results, and finally count the total number of each counter.
检测结束后得到所有种类I帧冲突的时间,并计算总时间。总时间为所有种类I帧冲突的时间总和。I帧碰撞占空比计算如下:1帧碰撞占空比=conflictPeriod_1/总时间;2帧碰撞占空比=conflictPeriod_2/总时间;以此类推……,n帧碰撞占空比=conflictPeriod_n/总时间。After the detection is completed, the time of all types of I frame collisions is obtained, and the total time is calculated. The total time is the sum of the times for all types of I-frame collisions. The I frame collision duty cycle is calculated as follows: 1 frame collision duty cycle = conflictPeriod_1/total time; 2 frame collision duty cycle = conflictPeriod_2/total time; and so on..., n frame collision duty cycle = conflictPeriod_n/total time .
其中,conflictPeriod_n表示n流碰撞的时间。Among them, conflictPeriod_n represents the collision time of n streams.
3)计算发生n流碰撞时的流量:3) Calculate the flow rate when n-flow collision occurs:
计算发生n流碰撞的每一个视频帧l的流量(kbps):其中,starttime(l)表示视频帧l的起始时刻,endtime(l)表示视频帧l的结束时刻;Calculate the traffic (kbps) of each video frame l where n-stream collision occurs: Among them, starttime(l) represents the starting time of video frame l, and endtime(l) represents the end time of video frame l;
计算发生n流碰撞时的流量(kbps): Calculate the traffic (kbps) when n-flow collision occurs:
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其它数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质 包括但不限于RAM、ROM、EEPROM、闪存或其它存储器技术、CD-ROM、数字多功能盘(DVD)或其它光盘存储、磁盒、磁带、磁盘存储或其它磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其它的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其它传输机制之类的调制数据信号中的其它数据,并且可包括任何信息递送介质。Those of ordinary skill in the art can understand that all or some steps, systems, and functional modules/units in the devices disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may consist of several physical components. Components execute cooperatively. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media. computer storage media Including but not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, magnetic disk storage or other magnetic storage devices, or may be used for storage Any other medium on which the information is desired and can be accessed by the computer. Additionally, it is known to those of ordinary skill in the art that communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
本文已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其它实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本公开的范围的情况下,可进行各种形式和细节上的改变。 Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a general illustrative sense only and not for purpose of limitation. In some instances, it will be apparent to those skilled in the art that features, characteristics and/or elements described in connection with a particular embodiment may be used alone, or may be used in conjunction with other embodiments, unless expressly stated otherwise. Features and/or components used in combination. Accordingly, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Claims (15)

  1. 一种碰撞检测方法,包括:A collision detection method including:
    确定至少一个冲突检测窗中至少一个视频帧的检测时刻,其中,所述视频帧的检测时刻包括视频帧的起始时刻和结束时刻;Determine a detection time of at least one video frame in at least one conflict detection window, wherein the detection time of the video frame includes a start time and an end time of the video frame;
    根据所述视频帧的检测时刻生成所述冲突检测窗对应的待检测集合,其中,所述待检测集合中的检测时刻按照时间先后顺序排列;Generate a set to be detected corresponding to the conflict detection window according to the detection time of the video frame, wherein the detection times in the set to be detected are arranged in chronological order;
    根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测。Collision detection of video frames is performed according to the set to be detected corresponding to the conflict detection window.
  2. 根据权利要求1所述的碰撞检测方法,其中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测包括:The collision detection method according to claim 1, wherein performing collision detection of video frames according to the to-be-detected set corresponding to the conflict detection window includes:
    根据所述冲突检测窗对应的待检测集合,确定所述冲突检测窗中发生n流碰撞的次数,Determine the number of n-flow collisions in the conflict detection window according to the set to be detected corresponding to the conflict detection window,
    其中,n流碰撞是指n个所述视频帧的传输时段存在时间重叠,n为大于或等于1的整数。Wherein, n-stream collision means that the transmission periods of n video frames overlap in time, and n is an integer greater than or equal to 1.
  3. 根据权利要求2所述的碰撞检测方法,其中,根据所述冲突检测窗对应的待检测集合,确定所述冲突检测窗中发生n流碰撞的次数包括:The collision detection method according to claim 2, wherein determining the number of n-flow collisions in the conflict detection window according to the set to be detected corresponding to the conflict detection window includes:
    按照所述冲突检测窗对应的待检测集合中各个所述检测时刻的顺序,依次对目标检测时刻进行检测,确定所述冲突检测窗中发生n流碰撞的次数,其中,所述目标检测时刻为所述待检测集合中标志位为第一标志位的检测时刻,所述第一标志位表征对应的检测时刻未进行检测;According to the order of each detection time in the set to be detected corresponding to the conflict detection window, the target detection time is detected sequentially to determine the number of n-flow collisions in the conflict detection window, where the target detection time is The flag bit in the set to be detected is the detection time of the first flag bit, and the first flag bit indicates that the corresponding detection time is not detected;
    其中,对所述目标检测时刻进行检测包括:Wherein, detecting the target detection moment includes:
    根据所述目标检测时刻与前一个检测时刻的关系,以及所述目标检测时刻之前的各个检测时刻的标志位,确定所述目标检测时刻之前发生n流碰撞的次数。According to the relationship between the target detection time and the previous detection time, and the flag bits of each detection time before the target detection time, the number of n-flow collisions that occur before the target detection time is determined.
  4. 根据权利要求3所述的碰撞检测方法,其中,根据所述目标 检测时刻与前一个检测时刻的关系,以及所述目标检测时刻之前的各个检测时刻的标志位,确定所述目标检测时刻之前发生n流碰撞的次数包括:The collision detection method according to claim 3, wherein according to the target The relationship between the detection time and the previous detection time, as well as the flag bits of each detection time before the target detection time, determining the number of n-flow collisions before the target detection time includes:
    在所述目标检测时刻与前一个检测时刻相同、且所述目标检测时刻为结束时刻的情况下,将所述目标检测时刻的标志位和所述目标检测时刻对应的起始时刻的标志位设置为第二标志位,所述第二标志位表征对应的检测时刻已进行检测;When the target detection time is the same as the previous detection time and the target detection time is the end time, set the flag bit of the target detection time and the flag bit of the start time corresponding to the target detection time. is a second flag bit, which indicates that the corresponding detection time has been detected;
    在所述目标检测时刻与前一个检测时刻不同、且所述目标检测时刻为起始时刻、前一个检测时刻为起始时刻的情况下,统计所述目标检测时刻之前标志位为所述第一标志位的起始时刻的数量i,将i流碰撞对应的第一计数器加1,其中,i为正整数;When the target detection time is different from the previous detection time, and the target detection time is the starting time and the previous detection time is the starting time, the flag bit before the target detection time is counted as the first The number i of the starting moment of the flag bit increases the first counter corresponding to the collision of i stream by 1, where i is a positive integer;
    在所述目标检测时刻与前一个检测时刻不同、且所述目标检测时刻为结束时刻的情况下,统计所述目标检测时刻之前标志位为所述第一标志位的起始时刻的数量j,将j流碰撞对应的第一计数器加1,其中,j为正整数;In the case that the target detection time is different from the previous detection time and the target detection time is the end time, count the number j of the start time whose flag bit is the first flag bit before the target detection time, Add 1 to the first counter corresponding to the collision of stream j, where j is a positive integer;
    将所述目标检测时刻的标志位和所述目标检测时刻对应的起始时刻的标志位设置为所述第二标志位。The flag bit of the target detection time and the flag bit of the starting time corresponding to the target detection time are set as the second flag bit.
  5. 根据权利要求2至4中任意一项所述的碰撞检测方法,其中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测还包括:The collision detection method according to any one of claims 2 to 4, wherein performing collision detection of video frames based on the to-be-detected set corresponding to the conflict detection window further includes:
    根据所述冲突检测窗中发生n流碰撞的次数,确定发生n流碰撞的视频流的组合及发生n流碰撞的时间段。According to the number of times n-stream collisions occur in the conflict detection window, the combination of video streams in which n-stream collisions occur and the time period in which n-stream collisions occur are determined.
  6. 根据权利要求2至4中任意一项所述的碰撞检测方法,其中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测还包括:The collision detection method according to any one of claims 2 to 4, wherein performing collision detection of video frames based on the to-be-detected set corresponding to the conflict detection window further includes:
    根据所述冲突检测窗中发生n流碰撞的次数,确定第一碰撞概率,其中,所述第一碰撞概率表征发生n流碰撞的概率。 A first collision probability is determined according to the number of times n-flow collisions occur in the conflict detection window, where the first collision probability represents the probability of n-flow collisions occurring.
  7. 根据权利要求6所述的碰撞检测方法,其中,根据所述冲突检测窗中发生n流碰撞的次数,确定第一碰撞概率包括:The collision detection method according to claim 6, wherein determining the first collision probability according to the number of n-flow collisions occurring in the conflict detection window includes:
    在n流碰撞对应的第一计数器不清零的情况下,根据所述冲突检测窗对应的待检测集合,确定所述冲突检测窗中发生n流碰撞的次数,得到发生n流碰撞的总次数;When the first counter corresponding to the n-flow collision is not cleared, determine the number of n-flow collisions in the conflict detection window according to the set to be detected corresponding to the conflict detection window, and obtain the total number of n-flow collisions. ;
    将第一计数器的值进行累加,得到发生碰撞的总次数;Accumulate the value of the first counter to obtain the total number of collisions;
    根据发生n流碰撞的总次数和发生碰撞的总次数,计算所述第一碰撞概率。The first collision probability is calculated based on the total number of n-flow collisions and the total number of collisions.
  8. 根据权利要求2至4中任意一项所述的碰撞检测方法,其中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测还包括:The collision detection method according to any one of claims 2 to 4, wherein performing collision detection of video frames based on the to-be-detected set corresponding to the conflict detection window further includes:
    根据所述冲突检测窗中发生n流碰撞的次数,确定第二碰撞概率,其中,所述第二碰撞概率表征n流碰撞为最大数量流碰撞的概率。The second collision probability is determined according to the number of n-flow collisions occurring in the conflict detection window, where the second collision probability represents the probability that the n-flow collision is the maximum number of flow collisions.
  9. 根据权利要求8所述的碰撞检测方法,其中,根据所述冲突检测窗中发生n流碰撞的次数,确定第二碰撞概率包括:The collision detection method according to claim 8, wherein determining the second collision probability according to the number of n-flow collisions occurring in the conflict detection window includes:
    对于所述冲突检测窗,根据所述冲突检测窗发生n流碰撞的次数,确定n的最大取值,得到最大数量流碰撞;For the conflict detection window, determine the maximum value of n according to the number of n flow collisions in the conflict detection window, and obtain the maximum number of flow collisions;
    将最大数量流碰撞对应的第二计数器加1;Add 1 to the second counter corresponding to the maximum number of flow collisions;
    根据第二计数器的值与冲突检测窗的数量,计算所述第二碰撞概率。The second collision probability is calculated according to the value of the second counter and the number of collision detection windows.
  10. 根据权利要求2至4中任意一项所述的碰撞检测方法,其中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测还包括:The collision detection method according to any one of claims 2 to 4, wherein performing collision detection of video frames based on the to-be-detected set corresponding to the conflict detection window further includes:
    计算占空比,其中,所述占空比表征n流碰撞占总时间的比例。A duty cycle is calculated, wherein the duty cycle represents the proportion of n-flow collisions to the total time.
  11. 根据权利要求2至4中任意一项所述的碰撞检测方法,其中,根据所述冲突检测窗对应的待检测集合进行视频帧的碰撞检测还 包括:The collision detection method according to any one of claims 2 to 4, wherein the collision detection of video frames is performed based on the set to be detected corresponding to the conflict detection window. include:
    计算发生n流碰撞时的流量。Calculate the flow rate when n-flow collision occurs.
  12. 根据权利要求1至11中任意一项所述的碰撞检测方法,其中,确定至少一个冲突检测窗中至少一个视频帧的检测时刻包括:The collision detection method according to any one of claims 1 to 11, wherein determining the detection moment of at least one video frame in at least one conflict detection window includes:
    将目标汇聚等级的报文进行汇聚,确定所述视频帧的检测时刻,其中,所述目标汇聚等级包括摄像头级、应用级、小区级中的任意一者。The messages at a target aggregation level are aggregated to determine the detection time of the video frame, where the target aggregation level includes any one of a camera level, an application level, and a cell level.
  13. 根据权利要求1至11中任意一项所述的碰撞检测方法,其中,确定至少一个冲突检测窗中至少一个视频帧的检测时刻包括:The collision detection method according to any one of claims 1 to 11, wherein determining the detection moment of at least one video frame in at least one conflict detection window includes:
    根据视频帧级别的数据,确定所述视频帧的检测时刻。According to the data at the video frame level, the detection moment of the video frame is determined.
  14. 一种电子设备,包括:An electronic device including:
    一个或多个处理器;one or more processors;
    存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现根据权利要求1至13中任意一项所述的碰撞检测方法。A memory having one or more programs stored thereon. When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 13. The collision detection method described in the item.
  15. 一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现根据权利要求1至13中任意一项所述的碰撞检测方法。 A computer-readable medium on which a computer program is stored. When the program is executed by a processor, the collision detection method according to any one of claims 1 to 13 is implemented.
PCT/CN2023/081702 2022-03-16 2023-03-15 Collision detection method, electronic device, and computer readable medium WO2023174346A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210258184.6A CN116805966A (en) 2022-03-16 2022-03-16 Collision detection method, electronic device, computer-readable medium
CN202210258184.6 2022-03-16

Publications (1)

Publication Number Publication Date
WO2023174346A1 true WO2023174346A1 (en) 2023-09-21

Family

ID=88022365

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/081702 WO2023174346A1 (en) 2022-03-16 2023-03-15 Collision detection method, electronic device, and computer readable medium

Country Status (2)

Country Link
CN (1) CN116805966A (en)
WO (1) WO2023174346A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110069259A (en) * 2009-12-17 2011-06-23 한국과학기술원 Parallel collision detection method based on inter conllision detection and computer readable media thereof
CN103577783A (en) * 2013-11-25 2014-02-12 北京邮电大学 Efficient self-adaptive RFID (radio frequency identification) anti-collision tracking tree algorithm
WO2015121902A1 (en) * 2014-02-14 2015-08-20 日本電気通信システム株式会社 Wireless communication terminal
US20200236134A1 (en) * 2019-01-22 2020-07-23 Cisco Technology, Inc. Detecting and preventing denial of service attacks due to fraudulent bss color collision events
CN113780163A (en) * 2021-09-09 2021-12-10 上海浦东发展银行股份有限公司 Page loading time detection method and device, electronic equipment and medium
WO2022012106A1 (en) * 2020-07-17 2022-01-20 深圳云天励飞技术股份有限公司 Interference detection system and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110069259A (en) * 2009-12-17 2011-06-23 한국과학기술원 Parallel collision detection method based on inter conllision detection and computer readable media thereof
CN103577783A (en) * 2013-11-25 2014-02-12 北京邮电大学 Efficient self-adaptive RFID (radio frequency identification) anti-collision tracking tree algorithm
WO2015121902A1 (en) * 2014-02-14 2015-08-20 日本電気通信システム株式会社 Wireless communication terminal
US20200236134A1 (en) * 2019-01-22 2020-07-23 Cisco Technology, Inc. Detecting and preventing denial of service attacks due to fraudulent bss color collision events
WO2022012106A1 (en) * 2020-07-17 2022-01-20 深圳云天励飞技术股份有限公司 Interference detection system and apparatus
CN113780163A (en) * 2021-09-09 2021-12-10 上海浦东发展银行股份有限公司 Page loading time detection method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN116805966A (en) 2023-09-26

Similar Documents

Publication Publication Date Title
US10021007B2 (en) Measuring latency within a networking device
US8018845B2 (en) Sampling rate-limited traffic
US6560198B1 (en) Method and system for stabilized random early detection using packet sampling
JP4924503B2 (en) Congestion detection method, congestion detection apparatus, and congestion detection program
CN112217686A (en) System, method and device for evaluating round trip delay
US10924374B2 (en) Telemetry event aggregation
KR20200020896A (en) Method and system and apparatus for video transmission
US9705807B2 (en) Distributed counters and meters in packet-switched system
WO2017161997A1 (en) Packet channel detection method and apparatus
CN110289992B (en) Message processing method and device
WO2023174346A1 (en) Collision detection method, electronic device, and computer readable medium
US20140023069A1 (en) Method and apparatus for packet buffering measurement
CN112260899B (en) Network monitoring method and device based on MMU (memory management unit)
CN114501066A (en) Video stream processing method, system, computer device and storage medium
CN105681864A (en) IP-based transmission flow jitter removing method and device
US10749765B2 (en) Method and system for monitoring communication in a network
CN112351049B (en) Data transmission method, device, equipment and storage medium
CN116582507B (en) Network micro burst flow detection method based on programmable switch and related equipment
Yoshida et al. FPGA-based network microburst analysis system with flow specification and efficient packet capturing
US11824792B2 (en) Method and system for dynamic quota-based congestion management
WO2023185292A1 (en) Video data processing method and apparatus, and edge computing gateway and storage medium
CN114466397B (en) TCP communication quality evaluation method and device and electronic equipment
WO2023083143A1 (en) Incoming code stream code rate obtaining method, stream receiving processing method, electronic device, and medium
CN116781975B (en) Media stream detection method, device, terminal equipment and storage medium
US9306854B2 (en) Method and apparatus for diagnosing interface oversubscription and microbursts

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: 23769848

Country of ref document: EP

Kind code of ref document: A1