如何在 C# 中以编程方式为 Axis Camera Control 执行 PTZ

How to perform PTZ programmatically for Axis Camera Control in C#

这是我从 Axis 获得的 IP 摄像机 和 Axis 相机控件在我的 Winform 程序中显示实时视图。

我现在准备写鼠标拖动和滚动事件 在 C# 程序中执行 Pan–tilt–zoom(PTZ)。

但是,我找不到任何答案 即使我已经阅读了 Axis 的所有手册 并在 Google 中进行了大量搜索。 (在 Url 中添加参数 continuouszoommove 不起作用。)

请帮忙。非常感谢!

今天才找到答案,找了两天..

答案在这里:

viewer.PTZControlURL = "http://ipaddress/axis-cgi/com/ptz.cgi";
viewer.EnableAreaZoom = true;
viewer.OneClicllkZoom = true;
viewer.UIMode = "ptz-user-setting"

UIMode的选项:

http://wiki.cinemaronline.com/index.php?title=Axis_Client_Side_ActiveX_Streaming_Video_Window

或者,您可以添加一些事件,例如 KeyUp/KeyDown,通过添加参数来自定义您的相机控制:平移、倾斜和缩放。

阅读下面关于参数的手册:

http://www.axis.com/files/manuals/vapix_ptz_52933_en_1307.pdf