Distributed monitoring video stream exception handling method and system based on RAID (Redundant Array of Independent Disks)

Through RAID5 multi-disk array and microservice architecture, combined with OpenCV exception monitoring, the security and availability issues of the surveillance video stream storage system are solved, effective processing and notification of video stream exceptions are achieved, and the stability and security of the system are improved. .

CN118612418AActive Publication Date: 2024-09-06AGRI BANK OF CHINA WEINAN JINGHE OFFICE
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411077160.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-09-06
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

Existing surveillance video stream storage systems have data security and availability problems, especially in highly confidential areas. A single storage solution has the risk of information leakage and data loss, and lacks effective exception handling and notification capabilities, resulting in the possibility of critical information being lost. lost.

Method used

Adopt a RAID-based distributed monitoring video stream exception processing method, realize data redundancy and fault recovery through RAID5 multi-disk array storage and microservice architecture, and combine with OpenCV for video stream exception monitoring and processing to provide full-link security. and self-healing capabilities.

Benefits of technology

It improves the security and availability of monitored video streams, ensures no data loss, can effectively identify and handle different types of video stream anomalies, and improves the effect of video stream anomaly monitoring and the stability and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612418A
    Figure CN118612418A
Patent Text Reader

Abstract

The invention provides an RAID-based distributed monitoring video stream exception handling method and system, and the method comprises the steps: employing an RAID technology, enabling monitoring video data to be distributed on a plurality of disks, achieving the data redundancy and fault tolerance, and guaranteeing the availability of the monitoring video data; the distributed high-availability video stream monitoring system is constructed in a micro-service mode, monitoring service, alarm service and data storage are all constructed in a distributed mode, monitoring is subjected to long-term inspection, abnormal conditions are processed in a classified mode, and when it is found that different types of abnormal conditions exist in monitoring, message reminding is carried out in a mail, mobile phone, short message and nailing mode. While the monitoring stability is ensured, the stability of the monitoring system can be normally ensured due to the high availability characteristic of the micro-service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a disk storage RAID array storage data processing technology, and in particular to a RAID-based distributed monitoring video stream exception processing method. Background Art

[0002] With the increasing demand for security from individuals and businesses, the widespread use of surveillance systems, while providing a sense of security, also creates issues that often go unnoticed: the security and stability of the surveillance systems themselves. For example, after an incident, inspectors reviewing surveillance video footage for evidence may discover it's missing or recording anomalies. This can hinder the resolution of a case where favorable evidence is lacking. This situation significantly impacts work efficiency and poses significant security risks.

[0003] To handle, identify, and resolve exceptions in surveillance video streams, some basic methods and functions are currently available. For example, many camera manufacturers support cloud disk storage and NAS storage. These methods primarily address video storage security and ensure video availability. However, they also have some drawbacks, primarily in the following areas: First, cloud storage is equivalent to storing the monitoring content on the cloud. For some sensitive areas, such as highly confidential areas, some confidential information may be seen in the monitoring. There is a risk of information leakage when storing it on the cloud because the data is transmitted through the network. Confidential departments generally have intranets that are not connected to the external network, so there are limitations. Secondly, after being stored on the network, the security of the data will be the responsibility of the relevant cloud storage company, and the security of highly confidential areas will not be guaranteed.

[0004] Secondly, NAS storage generally only supports a single data disk to store surveillance videos. If there is a problem with the NAS, the retained video data will also be burned.

[0005] Third, there is currently no complete video stream exception processing monitoring system to conduct inspections on abnormal monitoring video streams, resulting in some monitoring videos being unusable after being recorded, which wastes both time and space and has no practical value.

[0006] Fourth, when the monitoring video stream is abnormal, the existing systems have no effective notification capabilities and no self-repair capabilities, resulting in a long gap between the monitoring video anomaly and the personnel discovering the anomaly, which may lead to the loss of key information.

[0007] Therefore, the current technical methods and systems cannot completely solve the security and availability issues of surveillance video streams, and further improvements and innovations are needed to solve the problem of abnormal surveillance video streams. Summary of the Invention

[0008] One of the inventive purposes of the present invention is to provide a distributed monitoring video stream exception handling method and system based on RAID. The method and system utilize data distributed storage through RAID technology to transform the originally unstable video monitoring system with certain security risks into a service with higher security and stronger data availability. For the stable storage of such critical underlying data, the service architecture is specially optimized and upgraded, which is equivalent to having complete protection for the entire link. Thus, after having a more stable data storage base, the present invention can greatly improve the credibility and availability level of the overall security service compared to the traditional single storage video monitoring service. It is used for security monitoring issues in daily key areas to ensure that monitoring is available and data is not lost.

[0009] Another object of the present invention is to provide a distributed monitoring video stream exception processing method and system based on RAID, which identifies and processes different exception types separately, and handles monitoring equipment exceptions including the video stream itself, video verification exceptions, video content exceptions and custom verification exceptions based on actual needs. Therefore, the video exception monitoring of the present invention has global exception monitoring, which improves the effect of video stream exception monitoring.

[0010] Another inventive goal of this invention is to create a service structured around a microservices architecture that supports distributed, highly available deployments, as well as the ability to break down some components. This allows for modular reconfiguration of different monitoring requirements, more closely aligned with actual customer scenarios. Multiple backup services are also available to address various unexpected situations. This architectural upgrade and optimization compared to traditional video surveillance services makes the overall monitoring system more stable and efficient in handling video stream anomalies.

[0011] Another purpose of the present invention is to use OpenCV to acquire video streams for monitoring, and then use the system of the present invention to monitor video stream anomalies, such as video quality and stream interruptions. Image processing algorithms, motion detection algorithms, and calculation of differences between image frames are used to determine abnormalities in frame content, making anomaly monitoring more accurate.

[0012] In order to achieve at least one of the above-mentioned objects, the present invention provides a method for handling abnormalities in a distributed surveillance video stream based on RAID, the method comprising: Build a RAID5 multi-disk array storage and video stream monitoring system to store monitoring video data and monitor abnormal status of video streams; In the RAID5 multi-disk array storage, data redundancy and fault recovery services for distributed video streams are provided through the RAID5 multi-disk array; In the video stream monitoring system, a distributed Docker container is constructed in a RAID5 array, and a microservice is constructed in the distributed Docker container constructed based on the RAID5 array. After obtaining the corresponding video stream, the microservice is used to construct a distributed monitoring service for the video stream by calling the exception handling method stored in the RAID5 array; The video stream monitoring service based on the microservice performs abnormal monitoring of the corresponding video stream, and distributes and stores the abnormal video stream, and builds an alarm service for the abnormal video stream through the microservice of the corresponding docker container.

[0013] According to one of the preferred embodiments of the present invention, the RAID5 array is constructed based on mdadm on a Linux system, all disks are mounted on the corresponding server, mdadm create is used to create RAID5 devices of multiple disks, and they are mounted on the data directory, a mapping list of the data directory and the RAID5 device of each disk is constructed as the storage root directory of the subsequent system, and automatic mounting is configured, the logic of the above-mentioned RAID5 device creation is completed in the initialization logic of the exception handling method, and multiple different types of exception handling methods are stored in the RAID5 array.

[0014] According to one of the preferred embodiments of the present invention, the method for constructing a microservice for monitoring the video stream anomaly in the docker container includes: using the yum package manager to create a docker in the RAID5 array, and creating a dockerfile, using the dockerfile to register the environment and resources required for the microservice, and creating a calling method for the microservice based on different video anomaly types.

[0015] According to one of the preferred embodiments of the present invention, after constructing a video stream monitoring system, the video stream data monitored by all monitoring devices connected to the system are obtained, and distributedly stored in the constructed RAID5 array based on the video stream type relationship, and all distributedly stored video stream data are inspected, and each abnormal video stream data inspected is obtained, and the abnormal video stream data is distributedly stored in the specified data directory in the corresponding RAID5 array.

[0016] According to one of the preferred embodiments of the present invention, the OpenCV library is used to acquire the video stream, and the monitoring data video stream is written into the corresponding RAID5 array in real time for distributed storage. The acquired video stream is subjected to abnormal monitoring inspection. The abnormal monitoring inspection includes: determining whether the status of the monitoring device itself is abnormal, determining whether the verification of the video stream attributes is abnormal, and determining whether the video content is abnormal, and calling the corresponding microservice.

[0017] According to one of the preferred embodiments of the present invention, the abnormal inspection method includes: constructing a customized abnormal judgment logic, storing the customized abnormal judgment logic in the corresponding RAID5 array, and distributively calling the constructed customized abnormal judgment logic through the microservice to perform customized abnormal inspection of the corresponding video stream, and distributively storing the abnormal video stream that meets the customized abnormal judgment logic.

[0018] According to one preferred embodiment of the present invention, the video exception processing includes: S01, a data verification module for video stream input, verifies the size, time, and source information of the incoming video stream data, and outputs all verification abnormality type data; S02, monitoring the online status of the traffic monitoring device itself, inserting agents into all traffic monitoring devices, and detecting the survival status of the traffic monitoring devices based on the heartbeat of each device; S03, determining abnormal content of the video stream, performing image processing algorithms and motion detection algorithms on the acquired video stream and calculating the difference between image frames to determine abnormal content of the frame, and outputting video stream data and content abnormality type of the video stream; S04: Customize abnormal situation determination, build a customized abnormal rule template, and send the customized abnormal rule template to the user. The user selects at least one video stream abnormality rule or combination according to the customized abnormal rule template, and performs abnormality determination processing according to the user's own specific requirements.

[0019] According to one of the preferred embodiments of the present invention, the notification system uses distributed microservices to build multiple notification subsystems. When an abnormal situation is obtained, the notification system is broadcast in batches. After any notification system obtains the broadcast message, it sends a notification of the message, promptly informs the management personnel to handle it, and attaches specific abnormal content in the message for the management personnel to conduct abnormality investigation.

[0020] In order to achieve at least one of the above-mentioned invention purposes, a distributed monitoring video stream exception processing system based on RAID is provided, characterized in that the system executes the distributed monitoring video stream exception processing method based on RAID.

[0021] In order to achieve at least one of the above-mentioned invention purposes, the present invention further provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the above-mentioned RAID-based distributed monitoring video stream exception processing method.

[0022] To ensure the availability of surveillance video data, this system utilizes RAID (Redundant Array of Independent Disks) technology. Surveillance video data is distributed across multiple independent disks. Through data redundancy and fault tolerance, the integrity and recoverability of video data are guaranteed even if a disk fails. A distributed, highly available video stream monitoring system is constructed using microservices, including monitoring services, alarm services, and data storage services. This improves system performance and scalability, ensuring stable processing of video stream data even under high loads. This allows personnel to take timely action and quickly respond to and address exceptions. Furthermore, the microservices architecture ensures high availability. If a service node fails or becomes unavailable, the system automatically switches to another available node, ensuring continuous operation and stability of the monitoring system. This fault-tolerance mechanism ensures the availability of the monitoring system itself while also ensuring effective processing of surveillance data and exception handling capabilities.

[0023] According to one of the preferred embodiments of the present invention, a 64-disk RAID5 array storage is adopted. By using a RAID5 array of 9 + 9 + 9 + 9 + 9 + 9 + 5 + 3 + 1 + 1, the surveillance video data is distributed across multiple disks. Each disk is responsible for storing the corresponding data block and, based on the RAID5 redundancy algorithm, achieves data redundancy and fault tolerance. Therefore, even if up to three disks fail, the system can still ensure the availability and integrity of the surveillance video data. On the Linux operating system, this system uses the mdadm tool to build and manage the RAID5 array. Through the mdadm configuration file, the parameters, disk allocation, redundancy and other properties of the RAID array can be set. In addition, the system also supports automatic hot-swappable function, allowing disks to be dynamically added or replaced during runtime to achieve expansion or fault recovery of the RAID array.

