Hi, we encounter an issue on PTZ camera control. I would like to develop a user interface for following camera controls:
1) Change camera focus to far / near
2) Change iris of the camera lens
3) Set preset position for the cameras
Currently we are using XProtect Corporate SDK and Bosch cameras. We search through the SDK and find no such functions.
Are there any methods or function calls to do the tasks?
1-2)
See
--
const String VideoOS.Platform.Messaging.MessageId.Control.LensCommand = “Control.LensCommand”
Used to instruct a camera to change some lens settings.
Destination contains camera FQID.
Please note that actual support is limited by what the specific camera can support and when Milestone have implemented in the drivers
--
and
VideoOS.Platform.Messaging.LensCommandData Class Reference
The Smart Client View and Window Tool sample, on the Lens Control tab, shows these commands. Exploring the sample you can see how it works.
You want to set the preset, not just apply a preset? This can be done using the Configuration API. Explore the Config API Client sample. If the task is simpler; to apply a defined preset explore the PTZandPresets sample instead.
Thanks for your answer. I am a newbie in this area. There are some follow up questions I would like to ask:
1-2) We are using Bosch PTZ Camera, Model No. : VG5-7230-EPC4. Does Milestone drivers support this model?
3) We want to do both setting and applying preset. Does the API support the model mention above? We tried to set presets using Milestone Management Client but it pops up the Bosch web interface instead of saving the camera position.
To look up if a camera model is supported can be done in the Supported Hardware pages at - https://www.milestonesys.com/community/business-partner-tools/supported-devices/
If a camera is supported it will be supported while using the Configuration API also, but that also means if you cannot do it in the Management Client I would not hope to do it in the Configuration API.
That the Management Client while setting presets (in the Presets tab in the Properties for the camera I presume) sounds wrong, I never seen this. Perhaps on a general question like settings PTZ presets using the Management Client you could ask in the Support Community. https://force.milestonesys.com/support/MccSupportCommunity
Hi,
I’m also interested in how to control camera focus/iris. I have searched through the MIPSDK samples (version 2019 R3) and nowhere can find the mentioned “Smart Client View and Window Tool sample”.