Comments

3 comments

  • Avatar
    Andrey Terentyev

    Hello Yaron Chermak,

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

    0
    Comment actions Permalink
  • Avatar
    Yaron Chermak

    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
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    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
    Comment actions Permalink

Please sign in to leave a comment.