Skip to content

Custom option for PTZ controls #160

@istvanmate

Description

@istvanmate

Source/filter types

  • Face Tracker PTZ (a filter to control PTZ camera)

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
We are using low budget HikVision PTZ cameras. They accept HTTP PUT commands for PTZ controls. Example (in PowerShell):

$url = "http://$ipaddress/ISAPI/PTZCtrl/channels/1/continuous"
$buffer = $wc.UploadString($url, "PUT", '<?xml version: "1.0" encoding="UTF-8"?><PTZData><pan>'+$pan+'</pan><tilt>'+$tilt+'</tilt><zoom>'+$zoom+'</zoom></PTZData>')

$pan, $tilt is the camera speed -100..+100 (we us speeds up to 15). $zoom is -3..+3 (we basically use -1, +1). 0 is stop.

Describe alternatives you've considered
There are no alternatives at this moment, other than buying tracking capable camera.

Additional context

Authentication is required:

$wc = [System.Net.WebClient]::new()
$wc.Credentials = new-object System.Net.NetworkCredential("username", (New-Object System.Management.Automation.PSCredential -ArgumentList "username", (ConvertTo-SecureString -AsPlainText -Force "password")).GetNetworkCredential().Password)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions