WO2023273426A1 - 一种从摄像机获取数据的方法及装置 - Google Patents

一种从摄像机获取数据的方法及装置 Download PDF

Info

Publication number
WO2023273426A1
WO2023273426A1 PCT/CN2022/081986 CN2022081986W WO2023273426A1 WO 2023273426 A1 WO2023273426 A1 WO 2023273426A1 CN 2022081986 W CN2022081986 W CN 2022081986W WO 2023273426 A1 WO2023273426 A1 WO 2023273426A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
data
protocol
server
data type
Prior art date
Application number
PCT/CN2022/081986
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
Priority claimed from CN202110961751.XA external-priority patent/CN115550379A/zh
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023273426A1 publication Critical patent/WO2023273426A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]

Definitions

  • the present application relates to the field of cameras, in particular to a method and device for acquiring data from a camera.
  • a video surveillance system includes servers and cameras.
  • the data types transmitted by different protocols are often inconsistent, and a physical camera will use multiple protocols to access the server.
  • the server registers the camera, it will logically treat a single physical camera as multiple cameras for management. Every time a camera uses a protocol to connect to the server, the server will generate a corresponding camera ID. Therefore, multiple logical identifiers are often established for each camera in the server, which leads to repeated management of cameras by the server and low efficiency when searching for cameras.
  • the present application provides a method and device for acquiring data from a camera, which can solve the problem of low efficiency in searching for cameras caused by repeated management of cameras by a server.
  • the present application provides a method for obtaining data from a camera, and the method can be applied to a server, or the method can be applied to a device that can support the server to implement the method, for example, the device includes a chip system, and the data obtained from the camera
  • the data method includes: first, the server obtains a first read request for requesting the first data and a second read request for requesting the second data, wherein: the first and second requests carry the same camera ID, and the first The data type of the data is the first data type, the data type of the second data is the second data type different from the first data type, the first read request carries the first data type identifier of the first data type, and the second read request Carry the second data type identifier of the first data type; secondly, the server also uses the first camera data transmission protocol that supports the first data type to obtain the first data from the camera corresponding to the camera identifier; in addition, the server also uses the first camera that supports the first data type The second camera data transmission protocol of the second data type
  • multiple read requests of different protocols carry the same camera identifier, and the server can obtain data of a corresponding type from the camera according to this camera identifier. Since the read requests of different protocols use the same camera ID, the total number of camera IDs stored by the server is less than that of the prior art, thereby reducing the processing resources required by the server to query the physical camera, and the server to determine the camera corresponding to the camera ID time, improving the efficiency of the server to obtain data from the camera.
  • the server may purchase a license according to the number of cameras for the camera management function and data processing function. In this implementation, the number of cameras registered in the server is reduced, thereby reducing the cost of purchasing licenses. the cost of.
  • the data type supported by the first camera data transmission protocol includes video, the unsupported data type includes image, the first data is video; the data type supported by the second camera data transmission protocol includes image, Unsupported data types include video, the second data is an image.
  • the server can use the same camera ID and use different camera data transmission protocols to obtain different types of data from a camera, avoiding repeated management of a camera by the server using different logical IDs, and improving the security of the camera management system to which the server belongs Processing efficiency.
  • the server uses the first camera data transmission protocol to obtain the first data, including: the server dispatches the first read request to a first protocol plug-in that supports the first camera data transmission protocol, and uses the first protocol The plug-in acquires the first data from the camera based on the first camera data transmission protocol.
  • the server uses the second camera data transmission protocol to obtain the second data, including: the server dispatches the second read request to the second protocol plug-in supporting the second camera data transmission protocol, and uses the second protocol plug-in to obtain the second data from the camera based on the second camera data transmission protocol Get the second data.
  • the protocol plug-in refers to a functional component or software unit that supports the implementation of the camera data transmission protocol, for example, the first protocol plug-in can realize one or more functions of the first camera data transmission protocol.
  • the server uses the protocol plug-in to realize the function of the camera data transmission protocol, which avoids the process of querying the camera data transmission protocol every time the server obtains data from the camera, reduces the consumption of processing resources in the server, and improves the efficiency of the camera management system. Processing efficiency.
  • the method before the server acquires the first read request and the second read request, the method includes: the server acquires a plug-in loading request from the client, and the loading request carries: load the first protocol plug-in Instructions for loading the second protocol plug-in; the server also selects the first protocol plug-in and the second protocol plug-in from the plurality of locally configured protocol plug-ins to load respectively.
  • the above-mentioned protocol plug-in can refer to a lightweight access service (or micro-service), that is to say, the protocol plug-in can be run as a process (or thread) in the server, and the server uses the protocol plug-in to realize camera data transmission
  • the function of the protocol avoids the process of querying the camera data transmission protocol every time the server obtains data from the camera, reduces the consumption of processing resources in the server, and improves the processing efficiency of the camera management system.
  • the server records a one-to-one correspondence between data types and camera data transmission protocols.
  • the server using the first camera data transmission protocol supporting the first data type includes: the server selecting a first protocol plug-in corresponding to the first data type according to the first data type.
  • the server using the second camera data transmission protocol supporting the second data type includes: the server selecting a second protocol plug-in corresponding to the second data type according to the second data type. Different data types correspond to different protocol plug-ins.
  • the server can use the data type identifier carried by the read request to determine the protocol plug-in required to implement the read request, which prevents the server from matching the read request with each protocol plug-in and improves the server’s access to The efficiency of reading the data indicated by the request improves the processing efficiency of the camera management system to which the server belongs.
  • the first protocol plug-in is provided with an uplink port and a downlink port, wherein: each uplink port is used to connect to a client; each downlink port is used to connect to a camera.
  • the first protocol plug-in can receive read requests sent by multiple clients through multiple uplink ports, and obtain data corresponding to multiple read requests from one or more cameras; the first protocol plug-in can also pass Multiple downlink ports support a client to obtain data from multiple cameras, which improves the efficiency of the server to obtain data from cameras in parallel, thereby improving the management performance of the camera management system.
  • the first camera data transmission protocol and the second camera data transmission protocol are respectively one of the following protocols: public security video surveillance networking system information transmission, exchange, control technical requirements ( GB/T28181), Open Network Video Interface Forum (Open Network Video Interface Forum, ONVIF) protocol, Real Time Streaming Protocol (Real Time Streaming Protocol, RTSP), Public security video image information system technical requirements (Technical requirements for Video and image information system, GA/T1400) and vendor private protocols.
  • the method further includes: the server obtains the registration information of the camera, and the server also registers the camera with the camera identifier, and registers the camera as supporting: the first camera data transmission protocol, the second camera data Transfer Protocol.
  • the server can determine the camera data transmission protocol supported by the camera, avoiding re-querying the camera data transmission protocol supported by the camera during the process of the server obtaining data from the camera, reducing the processing of the server obtaining data from the camera time, improving the processing efficiency of the camera management system to which the server belongs.
  • the method further includes: the server synchronizing the camera ID and the protocol corresponding to the camera ID to the client; the client is used to send the first read request and the second read request.
  • the client can know the camera data transmission protocol supported by each camera ID, which avoids the process of the client querying the camera data transmission protocol corresponding to the camera ID, reduces the time for obtaining data from the camera, and improves the efficiency of data acquisition .
  • the method further includes: the server establishing a first correspondence between the camera identifier and the first data, and establishing a second correspondence between the camera identifier and the second data.
  • the server stores service data of one or more cameras
  • the method further includes: the server acquires a query request from the client; the query request carries a camera identifier; First data and second data associated with the camera are obtained from the data.
  • a camera only has a unique device code (camera ID) in the server, and different types of business data acquired by the camera can be associated through the camera ID.
  • the client can use the camera ID to view videos, search and identify intelligent pictures, etc.
  • control camera identification
  • configuration camera data transmission protocol supported by the camera
  • the present application provides a device for acquiring data from a camera
  • the device for acquiring data from a camera includes a method for performing the method for acquiring data from a camera in the first aspect or any possible implementation of the first aspect of each module.
  • the device can be realized by a software module; it can also be hardware with corresponding functions, such as a server, a network video recorder (network video recorder, NVR) and the like.
  • the device for acquiring data from the camera has the function of implementing the behaviors in the method examples of any one of the first aspects above.
  • the functions can be realized by hardware, or by executing corresponding software by hardware, for example, the device for obtaining data from the camera is applied to a server, or a device that supports the server to implement the above method for obtaining data from the camera.
  • the device for acquiring data from a camera includes: a communication unit, configured to acquire a first read request for requesting first data and a second read request for requesting second data, wherein: the first , The second request carries the same camera ID, the data type of the first data is the first data type, the data type of the second data is a second data type different from the first data type, and the first read request carries the flag first The first data type identifier of the data type, the second read request carries the second data type identifier of the first data type; the first acquisition unit is configured to use the first camera data transmission protocol that supports the first data type, from the camera identifier The corresponding camera obtains the first data; the second obtaining unit is configured to obtain the second data from the camera corresponding to the camera identifier by using the second camera data transmission protocol supporting the second data type, wherein the second camera data transmission protocol Different from the first camera data transmission protocol.
  • the data type supported by the first camera data transmission protocol includes video, the unsupported data type includes image, the first data is video; the data type supported by the second camera data transmission protocol includes image, Unsupported data types include video, the second data is an image.
  • the first obtaining unit is specifically configured to dispatch the first read request to the first protocol plug-in supporting the first camera data transmission protocol, and use the first protocol plug-in based on the first camera data transmission protocol Acquire the first data from the camera;
  • the second acquisition unit is specifically configured to dispatch the second read request to the second protocol plug-in supporting the second camera data transmission protocol, and use the second protocol plug-in to read from the camera based on the second camera data transmission protocol Get the second data.
  • the communication unit is also used to obtain a plug-in loading request from the client, where the loading request carries: an instruction to load the first protocol plug-in, an instruction to load the second protocol plug-in; the data obtained from the camera
  • the device further includes: a loading unit; the loading unit is configured to select a first protocol plug-in and a second protocol plug-in from a plurality of locally configured protocol plug-ins to load respectively.
  • the server records a one-to-one correspondence between the data type and the camera data transmission protocol, wherein: the first acquisition unit is also specifically configured to select the data type corresponding to the first data type according to the first data type.
  • the first protocol plug-in; the second obtaining unit is also specifically configured to select a second protocol plug-in corresponding to the second data type according to the second data type.
  • the first protocol plug-in is provided with an uplink port and a downlink port, wherein: each uplink port is used to connect to a client; each downlink port is used to connect to a camera.
  • the first camera data transmission protocol and the second camera data transmission protocol are respectively one of the following protocols: GB/T28181 protocol, ONVIF protocol, RTSP protocol, GA/T1400 protocol and Manufacturer's private agreement.
  • the communication unit is also used to obtain the registration information of the camera;
  • the device for obtaining data from the camera also includes: a registration unit;
  • the registration unit is used to register the camera with the camera identifier, and the The cameras are registered as supporting: 1st Camera Data Transfer Protocol, 2nd Camera Data Transfer Protocol.
  • the communication unit is further configured to synchronize the camera identifier and the protocol corresponding to the camera identifier to the client; the client is configured to send the first read request and the second read request.
  • the device for acquiring data from a camera further includes: an associating unit; the associating unit is configured to establish a first correspondence between the camera identifier and the first data; the associating unit is also configured to establish A second corresponding relationship between the camera identifier and the second data.
  • the server stores service data of one or more cameras; the communication unit is also configured to obtain a query request from the client; the query request carries a camera identifier.
  • the device for acquiring data from a camera further includes: a query unit; the query unit is configured to acquire first data and second data associated with the camera from service data according to a query request.
  • the present application provides a server, the server includes a processor and an interface circuit, the interface circuit is used to receive signals from other devices other than the server and transmit them to the processor, or send signals from the processor to For other devices than the server, the processor is used to implement the operation steps of the method described in the first aspect or any possible implementation manner of the first aspect through a logic circuit or by executing code instructions.
  • the present application provides a camera management system, including: a server and one or more cameras.
  • the server obtains a first read request for requesting the first data and a second read request for requesting the second data, wherein: the first and second requests carry the same camera ID, and the camera ID corresponds to the above
  • the data type of the first data is the first data type
  • the data type of the second data is a second data type different from the first data type
  • the first read request carries the flag first data
  • the second read request carries the second data type identifier marking the first data type.
  • the server obtains the first data from the camera corresponding to the camera identifier by using the first camera data transmission protocol that supports the first data type.
  • the server also uses a second camera data transmission protocol supporting the second data type to obtain the second data from the camera corresponding to the camera identifier, wherein the second camera data transmission protocol is different from the first camera data transmission protocol.
  • multiple read requests of different protocols carry the same camera identifier, and the server can obtain corresponding types of data from the camera according to this camera identifier. Since the read requests of different protocols use the same camera ID, the total number of camera IDs stored by the server is less than that of the prior art, thereby reducing the processing resources required by the server to query the physical camera, and the server to determine the camera corresponding to the camera ID time, improving the efficiency of the server to obtain data from the camera.
  • the camera management system includes various devices for executing the method in the first aspect or any possible implementation manner of the first aspect.
  • the camera management system has the function of implementing the behaviors in the method examples of any one of the first aspects above.
  • the functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware.
  • the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed by a processor in the server, it is used to implement the first aspect or the first Operation steps of the method described in any possible implementation manner of the aspect.
  • the present application provides a computer program product, the computer program product includes instructions, and when the computer program product runs on a server or processor, the server or processor executes the instructions to achieve any one of the above aspects or any The operation steps of the method described in the possible implementation manner of one aspect.
  • the present application provides a chip, including a logic circuit and an interface circuit, the interface circuit is used to input information and/or output information; the logic circuit is used to implement the above-mentioned aspects or possible implementations of each aspect, Process input information and/or generate output information.
  • the interface circuit can obtain the first read request and the second read request, and the logic circuit can realize the acquisition from the camera described in the first aspect or the possible implementation of the first aspect for the first read request and the second read request.
  • the interface circuit may also acquire the first data indicated by the first read request and the second data indicated by the second read request from the camera.
  • FIG. 1 is a schematic diagram of a camera management system provided by the present application
  • FIG. 2 is a schematic diagram of a camera access server provided by the present application.
  • Fig. 3 is a kind of display diagram of connecting the camera to the server provided by the present application.
  • Fig. 4 is a flow chart 1 of a method for acquiring data from a camera provided by the present application
  • FIG. 5 is a flowchart two of a method for acquiring data from a camera provided by the present application.
  • Fig. 6 is a device schematic diagram of a method for acquiring data from a camera provided by the present application.
  • FIG. 7 is a schematic structural diagram of a server provided by the present application.
  • words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.
  • FIG. 1 is a schematic diagram of a camera management system provided by the present application.
  • the camera management system may include camera equipment, servers, and terminal equipment, and communication between each equipment may be realized through a network to realize the transmission of videos, images or other information.
  • the network can be the Internet, or other networks.
  • the network may include one or more network devices, for example, the network devices may be routers or switches.
  • the camera device shown in FIG. 1 may refer to a dedicated device with a camera function.
  • the camera device can be a camera device for road monitoring
  • the camera device 111A is a dome camera
  • the camera device 111B is an infrared dome camera
  • the camera device 111C is 4K (resolution is 3840*2160) Bullet camera.
  • the camera device shown in FIG. 1 may refer to a general device with a camera function, such as a mobile phone, a tablet computer, or a smart wearable device with a camera function.
  • the server 120 may be a server, such as an application server supporting application services, and the application server may provide video services, image services, other services based on videos or images, and the like.
  • the server 120 can also be a dedicated device that can acquire data from cameras, such as an NVR.
  • the server 120 may also refer to a data center, and the data center may include one or more physical devices with video processing functions, such as servers, mobile phones, tablet computers or other devices.
  • the user can view the data stored in the server 120 through the client.
  • the data to be viewed can be pictures, videos, etc. Users can also obtain real-time data captured by camera equipment through the client.
  • a client refers to an application program running on a physical machine or a virtual machine, and the application program can acquire a service request and send the service request (such as a data read request) to the server 120 .
  • the client may be a computer running an application
  • the computer running the application may be a physical machine or a virtual machine.
  • the client can be any of the above-mentioned terminal devices, and the embodiments of this application do not limit the specific technology and device form adopted by the client.
  • the client can also be a device such as a mobile phone or a server running an application program.
  • the client may refer to any one of terminal devices 131 - 133 .
  • the terminal device 131 can be VR glasses, and the user can control the viewing angle range by turning, and obtain the data of the corresponding viewing angle range from the camera via the server 120;
  • the terminal device 132 can be a mobile phone, and the user can operate it through touch operation or space operation, etc. to control the range of viewing angles on the terminal device 132, and obtain video or pictures collected by the camera device 111;
  • the terminal device 133 can be a personal computer, and the user can control the content displayed on the display screen through an input device such as a mouse or a keyboard, such as a video , pictures or alarm information, etc.
  • the server 120 used in the camera management process refers to a server cluster deployed with multiple servers, the server cluster may have a rack, and the rack can establish communication for the multiple servers through a wired connection,
  • a wired connection such as universal serial bus (universal serial bus, USB) or peripheral component interconnect express (peripheral component interconnect express, PCIe) high-speed bus, etc.
  • FIG. 1 is only a schematic diagram.
  • the camera management system may also include other devices, which are not shown in FIG. 1 , and the embodiments of the present application do not limit the number and types of devices included in the system.
  • FIG. 2 is A schematic diagram of a camera access server provided in the present application.
  • the camera 210 can realize the functions of each camera device shown in FIG. 1
  • the server 220 can at least realize the functions of the server 120 shown in FIG. 1 .
  • the server 220 can realize access to the camera, store video and audio information of the camera, or instruct the camera to intelligently capture pictures, provide artificial intelligence (AI) computing power to analyze information such as video or pictures, and realize image search. graph and other functions.
  • the client 230 may refer to a physical machine or a virtual machine that obtains user instructions, or an application program running on the physical machine or a virtual machine, such as terminal devices 131 to 133 shown in FIG. 1 . In a possible implementation manner, the client 230 may run on the server 220 .
  • the process of connecting the camera to the server includes the following steps.
  • the server 220 acquires registration information of the camera 210.
  • the registration information may be imported by the server 220 from a database.
  • the database records protocol information supported by the camera 210 .
  • the registration information may also be entered by the information manager using the client.
  • the client may be the client 230 shown in FIG. 2 , or other clients communicating with the server 220 .
  • the server 220 After the server 220 obtains the registration information, the server 220 registers the camera 210 with the camera identifier of the camera 210, and registers the camera 210 as supporting: the first camera data transmission protocol and the second camera data transmission protocol.
  • the camera data transmission protocol supported by the camera 210 is related to the factory settings of the camera 210. For example, during the process of the server 220 registering the camera ID for the camera 210, the server 220 can change from the factory-set Select one or more protocols among multiple camera data transmission protocols to register.
  • the servers 220 when the server 220 obtains the registration information of multiple cameras, the cameras may be registered according to Table 1 below.
  • protocol 1, protocol 2, protocol 3, and protocol 4 are any one of the following protocols: GB/T28181 protocol, ONVIF protocol, RTSP protocol, GA/T1400 protocol and manufacturer's private protocol.
  • the physical cameras, camera identifiers, and camera data transmission protocols supported by the cameras shown in Table 1 are only examples provided by this embodiment, and should not be construed as limitations on this application.
  • the camera identifier may be represented by a continuous character string.
  • the server 220 synchronizes the camera ID and the protocol corresponding to the camera ID to the client 230.
  • the server 220 may synchronize the above Table 1 to the client 230 .
  • the server 220 may use a synchronization process to synchronize the camera ID and the protocol corresponding to the camera ID to the client 230 after registering the camera 210 .
  • the server 220 may synchronize the camera ID of the camera 210 to the client 230 after registering the camera 210 .
  • the server 220 synchronizes the camera ID and the protocol corresponding to the camera ID to the client 230.
  • the client 230 can check the camera ID corresponding to the camera ID.
  • the camera data synchronization protocol supported by the camera, and furthermore, the client 230 can use the camera identifier to acquire data of a specified type from a specified camera.
  • the server 220 acquires a plug-in loading request from the client 230.
  • the plug-in loading request carries: an instruction to load the first protocol plug-in, and an instruction to load the second protocol plug-in.
  • server 220 may select the first protocol plug-in and the second protocol plug-in from multiple locally configured protocol plug-ins according to the plug-in loading request to load respectively.
  • Figure 3 is a schematic diagram of a camera connected to the server provided by the present application, and the user (user) can choose the method of adding the camera (video access, picture access or video + picture access) , and select the protocol used to connect the camera to the server (the driver shown in Figure 3).
  • the view management platform code refers to the serial number or logo of the camera management system (or view management platform) provided by the server, the manufacturer refers to the manufacturer of the camera, and the selected server and server list are used to indicate the camera management system to be connected to the camera. server. It should be noted that, in some possible cases, the server list is also referred to as a network video recorder (network video recorder, NVR) list.
  • NVR network video recorder
  • the user name, password and confirmation password items are used to indicate the account used to log in to the client.
  • the access gateway refers to the device connection gateway (DCG) responsible for managing the camera in the server that the camera will be connected to.
  • the Internet protocol (Internet protocol, IP) address refers to the identification number assigned by the manufacturer to the camera 210, as the identification number can be used as the camera identification of the camera 210 in the server 220, and in other possible situations, the camera identification can also be represented by other information.
  • the instruction to load the first protocol plug-in and the instruction to load the second protocol plug-in may refer to the protocol information selected by the client 230, such as the driver shown in FIG. 3 , if the first The protocol plug-in corresponds to the GB/T28281 protocol, and the second protocol plug-in corresponds to the GA/T1400 protocol, so the client 230 can select the drivers as "GB/T28281" and "GA/T1400" during the process of selecting a camera to connect to the server.
  • FIG. 4 is a flow chart of a method for acquiring data from a camera provided by the present application.
  • the camera 211 can realize the functions of the camera device 111A shown in FIG. 1
  • the camera 212 and the camera 213 can realize the function of the camera device 111C shown in Figure 1
  • the server 220 can at least realize the function of the server 120 shown in Figure 1, for example, access the camera, store the video and audio of the camera, etc.
  • Information, or instruct the camera to intelligently capture pictures provide artificial intelligence (AI) computing power to analyze information such as videos or pictures, and realize functions such as image search.
  • AI artificial intelligence
  • the method for acquiring data from a camera includes the following steps.
  • the server 220 acquires a first read request for requesting first data and a second read request for requesting second data.
  • the data type of the first data is the first data type.
  • the data type of the second data is a second data type different from the first data type.
  • the data types involved in this embodiment may be: videos, pictures, alarm information, camera configuration parameters, and the like.
  • the data type of the second data may be inconsistent with the data type of the first data.
  • the first data type is video
  • the second data type is picture.
  • first read request and the second read request carry the same camera identifier, and both read requests indicate the same camera.
  • a camera ID 2 as shown in FIG. 4 indicates a camera 212 .
  • the first read request and the second read request may refer to service requests sent by the user to the server 220 through the client.
  • the first read request also carries a first data type identifier marking the first data type
  • the second read request also carries a second data type identifier marking the second data type
  • the server records a one-to-one correspondence between the data type and the camera data transmission protocol.
  • the above-mentioned data type identification may refer to the message number carried in the read request, and the message number is a field in the read request.
  • the message number can be used to indicate the service type of the read request, and the data types required by different service types are different.
  • Table 2 below is a correspondence table of a message number, service type and data type provided in this example.
  • check the video (01) the data type is video
  • the format of the video may include, but not limited to: MPEG4, H.264, H.265.
  • check the picture (02) the data type is picture, and the format may include but not limited to: M-JPEG, Motion-JPEG.
  • viewing pictures (02) may refer to reporting pictures and the like.
  • the AI video analysis (03) may refer to performing AI analysis on the video, and the AI analysis may include, but is not limited to: object recognition, vehicle recognition, edge detection or object detection etc.
  • the AI alarm (04) may refer to an alarm after performing AI analysis on the video during the video surveillance process, and the alarm may be transmitted from the camera to the server's.
  • the parameter configuration (05) may refer to text data transmitted by the server 220 for parameter configuration of the camera.
  • the above five optional situations are only examples provided by this embodiment, and should not be understood as limitations on the data type identification.
  • the data type identifier may also be other fields in the read request.
  • the server 220 determines a camera corresponding to the camera identifier.
  • a camera ID indicates a physical camera. As shown in Figure 4, the camera mark 1 (shown by a diamond in Figure 4) indicates the camera 211, the camera mark 2 (shown by a circle in Figure 4) indicates the camera 212, and the camera mark 3 (shown by a square in Figure 4) indicates the camera 213.
  • the camera identification carried in the read request can be used to determine the target camera for reading data.
  • the server 220 acquires first data from the camera corresponding to the camera identifier by using the first camera data transmission protocol supporting the first data type.
  • the data type supported by the first camera data transmission protocol includes video
  • the unsupported data type includes image
  • the above-mentioned first data is video
  • the data transmission protocol of the first camera is GB/T28181 protocol, ONVIF protocol, RTSP, or a manufacturer's private protocol.
  • the server 220 using the first camera data transmission protocol supporting the first data type includes: the server 220 selects a first protocol plug-in corresponding to the first data type according to the first data type.
  • the first protocol plug-in refers to a functional component or software unit supporting the implementation of the first camera data transmission protocol, and the first protocol plug-in can realize one or more functions of the first camera data transmission protocol. For example, if the first camera data transmission protocol is GB/T28181, ONVIF protocol or RTSP, then the first protocol plug-in can realize the function of video transmission.
  • FIG. 5 is a flow chart of a method for obtaining data from a camera provided by the present application.
  • Multiple protocol plug-ins are deployed in the server 220, and the camera data transmission protocols supported by these protocol plug-ins may be different or different. They are exactly the same, wherein, the function of a camera data transmission protocol is realized by a protocol plug-in, for example, the function of the first camera data transmission protocol is realized by the first protocol plug-in shown in FIG. 5 .
  • the first protocol plug-in may provide an uplink port and a downlink port, wherein: each uplink port is used to connect to a client; each downlink port is used to connect to a camera.
  • the above-mentioned uplink port and downlink port refer to the access point (access point) adopted by the device access server 220, and the server 220 can insert or extract signals through this access point to observe or measure the variables of the client or the camera.
  • server 220 may also route signals from one device to another through this access point.
  • the uplink port and the downlink port may refer to logical channel endpoints of a transmission control protocol (transmission control protocol, TCP) or a user datagram protocol (user datagram protocol, UDP). It should be noted that, in some possible cases, the uplink port and the downlink port may also refer to physical interfaces.
  • TCP transmission control protocol
  • UDP user datagram protocol
  • the first protocol plug-in can receive read requests sent by multiple clients through multiple uplink ports, and obtain data corresponding to multiple read requests from one or more cameras; the first protocol plug-in can also Multiple downlink ports can be used to support a client to obtain data from multiple cameras, which improves the efficiency of the server to obtain data from cameras in parallel, thereby improving the management performance of the camera management system.
  • the server 220 obtains the first data using the first camera data transmission protocol, which may include: the server 220 dispatches the first read request to the first camera data transmission protocol supporting the first A protocol plug-in, and using the first protocol plug-in to obtain the first data from the camera based on the first camera data transmission protocol.
  • the above-mentioned protocol plug-in can refer to a lightweight access service (or micro-service), that is to say, the protocol plug-in can run in the server as a process (or thread), and the server uses the protocol plug-in
  • the protocol plug-in In order to realize the function of the camera data transmission protocol, it avoids the process of querying the camera data transmission protocol every time the server obtains data from the camera, improves the efficiency of the server to find the camera, reduces the consumption of processing resources in the server, and improves the camera management system. processing efficiency.
  • the method for acquiring data from a camera provided in this embodiment further includes the following step S440.
  • the server 220 acquires second data from the camera corresponding to the camera identifier by using the second camera data transmission protocol supporting the second data type.
  • the second camera data transmission protocol is different from the first camera data transmission protocol.
  • the data types supported by the second camera data transmission protocol include images, and the unsupported data types include videos, and the second data mentioned above is images.
  • the data transmission protocol of the second camera is technical requirements for video and image information system (GA/T1400) or private protocol of the manufacturer.
  • GA/T1400 cannot transmit long video, so in common camera usage scenarios, it can be considered that GA/T1400 cannot transmit video.
  • the server 220 using the second camera data transmission protocol supporting the second data type includes: the server 220 selects a second protocol plug-in corresponding to the second data type according to the second data type.
  • the second protocol plug-in refers to a functional component or a software unit that supports the realization of the second camera data transmission protocol, and the second protocol plug-in can realize one or more functions of the second camera data transmission protocol. For example, if the data transmission protocol of the second camera is GA/T1400 or a manufacturer's private protocol, the second protocol plug-in can realize the function of picture reporting.
  • the function of the second camera data transmission protocol is realized by the second protocol plug-in shown in FIG. 5 .
  • the second protocol plug-in may provide an uplink port and a downlink port, wherein: each uplink port is used to connect to a client; each downlink port is used to connect to a camera.
  • each uplink port is used to connect to a client; each downlink port is used to connect to a camera.
  • the second protocol plug-in can receive read requests sent by multiple clients through multiple uplink ports, and obtain data corresponding to multiple read requests from one or more cameras; the second protocol plug-in can also Multiple downlink ports can be used to support a client to obtain data from multiple cameras, which improves the efficiency of the server to obtain data from cameras in parallel, thereby improving the management performance of the camera management system.
  • the above-mentioned server 220 uses the second camera data transmission protocol to obtain the second data, which may include: the server 220 dispatches the second read request to the second camera data transmission protocol supporting the second A protocol plug-in, and using the second protocol plug-in to obtain the second data from the camera based on the second camera data transmission protocol.
  • multiple read requests of different protocols carry the same camera identifier, and the server can obtain corresponding types of data from the camera according to this camera identifier. Since the read requests of different protocols use the same camera ID, the total number of camera IDs stored by the server is less than that in the above scheme, thereby reducing the processing resources required by the server to query the physical camera, and the server to determine the camera corresponding to the camera ID time, improving the efficiency of the server to obtain data from the camera.
  • the server may purchase a license according to the number of cameras for the camera management function and data processing function. In this implementation, the number of cameras registered in the server is reduced, thereby reducing the cost of purchasing licenses. the cost of.
  • the server makes the camera data transmission protocol into a protocol plug-in.
  • Each protocol plug-in can run as a microservice of an independent process, and the protocol plug-in is scheduled by DCG.
  • the scheduling process includes, but is not limited to: plug-in installation, Start, stop, upgrade, rollback, uninstall, and plug-in business function message routing, etc. Since each protocol plug-in is released and operated independently, each protocol plug-in does not affect each other during the working process, avoiding the failure of one protocol plug-in to cause the failure of other protocol plug-ins, and reducing the impact on the camera management system during business execution. influences.
  • the client can determine the protocol plug-in used by the camera to access the server according to the user's needs, and for the same camera, the camera identification of the camera in the server is consistent, which avoids complicated association of multiple protocols The resulting data disorder improves the efficiency of the server in managing multiple cameras.
  • the server can obtain various types of data from the camera corresponding to the camera ID according to a camera ID, which reduces the processing resources required by the server to query the physical camera, and the time for the server to determine the camera corresponding to the camera ID, and improves the performance of the server. Efficiency of data acquisition from cameras.
  • the user selects multiple access protocol plug-in combinations when adding a camera to the camera management system through the client, for example, the user needs the camera management system to access the camera of manufacturer A, and needs to connect the camera's video, Target recognition structured data and thermal imaging body temperature measurement function.
  • the camera management system already has the standard protocol GB/T28181 plug-in and GA/T1400 plug-in, so the system only needs to use A manufacturer’s private software development kit (software development kit, SDK) to realize the lightweight protocol plug-in, and connect the thermal imaging of the camera Human body temperature measurement function, select 3 access plug-ins when adding the camera in the camera management system, when the user has business operations, DCG dispatches video playback, structured data subscription, and thermal imaging human body temperature measurement request messages to the GB/T28181 plug-in , GA/T1400 plug-in, private SDK plug-in, and summarize and feed back the data responded by each plug-in to the client used by the user.
  • a manufacturer private software development kit (software development kit, SDK) to realize the lightweight protocol plug-in, and connect the thermal imaging of the camera Human body temperature measurement function, select 3 access plug-ins when adding the camera in the camera management system, when the user has business operations, DCG dispatches video playback, structured data subscription, and thermal imaging human body temperature
  • the camera management system can reuse the standard protocol plug-in, and only use the private SDK plug-in (manufacturer B) to develop a small number of special functions, so as to improve the efficiency of docking between the camera and the server in the camera management system .
  • the server 220 shown in FIGS. 2 to 5 may also associate the data corresponding to the same camera identifier.
  • the server 220 may establish a first correspondence between the camera identifier and the first data. , and establish a second corresponding relationship between the camera identifier and the second data.
  • the server 220 can also store different physical cameras, camera identifiers and various business data.
  • the service data of one or more cameras can be stored in the server, such as data 1 to data 7 shown in Table 3.
  • the server 220 can also obtain the query request from the client, and the query request carries the camera identification of the camera 212 (002 as shown in Table 3); 212 associated first data and second data (such as data 1 and data 2 shown in Table 3).
  • a camera only has a unique device code (camera ID) in the server, and different types of business data acquired by the camera can be associated through the camera ID.
  • the client can use the camera ID to view videos, search and identify intelligent pictures, etc.
  • control camera identification
  • configuration camera data transmission protocol supported by the camera
  • the server includes hardware structures and/or software modules corresponding to each function.
  • the application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives the hardware depends on the specific application scenario and design constraints of the technical solution.
  • FIG. 6 and FIG. 7 are schematic structural diagrams of a possible device for acquiring data from a camera and a server provided by an embodiment of the present application.
  • the device for acquiring data from the camera and the server can be used to realize the function of the server 220 in the above method embodiment, so the beneficial effects of the above method embodiment can also be realized.
  • the device for acquiring data from the camera may be the server 120 shown in FIG. 1 , or may be a module (such as a chip) applied to the server 120 .
  • the device 600 for acquiring data from a camera includes a communication unit 610, a first acquisition unit 620, a second acquisition unit 630, a loading unit 640, a registration unit 650, an association unit 660, and a query unit 670 to acquire data from a camera
  • the apparatus 600 is used to implement the server function in the method embodiments shown in FIGS. 2 to 5 above.
  • the registration unit 650 is used to register the camera with the camera identifier, and register the camera as supporting: the first camera data transmission protocol, the second camera data transmission protocol .
  • the associating unit 660 is configured to establish a first correspondence between the camera identifier and the first data, and establish a second correspondence between the camera identifier and the second data.
  • the query unit 670 is configured to obtain the first data and the second data associated with the camera from the service data according to the query request.
  • the device 600 for acquiring data from cameras may also include a storage unit, which may be used to record the one-to-one correspondence between data types and camera data transmission protocols, and the storage unit may also store business information of one or more cameras. data.
  • FIG. 7 is a schematic structural diagram of a server provided by the present application, and the server 700 includes a processor 710 and an interface circuit 720 .
  • the processor 710 and the interface circuit 720 are coupled to each other.
  • the interface circuit 720 may be a transceiver or an input-output interface.
  • the server 700 may further include a memory 730 for storing instructions executed by the processor 710, or storing input data required by the processor 710 to execute the instructions, or storing data generated by the processor 710 after executing the instructions.
  • the server 700 includes a processor 710 and a communication interface 720 .
  • the processor 710 and the communication interface 720 are coupled to each other.
  • the communication interface 720 may be a transceiver or an input-output interface.
  • the server 700 may further include a memory 730 for storing instructions executed by the processor 710 or storing input data required by the processor 710 to execute the instructions, or storing data generated after the processor 710 executes the instructions.
  • the server 700 When the server 700 is used to implement the methods shown in FIGS. 650, the functions of the association unit 660 and the query unit 670.
  • the processor 710, the communication interface 720, and the memory 730 can also cooperate to implement each operation step in the method for acquiring data from the camera performed by the server.
  • the server 700 can also execute the functions of the apparatus 600 for acquiring data from a camera shown in FIG. 6 , which will not be described in detail here.
  • a specific connection medium among the communication interface 720, the processor 710, and the memory 730 is not limited.
  • the communication interface 720, the processor 710, and the memory 730 are connected through a bus 740.
  • the bus is represented by a thick line in FIG. , is not limited.
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 7 , but it does not mean that there is only one bus or one type of bus.
  • the memory 730 can be used to store software programs and modules, such as the program instructions/modules corresponding to the method for acquiring data from the camera provided in the embodiment of the present application.
  • the processor 710 executes the software programs and modules stored in the memory 730 to execute various functional applications and data processing.
  • the communication interface 720 can be used for signaling or data communication with other devices. In this application, the server 700 may have multiple communication interfaces 720 .
  • the processor in the embodiments of the present application may be a central processing unit (Central Processing Unit, CPU), a neural processing unit (Neural processing unit, NPU) or a graphics processing unit (Graphic processing unit, GPU), or It can be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA) or other programmable logic devices , transistor logic devices, hardware components or any combination thereof.
  • a general-purpose processor can be a microprocessor, or any conventional processor.
  • the method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions.
  • Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM) , PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM or well-known in the art any other form of storage medium.
  • RAM Random Access Memory
  • ROM read-only memory
  • PROM programmable read-only memory
  • PROM erasable programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM electrically erasable programmable read-only memory
  • register hard disk, mobile hard disk
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be a component of the processor.
  • the processor and storage medium can be located in the ASIC.
  • the ASIC can be located in a network device or a terminal device.
  • the processor and the storage medium may also exist in the network device or the terminal device as discrete components.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product comprises one or more computer programs or instructions. When the computer program or instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are executed in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable devices.
  • the computer program or instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits to another website site, computer, server or data center by wired or wireless means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrating one or more available media. Described usable medium can be magnetic medium, for example, floppy disk, hard disk, magnetic tape; It can also be optical medium, for example, digital video disc (digital video disc, DVD); It can also be semiconductor medium, for example, solid state drive (solid state drive) , SSD).
  • “at least one” means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship; in the formulas of this application, the character “/” indicates that the contextual objects are a “division” Relationship.
  • the singular forms “a”, “an” and “the” do not mean “one or only one” but “one or more” unless the context clearly dictates otherwise. in one".
  • a device means reference to one or more such devices.
  • at least one (at least one of). «" means one or any combination of subsequent associated objects, such as "at least one of A, B and C” includes A, B, C, AB, AC, BC, or ABC.

Abstract

公开了一种从摄像机获取数据的方法及装置,涉及摄像机领域,该方法包括:服务器获取两个读数据请求,这两个读数据请求都使用了相同的摄像机标识,并且这两个读数据请求所请求的数据类型不同。服务器分别使用与这两种数据类型所对应的不同摄像机数据传输协议从摄像机获取相应的数据。该方案减少了服务器查询物理摄像机所需的处理资源,缩短了服务器确定摄像机所耗费的时间,提高了服务器从摄像机获取数据的效率。

Description

一种从摄像机获取数据的方法及装置
本申请要求于2021年6月30日提交国家知识产权局、申请号为202110739020.0、申请名称为“多协议接入摄像机”的中国专利申请的优先权,本申请还要求于2021年08月20日提交国家知识产权局、申请号为202110961751.X、申请名称为“一种从摄像机获取数据的方法及装置”的中国专利申请的优先权,这些申请的全部内容通过引用结合在本申请中。
技术领域
本申请涉及摄像机领域,尤其涉及一种从摄像机获取数据的方法及装置。
背景技术
视频监控系统包括服务器和摄像机。通常,不同协议传输的数据类型往往不一致,一台物理摄像机会采用多种协议接入服务器。在服务器对摄像机进行注册时,会把单个物理摄像机在逻辑上视为多个摄像机进行管理。摄像机每采用一种协议接入服务器,服务器都生成一个对应的摄像机标识。因此,服务器中往往为每个摄像机建立了多个逻辑标识,这导致服务器对摄像机的重复管理,以及查找摄像机时效率过低的问题。
发明内容
本申请提供一种从摄像机获取数据的方法及装置,可以解决服务器重复管理摄像机所导致的查找摄像机时效率过低的问题。
本申请采用如下技术方案。
第一方面,本申请提供了一种从摄像机获取数据的方法,该方法可应用于服务器,或者该方法可应用于可以支持服务器实现该方法的装置,例如该装置包括芯片系统,该从摄像机获取数据的方法包括:首先,服务器获取用于请求第一数据的第一读请求以及用于请求第二数据的第二读请求,其中:第一、第二请求中携带相同的摄像机标识,第一数据的数据类型是第一数据类型,第二数据的数据类型是不同于第一数据类型的第二数据类型,第一读请求携带标记第一数据类型的第一数据类型标识,第二读请求携带标记第一数据类型的第二数据类型标识;其次,服务器还使用支持第一数据类型的第一摄像机数据传输协议,从摄像机标识所对应的摄像机获取第一数据;此外,服务器还使用支持第二数据类型的第二摄像机数据传输协议,从摄像机标识所对应的摄像机获取第二数据,其中,第二摄像机数据传输协议不同于第一摄像机数据传输协议。
在本实施例提供的从摄像机获取数据的方法中,多个不同协议的读请求携带有相同的摄像机标识,服务器可以依据这一个摄像机标识从摄像机获取对应类型的数据。由于不同协议的读请求使用相同的摄像机标识,服务器所存储的摄像机标识的总量比现有技术更少,从而减少了服务器查询物理摄像机所需的处理资源,以及服务器确定摄像机标识所对应的摄像机的时间,提高了服务器从摄像机获取数据的效率。
此外,由于针对同一个摄像机的读请求使用了相同的摄像机标识,因此可以把这些读请求(以及它们所请求的数据)关联起来,从而建立读请求(以及它们所请求的数据)之间的关联关系,并基于管理关系进行管理。再者,服务器对摄像机的管理功能以及数据处 理功能,可能是按照摄像机的数量购买许可(license),该实现方式中,减少了服务器中所注册的摄像机的数量,因此也减少了购买许可所花费的成本。
在一种可选的实现方式中,第一摄像机数据传输协议支持的数据类型包括视频,不支持的数据类型包括图像,第一数据是视频;第二摄像机数据传输协议支持的数据类型包括图像,不支持的数据类型包括视频,第二数据是图像。服务器可以利用相同的摄像机标识,并采用不同的摄像机数据传输协议从一个摄像机中获取不同类型的数据,避免了服务器利用不同的逻辑标识对一个摄像机进行重复管理,提高了服务器所属的摄像管理系统的处理效率。
在另一种可选的实现方式中,服务器使用第一摄像机数据传输协议获取第一数据,包括:服务器调度第一读请求到支持第一摄像机数据传输协议的第一协议插件,使用第一协议插件基于第一摄像机数据传输协议从摄像机中获取第一数据。服务器使用第二摄像机数据传输协议获取第二数据,包括:服务器调度第二读请求到支持第二摄像机数据传输协议的第二协议插件,使用第二协议插件基于第二摄像机数据传输协议从摄像机中获取第二数据。示例的,该协议插件是指支持实现摄像机数据传输协议的功能组件或软件单元,如第一协议插件可以实现第一摄像机数据传输协议的一种或多种功能。
如此,服务器利用该协议插件以实现摄像机数据传输协议的功能,避免了服务器每次从摄像机获取数据都需要查询摄像机数据传输协议的过程,降低了服务器中处理资源的消耗,提高了摄像管理系统的处理效率。
在另一种可选的实现方式中,在服务器获取第一读请求以及获取第二读请求之前,该方法包括:服务器获取来自客户端的插件加载请求,该加载请求中携带:加载第一协议插件的指示、加载第二协议插件的指示;服务器还从本地配置的多个协议插件中,选择第一协议插件和第二协议插件分别进行加载。
上述的协议插件可以是指轻量级的接入服务(或微服务),也就是说,协议插件可以是作为一个进程(或线程)运行在服务器中,服务器利用该协议插件以实现摄像机数据传输协议的功能,避免了服务器每次从摄像机获取数据都需要查询摄像机数据传输协议的过程,降低了服务器中处理资源的消耗,提高了摄像管理系统的处理效率。
在另一种可选的实现方式中,服务器中记录有数据类型与摄像机数据传输协议一一对应关系。例如,服务器使用支持第一数据类型的第一摄像机数据传输协议,包括:服务器依据第一数据类型,选择与第一数据类型对应的第一协议插件。又如,服务器使用支持第二数据类型的第二摄像机数据传输协议,包括:服务器依据第二数据类型,选择与第二数据类型对应的第二协议插件。不同的数据类型对应不同的协议插件,服务器可以利用读请求所携带的数据类型标识确定实现该读请求所需的协议插件,避免服务器将该读请求与每个协议插件进行匹配,提高了服务器获取读请求所指示的数据的效率,进而提高了服务器所属摄像管理系统的处理效率。
在另一种可选的实现方式中,第一协议插件提供有上行端口和下行端口,其中:每个上行端口用于接入一个客户端;每个下行端口用于接入一个摄像机。在本实施例中,第一协议插件可以通过多个上行端口,接收多个客户端发送的读请求,并从一个或多个摄像机获取多个读请求对应的数据;第一协议插件还可以通过多个下行端口,以支持一个客户端从多个摄像机中获取数据,提高了服务器从摄像机并行获取数据的效率,进而提高了摄像 管理系统的管理性能。
在另一种可选的实现方式中,第一摄像机数据传输协议和第二摄像机数据传输协议,分别是下述协议中的一种:公共安全视频监控联网系统信息传输、交换、控制技术要求(GB/T28181),开放式网络视频接口论坛(Open Network Video Interface Forum,ONVIF)协议,实时流传输协议(Real Time Streaming Protocol,RTSP),公安视频图像信息系统技术要求(Technical requirements for Video and image information system,GA/T1400)以及厂商私有协议。
在另一种可选的实现方式中,该方法还包括:服务器获取摄像机的注册信息,服务器还以摄像机标识对摄像机进行注册,把摄像机注册为支持:第一摄像机数据传输协议、第二摄像机数据传输协议。
在摄像机注册的过程中,服务器可以确定摄像机所支持的摄像机数据传输协议,避免在服务器从摄像机获取数据的过程中重新查询该摄像机所支持的摄像机数据传输协议,减少了服务器从摄像机获取数据的处理时间,提高了服务器所属摄像管理系统的处理效率。
在另一种可选的实现方式中,该方法还包括:服务器把摄像机标识、摄像机标识对应的协议同步给客户端;客户端用于发送第一读请求和第二读请求。如此,客户端可以知道每个摄像机标识所支持的摄像机数据传输协议,避免了客户端查询摄像机标识所对应的摄像机数据传输协议的过程,减少了从摄像机获取数据的时间,提高了获取数据的效率。
在另一种可选的实现方式中,该方法还包括:服务器建立摄像机标识和第一数据的第一对应关系,以及建立摄像机标识和第二数据的第二对应关系。
在另一种可选的实现方式中,服务器中存储有一个或多个摄像机的业务数据,该方法还包括:服务器获取来自客户端的查询请求;查询请求携带有摄像机标识;服务器依据查询请求从业务数据中获取与摄像机关联的第一数据和第二数据。
如此,一个摄像机在服务器中仅具有一个唯一的设备编码(摄像机标识),该一个摄像机所获取的不同类型的业务数据可以通过该摄像机标识进行关联,在对用户业务的体验不变的情况下,客户端可以通过该摄像机标识实现查看视频、智能图片查找和识别等。另外,在摄像机接入服务器的过程中,由于控制(摄像机标识)和配置(摄像机支持的摄像机数据传输协议)分离,提高了摄像机接入服务器的效率,降低了摄像机的接入成本。
第二方面,本申请提供了一种从摄像机获取数据的装置,所述从摄像机获取数据的装置包括用于执行第一方面或第一方面任一种可能实现方式中的从摄像机获取数据的方法的各个模块。该装置可以是软件模块实现;也可以是拥有相应功能的硬件,例如服务器、网络视频录像机(network video recorder,NVR)等。
有益效果可以参见第一方面中任一方面的描述,此处不再赘述。所述从摄像机获取数据的装置具有实现上述第一方面中任一方面的方法实例中行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现,例如,该从摄像机获取数据装置应用于服务器,或支持服务器实现上述从摄像机获取数据的方法的装置。
上述的硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,该从摄像机获取数据的装置包括:通信单元,用于获取用于请求第一数据的第一读请求以及用于请求第二数据的第二读请求,其中:第一、第二请求中携带相同的摄像机标识,第一数据的数据类型是第一数据类型,第二数据的数据类型是不同于第一数据类型的第二数 据类型,第一读请求携带标记第一数据类型的第一数据类型标识,第二读请求携带标记第一数据类型的第二数据类型标识;第一获取单元,用于使用支持第一数据类型的第一摄像机数据传输协议,从摄像机标识所对应的摄像机获取第一数据;第二获取单元,用于使用支持第二数据类型的第二摄像机数据传输协议,从摄像机标识所对应的摄像机获取第二数据,其中,第二摄像机数据传输协议不同于第一摄像机数据传输协议。
在一种可选的实现方式中,第一摄像机数据传输协议支持的数据类型包括视频,不支持的数据类型包括图像,第一数据是视频;第二摄像机数据传输协议支持的数据类型包括图像,不支持的数据类型包括视频,第二数据是图像。
在另一种可选的实现方式中,第一获取单元,具体用于调度第一读请求到支持第一摄像机数据传输协议的第一协议插件,使用第一协议插件基于第一摄像机数据传输协议从摄像机中获取第一数据;第二获取单元,具体用于调度第二读请求到支持第二摄像机数据传输协议的第二协议插件,使用第二协议插件基于第二摄像机数据传输协议从摄像机中获取第二数据。
在一种可选的实现方式中,通信单元,还用于获取来自客户端的插件加载请求,加载请求中携带:加载第一协议插件的指示、加载第二协议插件的指示;该从摄像机获取数据的装置还包括:加载单元;该加载单元,用于从本地配置的多个协议插件中,选择第一协议插件和第二协议插件分别进行加载。
在一种可选的实现方式中,服务器中记录有数据类型与摄像机数据传输协议一一对应关系,其中:第一获取单元,还具体用于依据第一数据类型,选择与第一数据类型对应的第一协议插件;第二获取单元,还具体用于依据第二数据类型,选择与第二数据类型对应的第二协议插件。
在一种可选的实现方式中,第一协议插件提供有上行端口和下行端口,其中:每个上行端口用于接入一个客户端;每个下行端口用于接入一个摄像机。
在一种可选的实现方式中,第一摄像机数据传输协议和第二摄像机数据传输协议,分别是下述协议中的一种:GB/T28181协议、ONVIF协议、RTSP协议、GA/T1400协议以及厂商私有协议。
在一种可选的实现方式中,通信单元,还用于获取摄像机的注册信息;该从摄像机获取数据的装置还包括:注册单元;该注册单元,用于以摄像机标识对摄像机进行注册,把摄像机注册为支持:第一摄像机数据传输协议、第二摄像机数据传输协议。
在一种可选的实现方式中,通信单元,还用于把摄像机标识、摄像机标识对应的协议同步给客户端;客户端用于发送第一读请求和第二读请求。
在一种可选的实现方式中,该从摄像机获取数据的装置还包括:关联单元;该关联单元,用于建立摄像机标识和第一数据的第一对应关系;该关联单元,还用于建立摄像机标识和第二数据的第二对应关系。
在一种可选的实现方式中,服务器中存储有一个或多个摄像机的业务数据;通信单元,还用于获取来自客户端的查询请求;查询请求携带有摄像机标识。该从摄像机获取数据的装置还包括:查询单元;该查询单元,用于依据查询请求从业务数据中获取与摄像机关联的第一数据和第二数据。
第三方面,本申请提供了一种服务器,该服务器包括处理器和接口电路,接口电路用 于接收来自服务器之外的其它设备的信号并传输至处理器,或将来自处理器的信号发送给服务器之外的其它设备,处理器通过逻辑电路或执行代码指令用于实现第一方面或第一方面任一种可能实现方式中所述的方法的操作步骤。
第四方面,本申请提供了一种摄像管理系统,包括:服务器以及一个或多个摄像机。
首先,该服务器获取用于请求第一数据的第一读请求以及用于请求第二数据的第二读请求,其中:第一、第二请求中携带相同的摄像机标识,该摄像机标识对应于上述一个或多个摄像机中的一个摄像机,第一数据的数据类型是第一数据类型,第二数据的数据类型是不同于第一数据类型的第二数据类型,第一读请求携带标记第一数据类型的第一数据类型标识,第二读请求携带标记第一数据类型的第二数据类型标识。
其次,服务器使用支持第一数据类型的第一摄像机数据传输协议,从摄像机标识所对应的摄像机获取第一数据。
另外,服务器还使用支持第二数据类型的第二摄像机数据传输协议,从摄像机标识所对应的摄像机获取第二数据,其中,第二摄像机数据传输协议不同于第一摄像机数据传输协议。
如此,多个不同协议的读请求携带有相同的摄像机标识,服务器可以依据这一个摄像机标识从摄像机获取对应类型的数据。由于不同协议的读请求使用相同的摄像机标识,服务器所存储的摄像机标识的总量比现有技术更少,从而减少了服务器查询物理摄像机所需的处理资源,以及服务器确定摄像机标识所对应的摄像机的时间,提高了服务器从摄像机获取数据的效率。
值得注意的是,所述摄像管理系统包括用于执行第一方面或第一方面任一种可能实现方式中方法的各个设备。有益效果可以参见第一方面中任一方面的描述,此处不再赘述。所述摄像管理系统具有实现上述第一方面中任一方面的方法实例中行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。
第五方面,本申请提供了一种计算机可读存储介质,该存储介质中存储有计算机程序或指令,当计算机程序或指令被服务器中的处理器执行时,用于实现第一方面或第一方面任一种可能实现方式中所述的方法的操作步骤。
第六方面,本申请提供一种计算机程序产品,该计算程序产品包括指令,当计算机程序产品在服务器或处理器上运行时,使得服务器或处理器执行该指令,以实现上述任意一方面或任一方面的可能的实现方式中所述的方法的操作步骤。
第七方面,本申请提供一种芯片,包括逻辑电路和接口电路,该接口电路,用于输入信息和/或输出信息;该逻辑电路用于执行上述各个方面或各个方面的可能的实现方式,对输入信息进行处理和/或生成输出信息。
例如,接口电路可以获取第一读请求和第二读请求,逻辑电路可以对该第一读请求、第二读请求实现第一方面或第一方面的可能的实现方式中所述的从摄像机获取数据的方法,接口电路还可以从摄像机中获取第一读请求指示的第一数据,以及第二读请求指示的第二数据。
本申请在上述各方面提供的实现方式的基础上,还可以进行进一步组合以提供更多实现方式。
附图说明
图1为本申请提供的一种摄像管理系统的示意图;
图2为本申请提供的一种摄像机接入服务器的示意图;
图3为本申请提供的一种将摄像机接入服务器的显示示意图;
图4为本申请提供的一种从摄像机获取数据的方法的流程图一;
图5为本申请提供的一种从摄像机获取数据的方法的流程图二;
图6为本申请提供的一种从摄像机获取数据的方法的装置示意图;
图7为本申请提供的一种服务器的结构示意图。
具体实施方式
本申请说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
为了下述各实施例的描述清楚简洁,首先给出相关技术的简要介绍。
图1为本申请提供的一种摄像管理系统的示意图,摄像管理系统可以包括摄像设备、服务器和终端设备,各设备之间可以通过网络实现通信,以实现视频、图像或其他信息的传输。该网络可以是因特网,或其他网络。该网络可以包括一个或多个网络设备,如网络设备可以是路由器或交换机等。
在一些情况中,图1所示出的摄像设备可以是指具有摄像功能的专用设备。
例如,在视频采集过程中,摄像设备可以是用于道路监控的摄像装置,摄像设备111A为半球型摄像机,摄像设备111B为红外球型摄像机,摄像设备111C为4K(分辨率为3840*2160)枪型摄像机。
在另一些情况中,图1所示出的摄像设备可以是指具有摄像功能的通用设备,如具有摄像功能的手机、平板电脑或智能穿戴设备等。
如图1所示,在视图管理过程中,服务器120可以是服务器,例如支持应用服务的应用服务器,该应用服务器可以提供视频服务、图像服务、基于视频或图像的其他服务等。服务器120还可以是可以从摄像机获取数据的专用设备,例如NVR。
另外,服务器120也可以是指数据中心,该数据中心可以包括一个或多个具有视频处理功能的物理设备,如服务器、手机、平板电脑或其他设备等。
值得注意的是,使用者可以通过客户端查看服务器120所存储的数据。被查看的数据可以是图片、视频等。使用者还可以通过客户端获取摄像设备拍摄的实时数据。
例如,客户端是指运行在物理机或虚拟机上的应用程序,该应用程序可以获取业务请求,并向服务器120发送该业务请求(如数据读请求)。
客户端可以是运行有应用程序的计算机,该运行有应用程序的计算机可以是物理机,也可以是虚拟机。
当客户端为物理机时,客户端可以是上述终端设备中的任意一种,本申请的实施例对 客户端所采用的具体技术和具体设备形态不做限定。客户端还可以是运行有应用程序的手机、服务器等设备。
如图1所示,在视频显示过程中,客户端可以是指终端设备131~终端设备133中任意一个。如终端设备131可以是VR眼镜,使用者可以通过转向来控制视角范围,经由服务器120从摄像机获取相应视角范围的数据;终端设备132可以是手机,使用者可以通过触摸操作或隔空操作等,来控制终端设备132上的视角范围,获取摄像设备111采集的视频或图片等;终端设备133可以是个人计算机,使用者可以通过鼠标或键盘等输入设备来控制显示屏所显示的内容,如视频、图片或告警信息等。
在一种可能的示例中,摄像管理过程中所采用的服务器120是指部署有多个服务器的服务器集群,该服务器集群可以具有机架,机架可通过有线连接为该多个服务器建立通信,如通用串行总线(universal serial bus,USB)或快捷外围组件互连(peripheral component interconnect express,PCIe)高速总线等。
图1只是示意图,该摄像管理系统中还可以包括其它设备,在图1中未画出,本申请的实施例对该系统中包括的设备的数量和类型不做限定。
为了实现本申请提供的从摄像机获取数据的方法,在图1所示出的摄像管理系统的基础上,本申请提供一种将摄像机接入服务器的实现方式,如图2所示,图2为本申请提供的一种摄像机接入服务器的示意图,摄像机210可以实现图1所示出的各摄像设备的功能,该服务器220至少可以实现图1所示出的服务器120的功能。
[根据细则91更正 22.03.2022] 
例如,服务器220可以实现接入摄像机,存储摄像机的视频和音频等信息,或指示摄像机智能抓拍图片,提供人工智能(artificial intelligence,AI)算力对视频或图片等信息进行分析,实现以图搜图等功能。客户端230可以是指获取用户指令的物理机或虚拟机,或是运行在物理机或虚拟机上的应用程序,如图1所示出的终端设备131~终端设备133。在一种可能的实现方式中,客户端230可以运行在服务器220上。
如图2所示,本实施例提供的将摄像机接入服务器的过程包括以下步骤。
S210,服务器220获取摄像机210的注册信息。
注册信息可以是服务器220从数据库导入的。如该数据库记录有摄像机210支持的协议信息。
可选的,注册信息还可以是信息管理者利用客户端录入的。如该客户端可以是图2所示出的客户端230,还可以是与服务器220通信的其他客户端。
在服务器220获取到注册信息之后,服务器220以摄像机210的摄像机标识对摄像机210进行注册,并把摄像机210注册为支持:第一摄像机数据传输协议、第二摄像机数据传输协议。
在一种可能的情形中,摄像机210支持的摄像机数据传输协议与摄像机210的出厂设定相关,如在服务器220为摄像机210注册摄像机标识的过程中,服务器220可以依据用户需求从出厂设定的多个摄像机数据传输协议中选择一个或多个协议进行注册。
示例的,当服务器220获取到多个摄像机的注册信息时,可以按照下表1对摄像机进行注册。
表1
物理摄像机 摄像机标识 支持的摄像机数据传输协议
半球型摄像机 摄像机标识1 协议1,协议2
4K枪型摄像机-1 摄像机标识2 协议1,协议3,协议4
4K枪型摄像机-2 摄像机标识3 协议1,协议2,协议3
红外球型摄像机 摄像机标识4 协议1,协议3
其中,上述的协议1,协议2,协议3,协议4分别为以下任意一种协议:GB/T28181协议、ONVIF协议、RTSP协议、GA/T1400协议以及厂商私有协议。
表1所示出的物理摄像机、摄像机标识和摄像机支持的摄像机数据传输协议仅为本实施例提供的示例,不应理解为对本申请的限定。在一些可能的情况下,摄像机标识可以是利用连续的字符串来表示的。
S220,服务器220把摄像机标识、摄像机标识对应的协议同步给客户端230。
可选的,服务器220可以将上述的表1同步给客户端230。
在一种示例中,若注册信息是由服务器220从数据库导入的,则服务器220将摄像机210进行注册后,可以利用一个同步进程将摄像机标识、摄像机标识对应的协议同步给客户端230。
在另一种示例中,若注册信息是由信息管理者利用客户端230录入的,则服务器220将摄像机210进行注册后,将摄像机210的摄像机标识同步给客户端230即可。
在本实施例中,服务器220通过将摄像机标识、摄像机标识对应的协议同步给客户端230,在客户端230需要从摄像机获取数据的情况下,客户端230可以依据摄像机标识查看该摄像机标识对应的摄像所支持的摄像机数据同步协议,进而,客户端230可以利用摄像机标识从指定的摄像机中获取指定类型的数据。
S230,服务器220获取来自客户端230的插件加载请求。
该插件加载请求中携带:加载第一协议插件的指示、加载第二协议插件的指示。
进而,服务器220可以依据该插件加载请求,从本地配置的多个协议插件中,选择第一协议插件和第二协议插件分别进行加载。
如图3所示,图3为本申请提供的一种将摄像机接入服务器的显示示意图,用户(使用者)可选择摄像机的添加方式(视频接入、图片接入或视频+图片接入),并选择将摄像机接入服务器所采用的协议(图3所示的驱动)。
视图管理平台编码是指服务器所提供的摄像管理系统(或称视图管理平台)的序号或标识,厂商是指摄像机的制造商,选择服务器和服务器列表用于指示摄像机所要接入的摄像管理系统中的服务器。值得注意的是,在一些可能的情形中,服务器列表也被称为网络视频录像机(network video recorder,NVR)列表。
用户名、密码和确认密码项目用于指示登录客户端所使用的账户,所属接入网关是指在摄像机即将接入的服务器中,负责管理该摄像机的设备接入网关(device connection gateway,DCG)。互联网协议(Internet protocol,IP)地址是指制造厂商为摄像机210所分配的标识号,如该标识号可以作为摄像机210在服务器220中的摄像机标识,在另一些可能的情形中,摄像机标识还可以用其他的信息来表示。
示例的,在实际的摄像机接入过程中,加载第一协议插件的指示、加载第二协议插件 的指示可以是指客户端230选择的协议信息,如图3所示出的驱动,若第一协议插件对应GB/T28281协议、第二协议插件对应GA/T1400协议,则客户端230可以在选择摄像机接入服务器的过程中,选择驱动为:“GB/T28281”和“GA/T1400”。
[根据细则91更正 22.03.2022] 
在图1所示出的摄像管理系统的基础上,图4为本申请提供的一种从摄像机获取数据的方法的流程图一,该摄像机211可以实现图1所示出的摄像设备111A的功能,摄像机212和摄像机213可以实现图1所示出的摄像设备111C的功能;该服务器220至少可以实现图1所示出的服务器120的功能,例如,接入摄像机,存储摄像机的视频和音频等信息,或是指示摄像机智能抓拍图片,提供人工智能(artificial intelligence,AI)算力对视频或图片等信息进行分析,实现以图搜图等功能。
如图4所示,本申请实施例提供的从摄像机获取数据的方法包括以下步骤。
S410,服务器220获取用于请求第一数据的第一读请求以及用于请求第二数据的第二读请求。
第一数据的数据类型是第一数据类型。
第二数据的数据类型是不同于第一数据类型的第二数据类型。
本实施例中涉及的数据类型可以是:视频、图片、告警信息、摄像机配置参数等。其中,第二数据的数据类型可以和第一数据的数据类型不一致。示例的,第一数据类型是视频、第二数据类型是图片。
值得注意的是,第一读请求和第二读请求携带相同的摄像机标识,这两个读请求都指示了相同的摄像机。如图4所示出的摄像机标识2指示摄像机212。示例的,第一读请求和第二读请求可以是指用户通过客户端向服务器220发送的业务请求。
在一种可能的情形中,第一读请求还携带标记第一数据类型的第一数据类型标识,第二读请求还携带标记第二数据类型的第二数据类型标识。
可选的,服务器中记录有数据类型与摄像机数据传输协议一一对应关系,示例的,上述的数据类型标识可以是指携带在读请求中的消息号,该消息号为读请求中的一个字段,该消息号可以用于指示读请求的业务类型,不同的业务类型所需的数据类型是不同的。下表2为本示例提供的一种消息号、业务类型和数据类型的对应表。
表2
消息号 业务类型 数据类型
01 查看视频 视频
02 查看图片 图片
03 AI视频分析 视频
04 AI报警 文本
05 参数配置 文本
在第一种可选的情况下,如表2所示,查看视频(01),数据类型为视频,该视频的格式可以包括,但不限于:MPEG4、H.264、H.265。
在第二种可选的情况下,如表2所示,查看图片(02),数据类型为图片,格式可以包括但不限于:M-JPEG,Motion-JPEG。例如,查看图片(02)可以是指图片上报等。
在第三种可选的情况下,如表2所示,AI视频分析(03)可以是指对视频进行AI分析,该AI分析可以包括,但不限于:对象识别、车辆识别、边缘检测或目标检测等。
在第四种可选的情况下,如表2所示,AI报警(04)可以是指在视频监控过程中,对视频进行AI分析后进行告警,该告警可以是以文本格式从摄像机传输到服务器的。
在第五种可选的情况下,如表2所示,参数配置(05)可以是指服务器220为摄像机进行参数配置所传输的文本数据。
上述五种可选的情况仅为本实施例提供的示例,不应理解为对数据类型标识的限定。在另一些可选的情况中,数据类型标识还可以是读请求中的其他字段。
S420,服务器220确定与摄像机标识所对应的摄像机。
一个摄像机标识指示一个物理摄像机。如图4所示,摄像机标识1(图4用菱形示出)指示摄像机211,摄像机标识2(图4用圆形示出)指示摄像机212,摄像机标识3(图4用正方形示出)指示摄像机213。
在服务器220接入了多个摄像机的情况下,读请求所携带的摄像机标识可以用于确定所需读取数据的目标摄像机。
S430,服务器220使用支持第一数据类型的第一摄像机数据传输协议,从摄像机标识所对应的摄像机获取第一数据。
可选的,第一摄像机数据传输协议支持的数据类型包括视频,不支持的数据类型包括图像,如上述的第一数据是视频。
例如,第一摄像机数据传输协议为GB/T28181协议、ONVIF协议、RTSP,或厂商私有协议等。
在一种可能的情形中,上述服务器220使用支持第一数据类型的第一摄像机数据传输协议,包括:服务器220依据第一数据类型,选择与第一数据类型对应的第一协议插件。
该第一协议插件是指支持实现第一摄像机数据传输协议的功能组件或软件单元,该第一协议插件可以实现第一摄像机数据传输协议的一种或多种功能。示例的,若第一摄像机数据传输协议为GB/T28181、ONVIF协议或RTSP,则第一协议插件可以实现视频传输的功能。
如图5所示,图5为本申请提供的一种从摄像机获取数据的方法的流程图二,服务器220中部署有多个协议插件,这些协议插件所支持的摄像机数据传输协议可以不同或者不完全相同,其中,一种摄像机数据传输协议的功能由一个协议插件实现,如第一摄像机数据传输协议的功能由图5所示出的第一协议插件实现。
在一种可选的实现方式中,第一协议插件可以提供有上行端口和下行端口,其中:每个上行端口用于接入一个客户端;每个下行端口用于接入一个摄像机。
上述的上行端口和下行端口是指设备接入服务器220所采用的接入点(access point),服务器220可以通过这个接入点插入或提取信号,以观察或者测量客户端或摄像机的变量。另外,服务器220还可以通过这个接入点,将信号从一个设备路由到另一个设备。
在本实施例中,上行端口和下行端口可以是指传输控制协议(transmission control protocol,TCP)或用户数据报协议(user datagram protocol,UDP)的逻辑信道端点。值得注意的是,在一些可能的情况下,上行端口和下行端口还可以是指物理接口。
如此,在本实施例中,第一协议插件可以通过多个上行端口,接收多个客户端发送的读请求,并从一个或多个摄像机获取多个读请求对应的数据;第一协议插件还可以通过多个下行端口,以支持一个客户端从多个摄像机中获取数据,提高了服务器从摄像机并行获 取数据的效率,进而提高了摄像管理系统的管理性能。
在一种可能的示例中,如图5所示,上述服务器220使用第一摄像机数据传输协议获取第一数据,可以包括:服务器220调度第一读请求到支持第一摄像机数据传输协议的第一协议插件,并使用第一协议插件基于第一摄像机数据传输协议从摄像机中获取第一数据。
值得注意的是,上述的协议插件可以是指轻量级的接入服务(或微服务),也就是说,协议插件可以是作为一个进程(或线程)运行在服务器中,服务器利用该协议插件以实现摄像机数据传输协议的功能,避免了服务器每次从摄像机获取数据都需要查询摄像机数据传输协议的过程,提高了服务器查找摄像机的效率,降低了服务器中处理资源的消耗,提高了摄像管理系统的处理效率。
请继续参见图4,本实施例提供的从摄像机获取数据的方法还包括以下步骤S440。
S440,服务器220使用支持第二数据类型的第二摄像机数据传输协议,从摄像机标识所对应的摄像机获取第二数据。
其中,第二摄像机数据传输协议不同于第一摄像机数据传输协议。示例的,第二摄像机数据传输协议支持的数据类型包括图像,不支持的数据类型包括视频,如上述的第二数据是图像。
例如,第二摄像机数据传输协议为公安视频图像信息系统技术要求(technical requirements for video and image information system,GA/T1400)或厂商私有协议等。GA/T1400不能传送长视频,因此在通常的摄像机使用场景中,可以认为GA/T1400不能传送视频的能力。
在一种可能的情形中,上述服务器220使用支持第二数据类型的第二摄像机数据传输协议,包括:服务器220依据第二数据类型,选择与第二数据类型对应的第二协议插件。
该第二协议插件是指支持实现第二摄像机数据传输协议的功能组件或软件单元,该第二协议插件可以实现第二摄像机数据传输协议的一种或多种功能。示例的,若第二摄像机数据传输协议为GA/T1400或厂商私有协议,则第二协议插件可以实现图片上报的功能。
如图5所示,第二摄像机数据传输协议的功能由图5所示出的第二协议插件实现。
在一种可选的实现方式中,第二协议插件可以提供有上行端口和下行端口,其中:每个上行端口用于接入一个客户端;每个下行端口用于接入一个摄像机。关于上行端口和下行端口的具体实现可以参考上述第一协议插件的相关阐述,此处不再赘述。
如此,在本实施例中,第二协议插件可以通过多个上行端口,接收多个客户端发送的读请求,并从一个或多个摄像机获取多个读请求对应的数据;第二协议插件还可以通过多个下行端口,以支持一个客户端从多个摄像机中获取数据,提高了服务器从摄像机并行获取数据的效率,进而提高了摄像管理系统的管理性能。
在一种可能的示例中,如图5所示,上述服务器220使用第二摄像机数据传输协议获取第二数据,可以包括:服务器220调度第二读请求到支持第二摄像机数据传输协议的第二协议插件,并使用第二协议插件基于第二摄像机数据传输协议从摄像机中获取第二数据。
在通常的技术方案中,当多个不同协议的读请求指示一个摄像机中不同类型的数据时,每种类型的数据采用不同的摄像机数据传输协议进行传输,因此,每个读请求所携带 的摄像机标识是不同的,且该多个不同的摄像机标识指示一个物理摄像机,服务器需根据这多个不同的摄像机标识中的每一个摄像机标识,确定每个读请求所指示的数据,导致服务器从摄像机获取数据的效率较低。
相比之下,在本实施例提供的从摄像机获取数据的方法中,多个不同协议的读请求携带有相同的摄像机标识,服务器可以依据这一个摄像机标识从摄像机获取对应类型的数据。由于不同协议的读请求使用相同的摄像机标识,服务器所存储的摄像机标识的总量比上述方案中更少,从而减少了服务器查询物理摄像机所需的处理资源,以及服务器确定摄像机标识所对应的摄像机的时间,提高了服务器从摄像机获取数据的效率。
此外,由于针对同一个摄像机的读请求使用了相同的摄像机标识,因此可以把这些读请求(以及它们所请求的数据)关联起来,从而建立读请求(以及它们所请求的数据)之间的关联关系,并基于管理关系进行管理。再者,服务器对摄像机的管理功能以及数据处理功能,可能是按照摄像机的数量购买许可(license),该实现方式中,减少了服务器中所注册的摄像机的数量,因此也减少了购买许可所花费的成本。
如此,在本申请提供的从摄像机获取数据的方法中:
首先,服务器将摄像机数据传输协议做成协议插件,每个协议插件都可以作为一个独立进程的微服务来运行,并由DCG对协议插件进行调度,调度的过程包括,但不限于:插件安装、启动、停止、升级、回退、卸载和插件业务功能消息路由等。由于每个协议插件是独立发布和运行的,因此各协议插件在工作过程中互不影响,避免了一个协议插件发生故障导致其他协议插件发生故障,降低了摄像管理系统在业务执行过程所受到的影响。
其次,客户端可以依据用户需求来确定摄像机接入服务器所采用的协议插件,且对于同一个摄像机来说,该摄像机在服务器中的摄像机标识是一致的,这避免了对多个协议进行复杂关联所导致的数据紊乱,提高了服务器管理多个摄像机的效率。
最后,服务器可以依据一个摄像机标识从该摄像机标识对应的摄像机中获取多种类型的数据,减少了服务器查询物理摄像机所需的处理资源,以及服务器确定摄像机标识所对应的摄像机的时间,提高了服务器从摄像机获取数据的效率。
在一种可能的具体实施例中,如用户通过客户端在摄像管理系统添加摄像机时,选择多个接入协议插件组合,例如用户需要摄像管理系统接入A厂商摄像机,需要对接摄像机的视频、目标识别结构化数据和热成像人体测温功能。此时摄像管理系统已具备标准协议GB/T28181插件、GA/T1400插件,所以系统只需要用A厂商私有软件开发工具包(software development kit,SDK)实现轻量级协议插件,对接摄像机的热成像人体测温功能,在摄像管理系统添加该摄像机时选择3个接入插件,用户有业务操作时,DCG把视频播放、结构化数据订阅、热成像人体测温请求消息分别调度到GB/T28181插件、GA/T1400插件、私有SDK插件,并把各插件响应的数据汇总反馈给用户所使用的客户端。
同理,用户需要摄像管理系统对接B厂商摄像机时,摄像管理系统可以复用标准协议插件,仅用私有SDK插件(B厂商)开发少量特色功能,达到提高摄像管理系统中摄像机和服务器对接效率目的。
作为一种可选的实现方式,图2~图5所示出的服务器220还可以对同一个摄像机标识对应的数据进行关联,例如,服务器220可以建立摄像机标识和第一数据的第一对应关系,以及建立摄像机标识和第二数据的第二对应关系。如下表3所示,服务器220还可以存储 不同的物理摄像机、摄像机标识以及多种业务数据。
表3
物理摄像机 摄像机标识 存储的业务数据
半球型摄像机 001 数据3、数据4
4K枪型摄像机-1 002 数据1、数据2
4K枪型摄像机-2 003 数据5、数据6
红外球型摄像机 004 数据7
例如,若上述的摄像机212为表3所示出的4K枪型摄像机-1,摄像机212的摄像机标识为“002”,则与“002”对应的第一数据(数据1)和第二数据(数据2)可以进行关联。值得注意的是,服务器中可以存储有一个或多个摄像机的业务数据,如表3所示出的数据1~数据7。
示例的,服务器220还可以获取来自客户端的查询请求,该查询请求携带有摄像机212的摄像机标识(如表3所示出的002);从而,服务器220可以从本地存储的业务数据中获取与摄像机212关联的第一数据和第二数据(如表3所示出的数据1、数据2)。
如此,一个摄像机在服务器中仅具有一个唯一的设备编码(摄像机标识),该一个摄像机所获取的不同类型的业务数据可以通过该摄像机标识进行关联,在对用户业务的体验不变的情况下,客户端可以通过该摄像机标识实现查看视频、智能图片查找和识别等。另外,在摄像机接入服务器的过程中,由于控制(摄像机标识)和配置(摄像机支持的摄像机数据传输协议)分离,提高了摄像机接入服务器的效率,降低了摄像机的接入成本。
可以理解的是,为了实现上述实施例中功能,服务器包括了执行各个功能相应的硬件结构和/或软件模块。结合本申请中所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件相结合的形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用场景和设计约束条件。
图6和图7为本申请的实施例提供的可能的从摄像机获取数据的装置和服务器的结构示意图。从摄像机获取数据的装置和服务器可以用于实现上述方法实施例中服务器220的功能,因此也能实现上述方法实施例所具备的有益效果。在本申请的实施例中,该从摄像机获取数据的装置可以是如图1所示的服务器120,还可以是应用于服务器120的模块(如芯片)。
如图6所示,从摄像机获取数据的装置600包括通信单元610、第一获取单元620、第二获取单元630、加载单元640、注册单元650、关联单元660和查询单元670,从摄像机获取数据的装置600用于实现上述图2~图5中所示的方法实施例中服务器的功能。
当从摄像机获取数据的装置600用于实现图2所示的方法实施例中服务器220的功能时:通信单元610用于执行S210~S230,以及该加载单元640用于从本地存储的多个协议插件中,选择第一协议插件和第二协议插件分别进行加载;该注册单元650用于以摄像机标识对摄像机进行注册,把摄像机注册为支持:第一摄像机数据传输协议、第二摄像机数据传输协议。
当从摄像机获取数据的装置600用于实现图4所示的方法实施例中服务器220的功能时:通信单元610用于执行S410,第一获取单元620用于执行S430,第二获取单元630用于执行S440。
当从摄像机获取数据的装置600用于实现图5所示的方法实施例中服务器220的功能时:通信单元610用于执行S410,第一获取单元620用于执行S430,第二获取单元630用于执行S440。
该关联单元660用于建立摄像机标识和第一数据的第一对应关系,以及建立摄像机标识和第二数据的第二对应关系。该查询单元670用于依据查询请求从业务数据中获取与摄像机关联的第一数据和第二数据。
可选的,从摄像机获取数据的装置600还可以包括存储单元,该存储单元可以用于记录数据类型与摄像机数据传输协议一一对应关系,该存储单元还可以存储有一个或多个摄像机的业务数据。
有关上述通信单元610、第一获取单元620、第二获取单元630、加载单元640、注册单元650、关联单元660和查询单元670,更详细的描述可以直接参考图2~图5所示的方法实施例中相关描述直接得到,这里不加赘述。
如图7所示,图7为本申请提供的一种服务器的结构示意图,服务器700包括处理器710和接口电路720。处理器710和接口电路720之间相互耦合。可以理解的是,接口电路720可以为收发器或输入输出接口。可选的,服务器700还可以包括存储器730,用于存储处理器710执行的指令或存储处理器710运行指令所需要的输入数据或存储处理器710运行指令后产生的数据。
该服务器700包括处理器710和通信接口720。处理器710和通信接口720之间相互耦合。可以理解的是,通信接口720可以为收发器或输入输出接口。可选的,服务器700还可以包括存储器730,用于存储处理器710执行的指令或存储处理器710运行指令所需要的输入数据,或存储处理器710运行指令后产生的数据。
当服务器700用于实现图2~图5所示的方法时,处理器710和接口电路720用于执行上述通信单元610、第一获取单元620、第二获取单元630、加载单元640、注册单元650、关联单元660和查询单元670的功能。处理器710、通信接口720和存储器730还可以协同实现服务器执行的从摄像机获取数据的方法中的各个操作步骤。服务器700还可以执行图6所示出的从摄像机获取数据的装置600的功能,此处不予赘述。
本申请实施例中不限定上述通信接口720、处理器710以及存储器730之间的具体连接介质。本申请实施例在图7中以通信接口720、处理器710以及存储器730之间通过总线740连接,总线在图7中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
存储器730可用于存储软件程序及模块,如本申请实施例所提供的从摄像机获取数据的方法对应的程序指令/模块,处理器710通过执行存储在存储器730内的软件程序及模块,从而执行各种功能应用以及数据处理。该通信接口720可用于与其他设备进行信令或数据的通信。在本申请中该服务器700可以具有多个通信接口720。
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(Central Processing Unit,CPU)、神经处理器(Neural processing unit,NPU)或图形处理器(Graphic processing unit,GPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field  Programmable Gate Array,FPGA)或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于网络设备或终端设备中。当然,处理器和存储介质也可以作为分立组件存在于网络设备或终端设备中。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘(digital video disc,DVD);还可以是半导体介质,例如,固态硬盘(solid state drive,SSD)。
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系;在本申请的公式中,字符“/”,表示前后关联对象是一种“相除”的关系。此外,对于单数形式“a”,“an”和“the”出现的元素(element),除非上下文另有明确规定,否则其不意味着“一个或仅一个”,而是意味着“一个或多于一个”。例如,“a device”意味着对一个或多个这样的device。再者,至少一个(at least one of).......”意味着后续关联对象中的一个或任意组合,例如“A、B和C中的至少一个”包括A,B,C,AB,AC,BC,或ABC。
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。

Claims (25)

  1. 一种从摄像机获取数据的方法,其特征在于,所述方法包括:
    服务器获取用于请求第一数据的第一读请求以及用于请求第二数据的第二读请求,其中:所述第一、第二请求中携带相同的摄像机标识,所述第一数据的数据类型是第一数据类型,所述第二数据的数据类型是不同于所述第一数据类型的第二数据类型,所述第一读请求携带标记所述第一数据类型的第一数据类型标识,所述第二读请求携带标记所述第一数据类型的第二数据类型标识;
    使用支持所述第一数据类型的第一摄像机数据传输协议,从所述摄像机标识所对应的摄像机获取所述第一数据;
    使用支持所述第二数据类型的第二摄像机数据传输协议,从所述摄像机标识所对应的摄像机获取所述第二数据,其中,所述第二摄像机数据传输协议不同于所述第一摄像机数据传输协议。
  2. 根据权利要求1所述的方法,其特征在于:
    使用所述第一摄像机数据传输协议获取所述第一数据,包括:
    调度所述第一读请求到支持所述第一摄像机数据传输协议的第一协议插件,使用所述第一协议插件基于所述第一摄像机数据传输协议从所述摄像机中获取所述第一数据;
    使用所述第二摄像机数据传输协议获取所述第二数据,包括:
    调度所述第二读请求到支持所述第二摄像机数据传输协议的第二协议插件,使用所述第二协议插件基于所述第二摄像机数据传输协议从所述摄像机中获取所述第二数据。
  3. 根据权利要求2所述的方法,其特征在于,在所述服务器获取所述第一读请求以及获取所述第二读请求之前,所述方法包括:
    所述服务器获取来自客户端的插件加载请求,所述加载请求中携带:加载所述第一协议插件的指示、加载所述第二协议插件的指示;
    所述服务器从本地配置的多个协议插件中,选择所述第一协议插件和所述第二协议插件分别进行加载。
  4. 根据权利要求2或3所述的方法,其特征在于,所述服务器中记录有数据类型与摄像机数据传输协议一一对应关系,其中:
    使用支持所述第一数据类型的第一摄像机数据传输协议,包括:依据所述第一数据类型,选择与所述第一数据类型对应的所述第一协议插件;
    使用支持所述第二数据类型的第二摄像机数据传输协议,包括:依据所述第二数据类型,选择与所述第二数据类型对应的所述第二协议插件。
  5. 根据权利要求2-4中任一项所述的方法,其特征在于,所述第一协议插件提供有上行端口和下行端口,其中:
    每个所述上行端口用于接入一个客户端;
    每个所述下行端口用于接入一个摄像机。
  6. 根据权利要求1所述的方法,其特征在于,其中:
    所述第一摄像机数据传输协议支持的数据类型包括视频,不支持的数据类型包括图像,所述第一数据是视频;
    所述第二摄像机数据传输协议支持的数据类型包括图像,不支持的数据类型包括视 频,所述第二数据是图像。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述第一摄像机数据传输协议和所述第二摄像机数据传输协议,分别是下述协议中的一种:
    GB/T28181协议、ONVIF协议、RTSP协议、GA/T1400协议以及厂商私有协议。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,还包括:
    所述服务器获取所述摄像机的注册信息;
    所述服务器以所述摄像机标识对所述摄像机进行注册,把所述摄像机注册为支持:所述第一摄像机数据传输协议、所述第二摄像机数据传输协议,其中,所述摄像机的摄像机标识唯一。
  9. 根据权利要求8所述的方法,其特征在于,还包括:
    所述服务器把所述摄像机标识、所述摄像机标识对应的协议同步给客户端;所述客户端用于发送所述第一读请求和所述第二读请求。
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述方法还包括:
    所述服务器建立所述摄像机标识和所述第一数据的第一对应关系;
    所述服务器建立所述摄像机标识和所述第二数据的第二对应关系。
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,所述服务器中存储有一个或多个摄像机的业务数据,所述方法还包括:
    所述服务器获取来自客户端的查询请求;所述查询请求携带有所述摄像机标识;
    所述服务器依据所述查询请求从所述服务器存储的所述业务数据中获取与所述摄像机关联的第一数据和所述第二数据。
  12. 一种从摄像机获取数据的装置,其特征在于,所述装置包括:
    通信单元,用于获取请求第一数据的第一读请求以及请求第二数据的第二读请求,其中:所述第一、第二请求中携带相同的摄像机标识,所述第一数据的数据类型是第一数据类型,所述第二数据的数据类型是不同于所述第一数据类型的第二数据类型,所述第一读请求携带标记所述第一数据类型的第一数据类型标识,所述第二读请求携带标记所述第一数据类型的第二数据类型标识;
    第一获取单元,用于使用支持所述第一数据类型的第一摄像机数据传输协议,从所述摄像机标识所对应的摄像机获取所述第一数据;
    第二获取单元,用于使用支持所述第二数据类型的第二摄像机数据传输协议,从所述摄像机标识所对应的摄像机获取所述第二数据,其中,所述第二摄像机数据传输协议不同于所述第一摄像机数据传输协议。
  13. 根据权利要求12所述的装置,其特征在于:
    所述第一获取单元,具体用于调度所述第一读请求到支持所述第一摄像机数据传输协议的第一协议插件,使用所述第一协议插件基于所述第一摄像机数据传输协议从所述摄像机中获取所述第一数据;
    所述第二获取单元,具体用于调度所述第二读请求到支持所述第二摄像机数据传输协议的第二协议插件,使用所述第二协议插件基于所述第二摄像机数据传输协议从所述摄像机中获取所述第二数据。
  14. 根据权利要求13所述的装置,其特征在于,所述通信单元,还用于获取来自客户 端的插件加载请求,所述加载请求中携带:加载所述第一协议插件的指示、加载所述第二协议插件的指示;
    所述装置还包括:加载单元;
    所述加载单元,用于从本地配置的多个协议插件中,选择所述第一协议插件和所述第二协议插件分别进行加载。
  15. 根据权利要求13或14所述的装置,其特征在于,所述装置进一步包括存储单元,所述存储单元中记录有数据类型与摄像机数据传输协议一一对应关系,其中:
    所述第一获取单元,还具体用于依据所述第一数据类型,选择与所述第一数据类型对应的所述第一协议插件;
    所述第二获取单元,还具体用于依据所述第二数据类型,选择与所述第二数据类型对应的所述第二协议插件。
  16. 根据权利要求13-15中任一项所述的装置,其特征在于,所述第一协议插件提供有上行端口和下行端口,其中:
    每个所述上行端口用于接入一个客户端;
    每个所述下行端口用于接入一个摄像机。
  17. 根据权利要求12所述的装置,其特征在于,其中:
    所述第一摄像机数据传输协议支持的数据类型包括视频,不支持的数据类型包括图像,所述第一数据是视频;
    所述第二摄像机数据传输协议支持的数据类型包括图像,不支持的数据类型包括视频,所述第二数据是图像。
  18. 根据权利要求12-17中任一项所述的装置,其特征在于,所述第一摄像机数据传输协议和所述第二摄像机数据传输协议,分别是下述协议中的一种:
    GB/T28181协议、ONVIF协议、RTSP协议、GA/T1400协议以及厂商私有协议。
  19. 根据权利要求12-18中任一项所述的装置,其特征在于,所述通信单元,还用于获取所述摄像机的注册信息;
    所述装置还包括:注册单元;
    所述注册单元,用于以所述摄像机标识对所述摄像机进行注册,把所述摄像机注册为支持:所述第一摄像机数据传输协议、所述第二摄像机数据传输协议。
  20. 根据权利要求19所述的装置,其特征在于,所述通信单元,还用于把所述摄像机标识、所述摄像机标识对应的协议同步给客户端;所述客户端用于发送所述第一读请求和所述第二读请求。
  21. 根据权利要求12-20中任一项所述的装置,其特征在于,所述装置还包括:关联单元;
    所述关联单元,用于建立所述摄像机标识和所述第一数据的第一对应关系;
    所述关联单元,还用于建立所述摄像机标识和所述第二数据的第二对应关系。
  22. 根据权利要求12-21中任一项所述的装置,其特征在于,所述装置的存储单元中存储有一个或多个摄像机的业务数据;
    所述通信单元,还用于获取来自客户端的查询请求;所述查询请求携带有所述摄像机标识;
    所述装置还包括:查询单元;
    所述查询单元,用于依据所述查询请求从所述存储单元中所存储的所述业务数据中获取与所述摄像机关联的第一数据和所述第二数据。
  23. 一种服务器,其特征在于,包括处理器和接口电路,所述接口电路用于接收来自所述服务器之外的其它设备的信号并传输至所述处理器,或将来自所述处理器的信号发送给所述服务器之外的其它设备,所述处理器用于通过逻辑电路或执行代码指令实现如权利要求1至11中任一项所述的方法。
  24. 一种摄像管理系统,其特征在于,包括:服务器以及一个或多个摄像机;
    所述服务器获取用于请求第一数据的第一读请求以及用于请求第二数据的第二读请求,其中:所述第一、第二请求中携带相同的摄像机标识,所述摄像机标识对应于所述一个或多个摄像机中的一个摄像机,所述第一数据的数据类型是第一数据类型,所述第二数据的数据类型是不同于所述第一数据类型的第二数据类型,所述第一读请求携带标记所述第一数据类型的第一数据类型标识,所述第二读请求携带标记所述第一数据类型的第二数据类型标识;
    所述服务器使用支持所述第一数据类型的第一摄像机数据传输协议,从所述摄像机标识所对应的摄像机获取所述第一数据;
    所述服务器使用支持所述第二数据类型的第二摄像机数据传输协议,从所述摄像机标识所对应的摄像机获取所述第二数据,其中,所述第二摄像机数据传输协议不同于所述第一摄像机数据传输协议。
  25. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序或指令,当所述计算机程序或指令被服务器中的处理器执行时,实现如权利要求1至11中任一项所述的方法。
PCT/CN2022/081986 2021-06-30 2022-03-21 一种从摄像机获取数据的方法及装置 WO2023273426A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110739020.0 2021-06-30
CN202110739020 2021-06-30
CN202110961751.XA CN115550379A (zh) 2021-06-30 2021-08-20 一种从摄像机获取数据的方法及装置
CN202110961751.X 2021-08-20

Publications (1)

Publication Number Publication Date
WO2023273426A1 true WO2023273426A1 (zh) 2023-01-05

Family

ID=84689792

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/081986 WO2023273426A1 (zh) 2021-06-30 2022-03-21 一种从摄像机获取数据的方法及装置

Country Status (1)

Country Link
WO (1) WO2023273426A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140204833A1 (en) * 2013-01-18 2014-07-24 Takeshi Negishi Communication management system, relay device, communication control system, communication system, communication method, and recording medium storing communicaiton control program
CN104539596A (zh) * 2014-12-18 2015-04-22 华为技术有限公司 流媒体传输的方法、装置及系统
CN105100824A (zh) * 2015-09-10 2015-11-25 东方网力科技股份有限公司 一种视频处理设备、系统和方法
CN107493211A (zh) * 2017-08-29 2017-12-19 海信集团有限公司 智能家居设备的控制方法及装置
CN110602087A (zh) * 2019-09-10 2019-12-20 腾讯科技(深圳)有限公司 智能投屏方法、装置、智能终端及服务器

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140204833A1 (en) * 2013-01-18 2014-07-24 Takeshi Negishi Communication management system, relay device, communication control system, communication system, communication method, and recording medium storing communicaiton control program
CN104539596A (zh) * 2014-12-18 2015-04-22 华为技术有限公司 流媒体传输的方法、装置及系统
CN105100824A (zh) * 2015-09-10 2015-11-25 东方网力科技股份有限公司 一种视频处理设备、系统和方法
CN107493211A (zh) * 2017-08-29 2017-12-19 海信集团有限公司 智能家居设备的控制方法及装置
CN110602087A (zh) * 2019-09-10 2019-12-20 腾讯科技(深圳)有限公司 智能投屏方法、装置、智能终端及服务器

Similar Documents

Publication Publication Date Title
US11290537B1 (en) Discovery of device capabilities
US10516856B2 (en) Network video recorder cluster and method of operation
CN1617515A (zh) 网络设备的简易动态配置
US20140310741A1 (en) System for sharing data via cloud server and method thereof
US9305078B2 (en) Registration of CIM agent to management agent and system
US20220391489A1 (en) Data processing method and apparatus, computer device, and storage medium
CN114025021A (zh) 一种跨Kubernetes集群的通信方法、系统、介质和电子设备
US8843972B2 (en) Method of requesting video data distributed across a plurality of video servers
WO2020125544A1 (zh) 一种分布式图像分析方法、系统及存储介质
CN114265713A (zh) Rdma事件管理方法、装置、计算机设备及存储介质
WO2023273426A1 (zh) 一种从摄像机获取数据的方法及装置
Dieber et al. Ella: Middleware for multi-camera surveillance in heterogeneous visual sensor networks
US20050052535A1 (en) Context sensitive camera
WO2023045602A1 (zh) 一种图像识别方法及电子设备
WO2018121681A1 (zh) 一种远程开启流数据传输的方法和装置
CN111901561B (zh) 监控系统中的视频数据处理方法、装置、系统及存储介质
CN113055350B (zh) 数据传输方法、装置、设备及可读存储介质
CN115550379A (zh) 一种从摄像机获取数据的方法及装置
WO2021097717A1 (zh) 用户画像的权限管理方法、装置、服务器及存储介质
CN112383904A (zh) 无配对快速外设调用方法及装置
CN112383617A (zh) 进行长连接的方法、装置、终端设备以及介质
CN111327716A (zh) 一种业务交互方法及装置
WO2022252791A1 (zh) 数据传输方法、电子设备及计算机可读存储介质
CN110769264B (zh) 多媒体传输方法及其装置、介质和系统
CN112261051B (zh) 一种用户注册方法、装置及系统

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: 22831257

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE