Hi,
I’m controlling a Dahua PTZ through the HTTP CGI interface.
The moveDirectly command works well for centering a bounding box from image coordinates, but it always performs a zoom-in so the selected rectangle fills the frame.
I need to keep the current zoom level exactly as it is, just pan/tilt to center a given region, no zoom change at all.
Here’s what I’ve tried:
Question:
Is there any Dahua API parameter, hidden flag, or alternative CGI endpoint that lets me:
I’m controlling a Dahua PTZ through the HTTP CGI interface.
The moveDirectly command works well for centering a bounding box from image coordinates, but it always performs a zoom-in so the selected rectangle fills the frame.
I need to keep the current zoom level exactly as it is, just pan/tilt to center a given region, no zoom change at all.
Here’s what I’ve tried:
- moveRelatively → works, but hard to compute the correct normalized deltas to precisely center the box across different zoom levels.
- moveDirectly → centers correctly, but always changes zoom (even when I restore the previous zoom with moveAbsolutely, it’s a clunky jump and I'd like to do this in one go).
Question:
Is there any Dahua API parameter, hidden flag, or alternative CGI endpoint that lets me:
- Specify a point on the current view
- Have the camera only pan/tilt to center it
- Leave zoom completely untouched