PtzCapabilities for Fixed Camera
AnsweredHi,
I.m trying to understand the value received for the ptzCapabilities for Fixed and for PTZ cameras. I have 4 cameras different cameras connected: 3 fixed and 1 ptz. For the 3 ptz cameras I get the value "135217156" and for the ptz one I get "135224951".
from Using the Nx Witness PTZ API – Network Optix I could see that 135217156 are: ContinuosZoomCapability, RelativeZoomCapability, PresetsPtzCapability, ToursPtzCapability, ActivityPtzCapability, HomePtzCapability, NativePresetsPtzCapability.
Is that correct? why do I get this value for a fixed camera? I though I should get only the NoPtzCapability or an empty value.
What is the right way to determine if a camera is a fixed or ptz one?
-
Hi Sigal Cagan,
The reason you received the value is since it was reported by the device to our software as such.
For example when the camera has a zoom lens, the ptzCapabilities are used for the control of the zoom lens. In such case the reported parameters are legit and do no contain parameters to pan or tile the device.
We also see that some camera vendors use some sort of universal firmware and non-PTZ cameras appear as PTZ camera in the VMS or NVR, while the camera itself doesn't have PTZ capabilities or not even a zoom lens.
So, if the device is a non-PTZ and a non-Zoom lens device, then it is fair to expect a NoPtzCapabilities': 0 report.
-
Hi,
As Norman - Nx Support metioned, so attribute "ptzCapabilities" is just information that the device tells Nx. Can you please tell the correct way on how to determine if a camera is PTZ-able from Nx API? Mabye from:
Get Device records
/rest/v2/devicesOr
Get Device record
/rest/v2/devices/{id}Thanks!
-
Hi Yen Chen Lo,
Both calls you refer to work, however the first will provide a reply for all connected devices, and the second only for the device you provided the cameraId from.
More information can be found in THIS support article.
Please sign in to leave a comment.
Comments
3 comments