Skip to content

robots-ju/ptz-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTZ Control

Control UVC PTZ and live-overcapture cameras with a Pelco device.

Intended for environments where the controller is connected to a different computer than the camera. Websockets are used for communication within the network.

The Pelco protocol implementation is based on node-ptz-decoder.

Some of the Pelco commands are interpreted differently than the spec:

  • Zoom IN/OUT controls a single zoom step rather than continuous zoom.
  • Focus and iris controls call memory 11-14 instead.
  • Various number calls above 40 are used to change user preferences instead of calling a memory item. The preferences are associated with the current camera ID, not the controller.

Command mapping details:

  • FOCUS NEAR: GOTO 11
  • FOCUS FAR: GOTO 12
  • IRIS CLOSE: GOTO 13
  • IRIS OPEN: GOTO 14
  • PRESET SET 41: reset sensitivity
  • PRESET SET 42: sensitivity +20%
  • PRESET SET 43: sensitivity -20%
  • PRESET SET 51: swap tilt up/down

The controller script must run on the computer that has the serial adapter to the Pelco controllers.

The camera script must run on computers that have cameras connected. They will simply forward the PTZ orders to the v4l2-ctl utility.

Do not run on an untrusted network! Unauthenticated remote code execution is possible by design.

When used with live overcapture, zoom is currently always set to auto FOV.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors