Video image quality diagnosis system and method based on distributed and packet scheduling

Through distributed and grouped scheduling, the video image quality diagnosis system solves the problem of low video image quality detection efficiency in large-scale surveillance systems, realizes efficient parallel detection and multi-dimensional status assessment, meets personalized needs, and has flexible Node expansion capabilities.

CN118678047APending Publication Date: 2024-09-20ECCOM NETWORK SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410893324.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The existing video surveillance system cannot complete video image quality detection in a timely manner under large-scale surveillance, and cannot cope with the expansion of the number of system cameras and the dynamic expansion of servers, resulting in insufficient analysis efficiency and the inability to meet the detection frequency and priority requirements of cameras in different scenarios.

Method used

A video image quality diagnosis system based on distributed and group scheduling is adopted, including a Web service module, an image quality analysis and diagnosis module, a camera status detection module, a node management and task scheduling module, a front-end camera video acquisition module and a data storage module. Through distributed Node management and dynamic task allocation realize parallel detection and multi-dimensional detection, and support group inspection scheduling and real-time video stream processing.

Benefits of technology

It improves the efficiency of video operation and maintenance, shortens detection time, can detect camera status in multiple dimensions, meets personalized needs, realizes flexible node expansion and load management, and dynamically adjusts resource configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118678047A
    Figure CN118678047A
Patent Text Reader

Abstract

The invention provides a video image quality diagnosis system and method based on distributed and packet scheduling. The method comprises the following steps: S1, setting related diagnosis parameters; the parameters comprise node parameters and detected camera information; s2, setting a grouping detection scheme, and starting a detection process; s3, if an abnormal image is detected, recording camera information at the moment and storing the camera information into a database for persistent storage; and uploading the abnormal image through a distributed file service. According to the method, quality diagnosis of a large number of cameras can be processed more quickly, the overall detection efficiency is improved, meanwhile, server resources can be dynamically expanded according to needs, and the resource utilization rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical fields of video monitoring, network communication and image processing, and in particular to a video image quality diagnosis system and method based on distributed and grouped scheduling. Background Art

[0002] Video images are the input source and output result of video surveillance systems. The quality of video images directly determines the accuracy and completeness of information analyzed based on video surveillance, and affects the actual application effect of video surveillance systems. With the popularization and expansion of video surveillance systems, the requirements for video image quality are also increasing. The video image quality diagnosis system can promptly detect quality problems and abnormal conditions in camera video images, reduce the labor cost of maintenance work, and ensure the normal and stable operation of video surveillance systems.

[0003] Most of the video quality diagnosis systems on the market currently use a single server to continuously poll the camera to perform detection tasks. When the monitoring system is small, the detection task can be completed in time, but for larger-scale monitoring systems, it is often impossible to complete the detection within a monitoring cycle, and it is impossible to dynamically expand the system server when the number of system cameras increases. If the specified detection task cannot be completed within the polling cycle, the quality problem cannot be discovered in time, which will affect the use of subsequent system video intelligent analysis, display, storage and other links. In addition, for the cameras in the same monitoring system, the frequency requirements and priorities of camera polling detection in different scenarios are different, and they need to be divided according to the needs.

[0004] In the Chinese patent document with the publication number CN113038122B, a fault location system and method based on video image diagnostic data is disclosed, the fault location system includes a front-end device camera system, including all-way cameras, configured to capture video image information; a comprehensive video monitoring system, configured to view the real-time video and recorded video captured by the front-end device camera system; a video operation and maintenance system, configured to perform quality diagnosis on the video images obtained by the comprehensive video monitoring system to determine the type of video monitoring fault and locate the cause of the fault. This patent document provides video image quality diagnosis and system problem location, but it is a single-machine architecture and does not support system distributed deployment and dynamic expansion. Although it is relatively comprehensive for video monitoring fault location, it cannot cope with large-scale video analysis and has the problem of insufficient analysis efficiency; the present invention provides distributed multi-machine deployment and dynamic node scaling, and adopts distributed task scheduling execution for large-scale video monitoring systems, which has higher analysis efficiency and can meet the video quality analysis needs of monitoring systems with larger operating scales in actual use.

[0005] In a Chinese patent document with publication number CN104754328A, a distributed video quality diagnosis method is disclosed, including: creating a management node and a detection node, configuring the number of cameras to be assigned to each detection node on the management node, and configuring the number of detection threads on the detection node; the user creates and starts a user-defined detection scheme on the Web client; the management node assigns the camera to the detection node; the detection node performs the detection task and sends the detection result to the management node; the management node saves the detection result in the database server; the user views the detection result on the Web client and makes corresponding processing. The present invention also discloses a distributed video quality diagnosis system. The patent document emphasizes distinguishing management nodes and detection nodes through the system, and performing multi-threaded detection on the detection nodes; configuring the number of cameras to be assigned to each detection node once on the management node to perform distributed detection; the present invention adopts a dynamic task allocation strategy for the allocation of node tasks, and dynamically queries the working node status for task issuance, which is more flexible in task scheduling and more reasonable in allocating detection tasks to specific working nodes, ensuring reasonable use of resources and higher detection efficiency; in addition, in addition to the image quality anomaly detection module, the present invention also adds detection grouping and multi-dimensional detection and evaluation of camera status to help operation and maintenance personnel locate abnormal problems more accurately. Summary of the invention

[0006] In view of the defects in the prior art, the object of the present invention is to provide a video image quality diagnosis system and method based on distributed and grouped scheduling.

[0007] A video image quality diagnosis system based on distributed and grouped scheduling is provided according to the present invention, comprising:

[0008] Web service module: build user interface and manage database model;

[0009] Image quality analysis and diagnosis module: Use the image processing library to implement the image quality analysis algorithm unit;

[0010] Camera status detection module: uses the network and camera control related network libraries to detect the camera deployment status;

[0011] Node management and task scheduling module: receives registration information of each working node and manages the server load information of the node statistics;

[0012] Front-end camera video acquisition module: evaluates the camera network status and transmits the received video frame sequence to the image quality analysis and diagnosis module for processing;

[0013] Data storage module: stores relevant information.

[0014] Preferably, the Web service module includes using the VUE front-end framework to build a user interface and using a RESTful API to communicate with the back end; the back end adopts the OATPP framework, uses Bearer to implement user authentication and authorization, and uses ORM to manage database models; the user interface uses Webrtc to provide real-time updated video stream display, group task configuration, algorithm configuration and video quality diagnosis results.

[0015] Preferably, the image quality analysis and diagnosis module includes multiple image quality diagnosis units; the image quality diagnosis units include a brightness abnormality detection unit, an image color cast detection unit, an image freeze detection unit, a picture signal loss detection unit, a picture black and white detection unit, a picture black screen detection unit and a picture blue screen detection unit.

[0016] Preferably, the camera deployment status includes whether the camera is online, pan / tilt control function test, and camera preset verification.

[0017] Preferably, the node management and task scheduling module acts as a central management node, and regularly reports task information and machine load information at each working node; uses a message queue as a task queue, and when a polling detection task is started, dynamically schedules the task to an available image quality analysis and diagnosis module according to the load conditions of each server.

[0018] Preferably, the front-end camera video acquisition module includes using the open source image processing library FFmpeg to obtain the video stream from the front-end camera, receiving the video stream based on the real-time streaming protocol, and passing the received video frame sequence to the image quality analysis and diagnosis module for processing.

[0019] A video image quality diagnosis method based on distributed and grouped scheduling provided by the present invention includes:

[0020] Step S1: setting relevant diagnostic parameters; the parameters include node parameters and detected camera information;

[0021] Step S2: Set up a group detection scheme and start the detection process;

[0022] Step S3: If an abnormal image is detected, the camera information at that time is recorded and stored in the database for persistent storage; the abnormal image is uploaded through a distributed file service.

[0023] Preferably, step S1 includes configuring a central node and a working node; the central node includes running a central management service on a central business server; deploying detection services on one or more working detection servers as detection nodes; the detection node automatically registers with the central node when it starts, and the central node incorporates the detection node into the system cluster after receiving the registration, and the detection node periodically reports system task operation information and system load status to the system.

[0024] Preferably, step S2 includes the following sub-steps:

[0025] Step S2.1: Add the camera information to be tested to the system and set up detection schemes for different groups;

[0026] Step S2.2: The central node monitors the start time of all group tasks. When the task execution cycle is reached, the load information of each working node in the node management and task scheduling module is called. Combined with the overall operation of the system, the camera detection task list in the group configuration is dynamically allocated to the current working node of the cluster;

[0027] Step S2.3: After receiving the detection task, the working node creates a task queue; the tasks in the task queue are executed concurrently through the thread pool, and the front-end camera video acquisition module obtains the video frame sequence within a period of time from the camera and converts the format;

[0028] Step S2.4: Call the camera status detection module to detect the camera status.

[0029] Preferably, step S2.4 includes calling the image quality analysis and diagnosis module to perform quality diagnosis on the collected video images, comprehensively evaluate the current image quality, record the camera information and abnormal conditions with abnormal image quality, and continuously update and report the execution status and progress of the detection task to the central node.

[0030] Compared with the prior art, the present invention has the following beneficial effects:

[0031] 1. The image quality anomaly diagnosis method based on a distributed system provided by the present invention is suitable for parallel image quality anomaly detection in a large-scale monitoring system, which shortens the overall detection time and improves the work efficiency of video operation and maintenance.

[0032] 2. The method provided by the present invention can perform multi-dimensional image quality diagnosis, detect the camera status from the aspects of image quality, network signal, equipment control, etc., and help operation and maintenance personnel quickly locate the problem.

[0033] 3. The present invention can perform group inspection scheduling, set group diagnosis and group timing polling to meet the personalized needs of the monitoring system, and use different detection frequencies to detect abnormal situations in a timely manner.

[0034] 4. The distributed nodes in the present invention are scalable and can dynamically increase or decrease the number of nodes according to demand to cope with changes in different scales and loads, with high flexibility.

[0035] Other beneficial effects of the present invention will be explained in the specific implementation manner through the introduction of specific technical features and technical solutions. Through the introduction of these technical features and technical solutions, those skilled in the art should be able to understand the beneficial technical effects brought about by the technical features and technical solutions. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0037] Figure 1 It is a schematic diagram of the overall structure of the system of the present invention.

[0038] Figure 2 The figure is a flow chart of the method of the present invention.

[0039] Figure 3 A specific flow chart is detected for a single diagnostic task of the present invention. DETAILED DESCRIPTION

[0040] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0041] Reference Figure 1 As shown, the present invention provides a video image quality diagnosis system based on distributed and group scheduling. The technologies adopted by the system include distributed node management, distributed task scheduling, video streaming, Web front-end display, Linux server, Webrtc video playback, multi-threaded task parallel acceleration, etc. The functions are reflected in the server configuring the central node and working node registration information, the Web end configuring the camera information, group polling scheduling strategy, image quality detection unit and other information; when the task starts, the node load management and task scheduling module distributes the task to multiple working nodes for processing; the front-end camera video acquisition module in the working node is responsible for the acquisition of the video frame sequence, and by calling the camera status detection module and the image quality diagnosis and analysis module, the final processing result is persistently stored through the data storage module and returned to the Web front-end interface for display.

[0042] The system is divided into six functional modules: Web service module, image quality analysis and diagnosis module, camera status detection module, node management and task scheduling module, front-end camera video acquisition module, and data storage module. The following is a description of the specific module contents:

[0043] 1. Web service module: The VUE front-end framework is used to build the user interface, and the RESTful API is used to communicate with the back-end. The back-end uses the OATPP framework, uses Bearer to implement user authentication and authorization, and uses ORM to manage database models. The user interface uses Webrtc to provide real-time updated video stream display, group task configuration, algorithm configuration, and video quality diagnosis results.

[0044] 2. Image quality analysis and diagnosis module: Use OpenCV and other image processing libraries to implement image quality analysis algorithm units; internally include multiple image quality diagnosis units such as brightness anomaly detection, image color cast detection, image freeze detection, screen signal loss detection, screen black and white detection, screen black screen detection, and screen blue screen detection.

[0045] 3. Camera status detection module: Use the network and camera control related network libraries to detect the camera deployment status, including whether the camera is online, gimbal control function test, camera preset verification and other abnormal detection units.

[0046] 4. Node management and task scheduling module: As the central management node, it receives the registration information of each working node, regularly reports task information and machine load information at each working node, and manages the server load information. The message queue is used as the task queue. When the polling detection task is started, the task is dynamically scheduled to the available image quality analysis module according to the load of each server.

