Method, device, electronic device and storage medium for merging repeated event alarms
By setting the reporting cycle of repeated event alarms and performing intelligent analysis on surveillance videos, the problem of repeated reporting of event alarms is solved, the merging of event alarm information is realized, storage space is saved, and user experience is optimized.
Patent Information
- Application Number
- CN202410881329.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-03
AI Technical Summary
In the existing technology, repeated reporting of event alarms causes problems for users and waste of storage space, and the repeated event alarms cannot be effectively judged and merged.
By setting the reporting cycle of repeated event alarms for different types of events, and intelligently analyzing surveillance videos in real-time and non-real-time scenarios, the consistency or similarity of event alarm information can be judged, and the merging of event alarm information can be achieved.
It effectively saves storage space, optimizes user experience, reduces redundancy of alarm information, and improves the quality and reliability of event alarm information.
Smart Images

Figure CN118430210B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and more particularly to a method, device, electronic device and storage medium for merging repeated event alarms. Background Art
[0002] Event alerting refers to the process of detecting abnormal events that do not conform to preset rules or models in a monitoring system through real-time analysis and processing of monitoring data, and sending alerts or notifications to relevant personnel. These abnormal events may include but are not limited to the following:
[0003] Security monitoring: Monitors abnormal events such as suspicious persons, intruders, and acts of vandalism in the area.
[0004] Industrial production: Monitor abnormal conditions on the production line, such as equipment failure, production anomalies, safety issues, etc.
[0005] Traffic management: monitoring traffic violations, accidents, congestion, etc. at intersections, highways and other areas.
[0006] Environmental monitoring: monitoring of abnormal events such as pollutant emissions, fires, and natural disasters.
[0007] Healthcare: Monitoring abnormal patient behavior, medical equipment malfunctions, etc. within medical facilities.
[0008] In short, event alerting, through intelligent analysis of monitoring data and combined with machine learning, deep learning, and other technologies, enables timely detection and response to abnormal events, improving the efficiency and accuracy of monitoring systems. This technology is widely used in security monitoring, industrial production, traffic management, environmental monitoring, and other fields, providing important security and management tools for various industries.
[0009] However, under existing technical means, since event alarms will continue to appear for a period of time, the usual practice is not to judge the repetitiveness of the event target, which leads to the following problems: the same event is reported repeatedly, and dozens or even hundreds of the same event alarms will appear in a short period of time (usually within a few minutes), causing great inconvenience to users of the system; and since the storage of repeated events has no value, a lot of event information storage space is wasted. Summary of the Invention
[0010] In order to overcome the shortcomings of the existing technology, the present invention provides a method, device, electronic device and storage medium for merging repeated event alarms, which solves the current problem that repeated reporting of event alarms causes great trouble to users and wastes storage space; thereby saving storage space and optimizing user experience.
[0011] The present invention solves the technical problem by adopting a technical solution: a method for merging repeated event alarms, which is applied to surveillance videos of real-time scenes and non-real-time scenes. The improvement lies in that the method for merging repeated event alarms comprises the following steps:
[0012] S10, setting different repeated event alarm reporting cycles for different types of event alarms;
[0013] S20, determining the conditions for generating an event alarm, and performing intelligent analysis on the surveillance video. If the event in the surveillance video meets the conditions for generating an event alarm, an event alarm is generated, and first event alarm information is obtained;
[0014] S30, tracking the event alarm for the surveillance video of the camera where the event alarm occurs, and obtaining second event alarm information;
[0015] S40, determine whether to merge the event alarm information: in a real-time scenario, determine whether the first event alarm information and the second event alarm information are consistent. If so, merge the event alarm information; if not, generate a new event alarm; in a non-real-time scenario, compare whether the similarity between the first event alarm information and the second event alarm information is greater than 60%. If so, merge the event alarm information; if not, do not merge the event alarm information.
[0016] Furthermore, in step S20, the first event alarm information includes at least event name, event source, event address, event level, start time, end time, event status, event short video and event screenshot; and when the repeated event alarm merging method is applied to the surveillance video of the real-time scene and an event alarm is generated, the repeated event alarm reporting period starts timing.
[0017] Furthermore, in step S30, when the method for merging repeated event alarms is applied to surveillance video of a real-time scene, the specific method for tracking the event alarm of the surveillance video of the camera where the event alarm occurs is: using a target tracking algorithm to track the target of the surveillance video of the camera that generates the event alarm, if an event alarm occurs, output a tracking identifier corresponding to the event alarm, and obtain the corresponding second event alarm information based on the tracking identifier, and record the timing time when the second event alarm information is obtained.
[0018] Furthermore, in step S30, when the method for merging repeated event alarms is applied to surveillance videos of non-real-time scenarios, the specific method for tracking event alarms on the surveillance videos of the camera where the event alarm occurs is: using the repeated event alarm reporting period as the time window, and the time for obtaining the first event alarm information as the base point, within the time window, using the target detection algorithm to extract targets of the same type of event alarms from the surveillance videos of the camera that generates the event alarm, and obtaining the corresponding second event alarm information based on the extracted targets.
[0019] Furthermore, in step S40, in a real-time scenario, before determining whether the first event alarm information is consistent with the second event alarm information, it is also necessary to determine whether the timing time when obtaining the second event alarm information exceeds the repeated event alarm reporting period. If so, a new event alarm is generated; if not, continue to execute S40.
[0020] Furthermore, in step S40, in a non-real-time scenario, the specific method of comparing whether the similarity between the first event alarm information and the second event alarm information is greater than 60% is: using an image comparison algorithm to compare the image of the first event alarm information with the image of the second alarm information.
[0021] A device for merging repeated event alarms is applied to the method for merging repeated event alarms described above, wherein the improvement is that the device for merging repeated event alarms comprises:
[0022] The event configuration module is used to set the reporting period of repeated event alarms for different types of events and determine the conditions for generating event alarms;
[0023] An intelligent analysis module is used to perform intelligent analysis on the surveillance video of the camera, determine whether the event in the surveillance video meets the conditions for generating an event alarm, and obtain the first event alarm information corresponding to the event alarm when the event alarm is generated;
[0024] An application scenario determination module is used to determine whether the merging of the current repeated event alarms is applied to real-time scenarios and non-real-time scenarios;
[0025] A real-time scene processing module is used to track the target of the surveillance video of the camera that generates the event alarm using a target tracking algorithm in a real-time scene. If an event alarm occurs, the tracking identifier corresponding to the event alarm is output, and the corresponding second event alarm information is obtained based on the tracking identifier;
[0026] A non-real-time scenario processing module is used to, in a non-real-time scenario, use the repeated event alarm reporting period as a time window and the time when the first event alarm information is obtained as a base point. Within the time window, a target detection algorithm is used to extract targets of the same type of event alarm from the surveillance video of the camera that generated the event alarm, and to obtain corresponding second event alarm information based on the extracted targets. The module is also used to time the time between obtaining the first event alarm information and obtaining the second event alarm information.
[0027] An event alarm tracking module is used to track the surveillance video of the camera where the event alarm occurs and obtain the second event alarm information;
[0028] The event alarm information comparison module is used to determine whether the time when obtaining the second event alarm information exceeds the repeated event alarm reporting period in real-time scenarios and whether the first event alarm information is consistent with the second event alarm information; in non-real-time scenarios, it compares the first event alarm information with the second event alarm information to see whether the similarity is greater than 60%;
[0029] The event merging module is used to merge event alarm information.
[0030] An electronic device, the improvement of which is that it comprises at least one processor and at least one memory, wherein:
[0031] The memory has computer-readable instructions stored thereon;
[0032] The computer-readable instructions are executed by one or more processors to enable the electronic device to implement the method for merging repeated event alarms as described above.
[0033] A storage medium stores computer-readable instructions, wherein the improvement lies in that the computer-readable instructions are executed by one or more processors to implement the method for merging repeated event alarms as described above.
[0034] The beneficial effects of the present invention are as follows: the present invention first sets different repeated event alarm reporting cycles for different types of event alarms, then determines the conditions for generating event alarms, and performs intelligent analysis on the surveillance video. If the event in the surveillance video meets the conditions for generating event alarms, an event alarm is generated, and the first event alarm information is obtained; then, within the repeated event alarm reporting cycle, the surveillance video of the camera where the event alarm occurs is tracked for event alarms, and the second event alarm information is obtained; finally, by comparing the first event alarm information with the second event alarm information, it is determined whether Merge event alarm information. In real-time scenarios, determine whether the first event alarm information is consistent with the second event alarm information. If so, merge the event alarm information; if not, generate a new event alarm. In non-real-time scenarios, compare whether the similarity between the first event alarm information and the second event alarm information is greater than 60%. If so, merge the event alarm information; if not, do not merge the event alarm information; ensure that repeated event alarms are merged within the repeated event alarm reporting cycle, thereby saving storage space and optimizing user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is an overall flow chart of a method for merging repeated event alarms according to the present invention;
[0036] Figure 2 A block diagram of a device for merging repeated event alarms according to the present invention;
[0037] Figure 3 A hardware structure diagram of an electronic device is shown in an exemplary embodiment;
[0038] Figure 4 A block diagram of an electronic device is shown according to an exemplary embodiment. DETAILED DESCRIPTION
[0039] The present invention will be further described below with reference to the accompanying drawings and examples.
[0040] The following will clearly and completely describe the concept, specific structure and technical effects of the present invention in combination with the embodiments and drawings, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention. In addition, all the connection / connection relationships involved in the patent do not refer to the direct connection of components, but refer to the fact that a better connection structure can be formed by adding or reducing connection accessories according to the specific implementation situation. The various technical features in the invention can be combined interactively without conflicting with each other.
[0041] Reference Figure 1 The present invention discloses a method for merging repeated event alarms, which is applied to surveillance videos of real-time scenes and non-real-time scenes. The improvement is that the method for merging repeated event alarms includes the following steps:
[0042] S10, setting different repeated event alarm reporting periods for different types of event alarms; in this example, when the monitoring system is initialized and configured, different repeated event alarm reporting periods are set for different types of event alarms, which can ensure that the same event alarm is not reported repeatedly within the repeated event alarm reporting period. For example, if the repeated event alarm reporting period is set to 5 minutes, then the same event alarm of the same target under the same camera will not be reported repeatedly within 5 minutes, so as to avoid multiple reports of the same event alarm in a short period of time, reduce the redundancy of alarm information, thereby saving storage space and improving the quality and reliability of event alarm information;
[0043] S20, determine the conditions for generating an event alarm, and perform intelligent analysis on the surveillance video. If the event in the surveillance video meets the conditions for generating an event alarm, an event alarm is generated, and the first event alarm information is obtained; wherein, the first event alarm information includes at least the event name, event source, event address, event level, start time, end time, event status, event short video and event screenshot; and when the repeated event alarm merging method is applied to the surveillance video of the real-time scene and an event alarm is generated, the repeated event alarm reporting cycle starts timing; in this embodiment, the monitoring system is equipped with an algorithm model based on machine vision, which is used to perform intelligent analysis on the business logic generated by the event alarm to determine the conditions for generating an event alarm; and the surveillance video in the monitoring system is intelligently analyzed to determine whether the picture in the current surveillance video meets the conditions for generating an event alarm. If so, an event alarm is generated, and the information of the event alarm, that is, the first event alarm information, is obtained. At this time, if the current application scenario is a real-time scenario, it is also necessary to obtain the first event alarm information The timing starts at 1:00:00; specifically, the first event alarm information includes at least the event name, event source, event address, event level, start time, end time, event status, event short video and event screenshot; wherein, the event name is the specific name of the event alarm, such as smoking alarm; the event source is the camera name, indicating which camera the event alarm is generated by; the event address shown is the installation address of the camera; the event level is used to identify the severity of the event; the start time and end time are used to identify the start and end events of the event alarm; the event status is used to identify whether the event alarm is occurring or has ended; the event short video is a short segment of camera video captured when the event alarm occurs; the event screenshot is a screenshot of the event alarm; in addition, when performing intelligent analysis on the surveillance video, the monitoring system determines the application scenario of the current surveillance video by extracting frames from the surveillance video. If the frame extraction processing frequency is more than 5 frames per second, the current surveillance video is applied to the real-time scene, otherwise the current surveillance video is applied to the non-real-time scene;
[0044] S30, track the event alarm of the surveillance video of the camera where the event alarm occurs, and obtain the second event alarm information; specifically, when the merging method of repeated event alarms is applied to the surveillance video of the real-time scene, the specific method of tracking the event alarm of the surveillance video of the camera where the event alarm occurs is: use a target tracking algorithm (generally using sort tracking) to track the target of the surveillance video of the camera that generates the event alarm, if an event alarm occurs, output the tracking identifier corresponding to the event alarm, and obtain the corresponding second event alarm information according to the tracking identifier, and record the timing time when the second event alarm information is obtained; when the merging method of repeated event alarms is applied to the surveillance video of the real-time scene, the specific method of tracking the event alarm of the surveillance video of the camera where the event alarm occurs is: use a target tracking algorithm (generally using sort tracking) to track the target of the surveillance video of the camera that generates the event alarm, and if an event alarm occurs, output the tracking identifier corresponding to the event alarm, and obtain the corresponding second event alarm information according to the tracking identifier, and record the timing time when the second event alarm information is obtained; when the merging method of repeated event alarms is applied to the surveillance video of the real-time scene, the specific method of tracking the event alarm of the camera where the event alarm occurs is: use a target tracking algorithm (generally using sort tracking) to track the target of the surveillance video of the camera that generates the event alarm, and if the event alarm occurs, output the tracking identifier corresponding to the event alarm, and obtain the corresponding second event alarm information according to the tracking identifier, and record the timing time when the second event alarm information is obtained; when the merging method of repeated event alarms is applied to the surveillance video of the real-time scene, the specific method of tracking the event alarm of the camera where the event alarm occurs is: use a target tracking algorithm (generally using sort tracking) to track the target of the surveillance video of the camera that generates the event alarm When the method is applied to surveillance video of a non-real-time scenario, the specific method of tracking event alarms for the surveillance video of a camera where an event alarm occurs is as follows: taking the repeated event alarm reporting period as the time window and the time of obtaining the first event alarm information as the base point, within the time window, using the target detection algorithm to extract the target of the same type of event alarm from the surveillance video of the camera that generates the event alarm, and obtaining the corresponding second event alarm information based on the extracted target; in this embodiment, when an event alarm occurs in the surveillance video of a camera in the monitoring system, it is necessary to track the event alarm in the picture of the camera, wherein, in a real-time scenario, when the camera detects a specific event If an event occurs (such as a pedestrian entering a prohibited area), the monitoring system will record the event alarm and start target tracking on the surveillance video of the camera, and identify and track the target related to the event in the video frame through the target tracking algorithm (such as identifying and tracking pedestrians). If the target tracking algorithm detects the target related to the event alarm in the video, it will output the tracking identifier of the target (such as the ID of the target), and based on the output tracking identifier, the monitoring system obtains the second event alarm information related to the target and ends the timing at the same time; in non-real-time scenarios, the monitoring system uses the reporting period of repeated event alarms as the time window, and takes the time of obtaining the first event alarm information as the base point, within the time window Retrieve and process surveillance video. Specifically, the monitoring system analyzes the surveillance video of the camera through a target detection algorithm (such as yoloV5), and identifies and extracts targets related to the first event alarm information (such as pedestrians who have committed violations again). It also detects and extracts relevant targets within the time window and assigns a unique identifier to each target. Finally, the monitoring system will obtain the second event alarm information related to these targets based on the extracted targets. Different methods of obtaining the second event alarm information are used for different scenarios, which improves the efficiency and accuracy of the monitoring system's response to event alarms and ensures that the system can process and record event alarm information in a timely and effective manner.
[0045] S40, determine whether to merge the event alarm information: in the real-time scenario, determine whether the first event alarm information is consistent with the second event alarm information. If so, merge the event alarm information; if not, generate a new event alarm; in the non-real-time scenario, compare whether the similarity between the first event alarm information and the second event alarm information is greater than 60%. If so, merge the event alarm information; if not, do not merge the event alarm information; specifically, in the real-time scenario, before determining whether the first event alarm information is consistent with the second event alarm information, it is necessary to determine whether the first event alarm information is consistent with the second event alarm information. Whether the timing time when obtaining the second event alarm information exceeds the repeated event alarm reporting cycle, if so, a new event alarm is generated; if not, continue to execute S40; in a non-real-time scenario, the specific method of comparing whether the similarity between the first event alarm information and the second event alarm information is greater than 60% is: using an image comparison algorithm to compare the image of the first event alarm information with the image of the second alarm information; in this embodiment, after the monitoring system obtains the second event alarm information, it is also necessary to determine whether the first event alarm information and the second event alarm information can be merged. In a real-time scenario, it is first determined whether the time from the first event alarm to the acquisition of the second event alarm exceeds the preset repeated event alarm reporting period. If the time has exceeded the repeated event alarm reporting period, it is considered that a new event alarm has been generated; otherwise, S40 is continued to be executed, that is, whether the second event alarm information is consistent with the first event alarm information. If consistent, the first event alarm information and the second event alarm information are merged; if inconsistent, a new event alarm is generated; in a non-real-time scenario, it is only necessary to compare the similarity of the image of the first event alarm information with the image of the second event alarm information. If the similarity is greater than 60%, the two are merged; if it is less than or equal to 60%, they are not merged. Specifically, the monitoring system uses an image comparison algorithm to compare the similarity of the image in the first event alarm information with the image in the second event alarm information; this strategy for determining whether to merge event alarm information ensures that the monitoring system can effectively judge and process event alarm information in different scenarios, taking into account both the needs of real-time response and the accuracy and rationality of non-real-time data processing, so as to optimize the user experience.
[0046] When the present invention is specifically implemented, first, different repeated event alarm reporting cycles are set for different types of event alarms. Then, the conditions for generating event alarms are determined, and the surveillance video is intelligently analyzed. If the event in the surveillance video meets the conditions for generating event alarms, an event alarm is generated, and the first event alarm information is obtained. Then, within the repeated event alarm reporting cycle, the surveillance video of the camera where the event alarm occurs is tracked for event alarms, and the second event alarm information is obtained. Finally, by comparing the first event alarm information with the second event alarm information, it is determined whether to proceed. Merge event alarm information, where, in a real-time scenario, determine whether the first event alarm information is consistent with the second event alarm information. If so, merge the event alarm information; if not, generate a new event alarm; in a non-real-time scenario, compare whether the similarity between the first event alarm information and the second event alarm information is greater than 60%. If so, merge the event alarm information; if not, do not merge the event alarm information; to ensure that repeated event alarms are merged within the repeated event alarm reporting cycle, thereby saving storage space and optimizing user experience.
[0047] Reference Figure 2 As shown, the present invention further provides a device 600 for merging repeated event alarms, which is applied to the method for merging repeated event alarms as described in the above embodiment. The device 600 for merging repeated event alarms includes:
[0048] Event configuration module 601, used to set the repeated event alarm reporting period of different types of events and determine the conditions for generating event alarms;
[0049] Intelligent analysis module 602, used to perform intelligent analysis on the surveillance video of the camera, determine whether the event in the surveillance video meets the conditions for generating an event alarm, and obtain the first event alarm information corresponding to the event alarm when the event alarm is generated;
[0050] An application scenario determination module 603 is used to determine whether the current merging of repeated event alarms is applied to a real-time scenario or a non-real-time scenario;
[0051] The real-time scene processing module 604 is configured to use a target tracking algorithm to track the surveillance video of the camera that generates the event alarm in a real-time scene. If an event alarm occurs, the module outputs a tracking identifier corresponding to the event alarm and obtains corresponding second event alarm information based on the tracking identifier.
[0052] The non-real-time scenario processing module 605 is used to, in a non-real-time scenario, use the repeated event alarm reporting period as a time window and the time when the first event alarm information is obtained as a base point. Within the time window, the module uses a target detection algorithm to extract targets of the same type of event alarm from the surveillance video of the camera that generated the event alarm, obtain corresponding second event alarm information based on the extracted targets, and time the time between obtaining the first event alarm information and obtaining the second event alarm information.
[0053] An event alarm tracking module 606 is used to track the surveillance video of the camera where the event alarm occurs and obtain the second event alarm information;
[0054] The event alarm information comparison module 607 is used to determine whether the time when obtaining the second event alarm information exceeds the repeated event alarm reporting period and whether the first event alarm information is consistent with the second event alarm information in a real-time scenario; in a non-real-time scenario, it is used to compare the first event alarm information with the second event alarm information to determine whether the similarity is greater than 60%;
[0055] The event merging module 608 is used to merge event alarm information.
[0056] It should be noted that the duplicate event alarm merging strategy provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed. That is, the internal structure of the duplicate event alarm merging device 600 will be divided into different functional modules to complete all or part of the functions described above.
[0057] In addition, the apparatus 600 for merging repeated event alarms and the method for merging repeated event alarms provided in the above embodiment belong to the same concept, wherein the specific manner in which each module performs operations has been described in detail in the method embodiment and will not be repeated here.
[0058] Figure 3 The following is a schematic diagram of the structure of an electronic device according to an exemplary embodiment.
[0059] It should be noted that the electronic device is only an example adapted to the present invention and cannot be considered to provide any limitation on the scope of use of the present invention. The electronic device cannot be interpreted as needing to rely on or must have Figure 3 One or more components of exemplary electronic device 2000 are shown.
[0060] The hardware structure of the electronic device 2000 may vary greatly due to different configurations or performances, such as Figure 3As shown, the electronic device 2000 includes a power supply 210 , an interface 230 , at least one memory 250 , and at least one central processing unit (CPU) 270 .
[0061] Specifically, the power supply 210 is used to provide operating voltage for various hardware devices on the electronic device 2000 .
[0062] The interface 230 includes at least one wired or wireless network interface 231 for interacting with external devices. Of course, in other examples adapted by the present invention, the interface 230 may further include at least one serial-to-parallel conversion interface 233, at least one input / output interface 235, and at least one USB interface 237, etc. Figure 3 As shown, this does not constitute a specific limitation.
[0063] The memory 250 serves as a carrier for resource storage and can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon include an operating system 251, application 253 and data 255, etc. The storage method can be temporary storage or permanent storage.
[0064] Among them, the operating system 251 is used to manage and control the various hardware devices and application programs 253 on the electronic device 2000, so as to enable the central processing unit 270 to calculate and process the massive data 255 in the memory 250. It can be WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0065] The application 253 is a computer-readable instruction that performs at least one specific task based on the operating system 251, and may include at least one module ( Figure 3 (not shown), each module may respectively include computer-readable instructions for the electronic device 2000. For example, the device for assessing task priority may be considered as an application 253 deployed on the electronic device 2000.
[0066] The data 255 may be signal information, etc., and is stored in the memory 250 .
[0067] The central processing unit 270 may include one or more processors and is configured to communicate with the memory 250 via at least one communication bus to read computer-readable instructions stored in the memory 250, thereby performing operations and processing on the massive amount of data 255 in the memory 250. For example, the method for merging duplicate event alarms can be implemented by the central processing unit 270 reading a series of computer-readable instructions stored in the memory 250.
[0068] In addition, the present invention can also be implemented through hardware circuits or hardware circuits combined with software. Therefore, the implementation of the present invention is not limited to any specific hardware circuits, software, or combination thereof.
[0069] See also Figure 4 In an embodiment of the present invention, an electronic device 4000 is provided. The electronic device 400 may include: a desktop computer, a laptop computer, a server, etc. with sensor recognition capabilities.
[0070] exist Figure 4 In the embodiment, the electronic device 4000 includes at least one processor 4001 and at least one memory 4003.
[0071] The data exchange between the processor 4001 and the memory 4003 can be achieved through at least one communication bus 4002. The communication bus 4002 may include a path for transmitting data between the processor 4001 and the memory 4003. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0072] Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the number of transceivers 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.
[0073] Processor 4001 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. Processor 4001 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.
[0074] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program instructions or codes in the form of instructions or data structures and can be accessed by the electronic device 400, but is not limited to these.
[0075] Computer-readable instructions are stored in the memory 4003 , and the processor 4001 can read the computer-readable instructions stored in the memory 4003 through the communication bus 4002 .
[0076] The computer-readable instructions are executed by one or more processors 4001 to implement the method for merging repeated event alarms in the above embodiments.
[0077] In addition, an embodiment of the present invention provides a storage medium having computer-readable instructions stored thereon. The computer-readable instructions are executed by one or more processors to implement the method for merging repeated event alarms as described above.
[0078] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A method for merging repeated event alarms, applied to surveillance video of real-time scenes and non-real-time scenes, characterized in that: The method for merging repeated event alarms comprises the following steps: S10, setting different repeated event alarm reporting cycles for different types of event alarms; S20, determining the conditions for generating an event alarm, and performing intelligent analysis on the surveillance video. If the event in the surveillance video meets the conditions for generating an event alarm, an event alarm is generated, and first event alarm information is obtained; wherein the first event alarm information at least includes the event name, event source, event address, event level, start time, end time, event status, event short video, and event screenshot; and when the repeated event alarm merging method is applied to the surveillance video of the real-time scene and an event alarm is generated, the repeated event alarm reporting period starts timing; S30, tracking the event alarm of the surveillance video of the camera where the event alarm occurs, and obtaining the second event alarm information; wherein, when the method for merging repeated event alarms is applied to the surveillance video of the real-time scene, the specific method for tracking the event alarm of the surveillance video of the camera where the event alarm occurs is: using a target tracking algorithm to track the target of the surveillance video of the camera that generates the event alarm, if an event alarm occurs, outputting a tracking identifier corresponding to the event alarm, and obtaining the corresponding second event alarm information according to the tracking identifier, and recording the timing time when the second event alarm information is obtained; when the method for merging repeated event alarms is applied to the surveillance video of the non-real-time scene, the specific method for tracking the event alarm of the surveillance video of the camera where the event alarm occurs is: using the repeated event alarm reporting period as the time window, and the time for obtaining the first event alarm information as the base point, within the time window, using a target detection algorithm to extract the target of the same type of event alarm from the surveillance video of the camera that generates the event alarm, and obtaining the corresponding second event alarm information according to the extracted target; S40, determine whether to merge the event alarm information: in the real-time scenario, determine whether the first event alarm information is consistent with the second event alarm information. If so, merge the event alarm information; if not, generate a new event alarm; in the non-real-time scenario, compare whether the similarity between the first event alarm information and the second event alarm information is greater than 60%. If so, merge the event alarm information; if not, do not merge the event alarm information.
2. A method for merging repeated event alarms according to claim 1, characterized in that: In step S40, in a real-time scenario, before determining whether the first event alarm information is consistent with the second event alarm information, it is also necessary to determine whether the timing time when obtaining the second event alarm information exceeds the repeated event alarm reporting cycle. If so, a new event alarm is generated; if not, continue to execute S40.
3. A method for merging repeated event alarms according to claim 2, characterized in that: In step S40, in a non-real-time scenario, the specific method of comparing whether the similarity between the first event alarm information and the second event alarm information is greater than 60% is: using an image comparison algorithm to compare the image of the first event alarm information with the image of the second alarm information.
4. A device for merging repeated event alarms, applied to a method for merging repeated event alarms as claimed in any one of claims 1 to 3, characterized in that: The merging device of the repeated event alarms comprises: The event configuration module is used to set the reporting period of repeated event alarms for different types of events and determine the conditions for generating event alarms; The intelligent analysis module is used to perform intelligent analysis on the surveillance video of the camera, determine whether the event in the surveillance video meets the conditions for generating an event alarm, and obtain the first event alarm information corresponding to the event alarm when the event alarm is generated; An application scenario determination module, used to determine whether the current repeated event alarm is combined and applied to a real-time scenario or a non-real-time scenario; The real-time scene processing module is used to use a target tracking algorithm to track the surveillance video of the camera that generates the event alarm in the real-time scene. If an event alarm occurs, the tracking identifier corresponding to the event alarm is output, and the corresponding second event alarm information is obtained according to the tracking identifier; A non-real-time scene processing module is used to extract targets of the same type of event alarms from the surveillance video of the camera that generates the event alarm in a non-real-time scene, using the repeated event alarm reporting period as a time window and the time of obtaining the first event alarm information as a base point, and to obtain the corresponding second event alarm information according to the extracted target, and to time the time between obtaining the first event alarm information and obtaining the second event alarm information; An event alarm tracking module is used to track the surveillance video of the camera where the event alarm occurs and obtain the second event alarm information; The event alarm information comparison module is used to determine whether the timing time for obtaining the second event alarm information exceeds the repeated event alarm reporting cycle and whether the first event alarm information is consistent with the second event alarm information in a real-time scenario; in a non-real-time scenario, it is used to compare whether the similarity between the first event alarm information and the second event alarm information is greater than 60%; The event merging module is used to merge event alarm information.
5. An electronic device, characterized in that: comprises at least one processor and at least one memory, wherein: The memory has computer-readable instructions stored thereon; The computer-readable instructions are executed by one or more processors, so that the electronic device implements the method for merging repeated event alarms as described in any one of claims 1-3.
6. A storage medium having computer-readable instructions stored thereon, characterized in that: The computer-readable instructions are executed by one or more processors to implement the method for merging repeated event alarms as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Service alarm information processing method and device, electronic equipment and storage medium
CN116737765A
Alarm event processing method and device, nonvolatile storage medium and electronic equipment
CN118115939A
