.net 如何在监控摄像头上使用 Onvif Api
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10533525/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to use Onvif Api with survillence cameras
提问by Muhammad Adeel Zahid
My company provides security and surveillance services to its clients and i was asked to do R&D on how we can use onvif api. I visited their operationspage and relevant wsdldefinitions for some of the operations. My quest so far suggests that onvif has created set of standards for security equipment and conformant devices implement the services listed on onvif api and specificationpage. I think that the way to go about it is that i create web service client stubs by using wsdl definitions from onvif site and use device's ip as endpoint to get its functionality. Are my assumptions correct? Furthermore, if someone could refer me some initial reading to get going with this, i would be really thankful.
我的公司为其客户提供安全和监控服务,我被要求对如何使用 onvif api 进行研发。我访问了他们的操作页面和一些操作的相关wsdl定义。到目前为止,我的探索表明 onvif 已经为安全设备和合规设备创建了一套标准,以实现onvif api 和规范页面上列出的服务。我认为解决这个问题的方法是我通过使用来自 onvif 站点的 wsdl 定义创建 Web 服务客户端存根,并使用设备的 ip 作为端点来获取其功能。我的假设正确吗?此外,如果有人可以向我推荐一些初步阅读以开始阅读,我将非常感激。
回答by agfe2
For ONVIF Client (NVC - Network Video Client), you can refer onvifdm. OnvifDM is a one of NVC.
ONVIF Client(NVC-网络视频客户端)可以参考onvifdm。OnvifDM 是 NVC 的一种。
It has many functions based on ONVIF specification:
它有很多基于ONVIF规范的功能:
- Network device discovery (WS-Discovery)
- Live video display
- Video capture configuration (digital sensor or analogue inputs)
- Encoder configuration
- Video analytics configuration
- Event and metadata configuration
- Alert rule management
- Firmware update
- Local storage / network storage recording
- 网络设备发现 (WS-Discovery)
- 实时视频显示
- 视频捕捉配置(数字传感器或模拟输入)
- 编码器配置
- 视频分析配置
- 事件和元数据配置
- 警报规则管理
- 固件升级
- 本地存储/网络存储录音
At the moment, ONVIF latest version is 2.2.
But in the market most of ONVIF conformant device support v1.02 and v2.0 (v2.1?).
目前,ONVIF 的最新版本是 2.2。
但市场上大多数符合 ONVIF 的设备都支持 v1.02 和 v2.0(v2.1?)。
NVC (like as onvifdm) needs NVT (Network Video Transmitter) for interoperation.
NVC(如 onvifdm)需要 NVT(网络视频传输器)进行互操作。
NVT will be IP camera or NVR (traditional or hybrid), it has various functionalities and capabilites.
ONVIF standard consists of many mandatory items and some optional items.
So, for Inter-operation, you must check the ONVIF version and NVC/NVT capabilities.
NVT 将是 IP 摄像机或 NVR(传统或混合),它具有各种功能和能力。
ONVIF 标准由许多强制项和一些可选项组成。
因此,对于互操作,您必须检查 ONVIF 版本和 NVC/NVT 功能。
If you register as ONVIF member, you can get a ONVIF Conformance Tool (latest ver1.02).
The conformance tool is for NVT compatibility check and you can refer it as a client.
If any NVT pass the test process with ONVIF Conformance Tool, it can be a conformant product.
注册为ONVIF会员,即可获得ONVIF一致性工具(最新版本1.02)。
一致性工具用于 NVT 兼容性检查,您可以将其称为客户端。
如果任何 NVT 通过 ONVIF Conformance Tool 的测试过程,它就可以是合格的产品。
You can find any ONVIF conformant product in the ONVIF's website.
您可以在ONVIF 的网站上找到任何符合ONVIF 的产品。
You can find a open source library in the onvifdm, code-based on .NET.
For more detail look into http://en.synesis.ru/en/surveillance/onvifdm/.
您可以在 onvifdm 中找到一个基于 .NET 代码的开源库。
有关更多详细信息,请查看http://en.synesis.ru/en/surveillance/onvifdm/。
回答by Derzu
I developed an open C++ solution ONVIF NVC (Network Video Client) and PVR (Personal Video Recorder).
我开发了一个开放的 C++ 解决方案 ONVIF NVC(网络视频客户端)和 PVR(个人视频录像机)。
It can be used with surveillance cameras. But you need to set the rtsp address of the cameras on this solution.
它可以与监控摄像头一起使用。但是您需要在此解决方案上设置摄像机的 rtsp 地址。
Available at GitHub: https://github.com/derzu/ONVIF-PVR
可在 GitHub:https: //github.com/derzu/ONVIF-PVR

