Cross-domain-based video convergence platform cascade directory tree subscription system and method, storage medium, equipment and computer program product
By introducing a hierarchical hash index observation table into the superior platform of the video aggregation platform, the problem of frequent changes in the status of video surveillance equipment is solved, efficient identification and notification of changes in the status of equipment is achieved, and resource utilization and performance are improved.
Patent Information
- Application Number
- CN202411597677.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-03-04
AI Technical Summary
In the video aggregation platform, the status of tens of thousands of video surveillance devices changes frequently, resulting in very frequent changes in directory trees. It is difficult for the existing technology to efficiently identify changes in equipment status and notify the business platform.
A cascading directory tree subscription system based on a cross-domain video aggregation platform is adopted. By introducing a hierarchical hash index observation table into the directory subscription module of the superior platform, the changes in the video surveillance device are sensed and the changes are notified to the business platform.
It realizes the identification of status and information changes of video surveillance equipment under tens of thousands of orders of magnitude catalogs under high resource utilization and performance, and reduces the resource consumption of lower-level platforms, and can analyze and perceive the changes in directory tree data of video surveillance equipment in real time.
Smart Images

Figure CN119557301A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video convergence platform directory tree subscription, and in particular to a cross-domain video convergence platform cascade directory tree subscription system, method, storage medium, device and computer program product. Background Art
[0002] The video convergence platform connects IPC, NVR, and cross-domain platform video surveillance devices to a unified cloud platform through the GB / T28181 standard. The real-time video stream of the video surveillance device can be obtained through the cloud platform, and users can also browse the real-time monitoring video images of all video surveillance devices on the cloud platform.
[0003] In some business scenarios, the number of video surveillance devices connected to the video aggregation platform is huge. There will be tens of thousands of video surveillance devices aggregated to the video aggregation platform. These video surveillance devices will have multiple states, and the states will change at any time. For example, some video surveillance devices are offline, online, device information is modified, etc. When the number of video surveillance devices is large, the directory tree on the video aggregation platform will change very frequently.
[0004] When two cross-domain platforms are cascaded, the upper-level platform must be able to perceive the directory changes of the lower-level platform. To address this problem, a common solution is to let the lower-level platform implement the subscription function, but this solution will transfer the resource consumption and pressure of cloud computing to the lower-level platform; another solution is for the upper-level platform to synchronize the full list with the lower-level platform regularly and update the directory tree regularly, but in this way, the upper-level platform has no perception of changes in the directory tree and does not know which specific video surveillance devices have changed. Summary of the invention
[0005] In response to the problems existing in the prior art, the present invention provides a cascade directory tree subscription system, method, storage medium, device and computer program product based on a cross-domain video aggregation platform, so that the upper-level platform can identify the status and information changes of video surveillance devices under tens of thousands of directories with higher resource utilization and performance, and generate subscription messages to notify the business platform.
[0006] To achieve the above-mentioned technical objectives, the present invention adopts the following technical scheme: a cascade directory tree subscription system based on a cross-domain video aggregation platform, comprising: a lower-level platform, an upper-level platform and a business platform, the upper-level platform is provided with a directory subscription module, the directory subscription module is provided with a hierarchical hash index observation table, the lower-level platform is cascaded to the upper-level platform, the lower-level platform is used to store the directory tree data of dynamically changing video surveillance equipment, the upper-level platform perceives the changes of the video surveillance equipment through the hierarchical hash index observation table in the directory subscription module, and notifies the business platform of the changed video surveillance equipment.
[0007] Furthermore, the directory tree data of the video surveillance device includes: a video surveillance device ID, a video surveillance device name field, a video surveillance device IP field, and a video surveillance device offline state field.
[0008] Furthermore, the hierarchical hash index observation table includes: a first-level hash index observation table, a second-level hash index observation table, a third-level hash index observation table and a fourth-level hash index observation table; the first-level hash index observation table is used to sense changes in the video surveillance device ID, the second-level hash index observation table is used to sense changes in the video surveillance device name field, the third hash index observation table is used to sense changes in the video surveillance device IP field, and the fourth-level hash index observation table is used to sense changes in the offline status field of the video surveillance device.
[0009] Furthermore, the first-level hash index observation table has the highest priority, and the second-level hash index observation table, the third-level hash index observation table and the fourth-level hash index observation table are connected in parallel.
[0010] Furthermore, the present invention also provides a subscription method for the cross-domain video convergence platform cascade directory tree subscription system, which specifically includes the following steps:
[0011] Step S10: The directory subscription module of the upper-level platform synchronizes the directory tree data of all video surveillance devices from the lower-level platform;
[0012] Step S20, compare the hash values of all video surveillance device IDs in the synchronized directory tree data with the hash values of the video surveillance device IDs stored in the first-level hash index observation table one by one, if there are identical hash values of the video surveillance device IDs, execute step S30; if there is an unmatched hash value of the video surveillance device ID in the directory tree data, the video surveillance device is a newly added video surveillance device, and the directory tree data of the newly added video surveillance device is updated to the first-level hash index observation table, the second-level hash index observation table, the third-level hash index observation table, and the fourth-level hash index observation table, and notified to the business platform; if there is an unmatched hash value of the video surveillance device ID in the first-level hash index observation table, the video surveillance device is a removed video surveillance device, and the directory tree data of the removed video surveillance device is removed from the first-level hash index observation table, the second-level hash index observation table, the third-level hash index observation table, and the fourth-level hash index observation table, and notified to the business platform;
[0013] Step S30, use the hash value of the video surveillance device name field to traverse the hash value of the video surveillance device name field saved in the secondary hash index observation table. If the hash value of the video surveillance device name field changes, notify the business platform, and use the changed hash value of the video surveillance device name field to update the hash value of the corresponding video surveillance device name field in the secondary hash index observation table; use the hash value of the video surveillance device IP field to traverse the hash value of the video surveillance device IP field saved in the tertiary hash index observation table. If the hash value of the video surveillance device IP field changes, notify the business platform, and use the changed hash value of the video surveillance device IP field to update the hash value of the corresponding video surveillance device IP field in the tertiary hash index observation table; use the hash value of the video surveillance device offline status field to traverse the hash value of the video surveillance device offline status field saved in the fourth-level hash index observation table. If the hash value of the video surveillance device offline status field changes, notify the business platform, and use the changed hash value of the video surveillance device offline status field to update the hash value of the corresponding video surveillance device offline status field in the fourth-level hash index observation table.
[0014] Furthermore, the present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the subscription method of the cross-domain video aggregation platform cascade directory tree subscription system.
[0015] Furthermore, the present invention also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the subscription method of the cross-domain video aggregation platform cascade directory tree subscription system is implemented.
[0016] Furthermore, the present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, the subscription method of the cross-domain video convergence platform cascade directory tree subscription system is implemented.
[0017] Compared with the prior art, the present invention has the following beneficial effects: the present invention introduces a hierarchical hash index observation table in the directory subscription module of the upper-level platform based on the cross-domain video aggregation platform cascade directory tree subscription system and method, and perceives the changes in the directory tree data of the video surveillance device in the lower-level platform from multiple dimensions through hash index observation tables of different levels, so as to improve the resource utilization of the upper-level platform and reduce the resource consumption of the lower-level platform; and the directory subscription module adopts a streaming policy chain to analyze the directory tree data of the video surveillance device, processes tens of thousands of directory tree data in a lightweight, high-performance, multi-dimensional manner, and can analyze and perceive the changes in the directory tree data of the video surveillance device in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a schematic diagram of a directory subscription module in the upper-level platform of the present invention;
[0019] Figure 2 The present invention is a flow chart of a subscription method of a cross-domain video aggregation platform cascade directory tree subscription system. DETAILED DESCRIPTION
[0020] The technical solution of the present invention is further explained below in conjunction with the accompanying drawings.
[0021] The present invention provides a video convergence platform cascade directory tree subscription system based on cross-domain, which is mainly applied to the observation subscription of the platform cascade directory tree of GB / T28181 standard. The video convergence platform cascade directory tree subscription system includes: a subordinate platform, an upper platform and a business platform. The upper platform is provided with a directory subscription module, and the directory subscription module is provided with a hierarchical hash index observation table. The lower platform is cascaded to the upper platform. The lower platform is used to store the directory tree data of the dynamically changing video surveillance equipment. The upper platform perceives the change of the video surveillance equipment through the hierarchical hash index observation table in the directory subscription module, and notifies the changed video surveillance equipment to the business platform. The directory subscription module of the present invention perceives the change of the directory tree data of the video surveillance equipment in the lower platform from multiple dimensions through the hash index observation tables of different levels by introducing the hierarchical hash index observation table, so as to improve the resource utilization of the upper platform and reduce the resource consumption of the lower platform. The directory tree data of the video surveillance equipment in the present invention includes: video surveillance equipment ID, video surveillance equipment name field, video surveillance equipment IP field and video surveillance equipment offline state field.
[0022] like Figure 1 , the hierarchical hash index observation table of the present invention includes: a first-level hash index observation table, a second-level hash index observation table, a third-level hash index observation table and a fourth-level hash index observation table; the first-level hash index observation table is used to perceive the change of the video surveillance device ID, the second-level hash index observation table is used to perceive the change of the video surveillance device name field, the third-level hash index observation table is used to perceive the change of the video surveillance device IP field, and the fourth-level hash index observation table is used to perceive the change of the video surveillance device in the offline state field. Among them, the first-level hash index observation table has the highest priority, and the second-level hash index observation table, the third-level hash index observation table and the fourth-level hash index observation table are connected in parallel. The first-level hash index observation table, the second-level hash index observation table, the third-level hash index observation table and the fourth-level hash index observation table in the directory subscription module use a streaming policy chain to perform multi-dimensional analysis on the directory tree data of the video surveillance device, process tens of thousands of directory tree data in a lightweight, high-performance, multi-dimensional manner, and can analyze and perceive the directory tree data changes of the video surveillance device in real time.
[0023] like Figure 2 The present invention also provides a subscription method based on a cross-domain video aggregation platform cascade directory tree subscription system, which specifically includes the following steps:
[0024] Step S10: The directory subscription module of the upper-level platform synchronizes the directory tree data of all video surveillance devices from the lower-level platform through a signaling request of GB / T28181;
[0025] Step S20, compare the hash values of all video surveillance device IDs in the synchronized directory tree data with the hash values of the video surveillance device IDs stored in the first-level hash index observation table. If there are the same hash values of the video surveillance device IDs, execute step S30; if there are unmatched hash values of the video surveillance device IDs in the directory tree data, the video surveillance device is a newly added video surveillance device, and the directory tree data of the newly added video surveillance device is updated to the first-level hash index observation table, the second-level hash index observation table, the third-level hash index observation table, and the fourth-level hash index observation table, and notified to the business platform; if there are unmatched hash values of the video surveillance device IDs in the first-level hash index observation table, the video surveillance device is a removed video surveillance device, and the directory tree data of the removed video surveillance device is removed from the first-level hash index observation table, the second-level hash index observation table, the third-level hash index observation table, and the fourth-level hash index observation table, and notified to the business platform. The first-level hash index observation table has the highest priority, and the directory tree data of the synchronized video surveillance device is preferentially obtained through the first-level hash index observation table to obtain the change in the number of video surveillance devices.
[0026] Step S30, use the hash value of the video surveillance device name field to traverse the hash value of the video surveillance device name field saved in the secondary hash index observation table. If the hash value of the video surveillance device name field changes, notify the business platform, and use the changed hash value of the video surveillance device name field to update the hash value of the corresponding video surveillance device name field in the secondary hash index observation table; use the hash value of the video surveillance device IP field to traverse the hash value of the video surveillance device IP field saved in the tertiary hash index observation table. If the hash value of the video surveillance device IP field changes, notify the business platform, and use the changed hash value of the video surveillance device IP field to update the hash value of the corresponding video surveillance device IP field in the tertiary hash index observation table; use the hash value of the video surveillance device offline status field to traverse the hash value of the video surveillance device offline status field saved in the fourth-level hash index observation table. If the hash value of the video surveillance device offline status field changes, notify the business platform, and use the changed hash value of the video surveillance device offline status field to update the hash value of the corresponding video surveillance device offline status field in the fourth-level hash index observation table. The changes in the internal information of the video surveillance device are obtained through the secondary hash index observation table, the tertiary hash index observation table and the quaternary hash index observation table.
[0027] When synchronizing directory tree data from a lower-level platform, tens of thousands of directory tree data may take tens of minutes to transmit. The subscription method of the cross-domain video convergence platform cascade directory tree subscription system of the present invention performs streaming processing on the directory tree data of the video surveillance device by setting a hierarchical hash index observation table in the directory subscription module of the upper-level platform. While receiving the transmitted directory tree data, the directory tree data is analyzed through the hierarchical hash index observation table, and changes in video surveillance devices such as addition, removal, online, offline, and device information modification are discovered in time, and the change information is sent to the business platform, which solves the problem of the upper-level platform observing and subscribing to the changes in the directory tree data of the video surveillance device, allows the upper-level platform to observe tens of thousands of directory tree changes, and allows the observation dimension to be defined to the field dimension of the directory tree.
[0028] In a technical solution of the present invention, a computer-readable storage medium is further provided, storing a computer program, wherein the computer program enables a computer to execute the subscription method of the cross-domain video aggregation platform cascade directory tree subscription system.
[0029] In a technical solution of the present invention, an electronic device is also provided, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the subscription method of the cross-domain video aggregation platform cascade directory tree subscription system is implemented.
[0030] In a technical solution of the present invention, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the subscription method of the cross-domain video aggregation platform cascade directory tree subscription system is implemented.
[0031] In the embodiments disclosed in the present application, the computer storage medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. The computer storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. More specific examples of computer storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0032] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0033] The above are only preferred embodiments of the present invention. The protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A cascade directory tree subscription system based on a cross-domain video aggregation platform, characterized in that: include: A subordinate platform, an upper platform and a business platform, the upper platform is provided with a directory subscription module, the directory subscription module is provided with a hierarchical hash index observation table, the subordinate platform is cascaded to the upper platform, the subordinate platform is used to store the directory tree data of dynamically changing video surveillance equipment, the upper platform perceives the changes of the video surveillance equipment through the hierarchical hash index observation table in the directory subscription module, and notifies the business platform of the changed video surveillance equipment.
2. According to claim 1, a cross-domain video aggregation platform cascade directory tree subscription system is characterized in that: The directory tree data of the video surveillance device includes: a video surveillance device ID, a video surveillance device name field, a video surveillance device IP field and a video surveillance device offline state field.
3. According to claim 2, a cross-domain video aggregation platform cascade directory tree subscription system is characterized in that: The hierarchical hash index observation table includes: a first-level hash index observation table, a second-level hash index observation table, a third-level hash index observation table and a fourth-level hash index observation table; the first-level hash index observation table is used to sense changes in the video surveillance device ID, the second-level hash index observation table is used to sense changes in the video surveillance device name field, the third hash index observation table is used to sense changes in the video surveillance device IP field, and the fourth-level hash index observation table is used to sense changes in the offline status field of the video surveillance device.
4. A cross-domain video aggregation platform cascade directory tree subscription system according to claim 3, characterized in that: The first-level hash index observation table has the highest priority, and the second-level hash index observation table, the third-level hash index observation table and the fourth-level hash index observation table are connected in parallel.
5. A subscription method for a cross-domain video convergence platform cascade directory tree subscription system according to claim 3 or 4, characterized in that: The specific steps include: Step S10: The directory subscription module of the upper-level platform synchronizes the directory tree data of all video surveillance devices from the lower-level platform; Step S20, compare the hash values of all video surveillance device IDs in the synchronized directory tree data with the hash values of the video surveillance device IDs stored in the first-level hash index observation table one by one, if there are identical hash values of the video surveillance device IDs, execute step S30; if there is an unmatched hash value of the video surveillance device ID in the directory tree data, the video surveillance device is a newly added video surveillance device, and the directory tree data of the newly added video surveillance device is updated to the first-level hash index observation table, the second-level hash index observation table, the third-level hash index observation table, and the fourth-level hash index observation table, and notified to the business platform; if there is an unmatched hash value of the video surveillance device ID in the first-level hash index observation table, the video surveillance device is a removed video surveillance device, and the directory tree data of the removed video surveillance device is removed from the first-level hash index observation table, the second-level hash index observation table, the third-level hash index observation table, and the fourth-level hash index observation table, and notified to the business platform; Step S30, using the hash value of the video surveillance device name field to traverse the hash value of the video surveillance device name field stored in the secondary hash index observation table, if the hash value of the video surveillance device name field changes, notify the business platform, and use the changed hash value of the video surveillance device name field to update the hash value of the corresponding video surveillance device name field in the secondary hash index observation table; Use the hash value of the video surveillance device IP field to traverse the hash value of the video surveillance device IP field stored in the three-level hash index observation table. If the hash value of the video surveillance device IP field changes, notify the business platform and use the changed hash value of the video surveillance device IP field to update the hash value of the corresponding video surveillance device IP field in the three-level hash index observation table. Use the hash value of the offline status field of the video surveillance device to traverse the hash value of the offline status field of the video surveillance device saved in the four-level hash index observation table. If the hash value of the offline status field of the video surveillance device changes, notify the business platform, and use the changed hash value of the offline status field of the video surveillance device to update the hash value of the offline status field of the corresponding video surveillance device in the four-level hash index observation table.
6. A computer-readable storage medium storing a computer program, characterized in that: The computer program enables the computer to execute the subscription method of the cross-domain video aggregation platform cascade directory tree subscription system as claimed in claim 5.
7. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the subscription method of the cross-domain video aggregation platform cascade directory tree subscription system as claimed in claim 5 is implemented.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by the processor, the subscription method of the cross-domain video aggregation platform cascade directory tree subscription system according to claim 5 is implemented.