[0024] According to another preferred embodiment of the present invention, a distributed high-availability video stream monitoring system is constructed using a microservices architecture. The architecture includes the following core components: 1. Data Storage Service: The data storage service is responsible for storing surveillance video data and anomaly information. To ensure high availability and scalability, the system uses distributed storage technology to store video data across multiple nodes. Each node has storage capacity and read / write capabilities to improve overall system performance. Furthermore, the data storage service provides data backup and recovery mechanisms to ensure data security and reliability. Through data redundancy and failover, data availability and integrity are guaranteed even in the event of a single node failure.

[0025] 2. Monitoring Service: Using a distributed deployment strategy, the monitoring service is deployed across multiple nodes. Each node is responsible for receiving video stream data from monitoring devices and performing real-time processing and analysis. To achieve load balancing and parallel processing, the system uses a load balancer to dynamically distribute monitoring tasks. This improves system performance and scalability, ensuring stable processing of video stream data even under high loads.

[0026] 3. Alarm Service: The alarm service regularly inspects surveillance footage for anomalies. The system incorporates a variety of built-in image processing algorithms, motion detection algorithms, and frame difference calculation technologies to identify anomalies in frame content. Once an anomaly is detected, the alarm service triggers a corresponding message alert, sending an alert to relevant personnel via various communication methods (such as email, SMS, and DingTalk). This allows relevant personnel to take timely action and quickly respond to and resolve the anomaly.

[0027] 4. Device Management and Heartbeat Monitoring: The system manages and controls monitoring devices through the device management module. Each monitoring device is assigned a separate agent to establish a connection with the system and exchange data. The agent periodically sends heartbeat signals to verify the device's status. If the system fails to receive a heartbeat signal from a device for an extended period, the device is deemed abnormal and appropriate handling measures are triggered.

[0028] According to another preferred embodiment of the present invention, when the system detects an abnormal situation, the following abnormality handling process will be triggered: 1. Alarm Triggering: The alarm service uses image processing algorithms, motion detection algorithms, and frame difference calculation technologies to detect anomalies and trigger an alarm. The alarm service generates a corresponding anomaly report, including the anomaly type, timestamp, and related device information.

[0029] 2. Message Alerts: The alert service sends alerts to relevant personnel through various communication methods (such as email, SMS, DingTalk, etc.). In this way, relevant personnel can receive abnormal notifications in a timely manner and take necessary measures.

[0030] 3. Exception handling: Upon receiving an exception notification, relevant personnel will take appropriate action to address the situation. For example, they can remotely restart equipment, adjust monitoring parameters, or dispatch maintenance personnel. The system also records detailed information about the exception for subsequent analysis and improvement. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 Shown is a flow chart of a distributed monitoring video stream exception handling method based on RAID according to the present invention. DETAILED DESCRIPTION

[0032] The following description is intended to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are for illustrative purposes only, and those skilled in the art will readily appreciate other obvious variations. The basic principles of the present invention defined in the following description may be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not depart from the spirit and scope of the present invention.

[0033] It is understood that the term "one" should be understood as "at least one" or "one or more", that is, in one embodiment, the number of an element may be one, while in another embodiment, the number of the elements may be multiple, and the term "one" should not be understood as a limitation on the quantity.

[0034] Please refer to Figure 1 The present invention discloses a distributed monitoring video stream exception handling method and system based on RAID. The system aims to realize distributed high-availability video stream monitoring and provide an effective exception handling mechanism by adopting RAID technology and microservice architecture. The distributed monitoring video stream exception handling system based on RAID can provide data redundancy and fault tolerance mechanism to ensure the availability and integrity of monitoring video data. At the same time, the use of microservice architecture to implement a distributed high-availability video stream monitoring system can realize the distributed construction of monitoring services, alarm services and data storage services. Through device management and heartbeat detection, the system can timely monitor the survival status of the device to ensure the stability of the monitoring system and the reliability of the equipment. The exception handling process can timely discover and handle abnormal situations to ensure the normal operation of the monitoring system and data security.

