CN116614657A - Event information sending method, device, system and electronic equipment - Google Patents
Event information sending method, device, system and electronic equipment Download PDFInfo
- Publication number
- CN116614657A CN116614657A CN202310544107.1A CN202310544107A CN116614657A CN 116614657 A CN116614657 A CN 116614657A CN 202310544107 A CN202310544107 A CN 202310544107A CN 116614657 A CN116614657 A CN 116614657A
- Authority
- CN
- China
- Prior art keywords
- event
- information
- event information
- sending
- independent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26208—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
- H04N21/26241—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving the time of distribution, e.g. the best time of the day for inserting an advertisement or airing a children programme
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/4223—Cameras
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Databases & Information Systems (AREA)
- Alarm Systems (AREA)
Abstract
本申请提供一种事件信息发送方法、装置、系统和电子设备,该方法的一具体实施方式包括:针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重;按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息;其中,所述发送周期基于所述发布服务器的发布频率设置。该方法能够在限制了发布服务器的发布频率的情况下,合理发送事件信息,以满足实际需求。
The present application provides a method, device, system, and electronic device for sending event information. A specific implementation of the method includes: for any type of event information, determining the event attribute information corresponding to the event information, and according to the event Attribute information, configure the weight corresponding to the event information; determine the sending order of various event information according to the order of the weight, and send the various event information to the publishing server according to the sending order when the sending cycle arrives; wherein, The sending period is set based on the publishing frequency of the publishing server. The method can reasonably send event information while limiting the publishing frequency of the publishing server, so as to meet actual needs.
Description
技术领域technical field
本申请涉及信息处理领域,具体而言,涉及一种事件信息发送方法、装置、系统和电子设备。The present application relates to the field of information processing, in particular, to a method, device, system and electronic equipment for sending event information.
背景技术Background technique
目前,在很多场景中都部署有摄像机,这些摄像机在工作过程中会触发很多事件(例如,检测到画面中有移动的物体),摄像机可以记录触发的事件信息(例如事件触发时间、事件触发地点等),并在适当的时候将其发送给关注这些事件的用户(例如,手机上安装有特定APP的用户),以使用户获知这些事件的发生,从而采取相应的措施。At present, cameras are deployed in many scenes, and these cameras will trigger many events during the working process (for example, detecting a moving object in the screen), and the cameras can record the triggered event information (such as event trigger time, event trigger location etc.), and send it to users who are concerned about these events (for example, users who have a specific APP installed on their mobile phones) at an appropriate time, so that users can be informed of the occurrence of these events and take corresponding measures.
摄像机在记录多个事件信息时,通常会记录事件的触发时间,然后根据事件触发时间的先后顺序,顺次发送对应的事件信息。而在一些应用场景中,这种根据事件触发时间的先后顺序进行事件发送的方式不能满足实际需求。When the camera records multiple event information, it usually records the trigger time of the event, and then sends the corresponding event information sequentially according to the order of the event trigger time. However, in some application scenarios, this method of sending events according to the sequence of event triggering times cannot meet actual needs.
发明内容Contents of the invention
本申请实施例的目的在于提供一种事件信息发送方法、装置、系统和电子设备,用以在限制了发布服务器的发布频率的情况下,合理发送事件信息,以满足实际需求。The purpose of the embodiments of the present application is to provide a method, device, system and electronic equipment for sending event information, so as to reasonably send event information while limiting the publishing frequency of the publishing server, so as to meet actual needs.
第一方面,本申请实施例提供了一种事件信息发送方法,该方法包括:针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重;按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息;其中,所述发送周期基于所述发布服务器的发布频率设置。这样,可以根据权重更加灵活地确定出每种事件信息的发送顺序,继而可以在限制了发布服务器的发布频率的情况下,能够更加合理地发送事件信息,满足了实际需求。In the first aspect, the embodiment of the present application provides a method for sending event information. The method includes: for any type of event information, determining the event attribute information corresponding to the event information, and configuring the event attribute information according to the event attribute information. The weight corresponding to the event information; determine the sending order of various event information according to the order of the weight, and when the sending cycle arrives, send the various event information to the publishing server according to the sending order; wherein, the sending cycle is based on The publishing frequency setting of the publishing server. In this way, the sending order of each type of event information can be determined more flexibly according to the weight, and then the event information can be sent more reasonably while limiting the publishing frequency of the publishing server, which meets the actual demand.
可选地,所述任一类型的事件信息包括一个独立事件的独立信息,所述独立信息包括事件触发时间,以及所述事件属性信息包括事件状态,以及所述针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重,包括:利用同一时间计数规则,统计当前时间以及所述事件触发时间;针对所述独立信息,在当前时间以及所述事件触发时间的间隔时长大于时长阈值时,确定所述独立事件处于结束状态;在所述独立事件处于结束状态的情况下,增加该独立信息对应的权重。这样,事件上报设备通过同一时间计数规则可以使各个事件触发时间之间不存在偏差,便于基于相同的时间标准为每个独立事件配置相适应的权重,继而能够更加合理地确定发送顺序。Optionally, the event information of any type includes independent information of an independent event, the independent information includes event trigger time, and the event attribute information includes event status, and the event information for any type, Determining the event attribute information corresponding to the event information, and configuring the weight corresponding to the event information according to the event attribute information, including: using the same time counting rule to count the current time and the event trigger time; for the independent information , when the interval between the current time and the event trigger time is greater than a duration threshold, determine that the independent event is in the end state; if the independent event is in the end state, increase the weight corresponding to the independent information. In this way, the event reporting device can make no deviation between the triggering times of various events through the same time counting rule, so that it is convenient to configure an appropriate weight for each independent event based on the same time standard, and then can more reasonably determine the sending sequence.
可选地,所述任一类型的事件信息包括多个独立事件的独立信息,所述独立信息包括事件触发时间,以及所述事件属性信息包括事件状态,以及所述针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重,包括:利用同一时间计数规则,统计当前时间以及所述事件触发时间;针对于任一独立信息,在当前时间以及所述事件触发时间的间隔时长大于时长阈值时,确定该独立事件处于结束状态;在该独立事件处于结束状态的情况下,增加该独立信息对应的权重。这样,事件上报设备通过同一时间计数规则可以使各个事件触发时间之间不存在偏差,便于基于相同的时间标准为每个独立事件配置相适应的权重,继而能够更加合理地确定发送顺序。Optionally, the event information of any type includes independent information of multiple independent events, the independent information includes event trigger time, and the event attribute information includes event status, and the event information for any type , determining the event attribute information corresponding to the event information, and configuring the weight corresponding to the event information according to the event attribute information, including: using the same time counting rule to count the current time and the event trigger time; for any For independent information, when the current time and the time interval between event triggering times are greater than the duration threshold, it is determined that the independent event is in the end state; when the independent event is in the end state, the weight corresponding to the independent information is increased. In this way, the event reporting device can make no deviation between the triggering times of various events through the same time counting rule, so that it is convenient to configure an appropriate weight for each independent event based on the same time standard, and then can more reasonably determine the sending sequence.
可选地,所述针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重,还包括:在未发送历史独立信息的情况下,若接收到当前独立信息,则将所述当前独立信息与所述历史独立信息进行合并;将所述历史独立信息以及所述当前独立信息分别对应的权重进行累加;以及所述按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息,包括:按照合并信息的权重大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,按照所述发送顺序向发布服务器发送所述合并信息。这样,可以将属于相同类型的多个独立信息进行合并,以减少需发送的事件信息个数,继而能够减轻事件上报设备以及发布服务器的处理压力,在一定程度上也缩短了同种类型的事件信息的发送时长。Optionally, for any type of event information, determining the event attribute information corresponding to the event information, and configuring the weight corresponding to the event information according to the event attribute information, further includes: In the case of , if current independent information is received, merge the current independent information with the historical independent information; accumulate the weights corresponding to the historical independent information and the current independent information; and The order of the weights determines the sending order of various event information, and when the sending period arrives, sends the various event information to the publishing server according to the sending order, including: determining the various event information according to the weight order of the merged information , and when the sending period arrives, send the combined information to the publishing server according to the sending order. In this way, multiple independent information belonging to the same type can be combined to reduce the number of event information to be sent, which in turn can reduce the processing pressure on the event reporting device and the publishing server, and shorten the same type of event to a certain extent. How long the message was sent.
可选地,所述事件属性信息包括新事件信息或者普通事件信息,以及所述针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重,包括:针对任一类型的事件信息,若该事件信息是首次检测到的该类型信息,则确定该事件属性信息包括新事件信息,并增加该事件信息对应的权重;若该事件信息不是首次检测到的该类型信息,则确定该事件属性信息包括普通事件信息,并保持该事件信息对应的权重不变。这样,将各个事件信息划分为新事件信息以及普通事件信息,可以通过增加检测到的新类型事件的权重,提高其发送优先级,继而可以将其尽快发送至发布服务器。Optionally, the event attribute information includes new event information or common event information, and for any type of event information, determine the event attribute information corresponding to the event information, and configure the event attribute information according to the event attribute information. The weight corresponding to the event information includes: for any type of event information, if the event information is the first detected information of this type, then determine that the event attribute information includes new event information, and increase the weight corresponding to the event information; if If the event information is not the type of information detected for the first time, it is determined that the event attribute information includes common event information, and the weight corresponding to the event information remains unchanged. In this way, by dividing each event information into new event information and common event information, the weight of the detected new type of event can be increased to increase its sending priority, and then it can be sent to the publishing server as soon as possible.
可选地,所述针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重,还包括:在保持事件信息对应的权重不变的情况下,若该事件信息满足紧急事件信息要求,则增加所述事件信息对应的权重。这样,可以根据普通事件信息的紧急程度,适应性为其配置对应的权重,继而得到了更加合理的发送顺序,使较为紧急的普通事件能够较快发送至发布服务器。Optionally, for any type of event information, determining the event attribute information corresponding to the event information, and configuring the weight corresponding to the event information according to the event attribute information, further includes: keeping the event information corresponding to Under the condition that the weight remains unchanged, if the event information meets the emergency event information requirement, the weight corresponding to the event information is increased. In this way, corresponding weights can be adaptively configured according to the urgency of common event information, and then a more reasonable sending order can be obtained, so that more urgent common events can be sent to the publishing server faster.
可选地,所述紧急事件信息要求包括:事件信息为发送失败的信息。这样,可以将发送失败的事件信息尽快发送至发布服务器。Optionally, the emergency event information requirement includes: the event information is information that fails to be sent. In this way, the failed event information can be sent to the publisher as soon as possible.
第二方面,本申请实施例提供了一种应用于网络视频录像机的事件信息发送方法,该方法包括:接收多个摄像设备发送的任一类型的事件信息;针对任一摄像设备发送的任一类型的事件信息,将该事件信息按照如第一方面所述的方法发送。这样,由于将该事件发送方法应用于网络视频录像机,可以统筹管理多个摄像设备发送的事件信息,继而可以在发布服务器的发布频率有限制的情况下,使各个摄像设备发送的事件信息的发送顺序更加合理,满足了实际需求。In the second aspect, the embodiment of the present application provides a method for sending event information applied to a network video recorder. The method includes: receiving any type of event information sent by multiple camera devices; type of event information, the event information is sent according to the method described in the first aspect. In this way, since the event sending method is applied to the network video recorder, the event information sent by multiple camera devices can be managed as a whole, and then the event information sent by each camera device can be sent under the condition that the publishing frequency of the publishing server is limited. The sequence is more reasonable and meets the actual needs.
第三方面,本申请实施例提供了一种事件信息发送装置,该装置包括:权重配置模块,用于针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重;信息发送模块,用于按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息;其中,所述发送周期基于所述发布服务器的发布频率设置。这样,可以根据权重更加灵活地确定出每种事件信息的发送顺序,继而可以在限制了发布服务器的发布频率的情况下,能够更加合理地发送事件信息,满足了实际需求。In the third aspect, the embodiment of the present application provides an event information sending device, which includes: a weight configuration module, configured to determine the event attribute information corresponding to the event information for any type of event information, and according to the The event attribute information configures the weight corresponding to the event information; the information sending module is used to determine the sending order of various event information according to the order of the weight, and when the sending cycle arrives, send the said sending order to the publishing server according to the sending order Various types of event information; wherein, the sending period is set based on the publishing frequency of the publishing server. In this way, the sending order of each type of event information can be determined more flexibly according to the weight, and then the event information can be sent more reasonably while limiting the publishing frequency of the publishing server, which meets the actual demand.
第四方面,本申请实施例提供了一种应用于网络视频录像机的事件信息发送装置,该装置包括:接收模块,用于接收任一摄像设备发送的任一类型的事件信息;发送模块,用于针对任一摄像设备发送的任一类型的事件信息,将该事件信息按照如第一方面所述的方法发送。这样,由于将该事件发送装置应用于网络视频录像机,可以统筹管理多个摄像设备发送的事件信息,继而可以在发布服务器的发布频率有限制的情况下,使各个摄像设备发送的事件信息的发送顺序更加合理,满足了实际需求。In a fourth aspect, the embodiment of the present application provides an event information sending device applied to a network video recorder, the device includes: a receiving module, configured to receive any type of event information sent by any camera device; For any type of event information sent by any imaging device, the event information is sent according to the method described in the first aspect. In this way, since the event sending device is applied to a network video recorder, the event information sent by multiple camera equipment can be managed in an overall manner, and then the event information sent by each camera equipment can be sent under the condition that the publishing frequency of the publishing server is limited. The sequence is more reasonable and meets the actual needs.
第五方面,本申请实施例提供了一种事件信息发送系统,该系统包括:事件上报设备,用于针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重;以及按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息;其中,所述发送周期基于所述发布服务器的发布频率设置;发布服务器,用于接收所述各类事件信息。这样,可以根据权重更加灵活地确定出每种事件信息的发送顺序,继而可以在限制了发布服务器的发布频率的情况下,能够更加合理地发送事件信息,满足了实际需求。In the fifth aspect, the embodiment of the present application provides an event information sending system, the system includes: an event reporting device, configured to determine the event attribute information corresponding to the event information for any type of event information, and according to the Event attribute information, configuring the weight corresponding to the event information; and determining the sending order of various event information according to the order of the weight, and sending the various event information to the publishing server according to the sending order when the sending cycle arrives; Wherein, the sending period is set based on the publishing frequency of the publishing server; the publishing server is used to receive the various event information. In this way, the sending order of each type of event information can be determined more flexibly according to the weight, and then the event information can be sent more reasonably while limiting the publishing frequency of the publishing server, which meets the actual demand.
第六方面,本申请实施例提供一种电子设备,包括处理器以及存储器,所述存储器存储有计算机可读取指令,当所述计算机可读取指令由所述处理器执行时,运行如上述第一方面或者第二方面提供的所述方法中的步骤。In the sixth aspect, the embodiment of the present application provides an electronic device, including a processor and a memory, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the operation is as described above The steps in the method provided by the first aspect or the second aspect.
第七方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时运行如上述第一方面或者第二方面提供的所述方法中的步骤。In the seventh aspect, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it runs as in the method provided in the first or second aspect above. step.
本申请的其他特征和优点将在随后的说明书阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请实施例了解。本申请的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present application will be set forth in the ensuing description and, in part, will be apparent from the description, or can be learned by practicing the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that need to be used in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, so It should not be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings according to these drawings without creative work.
图1为本申请实施例提供的事件处理方法的一种应用场景;FIG. 1 is an application scenario of the event processing method provided by the embodiment of the present application;
图2为本申请实施例提供的一种事件信息发送方法的流程图;FIG. 2 is a flow chart of a method for sending event information provided in an embodiment of the present application;
图3为本申请实施例提供的一种事件被触发之后进行标记的流程图;FIG. 3 is a flow chart of marking after an event is triggered according to an embodiment of the present application;
图4为本申请实施例提供的一种应用于网络视频录像机的事件信息发送方法的流程图;FIG. 4 is a flow chart of a method for sending event information applied to a network video recorder provided in an embodiment of the present application;
图5为本申请实施例提供的一种事件信息发送装置的结构框图;FIG. 5 is a structural block diagram of an event information sending device provided in an embodiment of the present application;
图6为本申请实施例提供的一种应用于网络视频录像机的事件信息装置的结构框图;FIG. 6 is a structural block diagram of an event information device applied to a network video recorder provided by an embodiment of the present application;
图7为本申请实施例提供的一种事件信息发送系统的结构框图;FIG. 7 is a structural block diagram of an event information sending system provided by an embodiment of the present application;
图8为本申请实施例提供的一种用于执行事件信息发送方法的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device for executing a method for sending event information provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
应当说明的是,在不冲突的情况下,本申请中的实施例或者实施例中的技术特征可以进行结合。It should be noted that, in the case of no conflict, the embodiments in the present application or the technical features in the embodiments may be combined.
相关技术中,存在根据事件触发时间的先后顺序进行事件发送的方式,不能满足实际需求的问题;为了解决该问题,本申请提供一种事件信息发送方法;进一步地,通过每种类型的事件信息对应的事件属性信息,设置事件信息对应的权重,继而可以根据权重确定出每种事件信息的发送顺序。基于上述权重确定的发送顺序更加灵活,继而更加满足实际需求。In related technologies, there is a problem that events are sent according to the sequence of event trigger time, which cannot meet the actual needs; in order to solve this problem, this application provides a method for sending event information; further, through each type of event information Corresponding to the event attribute information, the weight corresponding to the event information is set, and then the sending sequence of each type of event information can be determined according to the weight. The sending order determined based on the foregoing weights is more flexible, and thus more satisfying actual needs.
在一些应用场景中,上述事件信息发送方法可以应用于事件上报设备。上述事件上报设备可以包括摄像设备或者网络视频录像机。上述摄像设备例如可以包括摄像机、相机等实质上具有摄像功能的设备。上述网络视频录像机(Network Video Recorder,简称NVR)可以接收一个或多个摄像设备发送的事件信息。In some application scenarios, the above method for sending event information may be applied to an event reporting device. The above-mentioned event reporting device may include a camera device or a network video recorder. The aforementioned imaging device may include, for example, a video camera, a camera, and other devices that substantially have an imaging function. The aforementioned Network Video Recorder (NVR for short) may receive event information sent by one or more camera devices.
若上述事件信息发送方法应用于摄像设备,则该摄像设备可以根据事件属性信息设置其所采集的任一类型的事件信息对应的权重,继而可以根据权重确定出每种事件信息的发送顺序。If the above event information sending method is applied to the camera device, the camera device can set the weight corresponding to any type of event information it collects according to the event attribute information, and then determine the sending order of each event information according to the weight.
若上述事件信息发送方法应用于网络视频录像机,则该网络视频录像机可以接收一个或多个摄像设备发送的事件信息,并可以针对每个摄像设备发送的每种类型的事件信息,根据其事件属性信息设置每种事件信息对应的权重,继而可以根据权重确定出每种事件信息的发送顺序。If the above method for sending event information is applied to a network video recorder, then the network video recorder can receive event information sent by one or more camera devices, and can, for each type of event information sent by each camera device, according to its event attributes The information sets the weight corresponding to each type of event information, and then the sending order of each type of event information can be determined according to the weight.
应当说明的是,将上述事件信息发送方法应用于事件上报设备时,其可以作为一个独立的处理模块针对摄像机检测到的事件信息进行处理,或者针对网络视频录像机接收到的事件信息进行处理,以确定出各个事件信息分别对应的发送顺序。It should be noted that when the above event information sending method is applied to the event reporting device, it can be used as an independent processing module to process the event information detected by the camera, or process the event information received by the network video recorder to A sending sequence corresponding to each event information is determined.
以上相关技术中的方案所存在的缺陷,均是发明人在经过实践并仔细研究后得出的结果,因此,上述问题的发现过程以及下文中本发明实施例针对上述问题所提出的解决方案,都应该是发明人在本发明过程中对本发明做出的贡献。The defects in the solutions in the above related technologies are all the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions to the above problems proposed by the embodiments of the present invention below, All should be the inventor's contribution to the invention during the process of the invention.
请参考图1,其示出了本申请实施例提供的一种事件信息发送方法的流程图。如图1所示,该事件信息发送方法包括以下步骤201至步骤202。Please refer to FIG. 1 , which shows a flowchart of a method for sending event information provided by an embodiment of the present application. As shown in FIG. 1 , the method for sending event information includes the following steps 201 to 202 .
步骤201,针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重;Step 201, for any type of event information, determine the event attribute information corresponding to the event information, and configure the weight corresponding to the event information according to the event attribute information;
上述事件信息例如可以包括事件图像、事件描述文字、事件类型、事件触发时间、事件触发地点等与事件相关的信息。上述事件类型例如可以包括移动侦测类型、有毒气体检测类型、区域入侵检测类型、越界检测类型、客流统计类型等实质上能够应用摄像设备实现相应目的的类型。上述事件触发时间可以视为检测或者接收到事件信息的时间。The above event information may include, for example, event image, event description text, event type, event trigger time, event trigger location and other information related to the event. The above-mentioned event types may include, for example, motion detection types, toxic gas detection types, area intrusion detection types, boundary-crossing detection types, passenger flow counting types, and other types that can substantially use camera equipment to achieve corresponding purposes. The above event triggering time may be regarded as the time when event information is detected or received.
上述事件属性信息例如可以包括事件紧急程度、事件延时时长、事件是否为可丢弃事件等实质上可能影响发送顺序的属性信息。The above-mentioned event attribute information may include, for example, event urgency, event delay time, whether the event is a discardable event, and other attribute information that may substantially affect the sending sequence.
在一些应用场景中,事件上报设备可以针对任一类型的事件信息,确定其对应的事件属性信息。例如,事件上报设备可以针对有毒气体检测类型的事件信息A,确定该事件信息A对应的事件属性信息为不可延时事件;也可以针对在非客流高峰期获取的客流统计类型的事件信息B,确定该事件信息B对应的事件属性信息为可延时事件。In some application scenarios, the event reporting device may determine the corresponding event attribute information for any type of event information. For example, the event reporting device can determine that the event attribute information corresponding to the event information A is an event that cannot be delayed for the event information A of the toxic gas detection type; It is determined that the event attribute information corresponding to the event information B is a delayable event.
事件上报设备确定出各种类型的事件信息对应的事件属性信息之后,可以根据该事件属性信息,设置对应的权重。例如,针对上述事件信息A,事件上报设备可以为其配置较高的权重;针对上述事件信息B,事件上报设备可以为其配置较低的权重。After the event reporting device determines the event attribute information corresponding to various types of event information, it can set the corresponding weight according to the event attribute information. For example, for the above event information A, the event reporting device may configure a higher weight for it; for the above event information B, the event reporting device may configure a lower weight for it.
应当说明的是,上述权重可以通过诸如权重值8、权重值16或者权重值16等具体数值体现,也可以通过诸如权重1%、权重2%、权重3%等百分比数值体现,本申请不作限制。It should be noted that the above weights can be represented by specific numerical values such as weight value 8, weight value 16 or weight value 16, or by percentage values such as weight 1%, weight 2%, weight 3%, etc., which is not limited in this application .
在一些应用场景中,事件上报设备例如可以预先获知可能存在的各种事件属性信息,然后设置事件属性信息与权重之间的对应关系,以利用该对应关系快速地为各种类型的事件信息配置较为合理的权重。上述对应关系例如可以包括:可延时事件信息-增加权重值0、不可延时事件信息-增加权重值8、可丢弃事件信息-增加权重值0、不可丢弃事件信息-增加权重值2%等。In some application scenarios, the event reporting device can, for example, obtain various possible event attribute information in advance, and then set the corresponding relationship between event attribute information and weight, so as to use the corresponding relationship to quickly configure various types of event information. more reasonable weight. The above correspondence may include, for example: Delayable event information-increase weight value 0, non-delayable event information-increase weight value 8, discardable event information-increase weight value 0, non-discardable event information-increase weight value 2%, etc. .
步骤202,按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息;其中,所述发送周期基于所述发布服务器的发布频率设置。Step 202, determine the sending order of various event information according to the order of weight, and send the various event information to the publishing server according to the sending order when the sending cycle arrives; wherein, the sending cycle is based on the publishing The publishing frequency setting for the server.
在一些应用场景中,事件上报设备可以按照权重的大小顺序确定事件信息的发送顺序。例如,事件上报设备可以按照权重将各种事件信息进行降序排列,然后根据排列顺序确定出各种事件信息的发送优先级。在这些应用场景中,针对于同一类型的多个事件信息,例如可以通过各个事件对应的事件触发时间确定各自的发送优先级;也可以通过各个事件对应的事件触发地点确定各自的发送优先级,此处不作限制。In some application scenarios, the event reporting device may determine the order of sending event information according to the order of weight. For example, the event reporting device may arrange various event information in descending order according to weight, and then determine the sending priority of various event information according to the order of arrangement. In these application scenarios, for multiple event information of the same type, for example, the respective sending priorities can be determined by the event triggering time corresponding to each event; the respective sending priorities can also be determined by the event triggering location corresponding to each event, There is no limitation here.
事件上报设备确定出发送顺序之后,可以在发送周期到达时,根据发送顺序向发布服务器发送各类事件信息。上述发布服务器也即向用户发送事件信息的服务器。After the event reporting device determines the sending order, it can send various event information to the publishing server according to the sending order when the sending period arrives. The above publishing server is also a server that sends event information to users.
在一些应用场景中,事件上报设备获取到摄像设备采集的事件信息之后,可以将其发送至发布服务器,以使发布服务器能够发送给关注这些事件的用户。这些应用场景例如可以包括图1所示的场景。In some application scenarios, after the event reporting device obtains the event information collected by the camera device, it can send it to the publishing server, so that the publishing server can send it to users who are concerned about these events. These application scenarios may include, for example, the scenario shown in FIG. 1 .
如图1所示,该场景采用发布/订阅架构来实现事件上报设备将事件信息发送给用户的过程。其中,参与方可以包括手机101、服务器102以及摄像机103,其中,服务器102可以包括注册服务器和发布服务器,二者可以是两台服务器,也可以是同一台服务器中集成了注册和发布两项功能,而摄像机103可以有一台或多台。这些参与方的工作过程简述如下:As shown in Figure 1, this scenario uses a publish/subscribe architecture to implement the process of the event reporting device sending event information to the user. Wherein, the participants may include a mobile phone 101, a server 102, and a camera 103, wherein the server 102 may include a registration server and a publishing server, the two may be two servers, or the same server may integrate two functions of registration and publishing , and there may be one or more cameras 103 . The working process of these parties is briefly described as follows:
过程1~2:手机101上的APP作为订阅者,通过互联网向注册服务器进行注册,注册参数包括APP的身份标记(Token)、欲订阅的摄像机对应的身份标记(ID)、通讯相关信息等。其中,Token可以是APP的唯一标记,每次安装APP都产生一个不同的Token,而ID则是摄像机的唯一标记。Processes 1-2: The APP on the mobile phone 101, as a subscriber, registers with the registration server through the Internet. The registration parameters include the APP's identity token (Token), the identity token (ID) corresponding to the camera to be subscribed, and communication-related information. Among them, the Token can be the unique mark of the APP, and a different Token will be generated every time the APP is installed, and the ID is the unique mark of the camera.
摄像机103的内部处理过程可以为:摄像机103在工作过程中会根据其内置的逻辑触发事件(例如,检测到画面中有移动的物体,则触发移动侦测事件),摄像机103可以将触发的事件放入内存中的缓冲区内,摄像机103中的发送线程根据和发布服务器的交互逻辑对缓冲区中的事件进行发送。The internal processing process of the camera 103 can be: the camera 103 will trigger an event according to its built-in logic during work (for example, if a moving object is detected in the picture, then trigger a motion detection event), the camera 103 can trigger the event Put them into the buffer in the memory, and the sending thread in the camera 103 sends the events in the buffer according to the interaction logic with the publishing server.
过程3~4:摄像机103作为发布者,向发布服务器发布通知消息,该通知消息中携带摄像机ID、事件信息等。Processes 3-4: The camera 103, as the publisher, publishes a notification message to the publishing server, and the notification message carries the camera ID, event information, and the like.
服务器102内部处理过程可以为:发布服务器根据消息中携带摄像机ID,从注册服务器处获取订阅了此ID的所有订阅者的Token以及通讯信息。The internal processing process of the server 102 may be as follows: the publishing server obtains the Token and communication information of all subscribers who have subscribed to this ID from the registration server according to the camera ID carried in the message.
过程5~6:发布服务器根据通讯信息向订阅了此ID的所有订阅者发布通知消息,消息中携带事件信息等。Process 5-6: The publishing server publishes a notification message to all subscribers who have subscribed to the ID according to the communication information, and the message carries event information, etc.
上述发送周期可以视为事件上报设备发送事件信息的时机。其可以根据发布服务器的发布频率设置。上述发布频率可以视为发布服务器向用户发送事件信息的频率。例如,发布服务器可以每秒发送2个、3个、5个等频率向用户事件信息。The above-mentioned sending period may be regarded as an opportunity for the event reporting device to send event information. It can be set according to the publishing frequency of the publishing server. The above publishing frequency can be regarded as the frequency at which the publishing server sends event information to the user. For example, the publishing server can send 2, 3, 5, etc. event information to the user per second.
在一些应用场景中,发布服务器可以预先将自身向用户发送事件信息的频率(也即发布频率)告知事件上报设备,事件上报设备即可以根据发布频率设置发送周期。例如,发送周期可以与发布频率相同。例如,若发布服务器每秒向用户发送1个或者2个事件信息,则发送周期可以为1秒,事件上报设备可以每秒向发布服务器发送1个或者2个事件信息。另外,发送周期也可以与发布频率不相同,但发送周期内发送的事件信息数量应当不超过发布服务器的发布频率。例如,若发布服务器每秒向用户发送1个或者2个事件信息,则发送周期可以为2秒,事件上报设备可以每2秒向发布服务器发送1个或者2个事件信息。In some application scenarios, the publishing server may inform the event reporting device of the frequency (that is, the publishing frequency) of sending event information to the user in advance, and the event reporting device may set the sending period according to the publishing frequency. For example, the sending period can be the same as the publishing frequency. For example, if the publishing server sends 1 or 2 event information to the user per second, the sending period may be 1 second, and the event reporting device may send 1 or 2 event information to the publishing server per second. In addition, the sending cycle may also be different from the publishing frequency, but the amount of event information sent within the sending cycle should not exceed the publishing frequency of the publishing server. For example, if the publishing server sends 1 or 2 event information to the user every second, the sending period may be 2 seconds, and the event reporting device may send 1 or 2 event information to the publishing server every 2 seconds.
相关技术中,在限制了发布服务器的发布频率的情况下,如果待发送给用户的事件信息过多,则会导致发布这些事件信息的频率超过发布服务器的发布频率。若较为死板地以事件触发时间的先后顺序顺次发送事件信息,则待发送的事件信息可能需要花费较长的时间才能发送出去,或者直接被丢弃,则用户需要等待较长的时间才能获知事件信息,或者就不能获知这些事件信息。因而,不能满足实际需求。In the related art, when the publishing frequency of the publishing server is limited, if there is too much event information to be sent to the user, the frequency of publishing these event information will exceed the publishing frequency of the publishing server. If the event information is sent sequentially in the order of the event trigger time, it may take a long time for the event information to be sent, or it may be discarded directly, and the user needs to wait for a long time to learn about the event. information, or cannot obtain these event information. Therefore, the actual demand cannot be met.
在本实施例中,针对任一类型的事件信息,可以根据其事件属性信息合理地设置该事件信息对应的权重,然后可以根据权重更加灵活地确定出每种事件信息的发送顺序,继而可以在限制了发布服务器的发布频率的情况下,按照发送顺序依次向发布服务器发送事件信息,这样能够更加合理地发送事件信息,满足了实际需求。在一定程度上,也改善了需要等待较长时间或者丢弃事件信息的情况。In this embodiment, for any type of event information, the weight corresponding to the event information can be reasonably set according to its event attribute information, and then the sending order of each type of event information can be determined more flexibly according to the weight, and then the When the publishing frequency of the publishing server is limited, the event information is sent to the publishing server sequentially according to the sending order, so that the event information can be sent more reasonably, which meets the actual demand. To a certain extent, the situation of waiting for a long time or discarding event information is also improved.
另外,本实施例通过基于事件属性信息确定的从事件上报设备发送至发布服务器的发送顺序,使得在发布服务器向用户发送事件信息的发送频率有限的情况下,能够满足实际需求。这样,针对于不同的发布服务器,事件上报设备可以根据其发布频率适应性设置发送周期,继而该事件上报设备可以与不同的发布服务器协作,扩大了事件上报设备的使用范围。In addition, this embodiment determines the sending order from the event reporting device to the publishing server based on the event attribute information, so that when the sending frequency of the publishing server sending event information to the user is limited, the actual demand can be met. In this way, for different publishing servers, the event reporting device can adaptively set the sending period according to its publishing frequency, and then the event reporting device can cooperate with different publishing servers, expanding the use range of the event reporting device.
在一些可选的实现方式中,所述任一类型的事件信息包括一个独立事件的独立信息,所述独立信息包括事件触发时间,以及所述事件属性信息包括事件状态。In some optional implementation manners, the event information of any type includes independent information of an independent event, the independent information includes event trigger time, and the event attribute information includes event status.
在一些应用场景中,每种类型的事件信息可以仅包括一个事件,该事件也即上述独立事件,该事件对应的信息也即上述独立信息。上述独立信息也即可以包括诸如事件类型、事件触发时间、事件触发地点等信息。In some application scenarios, each type of event information may only include one event, which is the above-mentioned independent event, and information corresponding to the event is also the above-mentioned independent information. The above independent information may also include information such as event type, event trigger time, event trigger location and the like.
上述事件状态可以包括开始状态以及结束状态。在一些应用场景中,事件被触发之后,可以视为其处于开始状态。事件信息从开始状态起,到结束状态止,可以视为该事件信息持续等待被发送,与之对应的等待时长到达之后,可以视为其处于结束状态。上述等待时长例如可以视为预先设置的用于发送的时长。若事件信息在该等待时长内没有被发送,可以将事件信息确定为处于结束状态。The above event states may include a start state and an end state. In some application scenarios, after an event is triggered, it can be considered as being in the start state. From the start state to the end state of the event information, it can be considered that the event information is continuously waiting to be sent, and after the corresponding waiting time is reached, it can be regarded as in the end state. The above waiting time can be regarded as a preset sending time, for example. If the event information is not sent within the waiting period, the event information may be determined to be in an end state.
这样,上述步骤201所述的针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重,可以包括以下子步骤:In this way, for any type of event information described in the above step 201, determining the event attribute information corresponding to the event information, and configuring the weight corresponding to the event information according to the event attribute information may include the following substeps:
子步骤2011A,利用同一时间计数规则,统计当前时间以及所述事件触发时间;Sub-step 2011A, using the same time counting rule to count the current time and the trigger time of the event;
上述同一时间计数规则,可以视为相同的时间计算规则。例如,事件上报设备可以利用同一个计数器计时,或者利用多个时间起点相同、计时频率相同的计数器计时。The above-mentioned same time counting rule can be regarded as the same time calculation rule. For example, the event reporting device may use the same counter for timing, or use multiple counters with the same time starting point and the same timing frequency for timing.
在一些应用场景中,事件上报设备可以利用同一时间计数规则,统计当前时间以及事件触发时间。例如,其可以利用一个计数器记录时间,然后在事件被触发之后,在事件触发时记录当前计数器所呈现的时间。例如,该计数器可以每秒加1,若事件a在计数器呈现“5”时被触发,则可以将该事件a的触发时间记录为第5秒。经过3秒之后,当前时间为第8秒,当前该事件a的事件触发时间为第5秒。In some application scenarios, the event reporting device can use the same time counting rule to count the current time and the event trigger time. For example, it can use a counter to record the time, and then after the event is triggered, record the current time displayed by the counter when the event is triggered. For example, the counter can be incremented by 1 every second, and if event a is triggered when the counter shows "5", the trigger time of event a can be recorded as the 5th second. After 3 seconds, the current time is the 8th second, and the current event trigger time of the event a is the 5th second.
子步骤2012A,针对所述独立信息,在当前时间以及所述事件触发时间的间隔时长大于时长阈值时,确定所述独立事件处于结束状态;Sub-step 2012A, for the independent information, when the interval between the current time and the event trigger time is greater than the duration threshold, determine that the independent event is in the end state;
在一些应用场景中,事件上报设备可以确定该独立信息当前时间与事件触发时间之间的间隔时长。例如,针对于上述事件a,事件上报设备可以确定当前时间第8秒与其事件触发时间第5秒之间的间隔时长为3秒。In some application scenarios, the event reporting device may determine the interval between the current time of the independent information and the event trigger time. For example, for the above event a, the event reporting device may determine that the interval between the 8th second of the current time and the 5th second of the event trigger time is 3 seconds.
然后,事件上报设备可以判断该间隔时长是否大于时长阈值。上述时长阈值例如可以包括30秒、35秒等实质上可能将事件信息发送至发布服务器的时长。在这些应用场景中,该时长阈值例如可以基于经验设置,也可以通过相同类型已经发送成功的历史事件信息的发送时长确定,此处不作限制。Then, the event reporting device may determine whether the interval duration is greater than a duration threshold. The aforementioned duration threshold may include, for example, 30 seconds, 35 seconds, etc., during which the event information may be sent to the publishing server substantially. In these application scenarios, the duration threshold can be set based on experience, for example, or can be determined by the sending duration of historical event information of the same type that has been successfully sent, which is not limited here.
事件上报设备若确定了上述间隔时长大于时长阈值,可以确定该独立事件当前处于结束状态。If the event reporting device determines that the interval time is greater than the time threshold, it may determine that the independent event is currently in an end state.
子步骤2013A,在所述独立事件处于结束状态的情况下,增加该独立信息对应的权重。Sub-step 2013A, if the independent event is in the end state, increase the weight corresponding to the independent information.
事件上报设备确定该独立事件处于结束状态时,可以增加其对应的权重。也即,由于该独立事件没有在预设的发送时长内被发送出去,继而需要尽快将其发送,所以通过增加其对应的权重增大其被发送的概率。When the event reporting device determines that the independent event is in an end state, it may increase its corresponding weight. That is, since the independent event is not sent within the preset sending duration, it needs to be sent as soon as possible, so the probability of its being sent is increased by increasing its corresponding weight.
相关技术中,在记录事件触发时间时,通常是由摄像机来记录。这样,由于摄像机所处的地理位置或者所安装的计时硬件不同,导致所记录的事件触发时间没有处于同一计时标准。例如,摄像机甲在美国,摄像机乙在中国,则两者分别记录的事件触发时间存在时差。或者,摄像机甲没有晶振,而摄像机乙用晶振计时,则两者分别记录的事件触发时间也存在偏差。因此,摄像机基于自身所记录的事件触发时间发送事件信息时,会导致发布服务器中积累较多的事件信息,甚至超出其所限制的发布频率。In related technologies, when recording the event trigger time, it is usually recorded by a camera. In this way, the recorded event triggering times are not in the same timing standard due to different geographical locations of the cameras or different timing hardware installed. For example, if camera A is in the United States and camera B is in China, there is a time difference between the event triggering times recorded by the two cameras. Or, if camera A does not have a crystal oscillator, and camera B uses a crystal oscillator for timing, there is also a deviation in the event trigger time recorded by the two respectively. Therefore, when the camera sends event information based on the event triggering time recorded by itself, more event information will be accumulated in the publishing server, even exceeding its limited publishing frequency.
在本实现方式中,事件上报设备通过同一时间计数规则可以使各个事件触发时间之间不存在偏差,便于基于相同的时间标准为每个独立事件配置相适应的权重,继而能够更加合理地确定发送顺序。In this implementation, the event reporting device can use the same time counting rule so that there is no deviation between the triggering times of each event, so that it is convenient to configure an appropriate weight for each independent event based on the same time standard, and then more reasonably determine the sending time. order.
在一些可选的实现方式中,所述任一类型的事件信息包括多个独立事件的独立信息,所述独立信息包括事件触发时间,以及所述事件属性信息包括事件状态。In some optional implementation manners, the event information of any type includes independent information of multiple independent events, the independent information includes event trigger time, and the event attribute information includes event status.
在一些应用场景中,每种类型的事件信息可以包括多个事件,这些事件也即上述多个独立事件。每个独立事件可以均包括对应的诸如事件类型、事件触发时间、事件触发地点等信息。In some application scenarios, each type of event information may include multiple events, which are the aforementioned multiple independent events. Each independent event may include corresponding information such as event type, event trigger time, event trigger location and the like.
这样,上述步骤201中所述的针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重,可以包括以下子步骤:In this way, for any type of event information described in the above step 201, determining the event attribute information corresponding to the event information, and configuring the weight corresponding to the event information according to the event attribute information may include the following substeps:
子步骤2011B,利用同一时间计数规则,统计当前时间以及所述事件触发时间;Sub-step 2011B, using the same time counting rule to count the current time and the trigger time of the event;
子步骤2012B,针对于任一独立信息,在当前时间以及所述事件触发时间的间隔时长大于时长阈值时,确定该独立事件处于结束状态;Sub-step 2012B, for any independent information, when the interval between the current time and the event trigger time is greater than the duration threshold, determine that the independent event is in the end state;
子步骤2013B,在该独立事件处于结束状态的情况下,增加该独立信息对应的权重。Sub-step 2013B, when the independent event is in the end state, increase the weight corresponding to the independent information.
上述子步骤2011B至子步骤2013B的实现过程以及取得的技术效果可以与上述子步骤2011A至子步骤2013A相同或相似,此处不赘述。The implementation process of the above sub-step 2011B to sub-step 2013B and the technical effect obtained may be the same as or similar to the above-mentioned sub-step 2011A to sub-step 2013A, and will not be repeated here.
在一些可选的实现方式中,上述步骤201中所述的针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重,还可以包括以下子步骤:In some optional implementation manners, for any type of event information described in step 201 above, the event attribute information corresponding to the event information is determined, and the weight corresponding to the event information is configured according to the event attribute information , which can also include the following substeps:
子步骤2014B,在未发送历史独立信息的情况下,若接收到当前独立信息,则将所述当前独立信息与所述历史独立信息进行合并;Sub-step 2014B, if the historical independent information is not sent, if the current independent information is received, merge the current independent information with the historical independent information;
在一些应用场景中,可以触发多个同一类型的事件信息,这多个同一类型的事件信息也即上述多个独立信息。例如,若检测到有人进入预设区域,则可以触发区域入侵类型事件,则在不同时间或者相同时间可能检测到一个或者多个人进入预设区域,继而可能触发多个同属于区域入侵类型事件的事件。例如,可以根据1:01检测到的有人进入预设区域的事件生成事件信息C,根据1:02检测到的有人进入预设区域的事件生成事件信息D。上述预设区域例如可以包括施工区域、保密办公区域等。In some application scenarios, multiple event information of the same type may be triggered, and the multiple event information of the same type are also the above-mentioned multiple independent information. For example, if it is detected that someone enters the preset area, an area intrusion type event can be triggered, and one or more people may be detected entering the preset area at different times or at the same time, and then multiple events belonging to the area intrusion type event may be triggered. event. For example, event information C may be generated according to the detected event of someone entering the preset area at 1:01, and event information D may be generated based on the event detected at 1:02 of someone entering the preset area. The aforementioned preset area may include, for example, a construction area, a confidential office area, and the like.
在这些应用场景中,可以将处于开始状态的独立信息视为历史独立信息,在其未被发送的情况下,若又接收到新的独立信息,可以将该新的独立信息视为当前独立信息。例如,若上述事件信息C在1:02未被发送,其可以视为历史独立信息,上述事件信息D可以视为当前独立信息。In these application scenarios, the independent information in the starting state can be regarded as historical independent information. If it has not been sent, if new independent information is received, the new independent information can be regarded as current independent information . For example, if the above event information C is not sent at 1:02, it may be regarded as historical independent information, and the above event information D may be regarded as current independent information.
然后,事件上报设备可以将当前独立信息与历史独立信息进行合并。例如,可以将上述事件信息C和上述事件信息D合并为一个事件信息。Then, the event reporting device can combine the current independent information with the historical independent information. For example, the above-mentioned event information C and the above-mentioned event information D may be combined into one event information.
应当说明的是,在合并时,可以根据实际需求进行合并。也即,可以将多个独立信息合并为1个事件信息,也可以将多个独立信息合并为2个事件信息,此处不作限制。It should be noted that when merging, the merging may be performed according to actual needs. That is, multiple independent information may be combined into one event information, or multiple independent information may be combined into two event information, which is not limited here.
在一些应用场景中,可以通过累加器记录独立信息的合并次数。例如,上述事件信息C与事件信息D合并之后,累加器可以增加1,若又接收到新的当前独立信息E,累加器可以再增加1,以此类推,通过累加器记录独立信息的合并次数。在这些应用场景中,累加器所记录的合并次数也即可以视为当前检测到的该类型事件的发生次数。In some application scenarios, an accumulator may be used to record the times of merging independent information. For example, after the above-mentioned event information C and event information D are merged, the accumulator can be increased by 1, and if new current independent information E is received, the accumulator can be increased by 1, and so on, and the times of merging independent information are recorded by the accumulator . In these application scenarios, the number of mergers recorded by the accumulator can also be regarded as the number of occurrences of this type of event currently detected.
子步骤2015B,将所述历史独立信息以及所述当前独立信息分别对应的权重进行累加。Sub-step 2015B, accumulating weights corresponding to the historical independent information and the current independent information respectively.
在一些应用场景中,事件上报设备将历史独立信息与当前独立信息合并之后,可以将两者分别对应的权重进行累加。也即,历史独立信息、当前独立信息均可能由于存在的其他事件属性信息(例如是否可以延时、是否已经处于结束状态)已经增加了权重,继而可以将两者分别对应的权重累加,以得到合并信息的权重。In some application scenarios, after the event reporting device combines the historical independent information with the current independent information, it may accumulate weights corresponding to the two. That is to say, both historical independent information and current independent information may have increased weight due to the existence of other event attribute information (such as whether it can be delayed, whether it is already in the end state), and then the corresponding weights of the two can be accumulated to obtain The weight of the combined information.
在一些应用场景中,若相同类型针对于相同的事件属性信息所配置的权重是相同的,则可以基于合并次数确定权重的累加和。例如,针对于上述事件信息C以及事件信息D,若两者处于结束状态时所配置的权重值均为8,则可以将该权重值与合并次数相乘,继而可以得到合并信息的权重累加和。In some application scenarios, if the weights configured for the same event attribute information of the same type are the same, the cumulative sum of the weights may be determined based on the number of merging times. For example, for the above-mentioned event information C and event information D, if the configured weight value is 8 when both are in the end state, the weight value can be multiplied by the number of times of merging, and then the weight accumulation sum of the merging information can be obtained .
在另一些应用场景中,若相同类型针对于相同的事件属性信息所配置的权重是不同的,也可以基于合并次数校验权重的累加次数是否正确,继而检验权重的累加和是否正确。例如,针对于上述事件信息C以及事件信息D,若两者由于事件触发地点不同,导致所配置的权重不同,则可以确定出与合并次数相同的累加次数,继而可以得到合并信息的权重累加和。In other application scenarios, if the weights configured for the same event attribute information of the same type are different, it is also possible to check whether the weight accumulation times are correct based on the number of merging times, and then check whether the weight accumulation sum is correct. For example, for the above-mentioned event information C and event information D, if the configured weights of the two are different due to the different event trigger locations, the accumulation times that are the same as the number of times of merging can be determined, and then the weight accumulation sum of the merging information can be obtained .
这样,上述步骤202中所述的按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息,可以包括:按照合并信息的权重大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,按照所述发送顺序向发布服务器发送所述合并信息。In this way, determining the sending order of various types of event information according to the order of the weights described in step 202 above, and sending the various types of event information to the publishing server according to the sending order when the sending cycle arrives may include: The order of the weights of the merged information determines the sending order of various event information, and when the sending period arrives, the merged information is sent to the publishing server according to the sending order.
事件上报设备得到合并信息之后,可以按照权重累加和的大小顺序确定各类事件信息的发送顺序,继而可以在发送周期到达时,按照所确定的发送顺序发送每个合并信息。After the event reporting device obtains the merged information, it can determine the sending order of various event information according to the order of the cumulative sum of weights, and then can send each merged information according to the determined sending order when the sending period arrives.
在本实现方式中,可以将属于相同类型的多个独立信息进行合并,以减少需发送的事件信息个数,继而能够减轻事件上报设备以及发布服务器的处理压力,在一定程度上也缩短了同种类型的事件信息的发送时长。In this implementation, a plurality of independent information belonging to the same type can be combined to reduce the number of event information to be sent, thereby reducing the processing pressure of the event reporting device and the publishing server, and shortening the same time to a certain extent. The sending duration of each type of event information.
另外,由于可以将多个独立信息进行合并,因此可以不丢弃事件信息,在一定程度上保持了事件信息的完整性。In addition, since a plurality of independent information can be combined, the event information may not be discarded, and the integrity of the event information is maintained to a certain extent.
在一些可选的实现方式中,所述事件属性信息包括新事件信息或者普通事件信息。In some optional implementation manners, the event attribute information includes new event information or common event information.
上述新事件信息可以视为属于新的事件类型的事件信息。The above-mentioned new event information can be regarded as event information belonging to a new event type.
上述普通事件可以视为不属于新的事件类型的事件信息。The above common events can be regarded as event information that does not belong to the new event type.
例如,事件上报设备在首次检测到属于移动侦测类型的事件信息M时,可以将该事件信息M视为新事件信息。若在该事件信息M未被发送的情况下,又检测到了属于移动侦测类型的事件信息N,由于该事件信息N不是首次检测到的属于移动侦测类型的事件信息,因此可以将其归属于普通事件。For example, when the event reporting device detects the event information M belonging to the motion detection type for the first time, the event information M may be regarded as new event information. If the event information N belonging to the motion detection type is detected when the event information M is not sent, since the event information N is not the first detected event information belonging to the motion detection type, it can be attributed to in ordinary events.
这样,上述步骤201中所述的针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重,包括:In this way, for any type of event information described in step 201 above, determine the event attribute information corresponding to the event information, and configure the weight corresponding to the event information according to the event attribute information, including:
首先,针对任一类型的事件信息,若该事件信息是首次检测到的该类型信息,则确定该事件属性信息包括新事件信息,并增加该事件信息对应的权重;First, for any type of event information, if the event information is the type of information detected for the first time, then determine that the event attribute information includes new event information, and increase the weight corresponding to the event information;
在一些应用场景中,针对于任一类型的任意一个事件信息,如果该事件信息是首次检测到的属于该类型的事件信息,可以确定其为新事件信息,继而可以增加其对应的权重。例如,若检测到上述事件信息M为新事件信息,则可以增加其对应的权重值。In some application scenarios, for any event information of any type, if the event information is the first detected event information of this type, it can be determined as new event information, and then its corresponding weight can be increased. For example, if it is detected that the above event information M is new event information, its corresponding weight value may be increased.
应当说明的是,针对于相同类型的新事件信息,其增加的权重可以是相同的,以便于事件上报设备统筹管理事件信息。It should be noted that, for new event information of the same type, the added weights may be the same, so as to facilitate the overall management of event information by the event reporting device.
然后,若该事件信息不是首次检测到的该类型信息,则确定该事件属性信息包括普通事件信息,并保持该事件信息对应的权重不变。Then, if the event information is not the type of information detected for the first time, it is determined that the event attribute information includes common event information, and the weight corresponding to the event information remains unchanged.
针对于任一类型的任意一个事件信息,如果该事件信息不是首次检测到的属于该类型的事件信息,可以确定其为普通事件信息,继而不增加其对应的权重,以保持其对应的权重不变。例如,若检测到上述事件信息N为普通事件信息,则可以不增加其对应的权重值。For any event information of any type, if the event information is not the first detected event information of this type, it can be determined as ordinary event information, and then its corresponding weight will not be increased to keep its corresponding weight. Change. For example, if it is detected that the above event information N is common event information, its corresponding weight value may not be increased.
在本实现方式中,将各个事件信息划分为新事件信息以及普通事件信息,可以通过增加检测到的新类型事件的权重,提高其发送优先级,继而可以将其尽快发送至发布服务器。In this implementation, each event information is divided into new event information and common event information, and the weight of the detected new type of event can be increased to increase its sending priority, and then it can be sent to the publishing server as soon as possible.
在一些可选的实现方式中,上述步骤201中所述的针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重,还包括:在保持事件信息对应的权重不变的情况下,若该事件信息满足紧急事件信息要求,则增加所述事件信息对应的权重。In some optional implementation manners, for any type of event information described in step 201 above, the event attribute information corresponding to the event information is determined, and the weight corresponding to the event information is configured according to the event attribute information , further comprising: in the case of keeping the weight corresponding to the event information unchanged, if the event information meets the requirements of emergency event information, increasing the weight corresponding to the event information.
在一些应用场景中,若事件信息的权重不变,可以视为其属于普通事件信息,继而可以进一步判断该事件信息是否为紧急事件,以通过其紧急程度适应性增加对应的权重。In some application scenarios, if the weight of the event information remains unchanged, it can be regarded as belonging to ordinary event information, and then it can be further judged whether the event information is an emergency event, so as to increase the corresponding weight through its urgency adaptability.
在这些应用场景中,事件上报设备可以判断该事件信息是否满足紧急事件信息要求。该紧急事件信息要求例如可以基于以下情况设置:(1)该事件信息所属的类型是否为有毒气体检测类型、区域入侵检测类型等实质上可能导致较大损失的类型。继而,紧急事件信息要求可以通过事件类型进行设定。(2)该事件信息所属的类型是否为需要在较短时间内发送的类型,这些类型例如可以包括报警类型、故障类型等。继而,该紧急事件信息要求可以通过等待时长进行设定。In these application scenarios, the event reporting device can determine whether the event information meets the emergency event information requirements. The emergency event information requirement can be set based on, for example, the following conditions: (1) Whether the type of the event information belongs to the type of toxic gas detection, area intrusion detection, etc. that may substantially cause large losses. In turn, emergency event information requirements can be set by event type. (2) Whether the type of the event information belongs to the type that needs to be sent within a relatively short period of time, and these types may include, for example, alarm types, fault types, and the like. Then, the emergency information request can be set through the waiting time.
在一些可选的实现方式中,所述紧急事件信息要求包括:事件信息为发送失败的信息。In some optional implementation manners, the emergency event information requirement includes: the event information is information that fails to be sent.
在一些应用场景中,事件上报设备可以将发送失败的事件信息确定为紧急事件信息。也即,若某个事件信息发送失败,可以视为其满足紧急事件信息要求。在这些应用场景中,若某个事件信息发送成功,可以将其从所存储的缓冲区中删除,以节约存储空间。In some application scenarios, the event reporting device may determine the event information that fails to be sent as emergency event information. That is, if a certain event information fails to be sent, it can be considered that it meets the emergency event information requirements. In these application scenarios, if a certain event information is sent successfully, it can be deleted from the stored buffer to save storage space.
事件上报设备确定某个事件信息满足紧急事件信息要求之后,可以增加其对应的权重,以提高该事件信息的发送优先级,将其能够尽快发送至发布服务器。After the event reporting device determines that certain event information meets the requirements of emergency event information, it can increase its corresponding weight, so as to increase the sending priority of the event information, and send it to the publishing server as soon as possible.
在本实现方式中,可以根据普通事件信息的紧急程度,适应性为其配置对应的权重,继而得到了更加合理的发送顺序,使较为紧急的普通事件能够较快发送至发布服务器。In this implementation, according to the urgency of common event information, corresponding weights can be adaptively configured for it, and then a more reasonable sending sequence is obtained, so that more urgent common events can be sent to the publishing server faster.
本领域技术人员可以理解,在具体实施例的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above-mentioned method of the specific embodiment, the writing order of each step does not imply a strict execution order and constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible The inner logic is OK.
继而,事件上报设备在执行包含上述步骤或者子步骤的事件信息发送方法时,可以在事件触发时就逐一标记相应的信息。在一些应用场景中,例如可以通过图3所示的流程图进行标记。Then, when the event reporting device executes the method for sending event information including the above steps or sub-steps, it can mark corresponding information one by one when an event is triggered. In some application scenarios, for example, marking may be performed through the flow chart shown in FIG. 3 .
如图3所示,事件被触发之后,可以判断其是否为新事件,以判断与之对应的事件信息是否为新事件信息;若其为新事件信息,可以创建用于存储新事件类型的缓冲区,以用于存储该新事件信息。然后可以进一步判断其是否为紧急事件(例如,判断其事件信息是否满足紧急事件信息要求),若为紧急事件,则可以标记诸如“紧急发送标记置1”、“新事件标记置1”、“累加器置0”、“事件状态置开始状态”、“标记计数器值为事件触发时间”等信息;若不是紧急事件,则可以标记诸如“紧急发送标记置0”、“新事件标记置1”、“累加器置0”、“事件状态置开始状态”、“标记计数器值为事件触发时间”等;As shown in Figure 3, after an event is triggered, it can be judged whether it is a new event to judge whether the corresponding event information is new event information; if it is new event information, a buffer for storing the new event type can be created area for storing the new event information. Then it can be further judged whether it is an emergency event (for example, judging whether its event information meets the emergency event information requirements), if it is an emergency event, it can be marked such as "emergency send flag set", "new event flag set", " Accumulator is set to 0", "event status is set to start state", "mark counter value is event trigger time" and other information; if it is not an emergency event, it can be marked such as "emergency send flag set to 0", "new event flag set to 1" , "Set the accumulator to 0", "Set the event state to the start state", "The flag counter value is the event trigger time", etc.;
若该事件不是新事件(也即普通事件),也可以进一步判断其是否为紧急事件(也即,其事件信息是否满足紧急事件信息要求),若是紧急事件,可以标记诸如“紧急发送标记置1”、“新事件标记置0”、“累加器置0”、“事件状态置开始状态”、“标记计数器值为事件触发时间”等。若其不是紧急事件,则可以标记诸如“紧急发送标记置0”、“新事件标记置0”、“累加器置0”、“事件状态置开始状态”、“标记计数器值为事件触发时间”等。If the event is not a new event (that is, a common event), it can be further judged whether it is an emergency event (that is, whether its event information meets the emergency event information requirements). ", "Set the new event mark to 0", "Set the accumulator to 0", "Set the event state to the start state", "The value of the mark counter is the event trigger time", etc. If it is not an emergency event, you can mark things such as "set the emergency send flag to 0", "set the new event flag to 0", "set the accumulator to 0", "set the event state to the start state", "the value of the flag counter is the event trigger time" wait.
事件上报设备标记了上述信息之后,可以将其丢入缓冲池中进行管理。这样,由于在事件触发之后,就标记了对应的事件信息,继而可以更加便捷地确定对应的事件属性信息。After the event reporting device marks the above information, it can be dropped into the buffer pool for management. In this way, since the corresponding event information is marked after the event is triggered, the corresponding event attribute information can be determined more conveniently.
请参阅图4,其示出了本申请实施例提供的一种应用于网络视频录像机中的事件信息发送方法的流程图。如图4所示,该事件信息发送方法可以包括步骤401至步骤403。Please refer to FIG. 4 , which shows a flowchart of a method for sending event information applied to a network video recorder provided by an embodiment of the present application. As shown in FIG. 4 , the event information sending method may include step 401 to step 403 .
步骤401,接收多个摄像设备发送的任一类型的事件信息。Step 401, receiving any type of event information sent by multiple camera devices.
步骤402,针对任一摄像设备发送的任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重;Step 402, for any type of event information sent by any camera device, determine the event attribute information corresponding to the event information, and configure the weight corresponding to the event information according to the event attribute information;
步骤403,按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息;其中,所述发送周期基于所述发布服务器的发布频率设置。Step 403: Determine the sending order of various types of event information according to the order of weight, and send the various types of event information to the publishing server according to the sending order when the sending cycle arrives; wherein, the sending cycle is based on the publishing The publishing frequency setting for the server.
也就是说,网络视频录像机在接收到多个摄像设备发送的任一类型的事件信息之后,针对于每种事件信息,可以将该种事件信息按照如图1所示实施例的方法发送至发布服务器。That is to say, after the network video recorder receives any type of event information sent by a plurality of camera devices, for each type of event information, the event information can be sent to the publisher according to the method of the embodiment shown in Figure 1 server.
上述步骤402至子步骤403的实现过程以及取得的技术效果可以与上述子步骤201至子步骤202相同或相似,此处不赘述。The implementation process of the above-mentioned step 402 to sub-step 403 and the technical effect obtained may be the same as or similar to the above-mentioned sub-step 201 to sub-step 202, and will not be repeated here.
在本实施例中,由于将该事件发送方法应用于网络视频录像机,可以统筹管理多个摄像设备发送的事件信息,继而可以在发布服务器的发布频率有限制的情况下,使各个摄像设备发送的事件信息的发送顺序更加合理,继而可以更加合理地发送事件信息,满足了实际需求。在一定程度上,也改善了需要等待较长时间或者丢弃事件信息的情况。In this embodiment, since the event sending method is applied to the network video recorder, the event information sent by multiple camera devices can be managed in an overall manner, and then the event information sent by each camera device can be made under the condition that the publishing frequency of the publishing server is limited. The sending sequence of the event information is more reasonable, and then the event information can be sent more reasonably, which meets the actual demand. To a certain extent, the situation of waiting for a long time or discarding event information is also improved.
请参考图5,其示出了本申请实施例提供的一种事件信息发送装置的结构框图,该事件信息发送装置可以是电子设备上的模块、程序段或代码。应理解,该装置与上述图2方法实施例对应,能够执行图2方法实施例涉及的各个步骤,该装置具体的功能可以参见上文中的描述,为避免重复,此处适当省略详细描述。Please refer to FIG. 5 , which shows a structural block diagram of a device for sending event information provided by an embodiment of the present application. The device for sending event information may be a module, program segment or code on an electronic device. It should be understood that the device corresponds to the above-mentioned embodiment of the method in FIG. 2 , and can perform various steps involved in the embodiment of the method in FIG. 2 . The specific functions of the device can refer to the description above. To avoid repetition, detailed descriptions are appropriately omitted here.
可选地,上述事件信息发送装置包括权重配置模块501、信息发送模块502。其中,权重配置模块501,用于针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重;信息发送模块502,用于按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息;其中,所述发送周期基于所述发布服务器的发布频率设置。Optionally, the above event information sending device includes a weight configuration module 501 and an information sending module 502 . Among them, the weight configuration module 501 is used to determine the event attribute information corresponding to the event information for any type of event information, and configure the corresponding weight of the event information according to the event attribute information; the information sending module 502 uses Determine the sending order of various event information according to the order of weight, and send the various event information to the publishing server according to the sending order when the sending period arrives; wherein, the sending period is based on the publishing server's Publish frequency settings.
可选地,上述信息发送模块502可以被划分为确定模块以及发送子模块。其中,确定模块可以用于按照权重的大小顺序确定各类事件信息的发送顺序,发送子模块可以用于在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息。这样,将其划分为确定模块以及发送子模块之后,事件信息发送装置在基于发布服务器的发布频率设置发送周期时,可以仅在该发送子模块中修改对应的发送周期参数即可,更加便于定位修改位置。Optionally, the above-mentioned information sending module 502 may be divided into a determining module and a sending sub-module. Wherein, the determining module can be used to determine the sending order of various event information according to the order of weight, and the sending sub-module can be used to send the various event information to the publishing server according to the sending order when the sending period arrives. In this way, after it is divided into the determination module and the sending sub-module, when the event information sending device sets the sending cycle based on the publishing frequency of the publishing server, it can only modify the corresponding sending cycle parameter in the sending sub-module, which is more convenient for positioning Modify the location.
可选地,所述任一类型的事件信息包括一个独立事件的独立信息,所述独立信息包括事件触发时间,以及所述事件属性信息包括事件状态,以及权重配置模块501进一步用于:利用同一时间计数规则,统计当前时间以及所述事件触发时间;针对所述独立信息,在当前时间以及所述事件触发时间的间隔时长大于时长阈值时,确定所述独立事件处于结束状态;在所述独立事件处于结束状态的情况下,增加该独立信息对应的权重。Optionally, the event information of any type includes independent information of an independent event, the independent information includes event trigger time, and the event attribute information includes event status, and the weight configuration module 501 is further configured to: use the same Time counting rules, counting the current time and the event trigger time; for the independent information, when the interval between the current time and the event trigger time is greater than the duration threshold, it is determined that the independent event is in the end state; When the event is in the end state, increase the weight corresponding to the independent information.
可选地,所述任一类型的事件信息包括多个独立事件的独立信息,所述独立信息包括事件触发时间,以及所述事件属性信息包括事件状态,以及权重配置模块501进一步用于:利用同一时间计数规则,统计当前时间以及所述事件触发时间;针对于任一独立信息,在当前时间以及所述事件触发时间的间隔时长大于时长阈值时,确定该独立事件处于结束状态;在该独立事件处于结束状态的情况下,增加该独立信息对应的权重。Optionally, the event information of any type includes independent information of multiple independent events, the independent information includes event trigger time, and the event attribute information includes event status, and the weight configuration module 501 is further configured to: utilize The same time counting rule, counting the current time and the event trigger time; for any independent information, when the interval between the current time and the event trigger time is greater than the duration threshold, it is determined that the independent event is in the end state; When the event is in the end state, increase the weight corresponding to the independent information.
可选地,所述权重配置模块501进一步用于:在未发送历史独立信息的情况下,若接收到当前独立信息,则将所述当前独立信息与所述历史独立信息进行合并;将所述历史独立信息以及所述当前独立信息分别对应的权重进行累加;以及所述信息发送模块502进一步用于:按照合并信息的权重大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,按照所述发送顺序向发布服务器发送所述合并信息。Optionally, the weight configuration module 501 is further configured to: combine the current independent information with the historical independent information if the current independent information is received if the historical independent information is not sent; The historical independent information and the weights corresponding to the current independent information are accumulated; and the information sending module 502 is further configured to: determine the sending order of various event information according to the weight order of the merged information, and when the sending period arrives, Send the combined information to the publishing server according to the sending sequence.
可选地,所述事件属性信息包括新事件信息或者普通事件信息,以及所述权重配置模块501进一步用于:针对任一类型的事件信息,若该事件信息是首次检测到的该类型信息,则确定该事件属性信息包括新事件信息,并增加该事件信息对应的权重;若该事件信息不是首次检测到的该类型信息,则确定该事件属性信息包括普通事件信息,并保持该事件信息对应的权重不变。Optionally, the event attribute information includes new event information or common event information, and the weight configuration module 501 is further configured to: for any type of event information, if the event information is the first detected information of this type, Then determine that the event attribute information includes new event information, and increase the weight corresponding to the event information; if the event information is not the type of information detected for the first time, then determine that the event attribute information includes common event information, and keep the event information corresponding to weight remains unchanged.
可选地,所述权重配置模块501进一步用于:在保持事件信息对应的权重不变的情况下,若该事件信息满足紧急事件信息要求,则增加所述事件信息对应的权重。Optionally, the weight configuration module 501 is further configured to: increase the weight corresponding to the event information if the event information meets the emergency event information requirements while keeping the weight corresponding to the event information unchanged.
可选地,所述紧急事件信息要求包括:事件信息为发送失败的信息。Optionally, the emergency event information requirement includes: the event information is information that fails to be sent.
需要说明的是,本领域技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再重复描述。It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the foregoing method embodiment, and the description will not be repeated here.
请参考图6,其示出了本申请实施例提供的一种应用于网络视频录像机的事件信息发送装置的结构框图,该事件信息发送装置可以是电子设备上的模块、程序段或代码。应理解,该装置与上述图4方法实施例对应,能够执行图4方法实施例涉及的各个步骤,该装置具体的功能可以参见上文中的描述,为避免重复,此处适当省略详细描述。Please refer to FIG. 6 , which shows a structural block diagram of an event information sending device applied to a network video recorder provided by an embodiment of the present application. The event information sending device may be a module, program segment or code on an electronic device. It should be understood that the device corresponds to the above-mentioned method embodiment in FIG. 4 , and can perform various steps involved in the method embodiment in FIG. 4 . The specific functions of the device can refer to the description above. To avoid repetition, detailed descriptions are appropriately omitted here.
可选地,上述事件信息发送装置包括接收模块601以及发送模块602。其中,接收模块601,用于接收任一摄像设备发送的任一类型的事件信息;Optionally, the above event information sending device includes a receiving module 601 and a sending module 602 . Wherein, the receiving module 601 is configured to receive any type of event information sent by any camera device;
发送模块602,用于针对任一摄像设备发送的任一类型的事件信息,将该事件信息按照如图1所示实施例的方法发送。The sending module 602 is configured to send the event information according to the method of the embodiment shown in FIG. 1 for any type of event information sent by any camera device.
需要说明的是,本领域技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再重复描述。It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the foregoing method embodiment, and the description will not be repeated here.
请参考图7,其示出了本申请实施例提供的一种事件信息发送系统的结构框图,该事件信息发送系统可以包括事件上报设备以及发布服务器。应理解,该事件上报设备、发布服务器与上述图2方法实施例对应,能够执行图2方法实施例涉及的各个步骤,该事件上报设备具体的功能可以参见上文中的描述,为避免重复,此处适当省略详细描述。Please refer to FIG. 7 , which shows a structural block diagram of an event information sending system provided by an embodiment of the present application. The event information sending system may include an event reporting device and a publishing server. It should be understood that the event reporting device and the publishing server correspond to the above-mentioned embodiment of the method in Figure 2, and can perform the various steps involved in the embodiment of the method in Figure 2. The specific functions of the event reporting device can refer to the description above. To avoid repetition, here Detailed description is omitted here.
可选地,事件信息发送系统包括事件上报设备701以及发布服务器702。其中,事件上报设备701,用于针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重;以及按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息;其中,所述发送周期基于所述发布服务器的发布频率设置;发布服务器702,用于接收所述各类事件信息。Optionally, the event information sending system includes an event reporting device 701 and a publishing server 702 . Wherein, the event reporting device 701 is configured to, for any type of event information, determine the event attribute information corresponding to the event information, and configure the weight corresponding to the event information according to the event attribute information; and according to the order of weight Determine the sending order of various event information, and when the sending period arrives, send the various event information to the publishing server according to the sending order; wherein, the sending period is set based on the publishing frequency of the publishing server; the publishing server 702, configured to receive the various types of event information.
需要说明的是,本领域技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再重复描述。It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the foregoing method embodiments, and the description will not be repeated here.
请参照图8,图8为本申请实施例提供的一种用于执行事件信息发送方法的电子设备的结构示意图,所述电子设备可以包括:至少一个处理器801,例如CPU,至少一个通信接口802,至少一个存储器803和至少一个通信总线804。其中,通信总线804用于实现这些组件直接的连接通信。其中,本申请实施例中设备的通信接口802用于与其他节点设备进行信令或数据的通信。存储器803可以是高速RAM存储器,也可以是非易失性的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器803可选的还可以是至少一个位于远离前述处理器的存储装置。存储器803中存储有计算机可读取指令,当所述计算机可读取指令由所述处理器801执行时,电子设备可以执行上述图2或者图4所示方法过程。Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of an electronic device for executing a method for sending event information provided by an embodiment of the present application. The electronic device may include: at least one processor 801, such as a CPU, and at least one communication interface 802 , at least one memory 803 and at least one communication bus 804 . Wherein, the communication bus 804 is used to realize the direct connection and communication of these components. Wherein, the communication interface 802 of the device in the embodiment of the present application is used for signaling or data communication with other node devices. The memory 803 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory 803 may also be at least one storage device located far away from the aforementioned processor. Computer-readable instructions are stored in the memory 803 , and when the computer-readable instructions are executed by the processor 801 , the electronic device can execute the above-mentioned method process shown in FIG. 2 or FIG. 4 .
可以理解,图8所示的结构仅为示意,所述电子设备还可包括比图8中所示更多或者更少的组件,或者具有与图8所示不同的配置。图8中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 8 is only for illustration, and the electronic device may also include more or less components than those shown in FIG. 8 , or have a configuration different from that shown in FIG. 8 . Each component shown in FIG. 8 may be implemented by hardware, software or a combination thereof.
本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,可以执行如图2或者图4所示方法实施例中电子设备所执行的方法过程。An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method performed by the electronic device in the method embodiment shown in FIG. 2 or FIG. 4 can be executed. process.
本申请实施例提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法,例如,该方法可以包括:针对任一类型的事件信息,确定该事件信息所对应的事件属性信息,并根据所述事件属性信息,配置该事件信息对应的权重;按照权重的大小顺序确定各类事件信息的发送顺序,并在发送周期到达时,根据所述发送顺序向发布服务器发送所述各类事件信息;其中,所述发送周期基于所述发布服务器的发布频率设置。An embodiment of the present application provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, The computer can execute the methods provided by the above method embodiments. For example, the method may include: for any type of event information, determining the event attribute information corresponding to the event information, and configuring the event according to the event attribute information. The weight corresponding to the information; determine the sending order of various event information according to the order of the weight, and send the various event information to the publishing server according to the sending order when the sending cycle arrives; wherein, the sending cycle is based on the The publishing frequency setting of the publishing server.
在本申请所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
另外,作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。In addition, a unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
再者,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。Furthermore, each functional module in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。In this document, relational terms such as first and second etc. are used only to distinguish one entity or operation from another without necessarily requiring or implying any such relationship between these entities or operations. Actual relationship or sequence.
以上所述仅为本申请的实施例而已,并不用于限制本申请的保护范围,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only the embodiments of the present application, and are not intended to limit the protection scope of the present application. For those skilled in the art, various modifications and changes may be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310544107.1A CN116614657A (en) | 2023-05-12 | 2023-05-12 | Event information sending method, device, system and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310544107.1A CN116614657A (en) | 2023-05-12 | 2023-05-12 | Event information sending method, device, system and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116614657A true CN116614657A (en) | 2023-08-18 |
Family
ID=87684714
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310544107.1A Pending CN116614657A (en) | 2023-05-12 | 2023-05-12 | Event information sending method, device, system and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116614657A (en) |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107517242A (en) * | 2016-06-17 | 2017-12-26 | 阿里巴巴集团控股有限公司 | A kind of method for sending information and device |
| KR101964683B1 (en) * | 2018-10-22 | 2019-04-02 | 주식회사 인텔리빅스 | Apparatus for Processing Image Smartly and Driving Method Thereof |
| US20190310997A1 (en) * | 2018-04-06 | 2019-10-10 | Banjo, Inc. | Consolidating information from different signals into an event |
| CN111600758A (en) * | 2020-05-19 | 2020-08-28 | 中移(杭州)信息技术有限公司 | Message reporting method and platform, intelligent gateway and storage medium |
| CN112565455A (en) * | 2020-12-23 | 2021-03-26 | 深圳市和讯华谷信息技术有限公司 | Multi-event synchronous processing method, computer equipment and storage medium |
| CN112598205A (en) * | 2019-09-17 | 2021-04-02 | 北京国双科技有限公司 | Alarm information processing method and device, storage medium and electronic equipment |
| CN112817705A (en) * | 2021-01-22 | 2021-05-18 | 京东方科技集团股份有限公司 | Information release method, terminal equipment and information release system |
| CN113568717A (en) * | 2020-04-28 | 2021-10-29 | 北京金山云网络技术有限公司 | Equipment control method, device, server and medium |
| CN114186053A (en) * | 2022-02-17 | 2022-03-15 | 中科雨辰科技有限公司 | Sending method for event message |
| CN115714810A (en) * | 2022-11-01 | 2023-02-24 | 海尔优家智能科技(北京)有限公司 | Method and device for sending push message, storage medium and electronic device |
-
2023
- 2023-05-12 CN CN202310544107.1A patent/CN116614657A/en active Pending
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107517242A (en) * | 2016-06-17 | 2017-12-26 | 阿里巴巴集团控股有限公司 | A kind of method for sending information and device |
| US20190310997A1 (en) * | 2018-04-06 | 2019-10-10 | Banjo, Inc. | Consolidating information from different signals into an event |
| KR101964683B1 (en) * | 2018-10-22 | 2019-04-02 | 주식회사 인텔리빅스 | Apparatus for Processing Image Smartly and Driving Method Thereof |
| CN112598205A (en) * | 2019-09-17 | 2021-04-02 | 北京国双科技有限公司 | Alarm information processing method and device, storage medium and electronic equipment |
| CN113568717A (en) * | 2020-04-28 | 2021-10-29 | 北京金山云网络技术有限公司 | Equipment control method, device, server and medium |
| CN111600758A (en) * | 2020-05-19 | 2020-08-28 | 中移(杭州)信息技术有限公司 | Message reporting method and platform, intelligent gateway and storage medium |
| CN112565455A (en) * | 2020-12-23 | 2021-03-26 | 深圳市和讯华谷信息技术有限公司 | Multi-event synchronous processing method, computer equipment and storage medium |
| CN112817705A (en) * | 2021-01-22 | 2021-05-18 | 京东方科技集团股份有限公司 | Information release method, terminal equipment and information release system |
| CN114186053A (en) * | 2022-02-17 | 2022-03-15 | 中科雨辰科技有限公司 | Sending method for event message |
| CN115714810A (en) * | 2022-11-01 | 2023-02-24 | 海尔优家智能科技(北京)有限公司 | Method and device for sending push message, storage medium and electronic device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20220070071A1 (en) | Data handler | |
| CN109450691B (en) | Service gateway monitoring method, device and computer readable storage medium | |
| CN110990233B (en) | A method and system for displaying SOAR using a Gantt chart | |
| CN101188527B (en) | A heartbeat detection method and device | |
| CN112311617A (en) | A configuration data monitoring and alarming method and system | |
| CN110996056B (en) | Video storage method and device of cascade monitoring system | |
| WO2019223140A1 (en) | Method for managing apparatus monitoring , device, computer apparatus and storage medium | |
| CN108572898A (en) | A kind of method, apparatus of control interface, equipment and storage medium | |
| CN111614954B (en) | Index acquisition processing method and device for streaming media, computer and storage medium | |
| CN115664940B (en) | Distributed node index and alarm caching method and device and electronic equipment | |
| CN101635659B (en) | Method and device for alarm jitter prevention | |
| CN112711515A (en) | Real-time monitoring method and device and electronic equipment | |
| CN112671897A (en) | Access method, device, storage medium, equipment and product of distributed system | |
| US10721192B2 (en) | Visual media file transmission method and user terminal | |
| CN116614657A (en) | Event information sending method, device, system and electronic equipment | |
| CN110543410A (en) | Method for processing cluster index, method and device for inquiring cluster index | |
| CN114301812A (en) | Monitoring method, device, device and storage medium for message processing result | |
| US9596145B2 (en) | Communication system, GUI apparatus, and service apparatus | |
| CN113645103B (en) | Method and device for detecting communication link abnormity between video monitoring platform and front-end equipment | |
| CN115022881A (en) | Data processing method, device, equipment and storage medium | |
| CN114710394A (en) | Alarm synchronization method, device, electronic device and readable storage medium | |
| CN113268389A (en) | Abnormal node monitoring method and device, electronic equipment and readable storage medium | |
| CN105337778A (en) | Internet of Things event-driven service management system | |
| CN111083413B (en) | Image display method and device, electronic equipment and storage medium | |
| CN116452174A (en) | Information processing method, device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |