WO2018049966A1 - 视频监控系统的控制方法、装置及系统 - Google Patents

视频监控系统的控制方法、装置及系统 Download PDF

Info

Publication number
WO2018049966A1
WO2018049966A1 PCT/CN2017/098300 CN2017098300W WO2018049966A1 WO 2018049966 A1 WO2018049966 A1 WO 2018049966A1 CN 2017098300 W CN2017098300 W CN 2017098300W WO 2018049966 A1 WO2018049966 A1 WO 2018049966A1
Authority
WO
WIPO (PCT)
Prior art keywords
ipc
primary
camera
list
address
Prior art date
Application number
PCT/CN2017/098300
Other languages
English (en)
French (fr)
Inventor
蔡永锦
傅福
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018049966A1 publication Critical patent/WO2018049966A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Definitions

  • Embodiments of the present invention relate to the field of video surveillance, and in particular, to a method, device, and system for controlling a video surveillance system.
  • the video surveillance system is an electronic system for video surveillance through an Internet Protocol Camera (IPC).
  • IPC Internet Protocol Camera
  • IPC is a camera that produces a digital video stream and transmits the digital video stream over a wired or wireless network.
  • the current video surveillance system 100 includes a management client 110, a server 120, and an IPC 130.
  • the management client 110 is configured to send a first control command to the server 120, where the first control command carries an IPC identifier and a control field; the server 120 receives the first control command, and obtains an IPC identifier and a control field from the first control command, according to The IPC identifier determines the IPC to be controlled, and then generates a second control command according to the control field to send to the controlled IPC.
  • the control command may be at least one of a device configuration command, a live acquisition command, a storage configuration command, a video playback command, and a pan/tilt/Zoom (PTZ) control command.
  • PTZ pan/tilt/Zoom
  • the management client 110 sends a live acquisition command carrying the IPC identifier and the control field to the server 120, and the server 120 receives the control command to determine the IPC 130 according to the IPC identifier, and generates a live acquisition command according to the live acquisition command.
  • the IPC 130 is sent to the determined IPC 130.
  • the IPC 130 sends the real-time digital video stream to the server 120 according to the live acquisition command sent by the server 120, and the real-time digital video stream is sent by the server 120 to the management client 110.
  • IPC Since the computing power and network performance of IPC are getting better and better, after implementing the basic functions of IPC, IPC still has a lot of computing power and network bandwidth idle, and the computing power and network bandwidth of IPC are not effectively utilized.
  • an embodiment of the present invention provides a method and an apparatus for controlling a video monitoring system.
  • the technical solution is as follows:
  • an embodiment of the present invention provides a method for controlling a video surveillance system. Since the existing video surveillance system includes a management client, a server, and a plurality of Internet Protocol Cameras (IPCs), the configuration complexity is high when configuring the video surveillance system, and since the performance of the IPC is getting better and better, After implementing the basic functions of IPC, in order to effectively utilize the idle computing power and network bandwidth of IPC, the control methods of video surveillance system and video surveillance system are improved.
  • IPCs Internet Protocol Cameras
  • the video monitoring system includes a management client and a plurality of network camera IPCs.
  • the control method of the video monitoring system includes: generating a camera list by a primary IPC in the plurality of IPCs, the camera The list records the correspondence between the IPC and the camera information, and the camera information includes at least the IP of the IPC. Addressing; the primary IPC receives a camera list acquisition request sent by the management client; the primary IPC sends the camera list to the management client, and the management client determines the plurality of IPCs according to the camera list The IP address of the IPC being controlled, and sending a control command to the controlled IPC according to the IP address of the controlled IPC.
  • the application generates a camera list through the primary IPC.
  • the primary IPC provides the camera list to the management client, and the management client determines the controlled IPC according to the camera list to directly control the controlled IPC;
  • the main IPC replaces the servers in the video surveillance system in the prior art, does not need to deploy the server, and makes the computing power and network bandwidth of the IPC fully utilized, which reduces the complexity of the video surveillance network networking.
  • the method before the primary IPC receives the camera list acquisition request sent by the management client, the method further includes: receiving, by the primary IPC, the predetermined virtual access address.
  • the login of the client is managed, and the virtual access address includes: a virtual IP address and a virtual port.
  • the primary IPC generates a camera list, including: the primary IPC is performed every predetermined time interval
  • the first Hello message including the camera information of the primary IPC is sent in a multicast form or a broadcast form, and the first hello message sent by the primary IPC is received from the IPC in the multiple IPCs, and the primary IPC is sent to the primary IPC, including the secondary IPC.
  • the primary IPC generates the camera list according to the camera information from the IPC, including: if the slave IPC does not exist in the camera list The camera information of the IPC is added to the camera list by the primary IPC; if the camera information of the secondary IPC exists in the camera list, the primary IPC receives the second hello message according to the camera information. Time, refreshing the aging time of the slave IPC in the camera list; the primary IPC detects whether the aging time of each slave IPC in the camera list exceeds a predetermined time, and the aging time exceeds the predetermined time from the IPC as an expired The IPC deletes the camera information of the expired IPC from the camera list.
  • the primary IPC updates the ICP information in the camera list according to the received IPC information, avoiding the situation where the IPC loses communication with the primary IPC and the primary IPC does not know, ensuring the accuracy of the camera list generated by the primary IPC.
  • the method further includes: determining, by the primary IPC, a standby IPC according to the camera list, where the standby IPC is used to replace the primary IPC when the primary IPC fails; and the standby IPC sends a camera to the primary IPC.
  • a list obtaining request the primary IPC receives the camera list acquisition request sent by the standby IPC; the primary IPC sends the camera list to the standby IPC, and the standby IPC receives the camera list sent by the primary IPC.
  • the primary IPC determines the standby IPC according to the camera list to avoid the problem that the video surveillance system cannot continue to work when the primary IPC fails, and improves the reliability of the video surveillance system.
  • the primary IPC determines a standby IPC according to the camera list, including: a primary IPC according to the camera list
  • the camera information acquires a priority from the IPC; the primary IPC determines the standby IPC according to the order of the priority from high to low.
  • the primary IPC determines the backup IPC according to the camera list to avoid the problem that the video surveillance system cannot work normally due to the failure of the primary IPC, and ensures that the video surveillance system can continue to operate when the primary IPC fails.
  • the primary The IPC determines the standby IPC according to the order of the priority from high to low, including: if the number of the highest priority IPCs is at least two, the primary IPC is based on the camera in the camera list. Obtaining, by the IPC, a Media Access Control (MAC) address of the IPC; the primary IPC determines, as the standby IPC, the IPC having the lowest MAC address or the largest MAC address among the IPCs having the highest priority. .
  • MAC Media Access Control
  • the method before the receiving the camera list acquisition request sent by the standby IPC, the method further includes: every predetermined time
  • the first hello packet is sent in the form of a multicast or a broadcast, and the first hello packet includes an IP address of the standby IPC and a virtual access address of the primary IPC, and the IP address of the standby IPC is used to trigger
  • the standby IPC determines that it is the standby IPC, and records the virtual access address when determining that it is the standby IPC, and the virtual access address is used as the management when the standby IPC replaces the primary IPC.
  • the login address of the client is sent in the form of a multicast or a broadcast, and the first hello packet includes an IP address of the standby IPC and a virtual access address of the primary IPC, and the IP address of the standby IPC is used to trigger
  • the standby IPC determines that it is the standby IPC, and records the virtual access address when determining that it is the standby IPC, and the virtual access address is
  • the video monitoring system includes at least two domains having a superordinate relationship
  • Each primary domain includes a primary IPC
  • the method further includes: the primary IPC in the i-th domain sends a camera list acquisition request to the primary IPC in the i+1th domain, and the primary in the i+1th domain
  • the IPC receives the camera list acquisition request, and sends the camera list in the i+1st level domain and the camera list of the domain in the i+1st level domain to the primary IPC in the i-th level domain, or the a camera list in the i+1 level domain
  • the primary IPC in the i-th level domain receives the camera list in the i+1st level domain sent by the primary IPC in the i+1st level domain, and the a camera list of a domain of the i+1st level domain, or a camera list of the (i+1)th domain
  • the primary IPC in the i-th domain receives the camera list in the i+1st level domain sent by the
  • each primary IPC is responsible for the management of a limited number of IPCs in the domain, effectively avoiding performance bottlenecks of the primary IPC, and reducing the update and maintenance time of the camera list.
  • the primary IPC in the i-th level domain sends a camera list to the primary IPC in the (i+1)th domain domain
  • the method further includes: the primary IPC in the i-th level domain sends a neighbor establishment request to the primary IPC in the (i+1)th domain, where the neighbor establishment request includes the primary in the i-th level domain
  • the camera information of the IPC, the primary IPC in the (i+1)th level domain sends a neighbor establishment response;
  • the primary IPC in the i-th level domain receives the neighbor sent by the primary IPC in the (i+1)th level domain Establishing a response, the neighbor establishment response includes camera information of a primary IPC in the (i+1)th level domain; and a primary IPC in the i-th level domain according to the (i+1)th level in the neighbor establishment response
  • the camera information of the primary IPC in the domain generates a neighbor list, and corresponding
  • the primary IPC in the i-th level domain is configured according to the (i+1)th in the neighbor establishment response
  • the method further includes: the primary IPC in the i-th level domain receives the neighbor heartbeat message sent by the primary IPC in the (i+1)th level domain every predetermined time interval.
  • the primary IPC in the i-th level domain deletes the camera information of the primary IPC in the i+1st-level domain from the neighbor list.
  • an embodiment of the present invention provides a method for controlling a video surveillance system.
  • the existing video surveillance system includes a management client, a server, and multiple Internet Protocol Cameras (IPCs).
  • IPCs Internet Protocol Cameras
  • the configuration complexity is high, and since the performance of the IPC is getting better and better, after implementing the basic functions of the IPC, in order to effectively utilize the idle computing power and network bandwidth of the IPC, the video monitoring system and the video monitoring system are The control method has been improved.
  • the video monitoring system includes a management client and a plurality of network camera IPCs
  • the method includes: the management client sends a camera list acquisition request to a primary IPC of the plurality of IPCs, and the primary IPC receives the camera. a list obtaining request, sending a camera list to the management client; the management client receiving a camera list sent by the primary IPC, wherein the camera list records a correspondence between the IPC and camera information, the camera information is at least The IP address of the IPC is included; the management client determines an IP address of the controlled IPC in the plurality of IPCs according to the camera list, and sends a control instruction to the controlled IPC according to the IP address of the controlled IPC.
  • the main IPC generates a camera list.
  • the primary IPC provides the camera list to the management client, and the management client determines the controlled IPC according to the camera list, directly controls the controlled IPC; and uses the primary IPC.
  • the computing power and network bandwidth of the IPC are fully utilized, which reduces the complexity of the video surveillance network networking.
  • the method before the management client sends the camera list acquisition request to the primary IPC, the method further includes: the management client logging in to the server by using a predetermined virtual access address.
  • the primary IPC the virtual access address includes: a virtual IP address and a virtual port.
  • the management client Before the management client logs in to the primary IPC through the predetermined virtual access address, the management client sends a virtual access address configuration request to the primary IPC, the primary IPC receives the virtual access address configuration request, and configures the virtual access address.
  • the control instruction includes a live request instruction, a storage configuration instruction, a video playback instruction, and an omnidirectional rotation At least one of a zoom (Pan/Tilt/Zoom, PTZ) control command; after the sending the control command to the controlled IPC according to the IP address of the controlled IPC, the method further includes: when the control command includes a live command Receiving a real-time digital video stream sent by the controlled IPC to display the real-time digital video stream; and receiving a storage configuration response sent by the controlled IPC when the control instruction includes storing a configuration instruction, The storage configuration response is sent by the controlled camera after storing the digital video stream; when the control instruction is a video playback instruction, receiving the playback digital video stream sent by the controlled IPC, displaying the playback digital video stream; When the control instruction includes a PTZ control instruction, receiving a PTZ control response sent by the controlled IPC.
  • PTZ zoom
  • the management client sends a live request command directly to the controlled IPC in the camera list according to the camera list, and the controlled IPC directly sends the real-time digital video stream to the management client, thereby improving the acquisition speed of the live video stream and reducing the video stream.
  • the management client sends a video playback instruction directly to the controlled IPC in the camera list according to the camera list, and the controlled IPC directly sends the playback digital video stream to the management client, thereby improving the acquisition speed of the playback video stream;
  • the management client sends a storage configuration instruction directly to the controlled IPC in the camera list according to the camera list, and the controlled IPC directly stores the digital video stream according to the storage configuration instruction, thereby helping to improve the utilization of the remaining storage resources in the IPC;
  • the management client sends a PTZ control command directly to the controlled IPC in the camera list according to the camera list.
  • the controlled IPC adjusts itself according to the PTZ control command, which helps to improve the speed at which the controlled IPC completes the PTZ adjustment.
  • an embodiment of the present invention provides a control device for a video surveillance system, the device comprising at least one unit, the at least one unit configured to implement the foregoing first aspect or at least one implementation of the first aspect The control method of the video surveillance system.
  • an embodiment of the present invention provides a control apparatus for a video monitoring system, where the apparatus includes at least one unit, and the at least one unit is configured to implement the foregoing second aspect or at least one implementation of the second aspect.
  • the control method of the video surveillance system is configured to implement the foregoing second aspect or at least one implementation of the second aspect.
  • an embodiment of the present invention provides an IPC, where the IPC includes a processor, a memory, and an image acquisition component, the memory is configured to store one or more instructions, the instructions being indicated by the processor Executing, the processor is configured to implement the control method of the video monitoring system provided in any one of the foregoing first aspect or the first aspect.
  • an embodiment of the present invention provides a terminal, where the terminal includes a processor and a memory, where the memory is used to store one or more instructions, the instructions are indicated as being executed by the processor,
  • the processor is for implementing the control method of the video surveillance system provided in any of the possible designs of the second aspect or the second aspect described above.
  • an embodiment of the present invention provides a computer readable storage medium, where the video surveillance provided by the foregoing first aspect or any one of the first aspects may be implemented.
  • a video monitoring system comprising: the control device of the video surveillance system according to the above third aspect, and the control device of the video surveillance system according to the fourth aspect; or
  • the system includes the IPC as described in the fifth aspect above, and the terminal as described in the sixth aspect above.
  • FIG. 1 is a schematic structural diagram of a video monitoring system according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a video monitoring system according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a terminal installed with a management client according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an IPC according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for controlling a video surveillance system according to an embodiment of the present invention
  • 6A is a flowchart of a method for controlling a video surveillance system according to an embodiment of the present invention.
  • FIG. 6B is a schematic diagram of a principle for configuring a virtual access address according to an embodiment of the present invention.
  • 6C is a flowchart of a method for controlling a video surveillance system according to an embodiment of the present invention.
  • 6D is a flowchart of a method for controlling another video monitoring system according to an embodiment of the present invention.
  • 6E is a flowchart of a method for controlling another video monitoring system according to an embodiment of the present invention.
  • 6F is a flowchart of a method for controlling another video monitoring system according to an embodiment of the present invention.
  • FIG. 7A is a flowchart of a method for controlling another video monitoring system according to an embodiment of the present invention.
  • FIG. 7B is a flowchart of a method for controlling another video monitoring system according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for controlling another video monitoring system according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a principle of domain division in a video surveillance system according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of a method for controlling a video surveillance system according to an embodiment of the present invention.
  • FIG. 11A is a flowchart of a method for controlling a video surveillance system according to an embodiment of the present invention.
  • FIG. 11B is a schematic diagram of domain topology information according to an embodiment of the present invention.
  • FIG. 11C is a schematic diagram of a camera list according to an embodiment of the present invention.
  • FIG. 12 is a block diagram of a control apparatus of a video monitoring system according to an embodiment of the present invention.
  • FIG. 13 is a block diagram of a control apparatus of another video monitoring system according to an embodiment of the present invention.
  • a “module” as referred to herein refers to a program or instruction stored in a memory that is capable of implementing certain functions;
  • "unit” as referred to herein refers to a functional structure that is logically divided, the “unit” may be Pure hardware implementation, or a combination of hardware and software.
  • Multiple as referred to herein means two or more. "and/or”, describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately.
  • the character "/" generally indicates that the contextual object is an "or" relationship.
  • FIG. 2 is a schematic structural diagram of a video monitoring system according to an exemplary embodiment of the present invention.
  • the video surveillance system 200 includes a terminal 210 and a plurality of Internet Protocol Cameras (IPCs) 220.
  • IPCs Internet Protocol Cameras
  • Terminal 210 has the capabilities of data transmission and IPC management.
  • a management client of the video surveillance system is installed in the terminal 210.
  • the management client is a software client for managing IPC.
  • the management client is configured to receive user operations, display a list of cameras, and send control commands to one or several IPCs 220 in the video surveillance system according to user operations.
  • the IPC220 is a camera that produces a digital video stream and transmits the digital video stream over a wired or wireless network. Multiple IPCs 220 are connected to each other through an Internet Protocol (IP) network.
  • IP Internet Protocol
  • the primary IPC and the secondary IPC are included in multiple IPCs 220. Normally, the primary IPC is the IPC with the best processing performance.
  • the primary IPC is the IPC that the user logs in through the management client in the terminal, that is, the primary IPC provides an entry for controlling the IPC in the video surveillance system.
  • the terminal 210 is connected to a plurality of IPCs 220 through an IP network.
  • FIG. 3 is a schematic structural diagram of a terminal 210 according to an embodiment of the present invention.
  • the terminal 210 includes a processor 31, a memory 32, a network interface 33, and a bus 34. among them:
  • Memory 32 and network interface 33 are coupled to processor 31 via bus 34, respectively.
  • Processor 31 includes one or more processing cores.
  • the processor 31 executes various functional applications and data processing by running a software program and a module, for example, determining an IP address of the controlled IPC according to the camera list, and transmitting a control instruction to the controlled IPC according to the IP address of the controlled IPC.
  • Memory 32 can be used to store software programs as well as modules.
  • the memory 32 can store an operating system 35, an application module 36 required for at least one function.
  • the operating system 35 can be an operating system such as Real Time eXecutive (RTX), LINUX, UNIX, WINDOWS, or OS X.
  • the application module 36 includes a communication module 361, an address determination module 362, and the like.
  • the communication module 361 is configured to send a camera list acquisition request to the primary IPC of the plurality of IPCs; receive the camera list sent by the primary IPC, and record the correspondence between the IPC and the camera information, and the camera information includes at least the IPC. IP address; send control commands to the controlled IPC according to the IP address of the controlled IPC in multiple IPCs.
  • the address determining module 362 is configured to determine an IP address of the controlled IPC according to the camera list.
  • modules in the embodiments of the present invention may further implement other steps of the control method of the video monitoring system provided by the present invention.
  • the modules in the embodiments of the present invention may further implement other steps of the control method of the video monitoring system provided by the present invention.
  • memory 32 can be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Magnetic Memory
  • Disk Disk or Optical Disk.
  • the structure of the terminal 210 shown in FIG. 3 does not constitute a limitation of the terminal 210, and may include more or less components than those illustrated, or combine some components, or different component arrangements. .
  • FIG. 4 is a schematic structural diagram of an IPC 220 according to an embodiment of the present invention.
  • the IPC 220 includes a processor 41, a memory 42, a network interface 43, and an image acquisition component 44.
  • the IPC 220 further includes a sound collection component (not shown). among them:
  • Memory 42, network interface 43, and image acquisition component 44 are coupled to processor 41, respectively.
  • Memory 41 is coupled to image acquisition component 44.
  • Processor 41 includes one or more processing cores.
  • the processor 41 executes various functional applications and data processing by running software programs and modules.
  • Memory 42 can be used to store software programs as well as modules.
  • the memory 42 can also be used to store images acquired by the image acquisition component 44.
  • the memory 42 can store an operating system 431, a configuration management module 432, a core service module 433, an intelligent algorithm module 434, a hardware driver module 435, a system call secondary encapsulation module 436, a security authentication module 437, a protocol gateway module 438, and an autonomous management module 439.
  • a virtual interface/virtual IP (VIF/VIP) management module 440 among them:
  • the operating system 431 can be an operating system such as Real Time eXecutive (RTX), LINUX, UNIX, WINDOWS, or OS X.
  • RTX Real Time eXecutive
  • LINUX LINUX
  • UNIX UNIX
  • WINDOWS WINDOWS
  • OS X OS X
  • the configuration management module 432 is used for configuration management of the IPC.
  • the core service module 433 is configured to encode the video stream collected by the IPC.
  • the intelligent algorithm module 434 and the hardware driver module 435 belong to the interface layer.
  • the autonomous management module 439 is configured to generate a camera list, discover the newly added IPC in the video surveillance system, elect the primary IPC and the standby IPC, maintain the neighbor relationship, and receive the neighbor message.
  • the VIF/VIP management module 440 is configured to communicate with a management client in the terminal to create a virtual IP address and a virtual port. It should be noted that the slave IPC that is not the primary IPC and the standby IPC may have no VIF/VIP management module.
  • memory 42 can be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • modules in the embodiments of the present invention may further implement other steps of the control method of the video monitoring system provided by the present invention.
  • the modules in the embodiments of the present invention may further implement other steps of the control method of the video monitoring system provided by the present invention.
  • the image acquisition component 44 is configured to collect video streams and images.
  • IPC 220 structure illustrated in FIG. 4 does not constitute a limitation to IPC 220, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.
  • FIG. 5 is a flowchart of a method for controlling a video monitoring system according to an embodiment of the present invention. This embodiment is exemplified by applying the method to the video monitoring system shown in FIG. 2. The method includes the following steps:
  • step 501 the primary IPC generates a camera list.
  • the primary IPC in multiple IPCs generates a list of cameras.
  • the camera list records the correspondence between the IPC and the camera information, and the camera information includes at least the IP address of the IPC.
  • Step 502 The management client sends a camera list acquisition request to the primary IPC.
  • the camera list is used by the management client to determine the IP address of the controlled IPC in the plurality of IPCs, and sends a control command to the controlled IPC according to the IP address of the controlled IPC.
  • the IPC controlled is the IPC controlled by the managed client.
  • the charged IPC is at least one IPC in the camera list.
  • Step 503 The primary IPC receives a camera list acquisition request sent by the management client.
  • step 504 the primary IPC sends a camera list to the management client.
  • Step 505 The management client receives the camera list sent by the primary IPC.
  • Step 506 The management client determines an IP address of the controlled IPC in the plurality of IPCs according to the camera list.
  • step 507 the management client sends a control command to the controlled IPC according to the IP address of the controlled IPC.
  • the IPC being controlled is the primary IPC and/or from the IPC.
  • steps 501, 503, and 504 can be implemented separately as the method embodiment of the primary IPC side, and the steps 502 and 505 to 507 can be separately implemented as the method embodiment of the management client side.
  • the control method of the video monitoring system provided by the embodiment of the present invention generates a camera list through the primary IPC.
  • the primary IPC provides the camera list to the management client, and manages the client.
  • the terminal determines the controlled IPC according to the camera list, directly controls the controlled IPC; replaces the server in the video monitoring system in the prior art by using the primary IPC, so that the computing power and network bandwidth of the IPC are fully utilized, and the network of the video surveillance network is reduced. the complexity.
  • FIG. 6A is a flowchart of a method for controlling a video monitoring system according to another embodiment of the present invention. This embodiment is exemplified by applying the method to the video monitoring system shown in FIG. 2. The method includes the following steps:
  • step 601 the primary IPC generates a camera list.
  • the primary IPC in multiple IPCs generates a list of cameras.
  • the camera list records the correspondence between the IPC and the camera information, and the camera information includes at least the IP address of the IPC.
  • the video surveillance system has one primary IPC and four secondary IPCs.
  • the list of cameras generated by the primary IPC includes the IP address of the primary IPC and the IP addresses of the four secondary IPCs, as shown in the following table:
  • IPC_1 Primary IPC IP address 1 IPC_2 other IP address 2 IPC_3 other IP address 3 IPC_4 other IP address 4 IPC_5 other IP address 5
  • the IP address of the IPC is the actual IP address (or physical IP address) of the IPC.
  • the management client provides an IP address for each IPC in the video surveillance system. Configuring an IP address for each IPC can be done manually or automatically by the program.
  • an IPC with better processing performance is selected from the IPC in the video surveillance system as the primary IPC, and the virtual access address is configured by the management client to the selected primary IPC, and the virtual access address includes a virtual IP address and a virtual port.
  • the virtual IP address is the entry for the user to log in to the primary IPC through the management client.
  • the management client sends a virtual IP address and a virtual port configuration request to the VIF/VIP management module in the primary IPC through the actual IP address of the primary IPC, and the primary IPC receives the virtual IP address and the virtual port configuration request sent by the management client. Create a virtual IP address and virtual port and send a configuration result response to the management client.
  • the management client determines whether the primary IPC successfully configures the virtual port and the virtual IP address through the configuration result response.
  • the operating system of the primary IPC adds a virtual interface at the data link layer and a corresponding virtual IP address at the IP layer, as shown in FIG. 6B.
  • Step 602 The management client logs in to the primary IPC through a predetermined virtual access address.
  • the management client logs in to the primary IPC through a predetermined virtual IP address.
  • step 603 the primary IPC receives the login of the management client through the predetermined virtual access address.
  • the primary IPC receives the login of the management client through the predetermined virtual IP address.
  • step 604 the management client sends a camera list acquisition request to the primary IPC.
  • the management client sends a camera list acquisition request to the VIF/VIP management module of the primary IPC.
  • Step 605 The primary IPC receives a camera list acquisition request sent by the management client.
  • the primary IPC receives the camera list acquisition request sent by the management client through the VIF/VIP management module.
  • step 606 the primary IPC sends a camera list to the management client.
  • Step 607 The management client receives the camera list sent by the primary IPC.
  • step 608 the management client determines the IP address of the controlled IPC according to the camera list.
  • the charged IPC is at least one IPC of a plurality of IPCs.
  • step 609 the management client sends a control command to the controlled IPC according to the IP address of the controlled IPC.
  • the IPC being controlled is the primary IPC and/or from the IPC.
  • the control instructions include at least one of a live request command, a storage configuration command, a video playback command, and a pan/tilt/Zoom (PTZ) control command.
  • a live request command a storage configuration command
  • a video playback command a pan/tilt/Zoom (PTZ) control command.
  • PTZ pan/tilt/Zoom
  • step 601, step 603, step 605, and step 606 can be separately implemented as a method embodiment on the primary IPC side, and step 602, step 605, and step 607 to step 609 can be separately implemented as an embodiment of the method for managing the client side.
  • the control method of the video monitoring system provided by the embodiment of the present invention generates a camera list through the primary IPC.
  • the primary IPC provides the camera list to the management client, and manages the client.
  • the terminal determines the controlled IPC according to the camera list and directly controls the controlled IPC.
  • the main IPC is used to replace the server in the video surveillance system in the prior art, so that the computing power and network bandwidth of the IPC are fully utilized, and the video surveillance network is reduced. The complexity.
  • the management client determines the IP address of the controlled IPC according to the camera list, and sends the IP address of the controlled IPC to the controlled IPC according to the IP address of the controlled IPC.
  • the live request command that is, step 609 is instead implemented as step 609a, and the method further includes the following steps, as shown in FIG. 6C:
  • Step 609a when the control command is a live request command, send a live request command to the controlled IPC according to the IP address of the controlled IPC.
  • Step 610a the controlled IPC receives the live request command sent by the management client.
  • step 611a the controlled IPC sends a live request response to the management client.
  • the live request response is used to indicate that the controlled IPC receives the live request command sent by the management client.
  • step 612a the controlled IPC sends a real-time digital video stream to the management client.
  • step 613a the management client receives the real-time digital video stream sent by the controlled IPC, and displays the real-time digital video stream.
  • the management client sends a live request command directly to the controlled IPC in the camera list according to the camera list, and the controlled IPC directly sends the real-time digital video stream to the management client, thereby improving the acquisition speed of the live video stream and reducing the video stream. Delayed time.
  • the management client determines the IP address of the controlled IPC according to the camera list, and sends the IP address of the controlled IPC to the controlled IPC according to the IP address of the controlled IPC.
  • the video playback instruction that is, step 609 is instead implemented as step 609b, and the method further includes the following steps, as shown in FIG. 6D:
  • Step 609b when the control instruction includes a video playback instruction, the management client sends a video playback instruction to the controlled IPC according to the IP address of the controlled IPC.
  • step 610b the controlled IPC receives a video playback instruction sent by the management client.
  • Step 611b the controlled IPC searches for the playback digital video stream of the time period indicated by the video playback instruction in the digital video stream stored by itself.
  • step 612b the controlled IPC sends a playback digital video stream to the management client.
  • Step 613b the management client receives the playback digital video stream sent by the controlled IPC, and displays the playback digital video stream.
  • the management client sends a video playback instruction directly to the controlled IPC in the camera list according to the camera list, and the controlled IPC directly sends the playback digital video stream to the management client, thereby improving the acquisition speed of the playback video stream.
  • the management client determines the IP address of the controlled IPC according to the camera list, and sends the IP address of the controlled IPC to the controlled IPC according to the IP address of the controlled IPC.
  • the storage configuration instruction that is, step 609 is instead implemented as step 609c, and the method further includes the following steps, as shown in FIG. 6E:
  • Step 609c When the control instruction includes storing the configuration instruction, the management client sends a storage configuration instruction to the controlled IPC according to the IP address of the controlled IPC.
  • step 610c the controlled IPC receives the storage configuration command sent by the management client.
  • step 611c the controlled IPC stores a digital video stream indicated by the storage configuration command.
  • step 612c the controlled IPC sends a storage configuration response to the management client.
  • the storage configuration response is used to instruct the controlled IPC to complete storage of the digital video stream indicated by the storage configuration command.
  • step 613c the management client receives the storage configuration response sent by the controlled IPC.
  • the management client sends a storage configuration instruction directly to the controlled IPC in the camera list according to the camera list, and the controlled IPC directly stores the digital video stream according to the storage configuration instruction, thereby helping to improve the utilization of the remaining storage resources in the IPC.
  • the management client determines the IP address of the controlled IPC according to the camera list, and sends the IP address of the controlled IPC to the controlled IPC according to the IP address of the controlled IPC.
  • the PTZ control instruction that is, step 609 is replaced by step 609d.
  • the method further includes the following steps, as shown in FIG. 6F:
  • Step 609d when the control instruction includes the PTZ control instruction, the management client sends a PTZ control instruction to the controlled IPC according to the IP address of the controlled IPC.
  • the PTZ control command is used to perform at least one of horizontal rotation, vertical rotation, magnification, reduction magnification, near focus adjustment, and far focus adjustment of the IPC.
  • step 610d the controlled IPC receives the PTZ control command sent by the management client.
  • step 611d the controlled IPC performs corresponding PTZ adjustment according to the PTZ control instruction.
  • step 612d the controlled IPC sends a PTZ control response to the management client.
  • the PTZ control response is used to indicate that the controlled IPC completes the PTZ adjustment.
  • step 613d the management client receives the PTZ control response sent by the controlled IPC.
  • the management client sends a PTZ control command directly to the controlled IPC in the camera list according to the camera list, and the controlled IPC adjusts itself according to the PTZ control command, which helps to improve the speed at which the controlled IPC completes the PTZ adjustment.
  • control command includes any two of a live request command, a storage configuration command, a video playback command, and a PTZ control command
  • control instruction includes any three of a live request command, a storage configuration command, a video playback command, and a PTZ control command, the above-mentioned FIG. 6C, FIG. 6D, and FIG. 6E, any three of the embodiments shown in FIG.
  • FIG. 6F can be combined into a new embodiment; when the control command includes a live request command, a storage configuration command, a video playback command, and a PTZ control command, the above FIG. 6C
  • the embodiments shown in Figures 6D, 6E, and 6F can be combined into a new embodiment.
  • the execution order of each step may be set in advance, which is not limited by the embodiment of the present invention.
  • the main IPC generating the camera list includes the following steps, as shown in FIG. 7A:
  • Step 701 The primary IPC sends the first hello message in a multicast form or a broadcast form every predetermined time interval.
  • the first hello message includes camera information of the primary IPC.
  • the video surveillance network will add IPC.
  • the primary IPC In order to avoid the problem that the IPC of the primary IPC is not known by the new IPC, the primary IPC periodically sends the video to the video in multicast or broadcast mode. A plurality of the first hello packets are sent from the IPC in the monitoring system.
  • the IPC is an IPC other than the primary IPC in the video surveillance network.
  • the camera information of the primary IPC includes a virtual IP address of the primary IPC and an actual IP address of the primary IPC.
  • the camera information of the primary IPC also includes the priority of the primary IPC, the name of the primary IPC, and the hello packet time. Interval, Media Access Control (MAC) address, authentication information.
  • the authentication information is used for mutual authentication between the primary IPC and the secondary IPC.
  • the hello packet interval is used to negotiate the packet transmission time with the secondary IPC to ensure that the primary IPC sends hello packets at intervals and sends them from the IPC.
  • the hello packets have the same interval.
  • the first hello packet sent by the primary IPC is received from the IPC, and the IP address and virtual access address of the primary IPC are recorded.
  • the IPC sends a second hello packet to the primary IPC according to the IP address of the primary IPC in the first hello packet.
  • the IPC may fail to communicate with the primary IPC.
  • the second hello report is sent from the IPC to the primary IPC every predetermined time.
  • the second Hello message is sent periodically from the IPC to the primary IPC.
  • Step 702 The primary IPC receives the second hello packet sent from the IPC.
  • the second hello message includes camera information from the IPC.
  • the camera information from the IPC includes the actual IP address, priority, and MAC address of the IPC.
  • the camera information of the IPC includes the name of the IPC, the IPC authentication information, and the hello packet interval.
  • step 703 the primary IPC generates a camera list based on the camera information from the IPC.
  • the primary IPC generates an initial camera list according to its own camera information, where the initial camera list includes only the camera information of the primary IPC.
  • Table 1 it schematically shows a list of cameras.
  • IP address IPC name Certification Information Aging time 192.168.0.1 IPC_1 ADSFS)312321$% ⁇ 10
  • This step is specifically implemented by the following steps, as shown in FIG. 7B:
  • Step 7031 If there is no camera information from the IPC in the camera list, the camera information from the IPC is added to the camera list.
  • the primary IPC After receiving the second hello packet sent from the IPC, the primary IPC obtains the camera information of the IPC from the second hello packet, and determines whether the camera information of the slave IPC exists in the camera list, if the camera of the slave IPC does not exist. Information, the camera information from the IPC is added to the camera list, and the aging time is set for the slave IPC. Optionally, the aging time is set from zero.
  • the primary IPC After the primary IPC receives two second hello messages sent from the IPC for the first time, it determines that there are no camera information from the IPC in the camera list, and adds the two camera information from the IPC to the camera list.
  • the list of obtained cameras is shown in Table 2.
  • IPC name Certification Information Aging time 192.168.0.1 IPC_1 ADSFS)312321$% ⁇ 1 192.168.0.2 IPC_2 23435#$% ⁇ &8DFG 0 192.168.0.3 IPC_3 Adfdsfdesdre$ 0
  • Step 7032 If there is camera information from the IPC in the camera list, according to the second hello message receiving Between, refresh the aging time from the IPC in the camera list.
  • the aging time of the slave IPC in the camera list is refreshed to zero.
  • the primary IPC receives the second hello packet sent by the IPC_2 in the second packet after the two transmission periods, and detects the camera information of the IPC_2 in the camera list, and refreshes the aging time of the IPC_2 in the camera list to zero. Three are shown.
  • step 7033 it is detected whether the aging time of each IPC from the camera list exceeds a predetermined time, and the IPC that expires more than the predetermined time is used as the expired IPC, and the camera information of the expired IPC is deleted from the camera list.
  • the aging time of the IPC from the IPC is increased until the primary IPC receives the second hello packet sent from the IPC. Refresh to zero.
  • the primary IPC detects whether the aging time of each IPC in the camera list exceeds a predetermined time. If the aging time from the IPC exceeds the predetermined time, the IPC that expires more than the predetermined time is used as the expired IPC, and the camera information of the expired IPC is removed. Deleted from the camera list.
  • the aging time from the IPC exceeds the predetermined time, indicating that the IPC loses communication with the primary IPC, and the primary IPC needs to delete the camera information of the IPC that has lost communication from the camera list.
  • the predetermined time is three hello packet intervals.
  • the primary IPC may fail due to various reasons.
  • the primary IPC fails, the video surveillance system stops working.
  • the backup IPC needs to be set in the video surveillance system.
  • the primary IPC fails, the primary IPC is replaced by the standby IPC to ensure that the video surveillance system can continue to operate.
  • the method further includes the following steps, as shown in FIG. 8:
  • step 801 the primary IPC acquires the priority of the secondary IPC according to the camera information in the camera list.
  • step 802 the primary IPC determines the standby IPC according to the order of priority from high to low.
  • the highest priority IPC is determined as the standby IPC.
  • the MAC address of the slave IPC is obtained according to the camera information in the camera list; and the IPC having the lowest priority or the highest MAC address from the IPC is determined to be the standby. IPC.
  • Step 803 The primary IPC sends the first hello message in a multicast form or a broadcast form every predetermined time interval.
  • the first hello packet includes the IP address of the standby IPC, the IP address of the primary IPC, and the virtual access address of the primary IPC.
  • Virtual The intended access address includes a virtual IP address and a virtual port.
  • the first hello packet further includes at least one of a priority of the primary IPC, a name of the primary IPC, a hello packet interval, and a MAC address.
  • the video surveillance system is just starting to work.
  • the primary IPC determines for the first time
  • the primary IPC has not determined the standby IPC.
  • the IP address of the standby IPC in the first hello packet is empty, that is, the primary IPC.
  • the IP address of the standby IPC in the first hello packet is empty.
  • the IP address of the standby IPC is used to trigger the standby IPC to determine that it is the standby IPC, and record the virtual access address when it determines that it is the standby IPC.
  • the primary IPC After receiving the first hello packet sent by the primary IPC from the IPC, obtain the IP address of the standby IPC from the first hello packet, and check whether the IP address of the standby IPC is the same as its own IP address. If the address is consistent with its own IP address, it determines that it is the standby IPC, and sends a camera list acquisition request to the primary IPC, and records the virtual access address.
  • the virtual access address is used as the login address of the management client when the standby IPC replaces the primary IPC.
  • the standby IPC replaces the primary IPC to become the new primary IPC, and the standby IPC, that is, the new primary IPC receives the login of the management client through the virtual access address.
  • the IP address of the standby IPC in the first hello packet sent by the primary IPC is the IP address of the secondary IPC determined as the standby IPC.
  • the IP address of the primary IPC and the IP address of the standby IPC are recorded.
  • the second hello packet is sent from the IPC, the IP address and the standby IPC of the primary IPC are simultaneously sent. The IP address is sent.
  • the primary IPC determines the standby IPC, in order to ensure the stability of the standby IPC election process, even if a new IPC is added to the video surveillance system, the newly added IPC is added to the process of determining the IPC. in.
  • Step 804 The primary IPC receives the camera list acquisition request sent by the standby IPC.
  • step 805 the primary IPC sends a camera list to the standby IPC.
  • the standby IPC receives the list of cameras sent by the primary IPC.
  • the standby IPC After the standby IPC obtains the camera list, it receives the second hello packet sent from the IPC, and updates the camera list according to the second hello packet.
  • the primary hello packet needs to be re-determined, that is, the first hello packet is sent in multicast or broadcast mode, according to the second hello packet sent from the IPC.
  • the camera information in the generated camera list is determined, and a new standby IPC is determined from the camera list, that is, steps 701 to 703 and steps 801 to 805 are performed.
  • the standby IPC does not receive the first hello packet sent by the primary IPC, and the standby IPC takes over the primary IPC, and creates a virtual port and a virtual IP address through the VIF/VIP management module.
  • the virtual port and the virtual IP address are virtual ports and virtual IP addresses in the first hello packet sent by the primary IPC stored in the standby IPC. Users can continue to log in to the primary IPC using the originally configured virtual access address.
  • the ARP is sent by the Address Resolution Protocol (Gratuitous ARP) when the backup IPC is switched to the primary IPC.
  • all IPCs in the video surveillance system are illustrated in one domain.
  • the primary IPC and the standby IPC will have performance bottlenecks, such as the time when the camera list is maintained and updated, and the time for determining the primary IPC and the standby IPC will be longer.
  • all IPCs can be divided into different domains to avoid performance bottlenecks.
  • IPCs when IPCs belong to the same domain, communication between IPCs can be implemented through broadcast or multicast. When IPCs belong to different domains, communication between IPCs is implemented through multicast, that is, different domains.
  • the IPCs in the same multicast group can be added to the same multicast group. The IPCs in the same multicast group can receive the packets sent by the IPCs of other domains in the multicast group.
  • IPCs belonging to the same domain have the same domain name, and different domains can be distinguished by domain names.
  • the domain name can be represented by the i-th domain name, the i+1-th domain name, the i+2 domain name, the i+n-level domain name, and the sub-level relationship between the domains. For example: first-level domain name. second-level domain name. third-level domain name, the most advanced domain is represented by a first-level domain name.
  • the domain name can be expressed in English, for example: china.zj.hz, can also be represented by a number, for example: 0.2.1.
  • the video surveillance system is divided into at least two domains having a superordinate relationship, and each domain includes a primary IPC. As shown in FIG. 9, it schematically shows a manner of dividing a domain in a video surveillance system.
  • the video surveillance system is divided into three levels.
  • the domain name of the first-level domain is 0, the domain name of the second-level domain is 0.1 and 0.2, and the domain name of the third-level domain is 0.1.1, 0.1.2, and 0.2.1.
  • the method of establishing a camera list by the primary IPC in each domain and determining the standby IPC is as shown in FIG. 5 or FIG. 6A or FIG. 7A or FIG. 7B.
  • the camera list between the upper and lower domains can be obtained through the interaction between the primary IPCs in the domain.
  • the first level domain 0 can acquire the second level domains 0.1 and 0.2 and the third level domains 0.1.1, 0.1.2, and A list of cameras in 0.2.1.
  • the primary IPC between the upper and lower domains needs to establish a neighbor relationship. After establishing the neighbor relationship, you need to maintain the neighbor relationship.
  • the method for obtaining the camera list by the primary IPC in the upper and lower domains may be implemented in the following steps, as shown in FIG. 10:
  • step 1001 the primary IPC in the i-th level domain sends a neighbor establishment request to the primary IPC in the i+1st-level domain.
  • the neighbor establishment request includes camera information of the primary IPC in the i-th level domain.
  • the primary IPC in the domain with the domain name 0 in FIG. 9 sends a neighbor establishment request to the primary IPC in the domain with the domain name of 0.1.
  • the camera information includes an IP address, an IPC name, a domain name, and a virtual access address.
  • the camera level information further includes priority and authentication information.
  • the primary IPC in the i+1th level domain receives the neighbor establishment request sent by the primary IPC in the i-th level domain, and sends a neighbor establishment response to the primary IPC in the i-th level domain.
  • the primary IPC in the domain with the domain name of 0.1 in FIG. 9 receives the neighbor establishment request sent by the primary IPC in the domain with the domain name 0, and sends a neighbor establishment response to the primary IPC in the domain with the domain name 0.
  • Step 1002 The primary IPC in the i-th level domain receives the neighbor establishment response sent by the primary IPC in the i+1st-level domain.
  • the neighbor setup response includes camera information of the primary IPC in the i+1st level domain.
  • the primary IPC in the domain with the domain name 0 in Figure 9 receives the neighbor establishment response sent by the primary IPC in the domain with the domain name of 0.1.
  • Step 1003 The primary IPC in the i-th level domain generates a neighbor list according to the camera information of the primary IPC in the i+1st-level domain in the neighbor establishment response.
  • the camera information of the primary IPC in the i+1st level domain generates a neighbor list.
  • the manner in which the primary IPC in the i-th level domain generates the neighbor list according to the camera information is similar to the manner in which the primary IPC generates the camera list according to the camera information, and details are not described herein again.
  • Table 4 it exemplarily shows the neighbor list generated by the primary IPC in the first level domain.
  • Step 1004 The primary IPC in the i-th level domain receives the neighbor heartbeat message sent by the primary IPC in the i+1st-level domain every predetermined time interval, and refreshes the aging of the primary IPC in the i+1-th domain in the neighbor list. time.
  • the neighbor heartbeat message includes camera information of the primary IPC in the i+1st level domain.
  • the primary IPC of each domain needs to establish a neighbor list and maintain neighbor relationships through periodic neighbor heartbeat messages.
  • the primary IPC in the i+1th-level domain sends a neighbor heartbeat message to the primary IPC in the i-th domain every predetermined time interval, and the primary IPC in the i-th domain receives the (i+1)th domain every predetermined time interval.
  • the primary IPC neighbor heartbeat message and refreshes the aging time of the primary IPC in the i+1th domain in the neighbor list.
  • the primary IPC in the i-th level domain sends a neighbor heartbeat message to the primary IPC in the i+1th-level domain every predetermined time interval, and the primary IPC in the i+1-th domain receives the i-th interval every predetermined time interval.
  • the primary IPC neighbor heartbeat message in the level domain, and the aging time of the primary IPC in the i-th level domain in the neighbor list is refreshed.
  • Step 1005 If the aging time exceeds the predetermined time, the camera information of the primary IPC in the i+1st level domain is deleted from the neighbor list.
  • This step is similar to the update of the camera list by the primary IPC based on camera information, and will not be described here.
  • Step 1006 The primary IPC in the i-th level domain sends a camera list acquisition request to the primary IPC in the i+1st-level domain.
  • the primary IPC in the i+1st level domain receives the camera list acquisition request sent by the primary IPC in the i-th level domain.
  • the primary IPC in the i+1th domain sends a camera list to the primary IPC in the i-th domain.
  • the primary IPC in the i+1-th domain sends the camera list in the i+1-th domain to the primary IPC in the i-th domain;
  • the primary IPC in the i+1-th domain sends the camera list and the i-th in the i+1-th domain to the primary IPC in the i-th domain.
  • Step 1007 The primary IPC in the i-th level domain receives the camera list sent by the primary IPC in the i+1st-level domain.
  • the primary IPC in the i-th domain receives the camera list in the i+1th domain, or the primary IPC in the i-th domain receives the i+1th domain in the primary IPC in the i+1th domain.
  • the primary IPC in the first-level domain 0 receives the camera list sent by the primary IPC in the second-level domain 0.1, and the camera list obtained in the first-level domain 0 is as shown in Table 5.
  • the primary IPC in the changed domain needs to send the camera list update packet to the IPC in the neighbor list.
  • the camera list update packet includes the update.
  • the subsequent camera list; the primary IPC in the neighbor list receives the camera list update message, and sends an update determination message, and the update determination message is used to indicate that the camera list update has been completed.
  • IPC name IPC name
  • IPC address of the primary IPC Priority + MAC address
  • IPC address of the IPC Priority + MAC address
  • Virtual IP address Hello interval Hello interval
  • Camera list IPC List
  • the message type can be classified into a hello message, a camera list update message (DLA), and a camera list information message (DLU); the authentication type and the authentication information are used for mutual authentication; the sequence number is used to acquire or update the camera list.
  • DLA camera list update message
  • DLU camera list information message
  • the IPC in the video surveillance system is divided into three domains, which are distributed into the first domain 0, the second domain 0.1 and the third domain 0.01, and each domain includes a primary IPC.
  • the control method of the video monitoring system is shown in Figure 11A:
  • the management client When the video surveillance system is established, the management client provides IP addresses, priorities, and domain names for IPCs in each domain, and configures virtual access addresses for the primary IPCs in each domain through the management client.
  • step 1101 the primary IPC in each domain generates an IPC list.
  • the standby IPC is determined according to the IPC list. How to generate the standby IPC has been elaborated in the embodiment shown in FIG. 8, and details are not described herein again.
  • step 1102 the primary IPC in each domain generates a neighbor list.
  • the primary IPC in the second-level domain intends to establish a neighbor with the primary IPC in the third-level domain
  • the neighbor establishment request includes the camera information of the primary IPC in the second-level domain
  • the primary IPC in the third-level domain receives the neighbor.
  • a request is established and a neighbor setup response is sent to the primary IPC in the second level domain, and the neighbor setup response includes camera information of the primary IPC in the third level domain.
  • the second level domain generates a neighbor list.
  • the primary IPC in the first level domain intends to establish a neighbor to the primary IPC in the second level domain
  • the neighbor establishment request includes camera information of the primary IPC in the first level domain
  • the primary IPC reception in the second level domain The neighbor establishes a request and sends a neighbor setup response to the primary IPC in the first level domain, and the neighbor setup response includes camera information of the primary IPC in the second level domain.
  • the first level domain generates a neighbor list.
  • Step 1103 The primary IPC in the upper domain obtains the camera list of the lower domain.
  • the primary IPC in the second-level domain sends a camera list acquisition request to the primary IPC in the third-level domain
  • the primary IPC in the third-level domain sends the camera list to the primary IPC in the second-level domain.
  • the primary IPC in the domain receives the camera list sent by the primary IPC in the third-level domain.
  • the camera list in the second-level domain includes the camera information of the IPC in the second-level domain and the IPC in the third-level domain. Camera information.
  • the primary IPC in the first-level domain sends a camera list acquisition request to the primary IPC in the second-level domain
  • the primary IPC in the second-level domain sends the camera list to the primary IPC in the first-level domain
  • the primary IPC in the level domain receives the camera list sent by the primary IPC in the second level domain.
  • the camera list in the first level domain includes the camera information of the IPC in the first level domain, and the camera information in the second level domain. Camera information of IPC and camera information of IPC in the third level domain.
  • Table 7 it exemplarily shows a list of cameras in the primary IPC in the first level domain.
  • Step 1104 The management client logs in to the primary IPC of the first-level domain by using a predetermined virtual access address.
  • step 1105 the primary IPC in the first level domain receives the login of the management client through the predetermined virtual access address.
  • Step 1106 The management client sends a camera list acquisition request to the primary IPC in the first level domain.
  • Step 1107 The primary IPC in the first level domain receives the camera list acquisition request sent by the management client.
  • Step 1108 The primary IPC in the first level domain sends a camera list to the management client.
  • the list of cameras sent by the primary IPC in the first level domain to the management client includes the domain name, IPC name, IP address, and IPC type.
  • the domain topology information obtaining request sent by the management client is received, and the domain topology information obtaining request is used to acquire the relationship between the domains in the video monitoring system, the primary IPC.
  • the domain topology information is sent to the management client, and the management client displays the domain topology information.
  • FIG. 11B it exemplarily shows the domain topology information displayed by the management client.
  • Step 1109 The management client receives the camera list sent by the primary IPC in the first level domain.
  • the management client displays the domain topology information
  • all the camera information in the camera list is displayed; or, according to the selection of the domain, all the camera information in the selected domain is displayed.
  • FIG. 11C it exemplarily shows a list of cameras displayed by the management client.
  • the camera list includes an IPC name, an IP address, and an IPC type.
  • the management client only displays the domain and domain name with the domain name of 0. Camera information in the domain of 0.1.
  • the management client determines the IP address of the controlled IPC according to the camera list, and sends a control command to the controlled IPC according to the IP address of the controlled IPC.
  • the charged IPC is at least one IPC in the camera list.
  • the control instruction includes at least one of a live request instruction, a storage configuration instruction, a video playback instruction, and a PTZ control instruction.
  • the control method of the video monitoring system provided by the embodiment of the present invention generates a camera list through the primary IPC.
  • the primary IPC provides the camera list to the management client, and manages the client.
  • the terminal determines the controlled IPC according to the camera list and directly controls the controlled IPC.
  • the main IPC is used to replace the server in the video surveillance system in the prior art, so that the computing power and network bandwidth of the IPC are fully utilized, and the video surveillance network is reduced. The complexity.
  • the performance bottlenecks of the primary IPC and the standby IPC are effectively reduced, and the time for updating the camera list and the time for determining the primary and secondary IPCs are reduced.
  • the method when the management client sends a control request to the controlled IPC, including the live request command, the method is as shown in FIG. 6C, and details are not described herein again.
  • the control command sent by the management client to the controlled IPC includes a video playback instruction, the method is as shown in FIG. 6D, and details are not described herein again.
  • the management client sends a control command to the controlled IPC, including the storage configuration command, the method is shown in FIG. 6E, and details are not described herein again.
  • the control command sent by the management client to the controlled IPC includes the PTZ control command, the method is as shown in FIG. 6F, and details are not described herein again.
  • control command includes any two of a live request command, a storage configuration command, a video playback command, and a PTZ control command
  • control instruction includes any three of a live request command, a storage configuration command, a video playback command, and a PTZ control command, the above-mentioned FIG. 6C, FIG. 6D, and FIG. 6E, any three of the embodiments shown in FIG.
  • FIG. 6F can be combined into a new embodiment; when the control command includes a live request command, a storage configuration command, a video playback command, and a PTZ control command, the above FIG. 6C
  • the embodiments shown in Figures 6D, 6E, and 6F can be combined into a new embodiment.
  • the execution order of each step may be set in advance, which is not limited by the embodiment of the present invention.
  • FIG. 12 is a block diagram of a control apparatus of a video monitoring system according to an embodiment of the present invention.
  • the control device can be implemented as all or part of the IPC by software, hardware or a combination of both.
  • the control device comprises:
  • the processing unit 1210 is configured to implement the foregoing step 501.
  • the receiving unit 1220 is configured to implement the foregoing step 503.
  • the sending unit 1230 is configured to implement the foregoing step 504.
  • processing unit 1210 may be implemented by executing autonomous management module in the memory by the processor of the IPC.
  • the receiving unit 1220 and the sending unit 1230 may execute the autonomous management module stored therein through the network interface of the IPC and the processor. achieve.
  • FIG. 12 is a block diagram of a control apparatus of a video monitoring system according to another embodiment of the present invention.
  • the control device can be implemented as all or part of the IPC by software, hardware or a combination of both.
  • the control device comprises:
  • the processing unit 1210 is configured to implement the foregoing step 601, step 703, step 7031, step 7032, step 7033, step 1003, step 1005, step 1101, step 1102, step 611b, step 611c, step 611d, step 801, and step 802. Step 1103 and step 1105.
  • the receiving unit 1220 is configured to implement the foregoing steps 603, 605, 702, 610a, 610b, 610c, 610d, 804, 1002, 1004, 1007, and 1107.
  • the sending unit 1230 is configured to implement the foregoing step 606, step 701, step 611a, step 612a, step 612b, step 612c, step 612d, step 803, step 805, step 1001, step 1006, and step 1108.
  • processing unit 1210 may implement an autonomous management module in a memory by using a processor of the IPC, and the receiving unit 1220 and the sending unit 1230 may implement the autonomous management module 1230 in which the network interface and the processor of the IPC are stored. .
  • FIG. 13 is a block diagram of a control apparatus of a video monitoring system according to an embodiment of the present invention.
  • the control device can be implemented as all or part of the terminal by software, hardware or a combination of both.
  • the control device comprises:
  • the sending unit 1310 is configured to implement the foregoing steps 502 and 507.
  • the receiving unit 1320 is configured to implement the foregoing step 505.
  • the processing unit 1330 is configured to implement the foregoing step 506.
  • sending unit 1310 and receiving unit 1320 may be implemented by executing a communication module in a memory by a processor of the terminal, and the determining unit 1330 may be implemented by executing, by a processor of the terminal, an address determining module stored therein.
  • FIG. 13 is a block diagram of a control apparatus of a video monitoring system according to another embodiment of the present invention.
  • the control device can be implemented as all or part of the terminal by software, hardware or a combination of both.
  • the control device comprises:
  • the sending unit 1310 is configured to implement the foregoing steps 604, 609, 609a, 609b, 609c, 609d, 1106, and 1110.
  • the receiving unit 1320 is configured to implement the foregoing steps 607, 609, 610a, 610b, 610c, 610d, 611a, 612b, 612c, 612d, and 1109.
  • the processing unit 1330 is configured to implement the foregoing step 608.
  • the login unit is configured to implement step 602 and step 1104 described above.
  • the foregoing sending unit 1310, the receiving unit 1320, and the login unit may be implemented by executing a communication module in the memory by the processor of the terminal shown in FIG. 2, and the processing unit 1330 may perform processing by the terminal shown in FIG.
  • the device performs an address determination module in the memory to implement.
  • control device of the video monitoring system provided by the foregoing embodiment is only illustrated by the division of each functional module. In actual applications, the functions may be assigned different functions according to needs.
  • the module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • control device of the video surveillance system provided by the foregoing embodiment is the same as the embodiment of the control method of the video surveillance system, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种视频监控系统的控制方法及装置,属于视频监控领域。所述方法包括:多个IPC中的主IPC生成记录有所述IPC与摄像机信息之间的对应关系的摄像机列表;所述主IPC接收管理客户端送的摄像机列表获取请求;所述主IPC向所述管理客户端发送所述摄像机列表,所述摄像机列表被所述管理客户端用于确定所述多个IPC中的被控IPC的IP地址,并根据所述被控IPC的IP地址向所述被控IPC发送控制指令;利用主IPC替代现有技术中视频监控系统中的服务器,使得IPC的计算能力和网络带宽被充分利用,降低了视频监控网络组网的复杂度。

Description

视频监控系统的控制方法、装置及系统
本申请要求于2016年9月14日提交中国专利局、申请号为201610826664.2、发明名称为“视频监控系统的控制方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及视频监控领域,特别涉及一种视频监控系统的控制方法、装置及系统。
背景技术
视频监控系统是通过网络摄像机(Internet Protocol Camera,IPC)进行视频监控的电子系统。IPC是一种可产生数字视频流,并将数字视频流通过有线网络或无线网络进行传输的摄像机。
如图1所示,目前的视频监控系统100包括:管理客户端110、服务器120和IPC130。管理客户端110用于向服务器120发送第一控制命令,该第一控制命令携带有IPC标识和控制字段;服务器120接收第一控制命令,从第一控制命令中获取IPC标识和控制字段,根据IPC标识确定被控IPC,再将根据控制字段生成第二控制指令发送给被控IPC。控制命令可以是修改设备配置命令、实况获取命令、存储配置命令、视频回放命令和全方位旋转变焦(Pan/Tilt/Zoom,PTZ)控制命令中的至少一种。比如,控制命令是实况获取命令时,管理客户端110向服务器120发送携带有IPC标识和控制字段的实况获取命令,服务器120接收控制命令根据IPC标识确定IPC130,根据实况获取命令生成实况获取指令并发送给确定出的IPC130,IPC130根据服务器120发送的实况获取指令将实时数字视频流发送至服务器120,再由服务器120将实时数字视频流发送至管理客户端110。
由于现在IPC的计算能力和网络性能越来越好,在实现IPC的基础功能之后,IPC还有很多计算能力和网络带宽闲置,IPC的计算能力和网络带宽没有得到有效利用。
发明内容
为了解决现有技术的问题,本发明实施例提供了一种视频监控系统的控制方法及装置。所述技术方案如下:
第一方面,本发明实施例提供了一种视频监控系统的控制方法。由于现有的视频监控系统中包括管理客户端、服务器和多个网络摄像机(Internet Protocol Camera,IPC),在配置视频监控系统时,配置复杂度高,且由于现在IPC的性能越来越好,在实现IPC的基础功能之后,为了有效利用IPC闲置的计算能力和网络带宽,对视频监控系统和视频监控系统的控制方法进行了改进。
作为本申请的一种可能的实现方式,该视频监控系统包括管理客户端和多个网络摄像机IPC,该视频监控系统的控制方法包括:所述多个IPC中的主IPC生成摄像机列表,该摄像机列表记录有所述IPC与摄像机信息之间的对应关系,所述摄像机信息至少包括所述IPC的IP 地址;所述主IPC接收管理客户端送的摄像机列表获取请求;所述主IPC向所述管理客户端发送所述摄像机列表,所述管理客户端根据所述摄像机列表确定所述多个IPC中的被控IPC的IP地址,并根据所述被控IPC的IP地址向所述被控IPC发送控制指令。
本申请通过主IPC生成摄像机列表,当管理客户端向主IPC请求摄像机列表时,主IPC将摄像机列表提供给管理客户端,管理客户端根据摄像机列表确定被控IPC,直接控制被控IPC;利用主IPC替代现有技术中视频监控系统中的服务器,不需要部署服务器,而且使得IPC的计算能力和网络带宽被充分利用,降低了视频监控网络组网的复杂度。
结合第一方面,在第一方面的第一种可能的实施方式,所述主IPC接收管理客户端发送的摄像机列表获取请求之前,还包括:所述主IPC通过预定的虚拟访问地址接收所述管理客户端的登录,所述虚拟访问地址包括:虚拟IP地址和虚拟端口。
结合第一方面和第一方面的第一种可能的实施方式,在第一方面的第二种可能的实施方式,所述主IPC生成摄像机列表,包括:所述主IPC每隔预定时间间隔以组播形式或广播形式发送包括所述主IPC的摄像机信息的第一hello报文,多个IPC中的从IPC接收主IPC发送的第一hello报文,并向主IPC发送包括所述从IPC的摄像机信息的第二hello报文;所述主IPC接收从IPC发送的第二hello报文,所述主IPC根据所述从IPC的摄像机信息生成所述摄像机列表。
结合第一方面,在第一方面的第三种可能的实施方式,所述主IPC根据所述从IPC的摄像机信息生成所述摄像机列表,包括:若所述摄像机列表中不存在所述从IPC的摄像机信息,则主IPC将所述从IPC的摄像机信息添加至所述摄像机列表;若所述摄像机列表中存在所述从IPC的摄像机信息,则主IPC根据所述第二hello报文的接收时间,刷新所述摄像机列表中所述从IPC的老化时间;主IPC检测所述摄像机列表中各个从IPC的老化时间是否超过预定时间,将所述老化时间超过所述预定时间的从IPC作为过期IPC,将所述过期IPC的摄像机信息从所述摄像机列表中删除。
通过主IPC根据接收到的IPC信息更新摄像机列表中的ICP信息,避免出现从IPC与主IPC失去通信而主IPC不知道的情况,保证了主IPC生成的摄像机列表的准确性。
结合第一方面、第一方面的第一种可能的实施方式、第一方面的第二种可能的实施方式、第一方面的第三种可能的实施方式,在第一方面的第四种可能的实施方式,所述方法还包括:所述主IPC根据所述摄像机列表确定备IPC,所述备IPC用于在所述主IPC发生故障时替代所述主IPC;备IPC向主IPC发送摄像机列表获取请求,所述主IPC接收所述备IPC发送的所述摄像机列表获取请求;所述主IPC向所述备IPC发送所述摄像机列表,备IPC接收主IPC发送的摄像机列表。
通过主IPC根据摄像机列表确定备IPC,避免主IPC出现故障时,视频监控系统无法继续工作的问题,提高了视频监控系统的可靠性。
结合第一方面的第四种可能的实施方式,在第一方面的第五种可能的实施方式,所述主IPC根据所述摄像机列表确定备IPC,包括:主IPC根据所述摄像机列表中的所述摄像机信息获取从IPC的优先级;主IPC根据所述优先级由高到低的顺序,确定出所述备IPC。
通过主IPC根据摄像机列表确定出备IPC,避免主IPC出现故障造成的视频监控系统无法正常工作的问题,保证在主IPC出现故障时,视频监控系统能够继续运行。
结合第一方面的第五种可能的实施方式,在第一方面的第六种可能的实施方式,所述主 IPC根据所述优先级由高到低的顺序,确定出所述备IPC,包括:若所述优先级最高的从IPC的数量为至少两个,主IPC根据所述摄像机列表中的所述摄像机信息获取所述从IPC的介质访问控制(Media Access Control,MAC)地址;主IPC将所述优先级最高的所述从IPC中具有最小MAC地址或最大MAC地址的从IPC确定为所述备IPC。
结合第一方面的第四种可能的实施方式,在第一方面的第七种可能的实施方式,所述接收所述备IPC发送的所述摄像机列表获取请求之前,还包括:每隔预定时间间隔以组播形式或广播形式发送第一hello报文,所述第一hello报文包括所述备IPC的IP地址和所述主IPC的虚拟访问地址,所述备IPC的IP地址用于触发所述备IPC确定自身为备IPC,并在确定自身为所述备IPC时记录所述虚拟访问地址,所述虚拟访问地址用于在所述备IPC替代所述主IPC时,作为所述管理客户端的登录地址。
结合第一方面、第一方面的第一至第七任一种可能的实施方式,在第一方面的第八种可能的实施方式,所述视频监控系统包括至少两个存在上下级关系的域,每个域中包括一个主IPC,所述方法还包括:第i级域中的主IPC向第i+1级域中的主IPC发送摄像机列表获取请求,第i+1级域中的主IPC接收摄像机列表获取请求,向第i级域中的主IPC发送所述第i+1级域中的摄像机列表和所述第i+1级域下级的域的摄像机列表,或,所述第i+1级域中的摄像机列表;所述第i级域中的主IPC接收所述第i+1级域中的主IPC发送的所述第i+1级域中的摄像机列表和所述第i+1级域下级的域的摄像机列表,或,所述第i+1级域中的摄像机列表;其中,所述第i级域是所述第i+1级域的上级域。
通过将视频监控系统中的IPC划分入不同的域,每个主IPC负责该域内的有限个IPC的管理工作,有效地避免了主IPC的性能瓶颈,减少了摄像机列表的更新、维护时间。
结合第一方面的第八种可能的实施方式,在第一方面的第九种可能的实施方式,所述第i级域中的主IPC向第i+1级域中的主IPC发送摄像机列表获取请求之前,还包括:所述第i级域中的主IPC向所述第i+1级域中的主IPC发送邻居建立请求,所述邻居建立请求包括所述第i级域中的主IPC的摄像机信息,所述第i+1级域中的主IPC发送邻居建立响应;所述第i级域中的主IPC接收所述第i+1级域中的主IPC发送的所述邻居建立响应,所述邻居建立响应包括所述第i+1级域中的主IPC的摄像机信息;所述第i级域中的主IPC根据所述邻居建立响应中的所述第i+1级域中的主IPC的摄像机信息生成邻居列表,相应地,所述第i+1级域中的主IPC也生成邻居列表。
结合第一方面的第九种可能的实施方式,在第一方面的第十种可能的实施方式,所述第i级域中的主IPC根据所述邻居建立响应中的所述第i+1级域中的主IPC的摄像机信息生成邻居列表之后,还包括:所述第i级域中的主IPC接收所述第i+1级域中的主IPC每隔预定时间间隔发送的邻居心跳消息,并刷新所述邻居列表中所述第i+1级域中的主IPC的老化时间,所述邻居心跳消息包括所述第i+1级域中的主IPC的摄像机信息;若所述老化时间超过预定时间,则所述第i级域中的主IPC将所述第i+1级域中的主IPC的摄像机信息从所述邻居列表中删除。
第二方面,本发明实施例提供了一种视频监控系统的控制方法,由于现有的视频监控系统中包括管理客户端、服务器和多个网络摄像机(Internet Protocol Camera,IPC),在配置视频监控系统时,配置复杂度高,且由于现在IPC的性能越来越好,在实现IPC的基础功能之后,为了有效利用IPC闲置的计算能力和网络带宽,对视频监控系统和视频监控系统的 控制方法进行了改进。
作为可能的实现方式,所述视频监控系统包括管理客户端和多个网络摄像机IPC,所述方法包括:所述管理客户端向多个IPC中的主IPC发送摄像机列表获取请求,主IPC接收摄像机列表获取请求,向管理客户端发送摄像机列表;所述管理客户端接收所述主IPC发送的摄像机列表,所述摄像机列表记录有所述IPC与摄像机信息之间的对应关系,所述摄像机信息至少包括所述IPC的IP地址;所述管理客户端根据所述摄像机列表确定多个IPC中的被控IPC的IP地址,根据所述被控IPC的IP地址向所述被控IPC发送控制指令。
通过主IPC生成摄像机列表,当管理客户端向主IPC请求摄像机列表时,主IPC将摄像机列表提供给管理客户端,管理客户端根据摄像机列表确定被控IPC,直接控制被控IPC;利用主IPC替代现有技术中视频监控系统中的服务器,使得IPC的计算能力和网络带宽被充分利用,降低了视频监控网络组网的复杂度。
结合第二方面,在第二方面的第一种可能的实施方式,所述管理客户端向主IPC发送摄像机列表获取请求之前,还包括:所述管理客户端通过预定的虚拟访问地址登录所述主IPC,所述虚拟访问地址包括:虚拟IP地址和虚拟端口。在管理客户端通过预定的虚拟访问地址登录主IPC之前,管理客户端向主IPC发送虚拟访问地址配置请求,主IPC接收虚拟访问地址配置请求,并配置虚拟访问地址。
结合第二方面和第二方面的第一种可能的实施方式,在第二方面的第二种可能的实施方式,所述控制指令包括实况请求指令、存储配置指令、视频回放指令和全方位旋转变焦(Pan/Tilt/Zoom,PTZ)控制指令中的至少一种;所述根据所述被控IPC的IP地址向所述被控IPC发送控制指令之后,还包括:当所述控制指令包括实况请求指令时,接收所述被控IPC发送的实时数字视频流,显示所述实时数字视频流;当所述控制指令包括存储配置指令时,接收所述被控IPC发送的存储配置响应,所述存储配置响应是所述被控摄像机在存储数字视频流后发送的;当所述控制指令是视频回放指令时,接收所述被控IPC发送的回放数字视频流,显示所述回放数字视频流;当所述控制指令包括PTZ控制指令时,接收所述被控IPC发送的PTZ控制响应。通过管理客户端根据摄像机列表,直接向摄像机列表中的被控IPC发送实况请求指令,被控IPC直接将实时数字视频流发送至管理客户端,提高了实况视频流的获取速度,减少了视频流延迟的时间;通过管理客户端根据摄像机列表,直接向摄像机列表中的被控IPC发送视频回放指令,被控IPC直接将回放数字视频流发送至管理客户端,提高了回放视频流的获取速度;通过管理客户端根据摄像机列表,直接向摄像机列表中的被控IPC发送存储配置指令,被控IPC直接根据存储配置指令在自身存储数字视频流,有助于提高IPC中剩余存储资源的利用;通过管理客户端根据摄像机列表,直接向摄像机列表中的被控IPC发送PTZ控制指令,被控IPC根据PTZ控制指令调整自身,有助于提高被控IPC完成PTZ调整的速度。
第三方面,本发明实施例提供了一种视频监控系统的控制装置,该装置包括至少一个单元,该至少一个单元用于实现上述第一方面或第一方面的至少一种实现中所提供的视频监控系统的控制方法。
第四方面,本发明实施例提供了一种视频监控系统的控制装置,该装置包括至少一个单元,该至少一个单元用于实现上述第二方面或第二方面的至少一种实现中所提供的视频监控系统的控制方法。
第五方面,本发明实施例提供了一种IPC,该IPC包括处理器、存储器和图像采集组件,所述存储器用于存储一个或一个以上的指令,所述指令被指示为由所述处理器执行,所述处理器用于实现上述第一方面或第一方面中任意一种可能的设计中所提供的视频监控系统的控制方法。
第六方面,本发明实施例提供了一种终端,该终端包括处理器和存储器,所述存储器用于存储一个或一个以上的指令,所述指令被指示为由所述处理器执行,所述处理器用于实现上述第二方面或第二方面中任意一种可能的设计中所提供的视频监控系统的控制方法。
第七方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质中存储有用于实现上述第一方面或第一方面中任意一种可能的设计所述提供的视频监控系统的控制方法的可执行程序;或者,该计算机可读存储介质中存储有用于实现上述第二方面或第二方面中任意一种可能的设计所述提供的视频监控系统的控制方法的可执行程序。
第八方面,提供了一种视频监控系统,该系统包括如上述第三方面所述的视频监控系统的控制装置,和,如上述第四方面所述的视频监控系统的控制装置;或者,该系统包括如上述第五方面所述的IPC,和,如上述第六方面所述的终端。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种视频监控系统的结构示意图;
图2是本发明实施例提供的一种视频监控系统的结构示意图;
图3是本发明实施例提供的一种安装有管理客户端的终端的结构示意图;
图4是本发明实施例提供的一种IPC的结构示意图;
图5是本发明实施例提供的一种视频监控系统的控制方法的方法流程图;
图6A是本发明实施例提供的一种视频监控系统的控制方法的方法流程图;
图6B是本发明实施例提供的一种配置虚拟访问地址的原理示意图;
图6C是是本发明实施例提供的一种视频监控系统的控制方法的方法流程图;
图6D是是本发明实施例提供的另一种视频监控系统的控制方法的方法流程图;
图6E是是本发明实施例提供的另一种视频监控系统的控制方法的方法流程图;
图6F是是本发明实施例提供的另一种视频监控系统的控制方法的方法流程图;
图7A是是本发明实施例提供的另一种视频监控系统的控制方法的方法流程图;
图7B是本发明实施例提供的另一种视频监控系统的控制方法的方法流程图;
图8是本发明实施例提供的另一种视频监控系统的控制方法的方法流程图;
图9是本发明实施例提供的一种视频监控系统中域划分的原理示意图;
图10是本发明实施例提供的一种视频监控系统的控制方法的方法流程图;
图11A是是本发明实施例提供的一种视频监控系统的控制方法的方法流程图;
图11B是是本发明实施例提供的一种域拓扑信息示意图;
图11C是是本发明实施例提供的一种的摄像机列表的示意图;
图12是本发明实施例提供的一种视频监控系统的控制装置的框图;
图13是本发明实施例提供的另一种视频监控系统的控制装置的框图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
在本文提及的“模块”是指存储在存储器中的能够实现某些功能的程序或指令;在本文中提及的“单元”是指按照逻辑划分的功能性结构,该“单元”可以由纯硬件实现,或者,软硬件的结合实现。
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
请参考图2,其示出了本发明一个示例性实施例提供的视频监控系统的结构示意图。该视频监控系统200包括:终端210和多个网络摄像机(Internet Protocol Camera,IPC)220。
终端210具有数据传输和IPC管理的能力。比如:个人电脑、智能手机等。终端210中安装有视频监控系统的管理客户端。该管理客户端是用于对IPC进行管理的软件客户端。管理客户端用于接收用户操作,显示摄像机列表,根据用户操作向视频监控系统中的某一个或某几个IPC220发送控制指令。
IPC220是一种可产生数字视频流,并将数字视频流通过有线网络或无线网络进行传输的摄像机。多个IPC220通过网络协议(Internet Protocol,IP)网络相互连接。
多个IPC220中包括主IPC和从IPC。通常情况下,主IPC是处理性能最好的IPC,主IPC为用户通过终端中的管理客户端登录的IPC,即主IPC提供控制视频监控系统中的IPC的入口。
终端210通过IP网络与多个IPC220连接。
请参考图3,其示出了本发明一个实施例提供的终端210的结构示意图。该终端210包括:处理器31、存储器32、网络接口33、总线34。其中:
存储器32和网络接口33分别通过总线34与处理器31相连。
处理器31包括一个或者一个以上处理核心。处理器31通过运行软件程序以及模块,从而执行各种功能应用以及数据处理,比如:根据摄像机列表确定被控IPC的IP地址,根据被控IPC的IP地址向被控IPC发送控制指令。
存储器32可用于存储软件程序以及模块。
存储器32可存储操作系统35、至少一个功能所需的应用程序模块36。操作系统35可以是实时操作系统(Real Time eXecutive,RTX)、LINUX、UNIX、WINDOWS或OS X之类的操作系统。应用程序模块36包括通信模块361、地址确定模块362等。
通信模块361用于向多个IPC中的主IPC发送摄像机列表获取请求;接收主IPC发送的摄像机列表,摄像机列表记录有IPC与摄像机信息之间的对应关系,摄像机信息至少包括IPC 的IP地址;根据多个IPC中的被控IPC的IP地址向被控IPC发送控制指令。
地址确定模块362,用于根据摄像机列表确定被控IPC的IP地址。
需要说明的是,本发明实施例中的模块还可以实现本发明提供的视频监控系统的控制方法的其他步骤,具体实现方式可参考本文中的其他模块,这里不再赘述。
此外,存储器32可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。相应地。
网络接口33可以为多个,网络接口33用于与视频监控系统中IPC通信。
本领域技术人员可以理解,图3中所示出的终端210结构并不构成对终端210的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
请参考图4,其示出了本发明一个实施例提供的IPC220的结构示意图。该IPC220包括:处理器41、存储器42、网络接口43、图像采集组件44。可选的,该IPC220还包括声音采集组件(图中未示出)。其中:
存储器42、网络接口43和图像采集组件44分别与处理器41相连。存储器41与图像采集组件44相连。
处理器41包括一个或者一个以上处理核心。处理器41通过运行软件程序以及模块,从而执行各种功能应用以及数据处理。
存储器42可用于存储软件程序以及模块。存储器42还可以用于存储图像采集组件44采集的图像。
存储器42可存储操作系统431、配置管理模块432、核心业务模块433、智能算法模块434、硬件驱动模块435、系统调用二次封装模块436、安全认证模块437、协议网关模块438、自治管理模块439和虚拟接口/虚拟IP(Virtual Interface/Virtual IP,VIF/VIP)管理模块440。其中:
操作系统431可以是实时操作系统(Real Time eXecutive,RTX)、LINUX、UNIX、WINDOWS或OS X之类的操作系统。
配置管理模块432用于IPC的配置管理。核心业务模块433用于对IPC所采集到的视频流进行编码。智能算法模块434和硬件驱动模块435属于接口层。
自治管理模块439用于生成摄像机列表,发现视频监控系统中新增的IPC,选举主IPC和备IPC,维护邻居关系和接收邻居消息。
VIF/VIP管理模块440用于与终端中的管理客户端进行通信,创建虚拟IP地址和虚拟端口。需要说明的是,不作为主IPC和备IPC的从IPC可以没有VIF/VIP管理模块。
此外,存储器42可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
需要说明的是,本发明实施例中的模块还可以实现本发明提供的视频监控系统的控制方法的其他步骤,具体实现方式可参考本文中的其他模块,这里不再赘述。
网络接口43可以为多个,其中一部分网络接口43用于与视频监控系统中的其他IPC进行通信,另一部分网络接口43用于与终端中的管理客户端进行通信。
图像采集组件44,用于采集视频流和图像。
本领域技术人员可以理解,图4中所示出的IPC220结构并不构成对IPC220的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
请参考图5,其示出了本发明一个实施例提供的视频监控系统的控制方法的流程图。本实施例以该方法应用于如图2所示的视频监控系统中来举例说明。该方法包括以下步骤:
步骤501,主IPC生成摄像机列表。
多个IPC中的主IPC生成摄像机列表。摄像机列表记录有IPC与摄像机信息之间的对应关系,摄像机信息至少包括IPC的IP地址。
步骤502,管理客户端向主IPC发送摄像机列表获取请求。
摄像机列表被管理客户端用于确定多个IPC中的被控IPC的IP地址,并根据被控IPC的IP地址向被控IPC发送控制指令。
被控IPC是被管理客户端控制的IPC。被控IPC是摄像机列表中的至少一个IPC。
步骤503,主IPC接收管理客户端送的摄像机列表获取请求。
步骤504,主IPC向管理客户端发送摄像机列表。
步骤505,管理客户端接收主IPC发送的摄像机列表。
步骤506,管理客户端根据摄像机列表确定多个IPC中的被控IPC的IP地址。
步骤507,管理客户端根据被控IPC的IP地址向被控IPC发送控制指令。
被控IPC是主IPC和/或从IPC。
其中,上述步骤501、步骤503和步骤504可单独实现成为主IPC侧的方法实施例,步骤502、步骤505至步骤507可单独实现成为管理客户端侧的方法实施例。
综上所述,本发明实施例提供的视频监控系统的控制方法,通过主IPC生成摄像机列表,当管理客户端向主IPC请求摄像机列表时,主IPC将摄像机列表提供给管理客户端,管理客户端根据摄像机列表确定被控IPC,直接控制被控IPC;利用主IPC替代现有技术中视频监控系统中的服务器,使得IPC的计算能力和网络带宽被充分利用,降低了视频监控网络组网的复杂度。
下面对上述实施例进行更详细的阐述。请参考图6A,其示出了本发明另一个实施例提供的视频监控系统的控制方法的流程图。本实施例以该方法应用于如图2所示的视频监控系统中来举例说明。该方法包括以下步骤:
步骤601,主IPC生成摄像机列表。
多个IPC中的主IPC生成摄像机列表。摄像机列表记录有IPC与摄像机信息之间的对应关系,摄像机信息至少包括IPC的IP地址。
比如:视频监控系统中有一个主IPC和4个从IPC,主IPC生成的摄像机列表中包括主IPC的IP地址和4个从IPC的IP地址,如下表所示:
IPC名称 IPC类型 IP地址
IPC_1 主IPC IP地址1
IPC_2 其他 IP地址2
IPC_3 其他 IP地址3
IPC_4 其他 IP地址4
IPC_5 其他 IP地址5
IPC的IP地址为该IPC的实际IP地址(或者说物理IP地址),可选的,在视频监控系统初始建立时,通过管理客户端为视频监控系统中的各个IPC配置IP地址。为各个IPC配置IP地址可由人工操作,也可由程序自动完成。
通常情况下,从视频监控系统中的IPC中选取处理性能较好的IPC作为主IPC,通过管理客户端向选定的主IPC的配置虚拟访问地址,虚拟访问地址包括虚拟IP地址和虚拟端口,虚拟IP地址为用户通过管理客户端登录主IPC的入口。
具体地,管理客户端通过主IPC的实际IP地址向主IPC中的VIF/VIP管理模块发送虚拟IP地址及虚拟端口配置请求,主IPC接收管理客户端发送的虚拟IP地址及虚拟端口配置请求,创建虚拟IP地址及虚拟端口,并向管理客户端发送配置结果响应。管理客户端通过配置结果响应确定主IPC是否成功配置虚拟端口和虚拟IP地址。具体地,主IPC的操作系统在数据链路层增加虚拟接口,并在IP层配置对应的虚拟IP地址,如图6B所示。
步骤602,管理客户端通过预定的虚拟访问地址登录主IPC。
可选的,管理客户端通过预定的虚拟IP地址登录主IPC。
步骤603,主IPC通过预定的虚拟访问地址接收管理客户端的登录。
可选的,主IPC通过预定的虚拟IP地址接收管理客户端的登录。
步骤604,管理客户端向主IPC发送摄像机列表获取请求。
管理客户端向主IPC的VIF/VIP管理模块发送摄像机列表获取请求。
步骤605,主IPC接收管理客户端发送的摄像机列表获取请求。
主IPC通过VIF/VIP管理模块接收管理客户端发送的摄像机列表获取请求。
步骤606,主IPC向管理客户端发送摄像机列表。
步骤607,管理客户端接收主IPC发送的摄像机列表。
步骤608,管理客户端根据摄像机列表确定被控IPC的IP地址。
被控IPC是多个IPC中的至少一个IPC。
步骤609,管理客户端根据被控IPC的IP地址向被控IPC发送控制指令。
被控IPC是主IPC和/或从IPC。
控制指令包括实况请求指令、存储配置指令、视频回放指令、全方位旋转变焦(Pan/Tilt/Zoom,PTZ)控制指令中的至少一种。
其中,上述步骤601、步骤603、步骤605和步骤606可单独实现成为主IPC侧的方法实施例,步骤602、步骤605和步骤607至步骤609可单独实现成为管理客户端侧的方法实施例。
综上所述,本发明实施例提供的视频监控系统的控制方法,通过主IPC生成摄像机列表,当管理客户端向主IPC请求摄像机列表时,主IPC将摄像机列表提供给管理客户端,管理客 户端根据摄像机列表确定被控IPC,直接控制被控IPC;利用主IPC替代现有技术中视频监控系统中的服务器,使得IPC的计算能力和网络带宽被充分利用,降低了视频监控网络组网的复杂度。
在基于图6A所示实施例的可选实施例中,当控制指令包括实况请求指令时,管理客户端根据摄像机列表确定被控IPC的IP地址,根据被控IPC的IP地址向被控IPC发送实况请求指令,也即步骤609被替代实现为步骤609a,该方法还包括如下几个步骤,如图6C所示:
步骤609a,当控制指令是实况请求指令时,根据被控IPC的IP地址向被控IPC发送实况请求指令。
步骤610a,被控IPC接收管理客户端发送的实况请求指令.
步骤611a,被控IPC向管理客户端发送实况请求响应。
实况请求响应用于表明被控IPC接收到管理客户端发送的实况请求指令。
步骤612a,被控IPC向管理客户端发送实时数字视频流。
步骤613a,管理客户端接收被控IPC发送的实时数字视频流,显示实时数字视频流。
通过管理客户端根据摄像机列表,直接向摄像机列表中的被控IPC发送实况请求指令,被控IPC直接将实时数字视频流发送至管理客户端,提高了实况视频流的获取速度,减少了视频流延迟的时间。
在基于图6A所示实施例的可选实施例中,当控制指令包括视频回放指令时,管理客户端根据摄像机列表确定被控IPC的IP地址,根据被控IPC的IP地址向被控IPC发送视频回放指令,也即步骤609被替代实现为步骤609b,该方法还包括如下几个步骤,如图6D所示:
步骤609b,当控制指令包括视频回放指令时,管理客户端根据被控IPC的IP地址向被控IPC发送视频回放指令。
步骤610b,被控IPC接收管理客户端发送的视频回放指令。
步骤611b,被控IPC在自身存储的数字视频流中查找视频回放指令所指示的时间段的回放数字视频流。
步骤612b,被控IPC向管理客户端发送回放数字视频流。
步骤613b,管理客户端接收被控IPC发送的回放数字视频流,显示回放数字视频流。
通过管理客户端根据摄像机列表,直接向摄像机列表中的被控IPC发送视频回放指令,被控IPC直接将回放数字视频流发送至管理客户端,提高了回放视频流的获取速度。
在基于图6A所示实施例的可选实施例中,当控制指令包括存储配置指令时,管理客户端根据摄像机列表确定被控IPC的IP地址,根据被控IPC的IP地址向被控IPC发送存储配置指令,也即步骤609被替代实现为步骤609c,该方法还包括如下几个步骤,如图6E所示:
步骤609c,当控制指令包括存储配置指令时,管理客户端根据被控IPC的IP地址向被控IPC发送存储配置指令。
步骤610c,被控IPC接收管理客户端发送的存储配置指令。
步骤611c,被控IPC存储存储配置指令所指示的数字视频流。
步骤612c,被控IPC向管理客户端发送存储配置响应。
存储配置响应用于指示被控IPC完成存储配置指令所指示的数字视频流的存储。
步骤613c,管理客户端接收被控IPC发送的存储配置响应。
通过管理客户端根据摄像机列表,直接向摄像机列表中的被控IPC发送存储配置指令,被控IPC直接根据存储配置指令在自身存储数字视频流,有助于提高IPC中剩余存储资源的利用。
在基于图6A所示实施例的可选实施例中,当控制指令包括PTZ控制指令时,管理客户端根据摄像机列表确定被控IPC的IP地址,根据被控IPC的IP地址向被控IPC发送PTZ控制指令,也即步骤609被替代实现为步骤609d,该方法还包括如下几个步骤,如图6F所示:
步骤609d,当控制指令包括PTZ控制指令时,管理客户端根据被控IPC的IP地址向被控IPC发送PTZ控制指令。
PTZ控制指令用于对IPC进行水平转动、垂直转动、放大倍数、缩小倍数、近焦调整和远焦调整中的至少一种。
步骤610d,被控IPC接收管理客户端发送的PTZ控制指令。
步骤611d,被控IPC根据PTZ控制指令做相应的PTZ调整。
步骤612d,被控IPC向管理客户端发送PTZ控制响应。
PTZ控制响应用于表示被控IPC完成PTZ调整。
步骤613d,管理客户端接收被控IPC发送的PTZ控制响应。
通过管理客户端根据摄像机列表,直接向摄像机列表中的被控IPC发送PTZ控制指令,被控IPC根据PTZ控制指令调整自身,有助于提高被控IPC完成PTZ调整的速度。
需要说明的是,当控制指令包括实况请求指令、存储配置指令、视频回放指令、PTZ控制指令中的任意两种时,上述如图6C、图6D、图6E、图6F所示的实施例中的任意两个实施例可以组合成为一个新的实施例;当控制指令包括实况请求指令、存储配置指令、视频回放指令、PTZ控制指令中的任意三种时,上述如图6C、图6D、图6E、图6F所示的实施例中的任意三个实施例可以组合成为一个新的实施例;当控制指令包括实况请求指令、存储配置指令、视频回放指令、PTZ控制指令时,上述如图6C、图6D、图6E、图6F所示的实施例可以组合成为一个新的实施例。组合成为新的实施例后,各个步骤的执行顺序可以预先设置,本发明实施例对此不做限定。
在图5或图6A所示的视频监控系统的控制方法中,主IPC生成摄像机列表包括如下几个步骤,如图7A所示:
步骤701,主IPC每隔预定时间间隔以组播形式或广播形式发送第一hello报文。
第一hello报文包括主IPC的摄像机信息。
在视频监控系统实际工作过程中,视频监控网络会新增IPC,为了避免新增的IPC不知道主IPC的是哪一个IPC的问题,主IPC周期性地以组播形式或广播形式同时向视频监控系统中的多个从IPC发送第一hello报文。
在初始时,从IPC是视频监控网络中除主IPC以外的IPC。
可选的,主IPC的摄像机信息包括主IPC的虚拟IP地址、主IPC的实际IP地址。
可选的,主IPC的摄像机信息还包括主IPC的优先级、主IPC的名称、hello报文时间 间隔、介质访问控制(Media Access Control,MAC)地址、认证信息。其中,认证信息用于主IPC与从IPC在通信过程中的相互认证;hello报文时间间隔用于与从IPC协商报文发送时间,以保证主IPC发送hello报文的时间间隔与从IPC发送hello报文的时间间隔一致。
相应地,从IPC接收主IPC发送的第一hello报文,并记录主IPC的IP地址和虚拟访问地址。从IPC根据第一hello报文中主IPC的IP地址向主IPC发送第二hello报文。
在视频监控系统实际工作过程中,从IPC可能会出现故障失去与主IPC之间的通信,为了保证主IPC生成的摄像机列表的准确性,从IPC每隔预定时间向主IPC发送第二hello报文,也即从IPC周期性地向主IPC发送第二hello报文。
步骤702,主IPC接收从IPC发送的第二hello报文。
第二hello报文包括从IPC的摄像机信息。
可选的,从IPC的摄像机信息包括从IPC的实际IP地址、优先级、MAC地址。
可选的,从IPC的摄像机信息还包括从IPC的名称、IPC认证信息、hello报文时间间隔。
步骤703,主IPC根据从IPC的摄像机信息生成摄像机列表。
可选的,主IPC根据自身的摄像机信息生成初始的摄像机列表,该初始的摄像机列表中只包括主IPC的摄像机信息。
如表一所示,其示意性地示出了一种摄像机列表。
表一
IP地址 IPC名称 认证信息 老化时间
192.168.0.1 IPC_1 ADSFS)312321$%^ 10
该步骤具体由如下几个步骤实现,如图7B所示:
步骤7031,若摄像机列表中不存在从IPC的摄像机信息,则将从IPC的摄像机信息添加至摄像机列表。
当主IPC接收到从IPC发送的第二hello报文后,从第二hello报文中获取从IPC的摄像机信息,确定摄像机列表中是否存在该从IPC的摄像机信息,若不存在该从IPC的摄像机信息,则将该从IPC的摄像机信息添加至摄像机列表,并为该从IPC设置老化时间。可选的,老化时间从零开始设置。
比如:主IPC第一次接收到两个从IPC发送的第二hello报文后,确定摄像机列表中没有这两个从IPC的摄像机信息,将该两个从IPC的摄像机信息添加至摄像机列表,得到的摄像机列表如表二所示。
表二
IP地址 IPC名称 认证信息 老化时间
192.168.0.1 IPC_1 ADSFS)312321$%^ 1
192.168.0.2 IPC_2 23435#$%^&8DFG 0
192.168.0.3 IPC_3 Adfdsfdesdre$ 0
步骤7032,若摄像机列表中存在从IPC的摄像机信息,则根据第二hello报文的接收时 间,刷新摄像机列表中从IPC的老化时间。
若摄像机列表中存在从IPC的摄像机信息,则在接收到第二hello报文时,将摄像机列表中该从IPC的老化时间刷新为零。
比如,主IPC在2个发送周期后再次接收到表二中IPC_2发送的第二hello报文,检测到摄像机列表中存在IPC_2的摄像机信息,将摄像机列表中IPC_2的老化时间刷新为零,如表三所示。
表三
IP地址 IPC名称 认证信息 老化时间
192.168.0.1 IPC_1 ADSFS)312321$%^ 9
192.168.0.2 IPC_2 23435#$%^&8DFG 0
192.168.0.3 IPC_3 Adfdsfdesdre$ 6
步骤7033,检测摄像机列表中各个从IPC的老化时间是否超过预定时间,将老化时间超过预定时间的从IPC作为过期IPC,将过期IPC的摄像机信息从摄像机列表中删除。
若主IPC未接收到从IPC发送的第二hello报文,则摄像机列表中的从IPC的老化时间不断增加,直到主IPC接收到从IPC发送的第二hello报文后将从IPC的老化时间刷新为零。
主IPC检测摄像机列表中各个从IPC的老化时间是否超过预定时间,若检测到从IPC的老化时间超过预定时间,则将老化时间超过预定时间的从IPC作为过期IPC,将过期IPC的摄像机信息从摄像机列表中删除。
从IPC的老化时间超过预定时间,说明从IPC与主IPC失去通信,主IPC需要将失去通信的IPC的摄像机信息从摄像机列表中删除。
可选的,预定时间为三个hello报文时间间隔。
在视频监控系统实际工作过程中,主IPC可能会因为各种各样的原因出现故障,当主IPC出现故障时,视频监控系统停止工作。为了避免主IPC出现故障造成的视频监控系统无法正常工作的问题,在视频监控系统中还需要设置备IPC。当主IPC出现故障时,由备IPC替代主IPC,保证视频监控系统能够继续运行。
在图5或图6A图6C,图6D图6E和图6F或图7A或图7B所示的视频监控系统的控制方法中,当主IPC生成摄像机列表后,还需要根据摄像机列表确定备IPC,也即该方法还包括如下几个步骤,如图8所示:
步骤801,主IPC根据摄像机列表中的摄像机信息获取从IPC的优先级。
步骤802,主IPC根据优先级由高到低的顺序,确定出备IPC。
若优先级最高的从IPC的数量为一个,则将该优先级最高的从IPC确定为备IPC。
若优先级最高的从IPC的数量为至少两个,根据摄像机列表中的摄像机信息获取从IPC的MAC地址;将优先级最高的从IPC中具有最小MAC地址或最大MAC地址的从IPC确定为备IPC。
步骤803,主IPC每隔预定时间间隔以组播形式或广播形式发送第一hello报文。
第一hello报文包括备IPC的IP地址、主IPC的IP地址和主IPC的虚拟访问地址。虚 拟访问地址包括虚拟IP地址和虚拟端口。
可选的,第一hello报文还包括主IPC的优先级、主IPC的名称、hello报文时间间隔、MAC地址中的至少一种。
在初始时,也即视频监控系统刚开始工作,第一次确定主IPC时,主IPC还未确定备IPC,此时第一hello报文中备IPC的IP地址为空,也即主IPC第一次发送第一hello报文时,第一hello报文中的备IPC的IP地址为空。备IPC的IP地址用于触发备IPC确定自身为备IPC,并在确定自身为备IPC时记录虚拟访问地址。
当从IPC接收到主IPC发送的第一hello报文后,从第一hello报文中获取备IPC的IP地址,当检测备IPC的IP地址是否与自身的IP地址一致,若备IPC的IP地址是否与自身的IP地址一致,则确定自身为备IPC,并向主IPC发送摄像机列表获取请求,同时记录虚拟访问地址。该虚拟访问地址用于在备IPC替代主IPC时,作为管理客户端的登录地址。
备IPC记录虚拟访问地址后,在主IPC出现故障时,由备IPC替代主IPC成为新的主IPC,备IPC也即新的主IPC通过虚拟访问地址接收管理客户端的登录。
当确定出备IPC后,主IPC发送的第一hello报文中的备IPC的IP地址为被确定为备IPC的从IPC的IP地址。其他从IPC接收到主IPC发送的第一hello报文后,记录主IPC的IP地址和备IPC的IP地址,在从IPC发送第二hello报文时,同时向主IPC的IP地址和备IPC的IP地址发送。
需要说明的是,当主IPC确定出备IPC后,为了保证确定备IPC选举过程的稳定,即使后续还有新的从IPC加入视频监控系统,也不将新增加的从IPC加入确定备IPC的过程中。
步骤804,主IPC接收备IPC发送的摄像机列表获取请求。
步骤805,主IPC向备IPC发送摄像机列表。
相应地,备IPC接收主IPC发送的摄像机列表。
在备IPC获取到摄像机列表后,与主IPC一样接收从IPC发送的第二hello报文,并根据第二hello报文更新摄像机列表。
当主IPC出现故障时,备IPC接替出现故障的主IPC成为新的主IPC,需要重新确定备IPC,即以组播或广播形式发送第一hello报文,根据从IPC发送的第二hello报文中的摄像机信息生成摄像机列表,从摄像机列表中确定新的备IPC,也即执行步骤701至步骤703和步骤801至步骤805。
具体地,当主IPC出现故障时,也即备IPC超过预定时间未接收到主IPC发送的第一hello报文,备IPC接替主IPC,并通过VIF/VIP管理模块创建虚拟端口和虚拟IP地址,该虚拟端口和虚拟IP地址为备IPC存储的主IPC发送的第一hello报文中的虚拟端口和虚拟IP地址。用户可以继续使用原来配置的虚拟访问地址登录主IPC。
可选的,为了保证备IPC接替主IPC立即生效,在备IPC切换为主IPC时发送免费地址解析协议(Address Resolution Protocol,Gratuitous ARP)刷新ARP。
如图5或图6A或图7A或图7B所示的实施例,均以视频监控系统中的所有IPC都在一个域中来说明。然而,在实际工作中,如果将所有的IPC划入同一个域,主IPC和备IPC会产生性能瓶颈,比如:摄像机列表维护及更新的时间,以及确定主IPC和备IPC的时间会加长等。此时,可以将所有IPC划分入不同域来避免性能瓶颈。
需要说明的是,当IPC属于同一个域时,IPC之间的通信可以通过广播或组播方式实现;当IPC属于不同的域时,IPC之间的通信通过组播方式实现,也即不同域中的IPC可以添加到同一个组播组中,在同一组播组中的IPC即使所属域不同,也可以接收到该组播组中属于其他域的IPC发送的报文消息。
属于同一个域的IPC具有相同的域名,可以通过域名来区分不同的域。域名可以用第i级域名.第i+1级域名.第i+2级域名……..第i+n级域名的方式来表示域之间的上下级关系。比如:一级域名.二级域名.三级域名,最高级的域使用一级域名表示。域名可以用英文表示,比如:china.zj.hz,也可以用数字表示,比如:0.2.1。
将视频监控系统划分为包括至少两个存在上下级关系的域,每个域中包括一个主IPC。如图9所示,其示意性地示出了一种视频监控系统中域的划分方式。该视频监控系统中共划分了三级域,第一级域的域名为0,第二级域的域名为0.1和0.2,第三级域的域名为0.1.1、0.1.2和0.2.1。
每个域中的主IPC建立摄像机列表、确定备IPC的方法如图5或图6A或图7A或图7B所示。
上下级域之间的摄像机列表可以通过域中的主IPC之间的交互来获取,比如第一级域0可以获取第二级域0.1和0.2以及第三级域0.1.1、0.1.2和0.2.1中的摄像机列表。
在获取摄像机列表之前,上下级域之间的主IPC需要建立邻居关系,在建立邻居关系后还需要维护邻居关系。
当视频监控系统被划分为若干个域时,上下级域中的主IPC获取摄像机列表的方法可以有如下几个步骤实现,如图10所示:
步骤1001,第i级域中的主IPC向第i+1级域中的主IPC发送邻居建立请求。
邻居建立请求包括第i级域中的主IPC的摄像机信息。
比如:图9中域名为0的域中的主IPC向域名为0.1的域中的主IPC发送邻居建立请求。
可选的,摄像机信息包括IP地址、IPC名称、域名、虚拟访问地址。可选的,摄像级信息还包括优先级、认证信息。
相应地,第i+1级域中的主IPC接收第i级域中的主IPC发送的邻居建立请求,并向第i级域中的主IPC发送邻居建立响应。比如:图9中域名为0.1的域中的主IPC接收域名为0的域中的主IPC发送的邻居建立请求,向域名为0的域中的主IPC发送邻居建立响应。
步骤1002,第i级域中的主IPC接收第i+1级域中的主IPC发送的邻居建立响应。
邻居建立响应包括第i+1级域中的主IPC的摄像机信息。
比如:图9中域名为0的域中的主IPC接收域名为0.1的域中的主IPC发送的邻居建立响应
步骤1003,第i级域中的主IPC根据邻居建立响应中的第i+1级域中的主IPC的摄像机信息生成邻居列表。
相应地,第i+1级域中的主IPC的摄像机信息生成邻居列表。
第i级域中的主IPC根据摄像机信息生成邻居列表的方式与主IPC根据摄像机信息生成摄像机列表的方式类似,这里不再赘述。
如表四所示,其示例性地示出了第一级域中的主IPC生成的邻居列表。
表四
邻居IP地址 域名 老化时间
192.168.1.1 0.1 10
192.168.2.1 0.2 8
步骤1004,第i级域中的主IPC接收第i+1级域中的主IPC每隔预定时间间隔发送的邻居心跳消息,并刷新邻居列表中第i+1级域中的主IPC的老化时间。
邻居心跳消息包括第i+1级域中的主IPC的摄像机信息。
一旦邻居建立,各个域的主IPC需要建立邻居列表,并通过周期性的邻居心跳消息来维护邻居关系。
第i+1级域中的主IPC每个预定时间间隔向第i级域中的主IPC发送邻居心跳消息,第i级域中的主IPC每隔预定时间间隔接收第i+1级域中的主IPC邻居心跳消息,并刷新邻居列表中第i+1级域中的主IPC的老化时间。
相应地,第i级域中的主IPC每个预定时间间隔向第i+1级域中的主IPC发送邻居心跳消息,第i+1级域中的主IPC每隔预定时间间隔接收第i级域中的主IPC邻居心跳消息,并刷新邻居列表中第i级域中的主IPC的老化时间。
步骤1005,若老化时间超过预定时间,则将第i+1级域中的主IPC的摄像机信息从邻居列表中删除。
该步骤与主IPC根据摄像机信息更新摄像机列表类似,这里不再赘述。
步骤1006,第i级域中的主IPC向第i+1级域中的主IPC发送摄像机列表获取请求。
相应地,第i+1级域中的主IPC接收第i级域中的主IPC发送的摄像机列表获取请求。第i+1级域中的主IPC向第i级域中的主IPC发送摄像机列表。
当第i+1级域是视频监控系统中最低级的域时,第i+1级域中的主IPC向第i级域中的主IPC发送第i+1级域中的摄像机列表;当第i+1级域不是视频监控系统中最低级的域时,第i+1级域中的主IPC向第i级域中的主IPC发送第i+1级域中的摄像机列表和第i+1级域下级的中的摄像机列表。
步骤1007,第i级域中的主IPC接收第i+1级域中的主IPC发送的摄像机列表。
第i级域中的主IPC接收第i+1级域中的摄像机列表,或,第i级域中的主IPC接收第i+1级域中的主IPC发送的第i+1级域中的摄像机列表和第i+1级域下级的域的摄像机列表。
比如:第一级域0中的主IPC接收到第二级域0.1中的主IPC发送的摄像机列表,第一级域0中得到的摄像机列表如表五所示。
表五
Figure PCTCN2017098300-appb-000001
Figure PCTCN2017098300-appb-000002
当两个域中的主IPC建立邻居后,一旦域内的IPC列表发送变化,发送变化的域中的主IPC需要向邻居列表中的IPC发送摄像机列表更新报文,摄像机列表更新报文中包括更新后的摄像机列表;邻居列表中的主IPC接收摄像机列表更新报文,并发送更新确定报文,更新确定报文用于表示已经完成摄像机列表的更新。
IPC之间进行通信时,使用的报文格式如表六所示:
表六
报文格式(Message format)
报头(Header)
版本号(Version)
消息类型(Message Typ)
消息长度(Length)
校验码(Checksum)
域名(Domain ID)
认证类型和认证信息(Authentication type/information)
数据(DATA)
IPC名称(IPC name)
IP地址(IP address)
优先级+MAC地址(Priority+MAC address)
主IPC的IPC地址(Primary IP address)
备IPC的IPC地址(Secondary IP address)
虚拟IP地址(Virtual IP address)
Hello时间间隔(Hello interval)
摄像机列表(IPC List)
序号(Sequence Number)
其中,消息类型可分为hello报文、摄像机列表更新报文(DLA)、摄像机列表信息报文(DLU);认证类型和认证信息用于配合相互认证;序号用于获取或更新摄像机列表。
以视频监控系统中的IPC划分入三个域,分布为第一级域0,第二级域0.1和第三级域0.01,每个域中包括一个主IPC。该视频监控系统的控制方法如图11A所示:
在视频监控系统建立时,通过管理客户端为各个域中的IPC设置IP地址、优先级、域名,并通过管理客户端为各个域中的主IPC配置虚拟访问地址。
步骤1101,各个域中的主IPC生成IPC列表。
一个主IPC如何生成IPC列表已经在如图7A或图7B所示的实施例中进行了详细阐述,这里不再赘述。
主IPC生成IPC列表后,根据IPC列表确定备IPC,如何生成备IPC已经在如图8所示的实施例中进行了详细阐述,这里不再赘述。
步骤1102,各个域中的主IPC生成邻居列表。
比如:第二级域中的主IPC向第三级域中的主IPC打算邻居建立请求,邻居建立请求包括第二级域中的主IPC的摄像机信息,第三级域中的主IPC接收邻居建立请求并向第二级域中的主IPC发送邻居建立响应,邻居建立响应包括第三级域中的主IPC的摄像机信息。第二级域生成邻居列表。
同样地,第一级域中的主IPC向第二级域中的主IPC打算邻居建立请求,邻居建立请求包括第一级域中的主IPC的摄像机信息,第二级域中的主IPC接收邻居建立请求并向第一级域中的主IPC发送邻居建立响应,邻居建立响应包括第二级域中的主IPC的摄像机信息。第一级域生成邻居列表。
邻居列表建立之前如何建立邻居,以及邻居列表建立之后如何维护、更新邻居列表已经在如图10所示的实施例中进行了详细阐述,这里不再赘述。
步骤1103,上级域中的主IPC获取下级域的摄像机列表。
比如:第二级域中的主IPC向第三级域中的主IPC发送摄像机列表获取请求,第三级域中的主IPC向第二级域中的主IPC发送的摄像机列表,第二级域中的主IPC接收第三级域中的主IPC发送的摄像机列表,此时,第二级域中的摄像机列表中包括第二级域中的IPC的摄像机信息和第三级域中的IPC的摄像机信息。
相应地,第一级域中的主IPC向第二级域中的主IPC发送摄像机列表获取请求,第二级域中的主IPC向第一级域中的主IPC发送的摄像机列表,第一级域中的主IPC接收第二级域中的主IPC发送的摄像机列表,此时,第一级域中的摄像机列表中包括第一级域中的IPC的摄像机信息、第二级域中的IPC的摄像机信息和第三级域中的IPC的摄像机信息。
如表七所示,其示例性地示出了第一级域中的主IPC中的摄像机列表。
表七
Figure PCTCN2017098300-appb-000003
Figure PCTCN2017098300-appb-000004
步骤1104,管理客户端通过预定的虚拟访问地址登录第一级域的主IPC。
步骤1105,第一级域中的主IPC通过预定的虚拟访问地址接收管理客户端的登录。
步骤1106,管理客户端向第一级域中的主IPC发送摄像机列表获取请求。
步骤1107,第一级域中的主IPC接收管理客户端送的摄像机列表获取请求。
步骤1108,第一级域中的主IPC向管理客户端发送摄像机列表。
第一级域中的主IPC向管理客户端发送的摄像机列表包括域名、IPC名称、IP地址和IPC类型。
可选的,在主IPC向管理客户端发送摄像机列表之前,接收管理客户端发送的域拓扑信息获取请求,域拓扑信息获取请求用于获取视频监控系统中域之间的上下级关系,主IPC向管理客户端发送域拓扑信息,管理客户端显示域拓扑信息。
如图11B所示,其示例性地示出了管理客户端显示的域拓扑信息。
步骤1109,管理客户端接收第一级域中的主IPC发送的摄像机列表。
可选的,管理客户端显示域拓扑信息后,显示摄像机列表中全部的摄像机信息;或者,根据对域的选择,显示被选择的域中的全部的摄像机信息。
比如:如图11C所示,其示例性地示出了管理客户端显示的摄像机列表,摄像机列表中包括IPC名称、IP地址以及IPC类型,管理客户端只展示了域名为0的域和域名为0.1的域中的摄像机信息。
步骤1110,管理客户端根据摄像机列表确定被控IPC的IP地址,根据被控IPC的IP地址向被控IPC发送控制指令。
被控IPC为摄像机列表中的至少一个IPC。
控制指令包括实况请求指令、存储配置指令、视频回放指令、PTZ控制指令中的至少一种。
综上所述,本发明实施例提供的视频监控系统的控制方法,通过主IPC生成摄像机列表,当管理客户端向主IPC请求摄像机列表时,主IPC将摄像机列表提供给管理客户端,管理客 户端根据摄像机列表确定被控IPC,直接控制被控IPC;利用主IPC替代现有技术中视频监控系统中的服务器,使得IPC的计算能力和网络带宽被充分利用,降低了视频监控网络组网的复杂度。
此外,还通过将视频监控系统中的IPC划分入不同的域,有效地降低了主IPC和备IPC的性能瓶颈,减少了更新摄像机列表的时间和确定主备IPC的时间。
在基于图11A所示实施例的可选实施例中,当管理客户端向被控IPC发送的控制指令包括实况请求指令时,该方法如图6C所示,这里不再赘述。当管理客户端向被控IPC发送的控制指令包括视频回放指令时,该方法如图6D所示,这里不再赘述。当管理客户端向被控IPC发送的控制指令包括存储配置指令时,该方法如图6E所示,这里不再赘述。当管理客户端向被控IPC发送的控制指令包括PTZ控制指令时,该方法如图6F所示,这里不再赘述。需要说明的是,当控制指令包括实况请求指令、存储配置指令、视频回放指令、PTZ控制指令中的任意两种时,上述如图6C、图6D、图6E、图6F所示的实施例中的任意两个实施例可以组合成为一个新的实施例;当控制指令包括实况请求指令、存储配置指令、视频回放指令、PTZ控制指令中的任意三种时,上述如图6C、图6D、图6E、图6F所示的实施例中的任意三个实施例可以组合成为一个新的实施例;当控制指令包括实况请求指令、存储配置指令、视频回放指令、PTZ控制指令时,上述如图6C、图6D、图6E、图6F所示的实施例可以组合成为一个新的实施例。组合成为新的实施例后,各个步骤的执行顺序可以预先设置,本发明实施例对此不做限定。
请参考图12,其示出了本发明一个实施例提供的视频监控系统的控制装置的框图。该控制装置可以通过软件、硬件或者两者的结合实现成为IPC的全部或者一部分。该控制装置包括:
处理单元1210,用于实现上述步骤501。
接收单元1220,用于实现上述步骤503。
发送单元1230,用于实现上述步骤504。
相关细节可结合参考图5所示的方法实施例。
需要说明的是,上述处理单元1210可以通过IPC的处理器执行存储器中的自治管理模块来实现,上述接收单元1220和发送单元1230可以通过IPC的网络接口和处理器执行存储其中的自治管理模块来实现。
请参考图12,其示出了本发明另一个实施例提供的视频监控系统的控制装置的框图。该控制装置可以通过软件、硬件或者两者的结合实现成为IPC的全部或者一部分。该控制装置包括:
处理单元1210,用于实现上述步骤601、步骤703、步骤7031、步骤7032、步骤7033、步骤1003、步骤1005、步骤1101、步骤1102、步骤611b、步骤611c、步骤611d、步骤801和步骤802、步骤1103和步骤1105。
接收单元1220,用于实现上述步骤603、步骤605、步骤702、步骤610a、步骤610b、步骤610c、步骤610d、步骤804、步骤1002、步骤1004、步骤1007和步骤1107。
发送单元1230,用于实现上述步骤606、步骤701、步骤611a、步骤612a、步骤612b、步骤612c、步骤612d、步骤803、步骤805、步骤1001、步骤1006和步骤1108。
相关细节可结合参考图6A或图6C或图6D或图6E或图6F或图7A或图7B或图8或图10或图11A所示的方法实施例。
需要说明的是,上述处理单元1210可以通过IPC的处理器执行存储器中的自治管理模块实现,上述接收单元1220和发送单元1230可以IPC的网络接口和处理器执行存储其中的自治管理模块1230来实现。
请参考图13,其示出了本发明一个实施例提供的视频监控系统的控制装置的框图。该控制装置可以通过软件、硬件或者两者的结合实现成为终端的全部或者一部分。该控制装置包括:
发送单元1310,用于实现上述步骤502和步骤507。
接收单元1320,用于实现上述步骤505。
处理单元1330,用于实现上述步骤506。
相关细节可结合参考图5所示的方法实施例。
需要说明的是,上述发送单元1310和接收单元1320可以通过终端的处理器执行存储器中的通信模块来实现,上述确定单元1330可以通过终端的处理器执行存储其中的地址确定模块来实现。
请参考图13,其示出了本发明另一个实施例提供的视频监控系统的控制装置的框图。该控制装置可以通过软件、硬件或者两者的结合实现成为终端的全部或者一部分。该控制装置包括:
发送单元1310,用于实现上述步骤604、步骤609、步骤609a、步骤609b、步骤609c、步骤609d、步骤1106和步骤1110。
接收单元1320,用于实现上述步骤607、步骤609、步骤610a、步骤610b、步骤610c、步骤610d、步骤611a、步骤612b、步骤612c、步骤612d和步骤1109。
处理单元1330,用于实现上述步骤608。
登录单元,用于实现上述步骤602和步骤1104。
相关细节可结合参考图6A或图6C或图6D或图6E或图6F或图11A所示的方法实施例。
需要说明的是,上述发送单元1310、接收单元1320和登录单元可以通过图2所示的终端的处理器执行存储器中的通信模块来实现,上述处理单元1330可以通过图2所示的终端的处理器执行存储器中的地址确定模块来实现。
需要说明的是:上述实施例提供的视频监控系统的控制装置在控制视频监控时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的视频监控系统的控制装置与视频监控系统的控制方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (29)

  1. 一种视频监控系统的控制方法,其特征在于,所述视频监控系统包括管理客户端和多个网络摄像机IPC,所述方法包括:
    所述多个IPC中的主IPC生成摄像机列表,所述摄像机列表记录有所述IPC与摄像机信息之间的对应关系,所述摄像机信息至少包括所述IPC的IP地址;
    所述主IPC接收所述管理客户端送的摄像机列表获取请求;
    所述主IPC向所述管理客户端发送所述摄像机列表,所述摄像机列表被所述管理客户端用于确定所述多个IPC中的被控IPC的IP地址,并根据所述被控IPC的IP地址向所述被控IPC发送控制指令。
  2. 根据权利要求1所述的方法,其特征在于,所述主IPC接收所述管理客户端发送的摄像机列表获取请求之前,还包括:
    所述主IPC通过预定的虚拟访问地址接收所述管理客户端的登录,所述虚拟访问地址包括:虚拟IP地址和虚拟端口。
  3. 根据权利要求1或2所述的方法,其特征在于,所述主IPC生成摄像机列表,包括:
    所述主IPC每隔预定时间间隔以组播形式或广播形式发送第一hello报文,所述第一hello报文包括所述主IPC的摄像机信息;
    所述主IPC接收所述多个IPC中的从IPC发送的第二hello报文,所述第二hello报文包括所述从IPC的摄像机信息;
    所述主IPC根据所述从IPC的摄像机信息生成所述摄像机列表。
  4. 根据权利要求3所述的方法,其特征在于,所述主IPC根据所述从IPC的摄像机信息生成所述摄像机列表,包括:
    若所述摄像机列表中不存在所述从IPC的摄像机信息,则所述主IPC将所述从IPC的摄像机信息添加至所述摄像机列表;
    若所述摄像机列表中存在所述从IPC的摄像机信息,则所述主IPC根据所述第二hello报文的接收时间,刷新所述摄像机列表中所述从IPC的老化时间;
    所述主IPC检测所述摄像机列表中各个从IPC的老化时间是否超过预定时间,将所述老化时间超过所述预定时间的从IPC作为过期IPC,将所述过期IPC的摄像机信息从所述摄像机列表中删除。
  5. 根据权利要求1至4任一所述的方法,其特征在于,所述方法还包括:
    所述主IPC根据所述摄像机列表确定备IPC,所述备IPC用于在所述主IPC发生故障时替代所述主IPC;
    所述主IPC接收所述备IPC发送的所述摄像机列表获取请求;
    所述主IPC向所述备IPC发送所述摄像机列表。
  6. 根据权利要求5所述的方法,其特征在于,所述主IPC根据所述摄像机列表确定备IPC,包括:
    所述主IPC根据所述摄像机列表中的所述摄像机信息获取从IPC的优先级;
    所述主IPC根据所述优先级由高到低的顺序,确定出所述备IPC。
  7. 根据权利要求6所述的方法,其特征在于,所述主IPC根据所述优先级由高到低的顺序,确定出所述备IPC,包括:
    若所述优先级最高的从IPC的数量为至少两个,所述主IPC根据所述摄像机列表中的所述摄像机信息获取所述从IPC的介质访问控制MAC地址;
    所述主IPC将所述优先级最高的所述从IPC中具有最小MAC地址或最大MAC地址的从IPC确定为所述备IPC。
  8. 根据权利要求5所述的方法,其特征在于,所述主IPC接收所述备IPC发送的所述摄像机列表获取请求之前,还包括:
    所述主IPC每隔预定时间间隔以组播形式或广播形式发送第一hello报文,所述第一hello报文包括所述备IPC的IP地址和所述主IPC的虚拟访问地址,所述备IPC的IP地址用于触发所述备IPC确定自身为备IPC,并在确定自身为所述备IPC时记录所述虚拟访问地址,所述虚拟访问地址用于在所述备IPC替代所述主IPC时,作为所述管理客户端的登录地址。
  9. 根据权利要求1至8任一所述方法,其特征在于,所述视频监控系统包括至少两个存在上下级关系的域,每个域中包括一个主IPC,所述方法还包括:
    第i级域中的主IPC向第i+1级域中的主IPC发送摄像机列表获取请求;
    所述第i级域中的主IPC接收所述第i+1级域中的主IPC发送的所述第i+1级域中的摄像机列表和所述第i+1级域下级的域的摄像机列表,或,所述第i级域中的主IPC接收所述第i+1级域中的主IPC发送的所述第i+1级域中的摄像机列表;
    其中,所述第i级域是所述第i+1级域的上级域。
  10. 根据权利要求9所述的方法,其特征在于,所述第i级域中的主IPC向第i+1级域中的主IPC发送摄像机列表获取请求之前,还包括:
    所述第i级域中的主IPC向所述第i+1级域中的主IPC发送邻居建立请求,所述邻居建立请求包括所述第i级域中的主IPC的摄像机信息;
    所述第i级域中的主IPC接收所述第i+1级域中的主IPC发送的所述邻居建立响应,所述邻居建立响应包括所述第i+1级域中的主IPC的摄像机信息;
    所述第i级域中的主IPC根据所述邻居建立响应中的所述第i+1级域中的主IPC的摄像机信息生成邻居列表。
  11. 根据权利要求10所述的方法,其特征在于,所述第i级域中的主IPC根据所述邻居建立响应中的所述第i+1级域中的主IPC的摄像机信息生成邻居列表之后,还包括:
    所述第i级域中的主IPC接收所述第i+1级域中的主IPC每隔预定时间间隔发送的邻居 心跳消息,并刷新所述邻居列表中所述第i+1级域中的主IPC的老化时间,所述邻居心跳消息包括所述第i+1级域中的主IPC的摄像机信息;
    若所述老化时间超过预定时间,则将所述第i+1级域中的主IPC的摄像机信息从所述邻居列表中删除。
  12. 一种视频监控系统的控制方法,其特征在于,所述视频监控系统包括管理客户端和多个网络摄像机IPC,所述方法包括:
    所述管理客户端向所述多个IPC中的主IPC发送摄像机列表获取请求;
    所述管理客户端接收所述主IPC发送的摄像机列表,所述摄像机列表记录有所述IPC与摄像机信息之间的对应关系,所述摄像机信息至少包括所述IPC的IP地址;
    所述管理客户端根据所述摄像机列表确定所述多个IPC中的被控IPC的IP地址,根据所述被控IPC的IP地址向所述被控IPC发送控制指令。
  13. 根据权利要求12所述的方法,其特征在于,所述管理客户端向所述多个IPC中的主IPC发送摄像机列表获取请求之前,还包括:
    所述管理客户端通过预定的虚拟访问地址登录所述主IPC,所述虚拟访问地址包括:虚拟IP地址和虚拟端口。
  14. 根据权利要求12或13所述的方法,其特征在于,所述控制指令包括实况请求指令、存储配置指令、视频回放指令和全方位旋转变焦PTZ控制指令中的至少一种;
    所述根据所述被控IPC的IP地址向所述被控IPC发送控制指令之后,还包括:
    当所述控制指令包括所述实况请求指令时,接收所述被控IPC发送的实时数字视频流,显示所述实时数字视频流;
    当所述控制指令包括所述存储配置指令时,接收所述被控IPC发送的存储配置响应,所述存储配置响应是所述被控摄像机在存储数字视频流后发送的;
    当所述控制指令包括所述视频回放指令时,接收所述被控IPC发送的回放数字视频流,显示所述回放数字视频流;
    当所述控制指令包括所述PTZ控制指令时,接收所述被控IPC发送的PTZ控制响应。
  15. 一种视频监控系统的控制装置,其特征在于,,所述装置包括:
    处理单元,用于生成摄像机列表,所述摄像机列表记录有网络摄像机IPC与摄像机信息之间的对应关系,所述摄像机信息至少包括所述IPC的IP地址;
    接收单元,用于接收管理客户端送的摄像机列表获取请求;
    发送单元,用于向所述管理客户端发送所述摄像机列表,所述摄像机列表被所述管理客户端用于确定多个所述IPC中的被控IPC的IP地址,并根据所述被控IPC的IP地址向所述被控IPC发送控制指令。
  16. 根据权利要求15所述的装置,其特征在于,
    所述接收单元,还用于通过预定的虚拟访问地址接收所述管理客户端的登录,所述虚拟访问地址包括:虚拟IP地址和虚拟端口。
  17. 根据权利要求15或16所述的装置,其特征在于,所述发送单元,还用于每隔预定时间间隔以组播形式或广播形式发送第一hello报文,所述第一hello报文包括所述主IPC的摄像机信息;
    所述接收单元,还用于接收多个所述IPC中的从IPC发送的第二hello报文,所述第二hello报文包括所述从IPC的摄像机信息;
    所述处理单元,还用于根据所述从IPC的摄像机信息生成所述摄像机列表。
  18. 根据权利要求17所述的装置,其特征在于,所述处理单元,具体用于:
    若所述摄像机列表中不存在所述从IPC的摄像机信息,则将所述从IPC的摄像机信息添加至所述摄像机列表;
    若所述摄像机列表中存在所述从IPC的摄像机信息,则根据所述第二hello报文的接收时间,刷新所述摄像机列表中所述从IPC的老化时间;
    检测所述摄像机列表中各个从IPC的老化时间是否超过预定时间,将所述老化时间超过所述预定时间的从IPC作为过期IPC,将所述过期IPC的摄像机信息从所述摄像机列表中删除。
  19. 根据权利要求15至18任一所述的装置,其特征在于,所述装置还包括:
    确定单元,用于根据所述摄像机列表确定备IPC,所述备IPC用于在所述主IPC发生故障时替代所述主IPC;
    所述接收单元,还用于接收所述备IPC发送的所述摄像机列表获取请求;
    所述发送单元,还用于向所述备IPC发送所述摄像机列表。
  20. 根据权利要求19所述的装置,其特征在于,所述确定单元,具体用于:
    根据所述摄像机列表中的所述摄像机信息获取从IPC的优先级;
    根据所述优先级由高到低的顺序,确定出所述备IPC。
  21. 根据权利要求20所述的装置,其特征在于,所述确定单元,具体用于:
    若所述优先级最高的从IPC的数量为至少两个,根据所述摄像机列表中的所述摄像机信息获取所述从IPC的介质访问控制MAC地址;
    将所述优先级最高的所述从IPC中具有最小MAC地址或最大MAC地址的从IPC确定为所述备IPC。
  22. 根据权利要求19所述的装置,其特征在于,所述发送单元,还用于:
    每隔预定时间间隔以组播形式或广播形式发送第一hello报文,所述第一hello报文包括所述备IPC的IP地址和所述主IPC的虚拟访问地址,所述备IPC的IP地址用于触发所述备IPC确定自身为备IPC,并在确定自身为所述备IPC时记录所述虚拟访问地址,所述虚拟访问地址用于在所述备IPC替代所述主IPC时,作为所述管理客户端的登录地址。
  23. 根据权利要求15至22任一所述的装置,其特征在于,所述控制装置属于第i级域 中的主IPC,所述视频监控系统包括至少两个存在上下级关系的域,每个域中包括一个主IPC;
    所述发送单元,用于向第i+1级域中的主IPC发送摄像机列表获取请求;所述第i级域是所述第i+1级域的上级域;
    所述接收单元,还用于接收所述第i+1级域中的主IPC发送的所述第i+1级域中的摄像机列表和所述第i+1级域下级的域的摄像机列表,或,接收所述第i+1级域中的主IPC发送的所述第i+1级域中的摄像机列表。
  24. 根据权利要求23所述的装置,其特征在于,
    所述发送单元,还用于向所述第i+1级域中的主IPC发送邻居建立请求,所述邻居建立请求包括所述第i级域中的主IPC的摄像机信息;
    所述接收单元,还用于接收所述第i+1级域中的主IPC发送的所述邻居建立响应,所述邻居建立响应包括所述第i+1级域中的主IPC的摄像机信息;
    所述生成单元,还用于所述第i级域中的主IPC根据所述邻居建立响应中的所述第i+1级域中的主IPC的摄像机信息生成邻居列表。
  25. 根据权利要求24所述的装置,其特征在于,
    所述接收单元,还用于接收所述第i+1级域中的主IPC每隔预定时间间隔发送的邻居心跳消息,并刷新所述邻居列表中所述第i+1级域中的主IPC的老化时间,所述邻居心跳消息包括所述第i+1级域中的主IPC的摄像机信息;
    所述生成单元,还用于若所述老化时间超过预定时间,则将所述第i+1级域中的主IPC的摄像机信息从所述邻居列表中删除。
  26. 一种视频监控系统的控制装置,其特征在于,所述装置包括:
    发送单元,用于向所述多个IPC中的主IPC发送摄像机列表获取请求;
    接收单元,用于接收所述主IPC发送的摄像机列表,所述摄像机列表记录有所述IPC与摄像机信息之间的对应关系,所述摄像机信息至少包括所述IPC的IP地址;
    处理单元,用于根据所述摄像机列表确定所述多个IPC中的被控IPC的IP地址;
    所述发送单元,还用于根据所述被控IPC的IP地址向所述被控IPC发送控制指令。
  27. 根据权利要求26所述的装置,其特征在于,所述装置还包括:
    登录单元,用于通过预定的虚拟访问地址登录所述主IPC,所述虚拟访问地址包括:虚拟IP地址和虚拟端口。
  28. 根据权利要求26所述的装置,其特征在于,所述控制指令包括实况请求指令、存储配置指令、视频回放指令和全方位旋转变焦PTZ控制指令中的至少一种;
    所述接收单元,还用于:
    当所述控制指令包括所述实况请求指令时,接收所述被控IPC发送的实时数字视频流,显示所述实时数字视频流;
    当所述控制指令包括所述存储配置指令时,接收所述被控IPC发送的存储配置响应,所述存储配置响应是所述被控摄像机在存储数字视频流后发送的;
    当所述控制指令包括所述视频回放指令时,接收所述被控IPC发送的回放数字视频流,显示所述回放数字视频流;
    当所述控制指令包括所述PTZ控制指令时,接收所述被控IPC发送的PTZ控制响应。
  29. 一种视频监控系统,其特征在于,所述系统包括:
    如权利要求15至25任一所述的视频监控系统的控制装置,和,如权利要求26至28任一所述的视频监控系统的控制装置。
PCT/CN2017/098300 2016-09-14 2017-08-21 视频监控系统的控制方法、装置及系统 WO2018049966A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610826664.2A CN107820043B (zh) 2016-09-14 2016-09-14 视频监控系统的控制方法、装置及系统
CN201610826664.2 2016-09-14

Publications (1)

Publication Number Publication Date
WO2018049966A1 true WO2018049966A1 (zh) 2018-03-22

Family

ID=61600753

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098300 WO2018049966A1 (zh) 2016-09-14 2017-08-21 视频监控系统的控制方法、装置及系统

Country Status (2)

Country Link
CN (1) CN107820043B (zh)
WO (1) WO2018049966A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051428A (zh) * 2019-12-28 2021-06-29 浙江宇视科技有限公司 一种摄像机前端存储备份的方法及装置

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110881093B (zh) * 2018-09-05 2022-03-11 华为技术有限公司 分布式摄像机
CN110110141B (zh) * 2018-09-19 2021-04-20 浙江宇视科技有限公司 摄像机列表排序方法、装置及监控管理平台
CN112019801B (zh) * 2019-05-31 2022-10-25 星宸科技股份有限公司 影像监控系统及其区域网络系统及建构方法
CN110557611B (zh) * 2019-08-28 2021-12-17 视联动力信息技术股份有限公司 信息同步方法、装置及存储介质
CN113055640B (zh) * 2019-12-28 2023-06-20 浙江宇视科技有限公司 一种监控系统内设备管理方法及装置
CN112073747A (zh) * 2020-09-18 2020-12-11 普联技术有限公司 一种流媒体数据预览方法、用户端设备及中继服务器
CN114845020B (zh) * 2022-04-20 2023-02-24 深圳禾木信息技术有限公司 一种可扩展网络摄像机的控制方法及设备
CN116437158B (zh) * 2023-06-13 2023-09-01 浙江大华技术股份有限公司 视频传输方法、视频传输装置以及计算机可读存储介质
CN116528042B (zh) * 2023-06-29 2023-10-27 深圳市巨龙创视科技有限公司 一种远端摄像机的控制方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030210329A1 (en) * 2001-11-08 2003-11-13 Aagaard Kenneth Joseph Video system and methods for operating a video system
CN201509277U (zh) * 2009-10-27 2010-06-16 天津市中环系统工程有限责任公司 视频智能跟踪导航系统
CN102143309A (zh) * 2010-01-28 2011-08-03 三星泰科威株式会社 网络摄像机以及用于操作网络摄像机的系统和方法
CN103795906A (zh) * 2014-01-20 2014-05-14 浙江宇视科技有限公司 一种可堆叠无线网络摄像机

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7116357B1 (en) * 1995-03-20 2006-10-03 Canon Kabushiki Kaisha Camera monitoring system
US7433325B1 (en) * 2006-05-09 2008-10-07 Cisco Technology, Inc. NAT and proxy device detection
US20100097472A1 (en) * 2008-10-21 2010-04-22 Honeywell International Inc. Method of efficient camera control and hand over in surveillance management
CN101883104A (zh) * 2010-06-29 2010-11-10 杭州华三通信技术有限公司 一种监控轮切方法及其装置和系统
CN103491353A (zh) * 2013-10-09 2014-01-01 南京怀业信息技术有限公司 视频监控多级多域组网下有关流媒体传输最佳路径的方法
CN103888729B (zh) * 2014-03-19 2017-04-19 浙江宇视科技有限公司 一种视频监控平台间摄像机信息同步方法及装置
CN103873301A (zh) * 2014-03-20 2014-06-18 浙江宇视科技有限公司 一种自动发现和添加设备的系统和方法
CN105516658B (zh) * 2015-11-30 2019-10-18 浙江宇视科技有限公司 一种监控设备控制方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030210329A1 (en) * 2001-11-08 2003-11-13 Aagaard Kenneth Joseph Video system and methods for operating a video system
CN201509277U (zh) * 2009-10-27 2010-06-16 天津市中环系统工程有限责任公司 视频智能跟踪导航系统
CN102143309A (zh) * 2010-01-28 2011-08-03 三星泰科威株式会社 网络摄像机以及用于操作网络摄像机的系统和方法
CN103795906A (zh) * 2014-01-20 2014-05-14 浙江宇视科技有限公司 一种可堆叠无线网络摄像机

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051428A (zh) * 2019-12-28 2021-06-29 浙江宇视科技有限公司 一种摄像机前端存储备份的方法及装置
CN113051428B (zh) * 2019-12-28 2024-04-05 浙江宇视科技有限公司 一种摄像机前端存储备份的方法及装置

Also Published As

Publication number Publication date
CN107820043B (zh) 2020-09-11
CN107820043A (zh) 2018-03-20

Similar Documents

Publication Publication Date Title
WO2018049966A1 (zh) 视频监控系统的控制方法、装置及系统
US20220107848A1 (en) Edge service providing method and apparatus, and device
US9846591B2 (en) Method, device and system for migrating configuration information during live migration of virtual machine
US8321862B2 (en) System for migrating a virtual machine and resource usage data to a chosen target host based on a migration policy
JP6903121B2 (ja) パケット伝送
US20230247388A1 (en) Communication system, method and device for miniature intelligent sensor
US10602448B2 (en) Remote wakeup method, connection server, and networking apparatus having sleep mode
EP3905590A1 (en) System and method for obtaining network topology, and server
US11575592B2 (en) Message processing method and apparatus, control-plane device, and computer storage medium
EP3594808B1 (en) Virtual machine migration method, switch, and virtual machine system
US10791167B2 (en) User migration
WO2016197866A1 (zh) 网络唤醒方法、远程服务器和网络交换设备
CN106060088B (zh) 一种服务管理方法及装置
WO2017114363A1 (zh) 报文处理方法、bng及bng集群系统
US9571379B2 (en) Computer system, communication control server, communication control method, and program
CN111464454B (zh) 一种数据中心内虚拟bras设备负载分担方法及系统
US20230161541A1 (en) Screen projection method and system
US11201915B1 (en) Providing virtual server identity to nodes in a multitenant serverless execution service
WO2021120633A1 (zh) 一种负载均衡方法及相关设备
US20180241689A1 (en) Resource obtaining method and apparatus
US9985840B2 (en) Container tracer
US10284436B2 (en) Cloud based wake-on-LAN for thin clients
US20150373134A1 (en) Information processing apparatus, information processing system, information processing method, and program
EP2629492A1 (en) Method, switch, and system for processing a message
WO2013159667A1 (en) Virtual router redundancy protocol load balancing mode (vrrpe)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17850168

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850168

Country of ref document: EP

Kind code of ref document: A1