[0047] 5. Front-end camera video acquisition module: evaluates the network status of the camera, uses the open source image processing library FFmpeg to obtain the video stream from the front-end camera, receives the video stream based on the real-time streaming protocol (RTSP), and transmits the received video frame sequence to the image quality analysis and diagnosis module for processing, so as to judge abnormal conditions that may occur during detection and acquisition, such as disconnection caused by network fluctuations, camera failure, etc.

[0048] 6. Data storage module: Use the PostgreSQL relational database to store structured data such as user information, task information, image anomaly information, system configuration, etc.; for video data and image data, use the distributed file system NFS for storage management.

[0049] Reference Figure 2 As shown, a video image quality diagnosis method based on distributed and group scheduling, the specific steps of its design and implementation are as follows:

[0050] Step 1: Configure the central node and working nodes. Run the central management service on the central business server as the central node. Deploy the detection service on more than one working detection server as the detection node. The detection node automatically registers with the central node when it starts. After receiving the registration, the central node incorporates the detection node into the system cluster. The detection node periodically reports system task operation information and system load status to the system.

[0051] Step 2: The user logs in to the Web client interface and adds the camera information to be detected to the system, such as configuring the camera IP, manufacturer, model, user name, password, etc. Configure the camera group information and set the detection scheme for different groups, including the enabled algorithm detection unit, the polling detection cycle, the specific start time, etc.

[0052] Step 3: When the group detection scheme is successfully set up, the central node monitors the start time of all group tasks. When the task execution cycle is reached, the load information of each working node in the node load node management and task scheduling module is called, and the working node load is sorted from low to high according to the obtained working node load. The camera detection task in the group configuration is sent to the working node with the lowest current load in the system cluster first.

[0053] Step 4: After receiving the detection task, the working node creates a task queue. The tasks in the task queue are executed concurrently through the thread pool. The front-end camera video acquisition module takes a video frame sequence from the camera within a period of time. The h264 / h265 format in the streaming protocol is converted into the RBG format for image processing through the video decoder and format converter, preparing for subsequent image quality diagnosis.

[0054] Step 5: Reference Figure 3 As shown, the camera status detection module is called to detect the camera status. The image quality analysis and diagnosis module is called to perform quality diagnosis on the collected video images, and the relevant image quality diagnosis unit selected by the user in step 2 is called to perform detection, and the current image quality is comprehensively evaluated. The camera information and abnormal conditions with abnormal image quality are recorded. The execution status and progress of the detection task are continuously updated and reported to the central node.

[0055] Step 6: When an abnormal image is detected, the working node records the camera information of the abnormal situation and stores it in the database for persistent storage, and uploads the abnormal image through the distributed file service.

[0056] Step 7: When the number of system cameras increases and the working nodes of the current cluster cannot meet the processing requirements, you can add a new working node server, start a new working node, perform the working node registration operation in step 1, and incorporate it into the cluster; when system resources are redundant, you can also actively shut down idle working nodes. When the central node detects that the working node is offline, the subsequent scheduling tasks will reallocate the detection tasks to the available working nodes.

[0057] Through the above steps, a video image quality diagnosis system based on distributed and group scheduling can be finally realized. The Web front-end user configures the camera and group polling configuration information, and the scheduling module sends the task to the cluster working node. The working node performs camera video acquisition and image quality diagnosis, and finally stores the diagnosis results persistently.

[0058] The image quality anomaly diagnosis method based on a distributed system provided by the present invention is suitable for large-scale monitoring systems to perform parallel image quality anomaly detection, shortening the overall detection time and improving the work efficiency of video operation and maintenance; it can perform multi-dimensional image quality diagnosis, detect the camera status from the aspects of image quality, network signal, equipment control, etc., and help operation and maintenance personnel quickly locate the problem; it can perform group inspection scheduling, set group diagnosis and group timing polling, meet the personalized needs of the monitoring system, and use different detection frequencies to detect abnormal situations in time. Distributed nodes can be scalable and retractable, and the number of nodes can be dynamically increased or decreased according to demand to cope with changes in different scales and loads, with high flexibility.

[0059] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.

[0060] In the description of the present application, it should be understood that the terms "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0061] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A video image quality diagnosis system based on distributed and packet scheduling, characterized in that: include: Web service module: build user interface and manage database model; Image quality analysis and diagnosis module: Use the image processing library to implement the image quality analysis algorithm unit; Camera status detection module: uses the network and camera control related network libraries to detect the camera deployment status; Node management and task scheduling module: receives registration information of each working node and manages the server load information of the node statistics; Front-end camera video acquisition module: evaluates the camera network status and transmits the received video frame sequence to the image quality analysis and diagnosis module for processing; Data storage module: stores relevant information.

2. The video image quality diagnosis system based on distributed and grouped scheduling according to claim 1, characterized in that: The Web service module includes using the VUE front-end framework to build a user interface and using RESTful API to communicate with the back end; the back end adopts the OATPP framework, uses Bearer to implement user authentication and authorization, and uses ORM to manage database models; the user interface uses Webrtc to provide real-time updated video stream display, group task configuration, algorithm configuration and video quality diagnosis results.

3. The video image quality diagnosis system based on distributed and grouped scheduling according to claim 1, characterized in that: The image quality analysis and diagnosis module includes multiple image quality diagnosis units; the image quality diagnosis units include a brightness abnormality detection unit, an image color cast detection unit, an image freeze detection unit, a picture signal loss detection unit, a picture black and white detection unit, a picture black screen detection unit and a picture blue screen detection unit.

4. The video image quality diagnosis system based on distributed and grouped scheduling according to claim 1, characterized in that: The camera deployment status includes whether the camera is online, pan / tilt control function test, and camera preset verification.

5. The video image quality diagnosis system based on distributed and grouped scheduling according to claim 1, characterized in that: The node management and task scheduling module acts as a central management node, and regularly reports task information and machine load information at each working node; uses a message queue as a task queue, and when a polling detection task is started, dynamically schedules the task to an available image quality analysis and diagnosis module according to the load situation of each server.

6. The video image quality diagnosis system based on distributed and grouped scheduling according to claim 1, characterized in that: The front-end camera video acquisition module includes using the open source image processing library FFmpeg to obtain the video stream from the front-end camera, receiving the video stream based on the real-time streaming protocol, and passing the received video frame sequence into the image quality analysis and diagnosis module for processing.

7. A video image quality diagnosis method based on distributed and grouped scheduling, based on the video image quality diagnosis system based on distributed and grouped scheduling according to any one of claims 1 to 6, characterized in that: The following steps are involved: Step S1: setting relevant diagnostic parameters; the parameters include node parameters and detected camera information; Step S2: Set up a group detection scheme and start the detection process; Step S3: If an abnormal image is detected, the camera information at that time is recorded and stored in the database for persistent storage; the abnormal image is uploaded through a distributed file service.

8. The video image quality diagnosis method based on distributed and grouped scheduling according to claim 7 is characterized in that: The step S1 includes configuring a central node and a working node; the central node includes running a central management service on a central business server; deploying a detection service on one or more working detection servers as a detection node; the detection node automatically registers with the central node when it starts, and the central node incorporates the detection node into the system cluster after receiving the registration, and the detection node periodically reports system task operation information and system load status to the system.

9. The video image quality diagnosis method based on distributed and grouped scheduling according to claim 8, characterized in that: The step S2 comprises the following sub-steps: Step S2.1: Add the camera information to be tested to the system and set up detection schemes for different groups; Step S2.2: The central node monitors the start time of all group tasks. When the task execution cycle is reached, the load information of each working node in the node management and task scheduling module is called. Combined with the overall operation of the system, the camera detection task list in the group configuration is dynamically allocated to the current working node of the cluster; Step S2.3: After receiving the detection task, the working node creates a task queue; the tasks in the task queue are executed concurrently through the thread pool, and the front-end camera video acquisition module obtains the video frame sequence within a period of time from the camera and converts the format; Step S2.4: Call the camera status detection module to detect the camera status.

10. The video image quality diagnosis method based on distributed and grouped scheduling according to claim 9, characterized in that: The step S2.4 includes calling the image quality analysis and diagnosis module to perform quality diagnosis on the collected video images, comprehensively evaluate the current image quality, record the camera information and abnormal conditions with abnormal image quality, and continuously update and report the execution status and progress of the detection task to the central node.