From 2ff4bf2d2546264f4a95bdcc20be800bca8a674d Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Sun, 1 Sep 2024 00:16:58 +0900 Subject: [PATCH] data: Add ptz-http-backend camera model definition file --- ci/plugin.spec | 1 + data/ptz/ptz-http-backend-camera-models.json | 25 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 data/ptz/ptz-http-backend-camera-models.json diff --git a/ci/plugin.spec b/ci/plugin.spec index 198c9d7..3f82886 100644 --- a/ci/plugin.spec +++ b/ci/plugin.spec @@ -69,6 +69,7 @@ mv %{buildroot}/%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/LICENSE-shape_predicto %files %{_libdir}/obs-plugins/@PLUGIN_NAME@.so %{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/locale/ +%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/ptz/ %{_datadir}/licenses/%{name}/* %files data diff --git a/data/ptz/ptz-http-backend-camera-models.json b/data/ptz/ptz-http-backend-camera-models.json new file mode 100644 index 0000000..1bf5822 --- /dev/null +++ b/data/ptz/ptz-http-backend-camera-models.json @@ -0,0 +1,25 @@ +{ + "camera-models": [ + { + "id": "hikvision", + "name": "HikVision PTZ (HTTP)", + "properties": { + }, + "settings": { + "ptz-method": "PUT", + "ptz-url": "http://{host}/ISAPI/PTZCtrl/channels/1/continuous", + "ptz-payload": "{p}{t}{z}" + }, + "control-function": { + "p": { "type": "linear-int", "k1": 1.0, "k0": 0, "max": 15 }, + "t": { "type": "linear-int", "k1": 1.0, "k0": 0, "max": 15 }, + "z": { "type": "linear-int", "k1": 1.0, "k0": 0, "max": 3 }, + "TODO": "\"max\" should be configurable." + } + }, + { + "id": "sony-srg300se", + "name": "Sony SRG-300SE (HTTP)" + } + ] +}