CN114064319B - Method and device for processing event data, electronic equipment and storage medium - Google Patents
Method and device for processing event data, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114064319B CN114064319B CN202111368909.9A CN202111368909A CN114064319B CN 114064319 B CN114064319 B CN 114064319B CN 202111368909 A CN202111368909 A CN 202111368909A CN 114064319 B CN114064319 B CN 114064319B
- Authority
- CN
- China
- Prior art keywords
- target
- event
- timer corresponding
- time
- timer
- 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.)
- Active
Links
- 238000012545 processing Methods 0.000 title claims abstract description 36
- 238000000034 method Methods 0.000 title claims description 40
- 230000001960 triggered effect Effects 0.000 claims abstract description 3
- 238000004590 computer program Methods 0.000 claims description 3
- 238000003672 processing method Methods 0.000 abstract description 7
- 238000009825 accumulation Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
- G06F11/3096—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents wherein the means or processing minimize the use of computing system or of computing system component resources, e.g. non-intrusive monitoring which minimizes the probe effect: sniffing, intercepting, indirectly deriving the monitored data from other directly available data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Multimedia (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application discloses a processing method and a processing device of event data, electronic equipment and a storage medium, which can be applied to the financial field or other fields, wherein the processing method comprises the following steps: acquiring a target event sent by current target equipment; if the confidence coefficient of the target event is larger than the preset confidence coefficient threshold value corresponding to the target event, judging whether a target timer corresponding to the target equipment exists or not; the target timer refers to a timer for counting a target event; if the target timer does not exist, generating a target timer corresponding to the target equipment; the initial value of the effective time of the target timer is equal to a duration threshold corresponding to a preset target event; if the target timer exists, judging whether the accumulated time of the target timer corresponding to the current target equipment is larger than a duration time threshold corresponding to the target event; and if the duration time threshold value corresponding to the target event is larger than the duration time threshold value corresponding to the target event, the target event is sent to the background control center, and the background control center is triggered to react to the target event.
Description
Technical Field
The present application relates to the field of event monitoring technologies, and in particular, to a method and apparatus for processing event data, an electronic device, and a storage medium.
Background
With the development of the Internet of things and edge computing, the intelligent cameras and the edge computing box can be combined with an artificial intelligent algorithm, so that application scenes such as face recognition, target tracking, human behavior recognition and object recognition can be realized.
The intelligent camera or the edge computing box analyzes the collected video data by adopting an algorithm to form an event data stream, and then outputs the event data to a background control center according to a certain frequency in a discrete mode so as to enable the background control center to make corresponding reactions. For example, when the fight of a person is monitored, the fight time is generated and fed back to the background control center.
However, the intelligent camera or the edge computing box analyzes the video data to obtain the event data, and certain errors may exist, namely misjudgment of the event may occur, so that the event data is sent to the background control center each time, and the background control center may make actions inconsistent with facts.
Disclosure of Invention
Based on the defects of the prior art, the application provides a processing method and device of event data, electronic equipment and storage medium, so as to solve the problem that the prior transmitted event data is inconsistent with implementation.
In order to achieve the above object, the present application provides the following technical solutions:
the first aspect of the present application provides a method for processing event data, including:
acquiring a target event sent by current target equipment;
judging whether the confidence coefficient of the target event sent by the target equipment is larger than a preset confidence coefficient threshold value corresponding to the target event;
If the confidence coefficient of the target event sent by the target equipment is larger than the preset confidence coefficient threshold value corresponding to the target event, judging whether a target timer corresponding to the target equipment exists or not; wherein the target timer refers to a timer for timing the target event;
If the target timer corresponding to the target equipment does not exist, generating the target timer corresponding to the target equipment; the initial value of the effective time of the target timer is equal to a preset duration time threshold corresponding to the target event;
If the target timer corresponding to the target equipment exists, judging whether the accumulated time of the target timer corresponding to the current target equipment is larger than a duration time threshold corresponding to the target event;
And if the accumulated time of the target timer corresponding to the current target equipment is larger than the duration time threshold corresponding to the target event, the target event is sent to a background control center, and the background control center is triggered to react to the target event.
Optionally, in the above method for processing eventing data, the determining whether the accumulated time of the target timer corresponding to the target device is greater than the duration threshold corresponding to the target event includes:
Judging whether the accumulated time of the target timer corresponding to the current target equipment is larger than the current remaining effective time of the target timer corresponding to the target equipment; and if the accumulated time of the target timer corresponding to the current target device is judged to be larger than the current remaining effective time of the target timer corresponding to the target device, the accumulated time of the target timer corresponding to the current target device is larger than the duration time threshold corresponding to the target event.
Optionally, in the above method for processing eventing data, the determining whether the accumulated time of the target timer corresponding to the target device is greater than the current remaining valid time of the target timer corresponding to the target device further includes:
If the accumulated time of the target timer corresponding to the current target device is not more than the current remaining effective time of the target timer corresponding to the target device, adding the current accumulated time of the target timer corresponding to the target device with the current duration to obtain the latest accumulated time of the target timer corresponding to the target device; the duration time is equal to the difference value between the duration time threshold value corresponding to the target event and the current remaining effective time of the target timer corresponding to the target equipment;
and resetting the effective time of the target timer corresponding to the target equipment.
Optionally, in the above method for processing eventing data, after the sending the target event to a background control center, the method further includes:
Resetting the accumulated time of the target timer corresponding to the target device and resetting the effective time of the target timer corresponding to the target device.
Optionally, in the above method for processing eventing data, before the obtaining the target event sent by the current target device, the method further includes:
and configuring a preset confidence threshold value and a duration threshold value corresponding to each event.
A second aspect of the present application provides a processing apparatus for eventing data, including:
The acquisition unit is used for acquiring a target event sent by the current target equipment;
the first judging unit is used for judging whether the confidence coefficient of the target event sent by the target equipment is larger than a preset confidence coefficient threshold value corresponding to the target event;
The second judging unit is used for judging whether a target timer corresponding to the target equipment exists or not if the confidence coefficient of the target event sent by the target equipment is judged to be larger than a preset confidence coefficient threshold value corresponding to the target event; wherein the target timer refers to a timer for timing the target event;
The generating unit is used for generating the target timer corresponding to the target equipment if judging that the target timer corresponding to the target equipment does not exist; the initial value of the effective time of the target timer is equal to a preset duration time threshold corresponding to the target event;
the third judging unit is used for judging whether the accumulated time of the target timer corresponding to the target equipment is larger than the duration time threshold corresponding to the target event or not if the target timer corresponding to the target equipment exists;
And the sending unit is used for sending the target event to a background control center and triggering the background control center to react to the target event if the accumulated time of the target timer corresponding to the current target equipment is judged to be larger than the duration time threshold corresponding to the target event.
Optionally, in the above processing device for event data, the third judging unit includes:
A third judging subunit, configured to judge whether an accumulated time of a target timer corresponding to the target device is greater than a current remaining valid time of the target timer corresponding to the target device; and if the accumulated time of the target timer corresponding to the current target device is judged to be larger than the current remaining effective time of the target timer corresponding to the target device, the accumulated time of the target timer corresponding to the current target device is larger than the duration time threshold corresponding to the target event.
Optionally, the above processing device for event data further includes:
A time accumulating unit, configured to, if it is determined that the accumulated time of the target timer corresponding to the target device is not greater than the current remaining valid time of the target timer corresponding to the target device, add the current accumulated time of the target timer corresponding to the target device to the current duration to obtain the latest accumulated time of the target timer corresponding to the target device, and reset the valid time of the target timer corresponding to the target device; and the duration time is equal to the difference value between the duration time threshold value corresponding to the target event and the current remaining effective time of the target timer corresponding to the target equipment.
Optionally, the above processing device for event data further includes:
And the resetting unit is used for resetting the accumulated time of the target timer corresponding to the target equipment and the effective time of the target timer corresponding to the target equipment after the sending unit sends the target event to the background control center.
Optionally, the above processing device for event data further includes:
The configuration unit is used for configuring a preset confidence threshold value and a duration threshold value corresponding to each event.
A third aspect of the present application provides an electronic device, comprising:
A memory and a processor;
wherein the memory is used for storing programs;
The processor is configured to execute the program, and when the program is executed, the program is specifically configured to implement the method for processing the event data according to any one of the foregoing.
A fourth aspect of the present application provides a computer storage medium storing a computer program which, when executed, is adapted to carry out a method of processing eventing data according to any one of the preceding claims.
The application provides a processing method of event data, which is characterized in that a preset confidence coefficient threshold value and a duration time threshold value corresponding to each event are preset, when a target event sent by current target equipment is obtained, whether the confidence coefficient of the target event sent by the target equipment is larger than the preset confidence coefficient threshold value corresponding to the target event is judged, and when the confidence coefficient of the target event sent by the target equipment is judged to be larger than the preset confidence coefficient threshold value corresponding to the target event, the subsequent steps are executed, so that the confidence coefficient of the target event is ensured through the confidence coefficient. And judging whether a target timer corresponding to the target equipment exists or not after judging that the confidence coefficient of the target event sent by the target equipment is larger than a preset confidence coefficient threshold corresponding to the target event. Wherein the target timer refers to a timer for timing a target event. And if the target timer corresponding to the target equipment does not exist, generating the target timer corresponding to the target equipment, and recording the duration time of the target event through the target timer. The initial value of the effective time of the target timer is equal to a preset duration time threshold corresponding to the target event. If the target timer corresponding to the target equipment is judged to exist, judging whether the accumulated time of the target timer corresponding to the current target equipment is larger than the duration time threshold corresponding to the target event, if the accumulated time of the target timer corresponding to the current target equipment is judged to be larger than the duration time threshold corresponding to the target event, further guaranteeing the authenticity of the target event, so that the target event is sent to the background control center at the moment, the background control center is touched to react to the target event, the event data is not sent to the background control center every time any more, but is sent to the background control center after the reliability of the event is guaranteed through the preset confidence time threshold and the duration time threshold, and the action which is inconsistent with the fact is effectively avoided by the background control center.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for processing event data according to an embodiment of the present application;
FIG. 2 is a flowchart of another method for processing event data according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an apparatus for processing event data according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the present application, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a processing method of event data, as shown in fig. 1, comprising the following steps:
s101, acquiring a target event sent by current target equipment.
The target event refers to a certain type of event currently being uploaded, such as a fight event, etc. The current target device refers to a device that currently uploads a target event, for example, a certain camera or an edge computing box, etc. Alternatively, different devices may be distinguished by their IDs.
It should be noted that, the processing method of the event data provided in the embodiment of the present application is mainly implemented based on a preset confidence threshold and a duration threshold.
So optionally, before performing step S101, the method further includes:
and configuring a preset confidence threshold value and a duration threshold value corresponding to each event.
Specifically, each event that the sender can upload can be defined, and a corresponding preset confidence threshold and duration threshold are configured for each event. The preset execution degree threshold value and the duration time threshold value corresponding to different events can be the same or different. All corresponding preset confidence thresholds and duration thresholds may also be passed through a preset confidence threshold and duration threshold.
S102, judging whether the confidence coefficient of the target event sent by the target equipment is larger than a preset confidence coefficient threshold value corresponding to the target event.
Optionally, in order to ensure the credibility of the target event and avoid false alarm, the target device calculates the confidence level of the target event and uploads the confidence level when generating the target event. After receiving the target event and the confidence coefficient of the target event, judging whether the confidence coefficient of the target event sent on the target equipment is larger than a preset confidence coefficient threshold value corresponding to the target event. If it is determined that the confidence coefficient of the target event sent by the target device is greater than the preset confidence coefficient threshold value corresponding to the target event, step S103 is executed.
S103, judging whether a target timer corresponding to the target equipment exists.
The target timer refers to a timer for timing a target event, that is, a corresponding timer is set for each type of event of each device, and is used for monitoring the duration of the target time monitored by the target device. Therefore, if it is determined that there is a target timer corresponding to the target device, it is explained that the target event has been uploaded last time, so it is required to determine whether the duration of the target event is greater than the duration threshold corresponding to the target event at this time, and step S105 is executed at this time. If it is determined that the target timer corresponding to the target device does not exist, step S104 is performed.
S104, generating a target timer corresponding to the target equipment.
The initial value of the effective time of the target timer is equal to a duration threshold corresponding to a preset target event.
It should be noted that, in the embodiment of the present application, the timer has a valid time, the valid time starts to count down continuously after the timer is generated, and the calculator is automatically removed when the valid time of the timer is counted down.
In order to ensure that the target timer can record the duration threshold corresponding to the target event, the target timer is firstly generated and then is subjected to the target timer, namely the initial value of the effective time of the target timer is equal to the preset duration threshold corresponding to the target event
S105, judging whether the accumulated time of the target timer corresponding to the current target device is larger than a duration threshold corresponding to the target event.
If it is determined that the accumulated time of the target timer corresponding to the target device is greater than the duration threshold corresponding to the target event, it indicates that the target event has been monitored multiple times in succession, so that the authenticity of the target event can be more determined, and step S106 is performed at this time.
And S106, sending the target event to a background control center, and triggering the background control center to react to the target event.
The embodiment of the application provides a processing method of event data, which is characterized in that a preset confidence coefficient threshold value and a duration time threshold value corresponding to each event are preset, when a target event sent by current target equipment is obtained, whether the confidence coefficient of the target event sent by the target equipment is larger than the preset confidence coefficient threshold value corresponding to the target event is judged, and when the confidence coefficient of the target event sent by the target equipment is larger than the preset confidence coefficient threshold value corresponding to the target event, the subsequent steps are executed, so that the confidence coefficient of the target event is ensured through the confidence coefficient. And judging whether a target timer corresponding to the target equipment exists or not after judging that the confidence coefficient of the target event sent by the target equipment is larger than a preset confidence coefficient threshold corresponding to the target event. Wherein the target timer refers to a timer for timing a target event. And if the target timer corresponding to the target equipment does not exist, generating the target timer corresponding to the target equipment, and recording the duration time of the target event through the target timer. The initial value of the effective time of the target timer is equal to a preset duration time threshold corresponding to the target event. If the target timer corresponding to the target equipment is judged to exist, judging whether the accumulated time of the target timer corresponding to the current target equipment is larger than the duration time threshold corresponding to the target event, if the accumulated time of the target timer corresponding to the current target equipment is judged to be larger than the duration time threshold corresponding to the target event, further guaranteeing the authenticity of the target event, so that the target event is sent to the background control center at the moment, the background control center is touched to react to the target event, the event data is not sent to the background control center every time any more, but is sent to the background control center after the reliability of the event is guaranteed through the preset confidence time threshold and the duration time threshold, and the action which is inconsistent with the fact is effectively avoided by the background control center.
Another embodiment of the present application provides another method for processing event data, as shown in fig. 2, including the following steps:
s201, acquiring a target event sent by current target equipment.
It should be noted that, for the specific implementation of step S201, reference may be made to step S101 in the above method embodiment accordingly, which is not described herein again.
S202, judging whether the confidence coefficient of the target event sent by the target equipment is larger than a preset confidence coefficient threshold corresponding to the target event.
If it is determined that the confidence coefficient of the target event sent by the target device is greater than the preset confidence coefficient threshold value corresponding to the target event, step S203 is executed.
It should be noted that, in the specific implementation manner of step S202, reference may be made to step S102 in the above method embodiment accordingly, and details are not repeated here.
S203, judging whether a target timer corresponding to the target equipment exists.
Wherein the target timer refers to a timer for timing a target event.
If it is determined that the target timer corresponding to the target device does not exist, step S204 is executed, and if it is determined that the target timer corresponding to the target device exists, step S205 is executed.
S204, generating a target timer corresponding to the target equipment.
The initial value of the effective time of the target timer is equal to a duration threshold corresponding to a preset target event.
It should be noted that, for the specific implementation of step S204, reference may be made to step S104 in the above method embodiment accordingly, and details are not repeated here.
It should be further noted that, in the embodiment of the present application, the timer is a device for recording time, and the timer is not started to count constantly after the generation, but is updated after the accumulation based on the remaining effective time, that is, the accumulated time recorded by the timer is updated by executing step S206.
S205, judging whether the accumulated time of the target timer corresponding to the current target device is larger than the current remaining effective time of the target timer corresponding to the target device.
It should be noted that, when it is determined that the accumulated time of the target timer corresponding to the current target device is not greater than the current remaining valid time of the target timer corresponding to the target device, step 207 is executed, that is, the valid time of the target timer corresponding to the target device is reset, so that when the accumulated time of the target timer corresponding to the current target device is greater than the current remaining valid time of the target timer corresponding to the target device, the duration of the current time plus the accumulated time of the target timer corresponding to the current target device is necessarily greater than the duration threshold corresponding to the target event, so that if it is determined that the accumulated time of the target timer corresponding to the current target device is greater than the current remaining valid time of the target timer corresponding to the target device, the accumulated time of the target timer corresponding to the current target device is greater than the duration threshold corresponding to the target event, and step S208 is executed at this time.
Accordingly, if it is determined that the accumulated time of the target timer corresponding to the current target device is not greater than the current remaining valid time of the target timer corresponding to the target device, the accumulated time of the target timer corresponding to the current target device is greater than the duration threshold corresponding to the target event, so step S206 is executed at this time to accumulate the last duration with the time of the timer.
S206, adding the current accumulated time of the target timer corresponding to the target device to the current duration to obtain the accumulated time of the target timer corresponding to the latest target device.
The duration time is equal to the difference between the duration time threshold value corresponding to the target event and the current remaining effective time of the target timer corresponding to the target device, that is, the duration time is the interval time from the last time the target event is received to the time the target event is received.
S207, resetting the effective time of the target timer corresponding to the target device.
And S208, sending the target event to a background control center, and triggering the background control center to react to the target event.
S209, resetting the accumulated time of the target timer corresponding to the target device and resetting the effective time of the target timer corresponding to the target device.
It should be noted that, since the target event may continue after being sent to the background control center, in order to continue to monitor the target event, the accumulated time of the target timer corresponding to the target device and the valid time of the target timer corresponding to the target device are reset at this time.
It is of course also possible to regenerate the target timer, but this is too cumbersome. Or when the target event is received again, the method is executed again to generate a timer, but the accumulation of the time interval from the current time to the next time of receiving the target event is omitted, so that the monitoring continuity of the target event is affected to a certain extent.
Another embodiment of the present application provides an apparatus for processing event data, as shown in fig. 3, including:
an obtaining unit 301, configured to obtain a target event sent by a current target device.
The first determining unit 302 is configured to determine whether the confidence level of the target event sent by the target device is greater than a preset confidence threshold corresponding to the target event.
And the second judging unit 303 is configured to judge whether a target timer corresponding to the target device exists if the confidence coefficient of the target event sent by the target device is greater than the preset confidence coefficient threshold corresponding to the target event.
Wherein the target timer refers to a timer for timing a target event.
And the generating unit 304 is configured to generate the target timer corresponding to the target device if it is determined that the target timer corresponding to the target device does not exist.
The initial value of the effective time of the target timer is equal to a duration threshold corresponding to a preset target event.
And a third determining unit 305, configured to determine whether the accumulated time of the target timer corresponding to the current target device is greater than the duration threshold corresponding to the target event if it is determined that the target timer corresponding to the target device exists.
And the sending unit 306 is configured to send the target event to the background control center, and trigger the background control center to react to the target event if it is determined that the accumulated time of the target timer corresponding to the current target device is greater than the duration threshold corresponding to the target event.
Optionally, in the processing device for event data provided in another embodiment of the present application, the third judging unit includes:
And the third judging subunit is used for judging whether the accumulated time of the target timer corresponding to the current target device is larger than the current residual effective time of the target timer corresponding to the target device. And if the accumulated time of the target timer corresponding to the current target device is judged to be larger than the current remaining effective time of the target timer corresponding to the target device, the accumulated time of the target timer corresponding to the current target device is larger than the duration threshold corresponding to the target event.
Optionally, in the processing device for event data provided in another embodiment of the present application, the processing device further includes:
and the time accumulation unit is used for adding the current accumulated time of the target timer corresponding to the target equipment to the current duration time to obtain the accumulated time of the target timer corresponding to the latest target equipment and resetting the effective time of the target timer corresponding to the target equipment if the accumulated time of the target timer corresponding to the current target equipment is not more than the current remaining effective time of the target timer corresponding to the target equipment. The duration time is equal to the difference value between the duration time threshold value corresponding to the target event and the current remaining effective time of the target timer corresponding to the target equipment.
Optionally, in the processing device for event data provided in another embodiment of the present application, the processing device further includes:
And the resetting unit is used for resetting the accumulated time of the target timer corresponding to the target equipment and the effective time of the target timer corresponding to the target equipment after the transmitting unit transmits the target event to the background control center.
Optionally, in the processing device for event data provided in another embodiment of the present application, the processing device further includes:
The configuration unit is used for configuring a preset confidence threshold value and a duration time threshold value corresponding to each event.
It should be noted that, the specific working process of each unit provided in the above embodiment of the present application may refer to the corresponding steps in the above method embodiment, which is not described herein.
Another embodiment of the present application provides an electronic device, as shown in fig. 4, including:
A memory 401 and a processor 402.
Wherein the memory 401 is used for storing programs.
The processor 402 is configured to execute a program stored in the memory 401, and when the program is executed, the program is specifically configured to implement the method for processing the event data provided in any one of the embodiments described above.
Another embodiment of the present application provides a computer storage medium storing a computer program which, when executed, is configured to implement a method for processing eventing data according to any one of the above.
Computer storage media, including both non-transitory and non-transitory, removable and non-removable media, may be implemented in any method or technology for storage of information. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by the computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should be noted that the method and device for processing the event data, the electronic device and the storage medium provided by the invention can be used in the artificial intelligence field or the financial field. The foregoing is merely an example, and the application fields of the method and apparatus for processing event data, the electronic device, and the storage medium provided by the present invention are not limited.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method of processing eventing data, comprising:
acquiring a target event sent by current target equipment;
judging whether the confidence coefficient of the target event sent by the target equipment is larger than a preset confidence coefficient threshold value corresponding to the target event;
If the confidence coefficient of the target event sent by the target equipment is larger than the preset confidence coefficient threshold value corresponding to the target event, judging whether a target timer corresponding to the target equipment exists or not; wherein the target timer refers to a timer for timing the target event;
If the target timer corresponding to the target equipment does not exist, generating the target timer corresponding to the target equipment; the initial value of the effective time of the target timer is equal to a preset duration time threshold corresponding to the target event;
If the target timer corresponding to the target equipment exists, judging whether the accumulated time of the target timer corresponding to the current target equipment is larger than a duration time threshold corresponding to the target event;
And if the accumulated time of the target timer corresponding to the current target equipment is larger than the duration time threshold corresponding to the target event, the target event is sent to a background control center, and the background control center is triggered to react to the target event.
2. The method of claim 1, wherein determining whether the accumulated time of the target timer corresponding to the target device is greater than the duration threshold corresponding to the target event comprises:
Judging whether the accumulated time of the target timer corresponding to the current target equipment is larger than the current remaining effective time of the target timer corresponding to the target equipment; and if the accumulated time of the target timer corresponding to the current target device is judged to be larger than the current remaining effective time of the target timer corresponding to the target device, the accumulated time of the target timer corresponding to the current target device is larger than the duration time threshold corresponding to the target event.
3. The method according to claim 2, wherein the determining whether the accumulated time of the target timer corresponding to the target device is greater than the current remaining valid time of the target timer corresponding to the target device further comprises:
If the accumulated time of the target timer corresponding to the current target device is not more than the current remaining effective time of the target timer corresponding to the target device, adding the current accumulated time of the target timer corresponding to the target device with the current duration to obtain the latest accumulated time of the target timer corresponding to the target device; the duration time is equal to the difference value between the duration time threshold value corresponding to the target event and the current remaining effective time of the target timer corresponding to the target equipment;
and resetting the effective time of the target timer corresponding to the target equipment.
4. The method of claim 3, wherein after the sending the target event to a background control center, further comprising:
Resetting the accumulated time of the target timer corresponding to the target device and resetting the effective time of the target timer corresponding to the target device.
5. The method of claim 1, wherein prior to the obtaining the target event currently sent by the target device, further comprising:
and configuring a preset confidence threshold value and a duration threshold value corresponding to each event.
6. An apparatus for processing eventing data, comprising:
The acquisition unit is used for acquiring a target event sent by the current target equipment;
the first judging unit is used for judging whether the confidence coefficient of the target event sent by the target equipment is larger than a preset confidence coefficient threshold value corresponding to the target event;
The second judging unit is used for judging whether a target timer corresponding to the target equipment exists or not if the confidence coefficient of the target event sent by the target equipment is judged to be larger than a preset confidence coefficient threshold value corresponding to the target event; wherein the target timer refers to a timer for timing the target event;
The generating unit is used for generating the target timer corresponding to the target equipment if judging that the target timer corresponding to the target equipment does not exist; the initial value of the effective time of the target timer is equal to a preset duration time threshold corresponding to the target event;
the third judging unit is used for judging whether the accumulated time of the target timer corresponding to the target equipment is larger than the duration time threshold corresponding to the target event or not if the target timer corresponding to the target equipment exists;
And the sending unit is used for sending the target event to a background control center and triggering the background control center to react to the target event if the accumulated time of the target timer corresponding to the current target equipment is judged to be larger than the duration time threshold corresponding to the target event.
7. The apparatus according to claim 6, wherein the third judging unit includes:
A third judging subunit, configured to judge whether an accumulated time of a target timer corresponding to the target device is greater than a current remaining valid time of the target timer corresponding to the target device; and if the accumulated time of the target timer corresponding to the current target device is judged to be larger than the current remaining effective time of the target timer corresponding to the target device, the accumulated time of the target timer corresponding to the current target device is larger than the duration time threshold corresponding to the target event.
8. The apparatus as recited in claim 7, further comprising:
A time accumulating unit, configured to, if it is determined that the accumulated time of the target timer corresponding to the target device is not greater than the current remaining valid time of the target timer corresponding to the target device, add the current accumulated time of the target timer corresponding to the target device to the current duration to obtain the latest accumulated time of the target timer corresponding to the target device, and reset the valid time of the target timer corresponding to the target device; and the duration time is equal to the difference value between the duration time threshold value corresponding to the target event and the current remaining effective time of the target timer corresponding to the target equipment.
9. An electronic device, comprising:
A memory and a processor;
wherein the memory is used for storing programs;
The processor is configured to execute the program, and the program is specifically configured to implement the method for processing eventualized data according to any one of claims 1 to 5 when executed.
10. A computer storage medium storing a computer program which, when executed, is adapted to carry out the method of processing eventualized data of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111368909.9A CN114064319B (en) | 2021-11-18 | 2021-11-18 | Method and device for processing event data, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111368909.9A CN114064319B (en) | 2021-11-18 | 2021-11-18 | Method and device for processing event data, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114064319A CN114064319A (en) | 2022-02-18 |
CN114064319B true CN114064319B (en) | 2024-06-28 |
Family
ID=80278006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111368909.9A Active CN114064319B (en) | 2021-11-18 | 2021-11-18 | Method and device for processing event data, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114064319B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951365A (en) * | 2014-03-25 | 2015-09-30 | 想象技术有限公司 | Prioritizing events to which a processor is to respond |
CN105373629A (en) * | 2015-12-17 | 2016-03-02 | 谭圆圆 | Unmanned aerial vehicle-based flight condition data processing device and method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8683597B1 (en) * | 2011-12-08 | 2014-03-25 | Amazon Technologies, Inc. | Risk-based authentication duration |
US9507410B2 (en) * | 2014-06-20 | 2016-11-29 | Advanced Micro Devices, Inc. | Decoupled selective implementation of entry and exit prediction for power gating processor components |
US10747565B2 (en) * | 2017-04-18 | 2020-08-18 | Amazon Technologies, Inc. | Virtualization of control and status signals |
CN109669843A (en) * | 2018-12-29 | 2019-04-23 | 出门问问信息科技有限公司 | Hit the acquisition methods and device of data |
CN112130907A (en) * | 2019-06-05 | 2020-12-25 | 阿里巴巴集团控股有限公司 | Session processing method and device and electronic equipment |
-
2021
- 2021-11-18 CN CN202111368909.9A patent/CN114064319B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951365A (en) * | 2014-03-25 | 2015-09-30 | 想象技术有限公司 | Prioritizing events to which a processor is to respond |
CN105373629A (en) * | 2015-12-17 | 2016-03-02 | 谭圆圆 | Unmanned aerial vehicle-based flight condition data processing device and method |
Also Published As
Publication number | Publication date |
---|---|
CN114064319A (en) | 2022-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2407943B1 (en) | Method for event initiated video capturing and a video camera for capture event initiated video | |
CN113840012B (en) | Block chain-based screen recording evidence obtaining method and system and electronic equipment | |
CN110661659A (en) | Alarm method, device and system and electronic equipment | |
CN110475124B (en) | Video jamming detection method and device | |
CN108965831B (en) | Video processing method and device and intelligent visual doorbell | |
CN109560976B (en) | Message delay monitoring method and device | |
CN114064319B (en) | Method and device for processing event data, electronic equipment and storage medium | |
CN110113392A (en) | A kind of monitoring APP client buries a method and apparatus for acquisition integrality | |
CN111405220A (en) | Video prerecording method and cloud storage system | |
CN111787256B (en) | Management method, device, medium and electronic equipment for pre-alarm video | |
RU2015124377A (en) | METHOD AND DEVICE FOR SENDING MESSAGES | |
CN111064957B (en) | Equipment state monitoring method and device | |
CN112579820A (en) | Time hopping video data processing method, device, medium and electronic equipment | |
CN110633161B (en) | Broadcast processing method and device | |
CN111526385A (en) | Video processing method and device, electronic equipment and storage medium | |
CN116415236A (en) | Distributed storage data safety state identification and protection method | |
CN114285989A (en) | Self-adaptive adjustment method and device for emergency video trigger threshold | |
CN113205079B (en) | Face detection method and device, electronic equipment and storage medium | |
WO2017049474A1 (en) | Filming method and smart wristband | |
CN111475223B (en) | Management method and device for information reminding | |
CN113868096A (en) | Asynchronous data transmission monitoring method and device, electronic equipment and storage medium | |
CN111127823A (en) | Alarm method and device and video monitoring equipment | |
CN109561327B (en) | Audience rating detection method and device | |
CN113064800A (en) | Early warning method and device, electronic equipment and readable storage medium | |
EP2996036A1 (en) | Method for monitoring an application architecture comprising a plurality of services |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |