How to center bounding box using 3D move without changing zoom with the Dahua HTTP API.

Oct 6, 2025
13
5
South Africa
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:
  • 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:
  1. Specify a point on the current view
  2. Have the camera only pan/tilt to center it
  3. Leave zoom completely untouched
If that’s impossible in Dahua’s API, what’s the cleanest workaround?