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 Aug 31, 2024
1 parent 0ba3c08 commit e5bea6b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions data/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 e5bea6b

Please sign in to comment.