Get pan/tilt position for Q3628 cameras #1019
Replies: 7 comments 5 replies
-
|
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
|
@BetterZhouXu Why you change the view area and not the ptz position? https://developer.axis.com/vapix/network-video/pantiltzoom-api/#ptz-control Like The position is 0 because looks like you does not change the PTZ position instead you change the view area. (Digital PTZ) And what are you missing ? :) |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Cacsjep , thanks for your reply.
The missing part in VAPIX is: those calls for center.cgi and roll.cgi are not listed in VAPIX document, I was told by someone else. I don't know how to use center.cgi and roll.cgi before someone tole me, and I am not sure how to use it correctly. |
Beta Was this translation helpful? Give feedback.
-
|
@BetterZhouXu Things that are not documented are unofficial and not supported by AXIS. You should use only official VAPIX commands and not unofficial ones obtained from Chrome Developer Tools or similar. Why you are using camera 3 as argument, a PTZ camera would almoast have one sensor. I think you mix up, view areas and ptz in general, a view area is just a subview of the orignal. So when talking about PTZ moving whole camera the two cgi works correct: move: configure a view area is a diffrent kind of topic: |
Beta Was this translation helpful? Give feedback.
-
|
@BetterZhouXu is see now that Q3628 is not a PTZ camera. So therefore you can use PTZ commands. May describe your goal so then we can find the correct stuff for you :) when you just want to create an view area use the above Vapix commands from docs to create and list afterwards. |
Beta Was this translation helpful? Give feedback.
-
|
@Cacsjep I tried to change camera's view area through web interface. I found those two commands during the process: |
Beta Was this translation helpful? Give feedback.
-
|
Feel free to re-open it OR share the solution/alternative/comment if already resolved👁️🗨️ |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I am using the the API http://192.168.86.1/axis-cgi/viewareasetup/center.cgi?mode=overview&pan=10&tilt=10 to change the camera's viewarea
Then I call another API to make it effective http://192.168.86.1/axis-cgi/viewareasetup/roll.cgi?move=auto&speed=25
I don't know if the camera moves to the right place. So I want to get camera's current pan/tilt position, I used this API:
http://192.168.86.1/axis-cgi/com/ptz.cgi?query=position
But it returned info "pan=0 tilt=0 zoom=1". Does anyone know how to get the pan/tilt information? And how to know if the camera moves to the right place?
BTW, lots of API document is missing from the VAPIX...
Beta Was this translation helpful? Give feedback.
All reactions