[0035] Specifically, first, in this invention, we choose to use RAID disk array as our underlying data storage method. RAID5 is a disk array level that achieves data redundancy and fault tolerance through data striping and distributed storage of parity information. In this system, we use a 64-slot RAID5 array for storage. First, before building the array, we need to prepare 64 compatible hard drives. These hard drives can be physical disks or virtual disks, depending on the system requirements and hardware configuration. Use the mdadm tool to build and manage the RAID5 array. mdadm is a powerful command-line tool for managing software RAID on Linux. Use the following command to create a RAID5 array: mdadm --create / dev / md0 --level=5 --raid-devices=64 / dev / sd[ap] Once the RAID5 array is successfully created, mdadm will automatically perform striping and parity information calculations on the disks, and distribute the data blocks across different disks. In this way, even if up to three disks fail, the system can still ensure the availability and integrity of the surveillance video data. If there is a disk failure or the storage capacity needs to be expanded, use the mdadm tool to perform hot-swap operations. Use the following command to add a new disk to the RAID5 array: mdadm --manage / dev / md0 --add / dev / sd[q]. In this way, the storage capacity of the array can be dynamically expanded or a failed disk can be replaced at runtime to achieve expansion or fault recovery of the RAID5 array. In summary, by using the mdadm tool to build and manage RAID5 arrays, the system can provide data redundancy and fault tolerance to ensure the availability and integrity of surveillance video data. By dynamically adding and replacing disks, the system can achieve the scalability and fault recovery capabilities of the array.

[0036] It should be noted that the present invention requires building a microservice in Docker and using the microservice to monitor the corresponding video stream for abnormalities. The specific method includes the following steps: first, using the yum package manager to create a Docker in the RAID5 array, wherein the yum package manager can obtain the files required for creating the Dockerfile, and the yum package manager can implement operations such as building, obtaining, updating, and deleting data packets. Further, the yum package manager can build a Dockerfile and build a Docker image based on the Dockerfile. The yum package manager can create and deploy Docker in a distributed manner in the RAID5 array based on the Dockerfile. The Dockerfile is used to register the environment and resources required by the microservice, and a calling method for the microservice is created based on different video abnormality types.

[0037] This invention further addresses the acquisition and processing of surveillance video streams. Acquiring surveillance video streams is a key step in a distributed surveillance system. The system acquires real-time video streams from various surveillance devices (such as webcams and network cameras) and transmits them to a monitoring service node for processing. For each surveillance device, the system installs the corresponding driver and device management software. This software is responsible for establishing a connection with the device and acquiring the video stream data. Depending on the device's characteristics and protocols, different interfaces (such as RTSP and ONVIF) can be used to acquire the video stream. Once a connection is established with the surveillance device, the system periodically reads video frame data from the device and transmits it to the monitoring service node. To ensure efficient data transmission, network transport protocols (such as TCP or UDP) are used to transmit the video stream data. Furthermore, to improve system reliability, a redundant transmission mechanism is implemented, sending multiple data streams. On the monitoring service node, the system processes the video stream data using the OpenCV library. First, the system uses OpenCV to read the video stream data and converts it into image frames. Then, image processing algorithms are used to enhance image quality and remove noise. Finally, motion detection algorithms are used to detect moving objects in the image. Motion detection algorithms are typically based on principles such as pixel differences or optical flow, and can identify motion occurring in a video. When motion is detected, the system can record relevant information, such as the position, size, and trajectory of the moving object. In addition, anomalies are detected by calculating the differences between frames. By comparing the differences in pixel values ​​or other image features between consecutive frames, changes in image content can be identified. For example, if the difference between adjacent frames exceeds a preset threshold, it may indicate image quality degradation, object loss, or abnormal motion. The following is part of the implementation logic: import cv2 import numpy as np net = cv2.dnn.readNetFromCaffe('path / to / model.prototxt', 'path / to / model.caffemodel') def process_video_stream(video_stream): # Read the video stream cap = cv2.VideoCapture(video_stream) while cap.isOpened(): ret, frame = cap.read() if ret: # Perform video processing operations # ... # Detecting anomalies if is_abnormal(frame): trigger_alarm() else: break cap.release() def is_abnormal(frame): # Use deep learning models for object detection blob = cv2.dnn.blobFromImage(frame, 0.007843, (300, 300), 127.5) net.setInput(blob) detections = net.forward() # Determine abnormal conditions for i in range(detections.shape[2]): confidence = detections[0, 0, i, 2] if confidence > 0.5: # Abnormal objects detected return True return False def trigger_alarm(): # Trigger alarms, send notifications, etc. print("Video stream abnormal!") The present invention further includes the alarm service and heartbeat detection. The alarm service regularly inspects the monitoring system to detect any abnormal conditions. This primarily involves the following steps: configuring alarm rules and defining alarm rules, including abnormal behavior and thresholds, for triggering alarms. Real-time or historical monitoring data is obtained from the monitoring system. Algorithms or models are used to analyze the monitoring data to detect any abnormal conditions. If the abnormal conditions meet the alarm rules, the corresponding alarm is triggered and a notification is sent to the relevant personnel. The device management module is responsible for managing and controlling the monitoring devices. Heartbeat detection is used in the system to verify whether the device is operating properly. By regularly checking the device's heartbeat signal, it is verified that the device is in normal operating condition. A device will periodically send a heartbeat signal to indicate that it is still active. Heartbeat detection can detect device failures in a timely manner. If a device does not send a heartbeat signal, or if a heartbeat signal is not received for a predetermined period of time, it can be determined that the device is faulty or unavailable. This allows system administrators to take timely measures, such as issuing alarm notifications through the alarm module, logging, or executing a fault handling process, to prevent device failures from having a more serious impact on the normal operation of the system. The following is part of the implementation logic: class DeviceManager: def __init__(self): self.devices = [] # Storage device list def add_device(self, device): # Add device to device list self.devices.append(device) def remove_device(self, device): # Remove a device from the device list self.devices.remove(device) def start_heartbeat(self): # Start heartbeat detection while True: for device in self.devices: if not self.is_heartbeat_received(device): self.handle_device_failure(device) time.sleep(1) # Perform a heartbeat check every second def is_heartbeat_received(self, device): # Determine whether the device has sent a heartbeat signal # Sample data is used here, and network communication with the device may actually be required return device.check_heartbeat() def handle_device_failure(self, device): # Handling device failures print(f"Device {device.name} failed!") # Send notifications, record logs, perform troubleshooting, etc.

[0038] The embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. The embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the central processing unit (CPU), the above-mentioned functions defined in the method of the present application are executed. It should be noted that the computer-readable medium mentioned above in the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, a system, device or component of an electrical, magnetic, optical, electromagnetic, infrared segment, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wire segments, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, electrical wire, optical fiber cable, RF, etc., or any suitable combination thereof.

[0039] The flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0040] Those skilled in the art should understand that the embodiments of the present invention described above and shown in the accompanying drawings are only examples and do not limit the present invention. The objectives of the present invention have been fully and effectively achieved. The functional and structural principles of the present invention have been demonstrated and explained in the embodiments. Without departing from the principles, the implementation methods of the present invention may be subject to any deformation or modification.

Claims

1. A distributed monitoring video stream exception processing method based on RAID, characterized in that: The method comprises: Construct a RAID5 multi-disk array storage and video stream monitoring system to store monitoring video data and monitor abnormal status of video streams; In the RAID5 multi-disk array storage, data redundancy and fault recovery services for distributed video streams are provided through the RAID5 multi-disk array; In the video stream monitoring system, a distributed docker container is constructed in a RAID5 array, and a microservice is constructed in the distributed docker container constructed based on the RAID5 array. After acquiring the corresponding video stream, the microservice is used to construct a distributed monitoring service of the video stream by calling the exception handling method stored in the RAID5 array; The video stream monitoring service based on the microservice performs abnormal monitoring of the corresponding video stream, and distributes and stores the abnormal video stream, and constructs an alarm service for the abnormal video stream through the microservice of the corresponding docker container.

2. The method for handling abnormalities of distributed surveillance video streams based on RAID according to claim 1, characterized in that: The method for building a microservice for monitoring the video stream abnormality in the docker container includes: using the yum package manager to create a docker in the RAID5 array, creating a dockerfile, using the dockerfile to register the environment and resources required for the microservice, and creating a calling method for the microservice based on different video abnormality types.

3. The method for handling abnormalities of distributed surveillance video streams based on RAID according to claim 1, characterized in that: The RAID5 array is constructed based on mdadm on the Linux system, all disks are mounted on the corresponding server, mdadm create is used to create RAID5 devices of multiple disks, and they are mounted on the data directory, a mapping list of the data directory and the RAID5 device of each disk is constructed as the storage root directory of the subsequent system, and automatic mounting is configured. The logic of creating the above RAID5 device is completed in the initialization logic of the exception handling method, and multiple different types of exception handling methods are stored in the RAID5 array.

4. The method for handling abnormalities of distributed surveillance video streams based on RAID according to claim 1, characterized in that: After building the video stream monitoring system, obtain the monitoring video stream data of all monitoring devices connected to the system, and store them in a distributed manner in the constructed RAID5 array based on the video stream type relationship. In addition, inspect all distributed stored video stream data, obtain each inspected abnormal video stream data, and distribute and store the abnormal video stream data in the specified data directory in the corresponding RAID5 array.

5. The method for handling abnormalities of distributed surveillance video streams based on RAID according to claim 3, characterized in that: Use the OpenCV library to acquire the video stream, write the monitoring data video stream into the corresponding RAID5 array in real time for distributed storage, and perform abnormal monitoring inspection on the acquired video stream. The abnormal monitoring inspection includes: judging whether the status of the monitoring device itself is abnormal, judging whether the verification of the video stream attributes is abnormal, judging whether the video content is abnormal, and calling the corresponding microservice.

6. The method for handling abnormalities of distributed surveillance video streams based on RAID according to claim 5, characterized in that: The abnormal monitoring inspection method includes: constructing a custom abnormal judgment logic, storing the custom abnormal judgment logic in a corresponding RAID5 array, and performing a custom abnormal inspection of the corresponding video stream by distributingly calling the constructed custom abnormal judgment logic through the microservice, and distributing the abnormal video stream that meets the custom abnormal judgment logic.

7. The method for handling abnormalities of distributed surveillance video streams based on RAID according to claim 6, characterized in that: The video exception processing includes: S01, a data verification module for video stream input, verifies the size, time, and source information of the incoming video stream data, and outputs all verification abnormality type data; S02. Monitor the online status of the traffic monitoring device itself, insert agents into all traffic monitoring devices, and detect the survival status of the traffic monitoring device based on the heartbeat of each device; S03, determining the abnormality of the video stream content, performing image processing algorithm, motion detection algorithm and calculating the difference between image frames on the acquired video stream content to determine the abnormality of the frame content, and outputting the video stream data and content abnormality type of the abnormal video stream content; S04, for customizing abnormal situation determination, constructing a custom abnormal rule template, and sending the custom abnormal rule template to the user, the user selects at least one video stream abnormal rule or combination according to the custom abnormal rule template, and performs abnormal determination processing according to the user's own specific requirements.

8. The method for handling abnormalities of distributed surveillance video streams based on RAID according to claim 4, characterized in that: The notification system uses distributed microservices to build multiple notification subsystems. When an abnormal situation is detected, batch broadcasts are performed on the notification system. After any notification system receives the broadcast message, it sends a message notification, promptly notifies the management personnel to handle it, and attaches specific abnormal content in the message for the management personnel to conduct abnormality investigation.

9. A distributed monitoring video stream exception processing system based on RAID, characterized in that: The system executes a RAID-based distributed surveillance video stream exception processing method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement a RAID-based distributed monitoring video stream exception processing method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Abnormal event intelligent detection system and method based on security micro-service architecture, and medium

    CN113065026A

  • Distributed service system and method, computer equipment and storage medium

    CN116455985A

  • Data monitoring alarm method, device and equipment and storage medium

    CN116781568A

  • Video monitoring equipment trouble detection device

    CN205160712U

  • Fault tolerance using shared memory architecture

    IN201641021095A