Skip to content

Commit

Permalink
data: Add ptz-http-backend camera model definition file
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro committed Sep 16, 2024
1 parent cc55709 commit 2ff4bf2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions ci/plugin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ mv %{buildroot}/%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/LICENSE-shape_predicto
%files
%{_libdir}/obs-plugins/@[email protected]
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/locale/
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/ptz/
%{_datadir}/licenses/%{name}/*

%files data
Expand Down
25 changes: 25 additions & 0 deletions data/ptz/ptz-http-backend-camera-models.json
Original file line number Diff line number Diff line change
@@ -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": "<?xml version: \"1.0\" encoding=\"UTF-8\"?><PTZData><pan>{p}</pan><tilt>{t}</tilt><zoom>{z}</zoom></PTZData>"
},
"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)"
}
]
}

0 comments on commit 2ff4bf2

Please sign in to comment.