Video surveillance system event detection method and device

By automatically acquiring and comparing the core process information of the primary and backup servers in the video surveillance system, the problem of low efficiency in manual analysis is solved, and timely and accurate detection of primary and backup switching events is achieved, ensuring system stability.

CN122090337APending Publication Date: 2026-05-26GUANGXI JIAOKONG ZHIWEI TECH DEV CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGXI JIAOKONG ZHIWEI TECH DEV CO LTD
Filing Date
2025-12-30
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In existing video surveillance systems, the handling of primary/backup server switching events relies on manual analysis, which is inefficient, leads to long problem localization times, and affects system stability.

Method used

By acquiring the core process information of each primary and backup server in the video surveillance system, the system automatically determines primary/backup switchover events, generates event detection results, and uses a preset detection cycle and automatic acquisition plugin to acquire core process information, achieving automatic detection without the need for manual item-by-item analysis.

Benefits of technology

It enables timely and accurate detection of master/slave switchover events, improves detection efficiency, and ensures the stable operation of the video surveillance system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122090337A_ABST
    Figure CN122090337A_ABST
Patent Text Reader

Abstract

This invention provides a method and apparatus for event detection in a video surveillance system. The method includes: acquiring core process information of each primary and backup server in the video surveillance system, wherein the primary and backup servers include a primary server and a backup server with a redundant backup relationship with the primary server; determining whether a primary / backup switchover event exists for each of the primary and backup servers in the video surveillance system based on the core process information at the previous moment and the core process information at the current moment; and generating a corresponding event detection result based on the primary / backup server where the switchover event occurred if there is a primary / backup server in the video surveillance system. This invention effectively solves the problem of low efficiency in manual event detection and can detect primary / backup switchover events more promptly and accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of rail transit technology, and in particular to an event detection method and apparatus for a video surveillance system. Background Technology

[0002] The video surveillance system deploys multiple primary and backup servers in the main control center and backup control center. These servers carry the core business of the video surveillance system. As the superior domain of the video management servers in each station and vehicle depot, the primary and backup servers have built a comprehensive management platform to manage all video surveillance equipment, including front-end cameras, video analysis servers, decoders, video storage devices, and monitoring terminals. It has important functions such as real-time image viewing of lower-level domains, video retrieval and playback, PTZ control, and alarm management.

[0003] The failover of the central server in a video surveillance system is a crucial step in ensuring the system's continuous and stable operation. When the primary server fails or requires maintenance, the backup server can quickly take over the services, ensuring uninterrupted video surveillance operations. Currently, handling failover events in communication-specific video surveillance systems primarily relies on manual analysis and location. This requires maintenance personnel to meticulously check, compare, and analyze relevant data one by one, a tedious and inefficient process that often takes a considerable amount of time from event occurrence to problem identification. Furthermore, completing the analysis and location of failover events requires maintenance personnel with extensive experience and professional knowledge. When system failures or anomalies occur, the speed of manual analysis often cannot keep up with the frequency of events, leading to unresolved problems in the video surveillance system, potentially affecting its normal operation and posing a potential threat to operational security.

[0004] Therefore, there is an urgent need for a video surveillance system event detection method and device to solve the above problems. Summary of the Invention

[0005] To address the problems existing in the prior art, the present invention provides a method and apparatus for event detection in a video surveillance system.

[0006] This invention provides an event detection method for a video surveillance system, comprising: Obtain the core process information of each primary and backup server in the video surveillance system, wherein the primary and backup servers include the primary server and the backup server that has a redundant backup relationship with the primary server; Based on the core process information at the previous moment and the core process information at the current moment, determine whether there is a primary / backup switchover event for each of the primary and backup servers in the video surveillance system; If the video surveillance system has a primary or backup server where the primary / backup switchover event occurred, then a corresponding event detection result is generated based on the primary or backup server where the primary / backup switchover event occurred.

[0007] According to the present invention, an event detection method for a video surveillance system includes obtaining core process information of each primary and backup server in the video surveillance system, comprising: Based on the server type of each primary and backup server in the video surveillance system, the preset detection period of each primary and backup server is determined. Based on the preset detection period, the core process information of each primary and backup server in the video surveillance system is obtained within the current preset detection period.

[0008] According to the present invention, a video surveillance system event detection method, the specific detection process of determining whether a master / slave switchover event exists in each of the master / slave servers in the video surveillance system based on the core process information at the previous moment and the core process information at the current moment includes: The core process information at the previous moment and the core process information at the current moment are judged, and based on the judgment result, the primary and backup servers that have a first process number greater than a second process number at the previous moment and a first process number less than a second process number at the current moment are determined as target primary and backup servers. Wherein, the first number of processes is the number of processes corresponding to the primary server in the primary and backup servers, the second number of processes is the number of processes corresponding to the backup server in the primary and backup servers, and the target primary and backup servers are the primary and backup servers that have experienced the primary and backup switchover event at the current time.

[0009] According to the event detection method for a video surveillance system provided by the present invention, the step of obtaining the core process information of each primary and backup server in the video surveillance system further includes: Based on the preset detection period and the automatic acquisition plugin, the core process information of each of the primary and backup servers in the video surveillance system is obtained. Each of the primary and backup servers is equipped with a corresponding automatic acquisition plugin, which is used to collect the status of the core processes of the primary and backup servers.

[0010] According to the event detection method for a video surveillance system provided by the present invention, the server types of the primary and backup servers include at least a security management server, a docking server, a storage host server, a storage disaster recovery server, a video management server, a backup video management server, a video analysis server, and a network management server.

[0011] According to a video surveillance system event detection method provided by the present invention, after generating a corresponding event detection result based on the primary / backup server where the primary / backup switchover event occurred in the video surveillance system, the method further includes: If it is determined that the number of the first process at the current moment is less than the number of the second process, and the number of the first process at the next moment is greater than the number of the second process, then it is determined that the currently running server in the target primary and backup servers has been switched from the backup server to the primary server.

[0012] The present invention also provides an event detection device for a video surveillance system, comprising: The process status acquisition module is used to acquire the core process information of each primary and backup server in the video surveillance system. The primary and backup servers include the primary server and the backup server that has a redundant backup relationship with the primary server. The event monitoring module is used to determine whether there is a master-slave switchover event in each of the master and slave servers in the video surveillance system based on the core process information at the previous moment and the core process information at the current moment. The event detection module is used to generate a corresponding event detection result based on the primary and backup servers that have experienced the primary / backup switchover event in the video surveillance system.

[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the video surveillance system event detection method as described above.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the video surveillance system event detection method as described above.

[0015] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the video surveillance system event detection method as described above.

[0016] The video surveillance system event detection method and apparatus provided by this invention obtains the core process information of each primary and backup server in the video surveillance system, and then compares the core process information of the previous moment with the current moment to determine whether there is a primary / backup switchover event for each primary / backup server. Based on the primary and backup servers where a primary / backup switchover event has occurred, corresponding event detection results are generated. Thus, the primary / backup server switchover event in the video surveillance system is automatically determined through the core process information, without the need for manual analysis item by item. This effectively solves the problem of low efficiency in manual event detection and enables more timely and accurate detection of primary / backup switchover events. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating the event detection method for a video surveillance system provided by the present invention. Figure 2 This is a schematic diagram of the structure of the event detection device for the video surveillance system provided by the present invention; Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0020] Figure 1 This is a flowchart illustrating the event detection method for a video surveillance system provided by the present invention, as shown below. Figure 1 As shown, the present invention provides an event detection method for a video surveillance system, comprising: Step 101: Obtain the core process information of each primary and backup server in the video surveillance system. The primary and backup servers include the primary server and the backup server that has a redundant backup relationship with the primary server.

[0021] In this invention, for the operation and maintenance management of primary and backup servers in a video surveillance system, in order to achieve effective monitoring and primary / backup switchover event detection, self-collection plugins can be installed on the primary and backup servers. These plugins have a timed collection function, which will collect the status information of the core processes of each primary and backup server at set time intervals.

[0022] In this invention, the primary and backup servers comprise a primary server and a backup server with which there is redundancy. By collecting the core process status of the primary and backup servers, the core process information of each primary and backup server in the video surveillance system can be obtained.

[0023] Step 102: Based on the core process information at the previous moment and the core process information at the current moment, determine whether there is a master-slave switchover event for each of the master and backup servers in the video surveillance system. In this invention, after obtaining the core process information of each primary and backup server in the video surveillance system, the core process information from the previous moment and the current moment is used to determine whether a primary / backup switchover event has occurred. Typically, the primary server undertakes the main business processing tasks, and its core process count is more than 80% higher than that of the backup server. This invention determines whether a primary / backup switchover event has occurred in the video surveillance system by comparing the number of core processes of each primary and backup server at different times. Specifically, when the primary server switches to the backup server, the number of core processes corresponding to the primary server decreases rapidly, while the number of core processes corresponding to the backup server increases rapidly. By monitoring this change in the number of core processes, the switchover situation between the primary and backup servers can be identified, thereby determining whether a primary / backup switchover event has occurred in the video surveillance system. In this invention, the number of online core processes of the backup control center is usually more than 80% lower than the number of online core processes of the primary control center. Taking the docking server as an example, before the primary-backup switch, the primary control docking server has 12 core processes and the backup control docking server has 1 core process. After the primary-backup switch event occurs, the number of online core processes of the primary and backup docking servers is reversed. At this time, the number of online core processes of the primary control docking server is more than 93% lower than that of the backup control docking server.

[0024] Step 103: If there is a primary / backup server in the video surveillance system where the primary / backup switchover event occurred, then generate a corresponding event detection result based on the primary / backup server where the primary / backup switchover event occurred.

[0025] In this invention, if a primary / standby server in the video surveillance system is found to have experienced a primary / standby switchover event by comparing core process information, then corresponding event detection results will be generated based on these servers. This event detection result clearly indicates which set of primary / standby servers has switched over, providing accurate information for operations and maintenance personnel to take timely measures to ensure the stable operation of the video surveillance system. For example, operations and maintenance personnel can use the detection results to check the operating status of the switched-over servers, ensuring that services can be processed normally, and simultaneously troubleshooting and repairing servers that may have problems.

[0026] The video surveillance system event detection method provided by this invention obtains the core process information of each primary and backup server in the video surveillance system, and then compares the core process information of the previous moment with the current moment to determine whether there is a primary / backup switchover event for each primary / backup server. Based on the primary and backup servers where a primary / backup switchover event has occurred, corresponding event detection results are generated. Thus, the primary / backup server switchover event in the video surveillance system is automatically determined through core process information, without the need for manual analysis item by item. This effectively solves the problem of low efficiency in manual event detection and enables more timely and accurate detection of primary / backup switchover events.

[0027] Based on the above embodiments, obtaining the core process information of each primary and backup server in the video surveillance system includes: Based on the server type of each primary and backup server in the video surveillance system, the preset detection period of each primary and backup server is determined. Based on the preset detection period, the core process information of each primary and backup server in the video surveillance system is obtained within the current preset detection period.

[0028] In this invention, different primary and backup servers in the video surveillance system undertake different business functions, and their server types also vary. For example, some primary and backup servers are responsible for handling video stream acquisition and transmission, while others focus on video data storage and management, and still others are responsible for tasks such as video analysis. Different types of servers vary in the complexity of their business processing, the size of their data traffic, and their impact on system stability.

[0029] Based on the above embodiments, the server types of the primary and backup servers include at least a security management server, a docking server, a storage host server, a storage disaster recovery server, a video management server, a backup video management server, a video analysis server, and a network management server.

[0030] In this invention, different types of primary and backup servers in the video surveillance system undertake different responsibilities, jointly ensuring the stable operation of the video surveillance system. The security management server is primarily responsible for formulating security policies, managing user permissions, and conducting security audits. The interface server is mainly used to enable data interaction and integration between the video surveillance system and other related systems (such as alarm systems and access control systems). It integrates and transforms information from different systems, enabling collaborative work and achieving more efficient monitoring and management. The storage host server is the core of the video surveillance system's data storage, responsible for receiving and storing large amounts of video data, which may come from various surveillance cameras. The storage host server needs high-capacity, high-performance storage capabilities to ensure long-term, stable storage of video data for easy retrieval and playback. The storage disaster recovery server is set up to address potential failures or data loss in the storage host server. It can back up the data on the storage host server in real time or periodically. When the storage host server encounters a problem, the storage disaster recovery server can quickly take over the data storage task, ensuring the integrity and availability of video data and preventing data loss from affecting monitoring operations. The video management server is responsible for managing and configuring the video devices throughout the system, including adding and deleting cameras, setting parameters, and allocating and scheduling video streams. The backup video management server serves as a redundant backup. When the main video management server fails or requires maintenance, the backup server immediately takes over, ensuring that the management and control functions of the video surveillance system remain unaffected and guaranteeing continuous and stable operation. The video analysis server performs real-time analysis of the acquired video data, enabling functions such as target detection, behavior analysis, and event alerts. The network management server is primarily responsible for monitoring and managing the network devices and connections of the video surveillance system. It can monitor network status in real time, including network bandwidth usage and device connection status, promptly identifying and resolving network faults to ensure stable and efficient transmission of video data over the network and guarantee the network communication quality of the entire video surveillance system.

[0031] Based on the characteristics of these server types, this invention determines a preset detection cycle for each primary and backup server. The preset detection cycle refers to the time interval for collecting core process information from the primary and backup servers. For servers with complex business processes, large data traffic, and extremely high system stability requirements, a shorter preset detection cycle may be set, such as performing a detection every 1-2 seconds, to promptly identify potential problems. For servers with relatively simple business processes, smaller data traffic, and less impact on system stability, the preset detection cycle can be appropriately extended, such as performing a detection every 5-10 seconds. This can reduce unnecessary resource consumption while ensuring the effectiveness of system monitoring.

[0032] After determining the preset detection period for each primary and backup server, core process information is acquired according to these periods. Within each preset detection period, this invention collects relevant information about the core processes of each primary and backup server in the video surveillance system based on the corresponding acquisition mechanism. The core process information includes the process's running status (such as whether it is running normally or whether any abnormalities have occurred), the process's resource usage (such as CPU utilization and memory usage), etc.

[0033] For example, for a primary and backup server with a preset detection cycle of 5 seconds, the core process information of the server is automatically collected every second. By continuously acquiring this core process information, the operating status of each primary and backup server can be understood in real time, providing data support for subsequent operation and maintenance operations such as determining whether a primary / backup switchover event has occurred, thereby ensuring the stable operation of the video surveillance system.

[0034] Based on the above embodiments, the specific detection process for determining whether a master / slave switchover event exists in each of the master and backup servers in the video surveillance system, based on the core process information at the previous moment and the core process information at the current moment, includes: The core process information at the previous moment and the core process information at the current moment are judged, and based on the judgment result, the primary and backup servers that have a first process number greater than a second process number at the previous moment and a first process number less than a second process number at the current moment are determined as target primary and backup servers. Wherein, the first number of processes is the number of processes corresponding to the primary server in the primary and backup servers, the second number of processes is the number of processes corresponding to the backup server in the primary and backup servers, and the target primary and backup servers are the primary and backup servers that have experienced the primary and backup switchover event at the current time.

[0035] In this invention, for the operation and maintenance management of a video surveillance system, in order to promptly detect switchover events between primary and backup servers, the core process information of the previous and current moments is analyzed and judged. The core process information includes the number of processes corresponding to the primary server and the backup server. This invention defines the number of processes corresponding to the primary server as the first process count, and the number of processes corresponding to the backup server as the second process count.

[0036] Furthermore, compare the number of first and second processes at the previous and current times. Specifically, examine the relationship between the number of first and second processes at the previous time and the relationship between the number of these two processes at the current time. This comparison allows for the keen detection of changes in the number of processes between the primary and backup servers, thus inferring whether a primary / backup switchover event has occurred. When there is a situation where the number of first processes at the previous time is greater than the number of second processes, and the number of first processes at the current time is less than the number of second processes, this group of primary and backup servers can be identified as the target primary / backup server group.

[0037] In this invention, a higher number of processes on the primary server at a previous time indicates that it is handling the main business processing tasks. At the current time, the number of processes on the primary server decreases while the number of processes on the backup server increases. This typically indicates that business has shifted from the primary server to the backup server, i.e., a primary / backup switchover event has occurred. For example, suppose at the previous time t-1, the primary server had 12 first processes and the backup server had 1 second process; at the current time t, the primary server's first process count becomes 1 and the backup server's second process count becomes 12. This significant change in process count meets the aforementioned judgment condition, thus identifying this group of primary and backup servers as the target primary / backup servers—that is, the primary / backup servers where a primary / backup switchover event has occurred at the current time. This judgment mechanism accurately identifies the primary / backup servers that have experienced a switchover event, enabling subsequent appropriate maintenance measures to ensure the stable operation of the video surveillance system.

[0038] Based on the above embodiments, obtaining the core process information of each primary and backup server in the video surveillance system further includes: Based on the preset detection period and the automatic acquisition plugin, the core process information of each of the primary and backup servers in the video surveillance system is obtained. Each of the primary and backup servers is equipped with a corresponding automatic acquisition plugin, which is used to collect the status of the core processes of the primary and backup servers.

[0039] In this invention, to effectively monitor the operational status of the primary and backup servers and promptly identify potential problems, a method based on a preset detection period and an automatic data acquisition plugin is used to obtain the core process information of each primary and backup server. The preset detection period is a pre-defined time interval that determines how often the core process information of the primary and backup servers is acquired. In this invention, different primary and backup servers may have different preset detection periods due to their varying business importance and operational characteristics. For example, for primary and backup servers undertaking critical video storage tasks, a shorter detection period may be set, such as acquiring information every 1-2 seconds; while for some backup servers with relatively lower business pressure, the detection period can be appropriately extended, such as acquiring information every 5-10 seconds.

[0040] Automatic data acquisition plugins are key tools installed on each primary and backup server. Their main function is to collect the status of the core processes of these servers. These plugins run automatically according to a preset detection cycle, collecting relevant information about the core processes, such as their running status (whether they are running normally, whether they are experiencing lag or crashes, etc.) and resource usage (CPU utilization, memory usage, etc.). The collected information is transmitted to the monitoring system for analysis and processing by maintenance personnel. In this invention, the automatic data acquisition plugins can be Prometheus Exporter plugins, Nagios Plugins plugins, etc. Through these plugins, combined with the preset detection cycle, the video surveillance system can efficiently and accurately obtain core process information from each primary and backup server, providing strong support for the stable operation of the video surveillance system.

[0041] Based on the above embodiments, after generating corresponding event detection results based on the primary / backup servers that have experienced the primary / backup switchover event in the video surveillance system, the method further includes: If it is determined that the number of the first process at the current moment is less than the number of the second process, and the number of the first process at the next moment is greater than the number of the second process, then it is determined that the currently running server in the target primary and backup servers has been switched from the backup server to the primary server.

[0042] In this invention, the primary server typically undertakes the main business processing tasks, while the backup server is in standby mode. When the primary server fails or requires maintenance, the backup server takes over the business. The first process count refers to the number of processes corresponding to the primary server, and the second process count refers to the number of processes corresponding to the backup server. The number of processes reflects, to some extent, the workload of the server currently handling business processing tasks.

[0043] In this invention, the number of first and second processes on the primary and backup servers is continuously monitored at different times. When it is detected that the number of first processes is less than the number of second processes at the current time, this indicates that the number of processes on the backup server is greater than that on the primary server, suggesting that business is being transferred from the primary server to the backup server, or that the backup server has begun to undertake more business processing tasks. Furthermore, by comparing the number of first and second processes at the next time step, if the number of first processes is found to be greater than the number of second processes at the next time step, that is, the number of processes on the primary server exceeds that on the backup server, this pattern of process number change indicates a change in the server's operating state. Based on the process number changes at these two time steps, it can be determined that the currently running server among the target primary and backup servers has been switched from the backup server to the primary server. For example, suppose that at a certain time t, due to some fault, the business handled by the primary server gradually shifts to the backup server. At this time, the number of processes on the backup server (second process number) begins to increase, exceeding the number of processes on the primary server (first process number). After a period of switching operations, at time t+1, the backup server successfully switches to the primary server, the primary server begins to normally handle the main business, and its process number gradually recovers to a higher level, exceeding that of the previous backup server. By monitoring changes in the number of such processes, it's possible to accurately determine when a backup server has switched to the primary server. This mechanism helps operations and maintenance personnel understand changes in the server's operational status in a timely manner, enabling them to take appropriate measures to ensure the stable operation of the video surveillance system.

[0044] The video surveillance system event detection device provided by the present invention is described below. The video surveillance system event detection device described below can be referred to in correspondence with the video surveillance system event detection method described above.

[0045] Figure 2 This is a schematic diagram of the structure of the event detection device for the video surveillance system provided by the present invention, as shown below. Figure 2 As shown, the present invention provides an event detection device for a video surveillance system, including a process status acquisition module 201, an event monitoring module 202, and an event detection module 203. The process status acquisition module 201 is used to acquire core process information of each primary and backup server in the video surveillance system, wherein the primary and backup servers include a primary server and a backup server with a redundant backup relationship to the primary server. The event monitoring module 202 is used to determine whether a primary / backup switchover event exists for each of the primary and backup servers in the video surveillance system based on the core process information at the previous moment and the core process information at the current moment. The event detection module 203 is used to generate a corresponding event detection result based on the primary / backup server that has experienced the primary / backup switchover event if such an event occurs in the video surveillance system.

[0046] The video surveillance system event detection device provided by this invention obtains the core process information of each primary and backup server in the video surveillance system, and then compares the core process information of the previous moment with the current moment to determine whether there is a primary / backup switchover event for each primary / backup server. Based on the primary and backup servers where a primary / backup switchover event has occurred, corresponding event detection results are generated. Thus, the primary / backup server switchover event in the video surveillance system is automatically determined through core process information, eliminating the need for manual analysis item by item. This effectively solves the problem of low efficiency in manual event detection and enables more timely and accurate detection of primary / backup switchover events.

[0047] The apparatus provided in this embodiment of the invention is used to execute the above-described method embodiments. For specific processes and details, please refer to the above embodiments, which will not be repeated here.

[0048] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 3 As shown, the electronic device may include: a processor 301, a communications interface 302, a memory 303, and a communication bus 304, wherein the processor 301, communications interface 302, and memory 303 communicate with each other through the communication bus 304. The processor 301 can call logical instructions in the memory 303 to execute a video surveillance system event detection method. The method includes: acquiring core process information of each primary and backup server in the video surveillance system, wherein the primary and backup servers include a primary server and a backup server with a redundant backup relationship with the primary server; determining whether a primary / backup switchover event exists for each of the primary and backup servers in the video surveillance system based on the core process information at the previous moment and the core process information at the current moment; if there are primary and backup servers in the video surveillance system where the primary / backup switchover event has occurred, generating a corresponding event detection result based on the primary and backup servers where the primary / backup switchover event has occurred.

[0049] Furthermore, the logical instructions in the aforementioned memory 303 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0050] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein when the program instructions are executed by a computer, the computer is able to execute the video surveillance system event detection method provided by the above methods, the method comprising: acquiring core process information of each primary and backup server in the video surveillance system, wherein the primary and backup servers include a primary server and a backup server having a redundant backup relationship with the primary server; determining whether there is a primary / backup switchover event for each of the primary and backup servers in the video surveillance system based on the core process information at the previous moment and the core process information at the current moment; if there is a primary / backup server in the video surveillance system that has experienced the primary / backup switchover event, then generating a corresponding event detection result based on the primary / backup server that experienced the primary / backup switchover event.

[0051] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program is implemented to perform the video surveillance system event detection method provided in the above embodiments. The method includes: acquiring core process information of each primary and backup server in the video surveillance system, wherein the primary and backup servers include a primary server and a backup server that has a redundant backup relationship with the primary server; determining whether a primary / backup switchover event exists for each of the primary and backup servers in the video surveillance system based on the core process information at the previous moment and the core process information at the current moment; and generating a corresponding event detection result based on the primary and backup servers that have experienced the primary / backup switchover event in the video surveillance system if the primary / backup server in the video surveillance system has experienced the primary / backup switchover event.

[0052] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0053] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0054] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for event detection in a video surveillance system, characterized in that, include: Obtain the core process information of each primary and backup server in the video surveillance system, wherein the primary and backup servers include the primary server and the backup server that has a redundant backup relationship with the primary server; Based on the core process information at the previous moment and the core process information at the current moment, determine whether there is a primary / backup switchover event for each of the primary and backup servers in the video surveillance system; If the video surveillance system has a primary or backup server where the primary / backup switchover event occurred, then a corresponding event detection result is generated based on the primary or backup server where the primary / backup switchover event occurred.

2. The video surveillance system event detection method according to claim 1, characterized in that, The acquisition of core process information for each primary and backup server in the video surveillance system includes: Based on the server type of each primary and backup server in the video surveillance system, the preset detection period of each primary and backup server is determined. Based on the preset detection period, the core process information of each primary and backup server in the video surveillance system is obtained within the current preset detection period.

3. The video surveillance system event detection method according to claim 1, characterized in that, The specific detection process for determining whether a master / slave failover event exists in each of the master and backup servers in the video surveillance system based on the core process information of the previous moment and the core process information of the current moment includes: The core process information at the previous moment and the core process information at the current moment are judged, and based on the judgment result, the primary and backup servers that have a first process number greater than a second process number at the previous moment and a first process number less than a second process number at the current moment are determined as target primary and backup servers. Wherein, the first number of processes is the number of processes corresponding to the primary server in the primary and backup servers, the second number of processes is the number of processes corresponding to the backup server in the primary and backup servers, and the target primary and backup servers are the primary and backup servers that have experienced the primary and backup switchover event at the current time.

4. The video surveillance system event detection method according to claim 2, characterized in that, The acquisition of core process information of each primary and backup server in the video surveillance system also includes: Based on the preset detection period and the automatic acquisition plugin, the core process information of each of the primary and backup servers in the video surveillance system is obtained. Each of the primary and backup servers is equipped with a corresponding automatic acquisition plugin, which is used to collect the status of the core processes of the primary and backup servers.

5. The video surveillance system event detection method according to claim 1, characterized in that, The primary and backup servers include at least the following server types: security management server, docking server, storage host server, storage disaster recovery server, video management server, backup video management server, video analysis server, and network management server.

6. The video surveillance system event detection method according to claim 3, characterized in that, If a primary / backup server exists in the video surveillance system where the primary / backup switchover event has occurred, after generating a corresponding event detection result based on the primary / backup server where the primary / backup switchover event occurred, the method further includes: If it is determined that the number of the first process at the current moment is less than the number of the second process, and the number of the first process at the next moment is greater than the number of the second process, then it is determined that the currently running server in the target primary and backup servers has been switched from the backup server to the primary server.

7. An event detection device for a video surveillance system, characterized in that, include: The process status acquisition module is used to acquire the core process information of each primary and backup server in the video surveillance system. The primary and backup servers include the primary server and the backup server that has a redundant backup relationship with the primary server. The event monitoring module is used to determine whether there is a master-slave switchover event in each of the master and slave servers in the video surveillance system based on the core process information at the previous moment and the core process information at the current moment. The event detection module is used to generate a corresponding event detection result based on the primary and backup servers that have experienced the primary / backup switchover event in the video surveillance system.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the video surveillance system event detection method as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the video surveillance system event detection method as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the video surveillance system event detection method as described in any one of claims 1 to 6.