Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

RelativeFocusPtzCommand

Answered

Comments

3 comments

  • Andrey Terentyev
    • Network Optix team

    Hello Yaron Chermak,

    Could you please elaborate your objective? What are you trying to achieve with this API?

    0
  • Permanently deleted user

    Hello

    We are trying to programatically change the focus to a supported camera. We saw that  rhe command RelativeFocusPtzCommand exists in the patch, but couldn't find any documentation or samples.

    0
  • Andrey Terentyev
    • Network Optix team

    Hello Yaron Chermak,

    You can find documentation and examples in the built-in web interface of the Server of version 5.

    You could use Nx Meta R6 for that.

    Here is a quotation.

    "RelativeFocusPtzCommand" Adjusts the camera focus relatively to its current state. The "focus" parameter must be in range [-1.0..1.0]. The "type" parameter is used to determine which type of PTZ movement will be executed. Can equal "operational" or "configurational", or be omitted (in this case the operational PTZ is used).

    Example: http://127.0.0.1:7001/api/ptz?command=RelativeFocusPtzCommand&focus=0.5&cameraId={fd254d46-c9d8-11eb-b8bc-0242ac130003} This example adds 0.5 of the full Focus range to the current focus value. Operational PTZ is used.

     

    0

Please sign in to leave a comment.