Jump to content
Sign in to follow this  
JCNeves

PTZ Control

Recommended Posts

Hello guys,

 

How can know the pan and tilt angle necessary to center a PTZ camera in a specific pixel in the image?

 

For example, consider that the center of the image provided by the PTZ camera has the coordinates (0,0). My question is how to determine the pan and tilt angle that I have to rotate the camera to center the camera in the pixel (30,40) ( it is an example).

 

I am almost sure that the mapping forrmula will require the horizontal angle of view and image resolution, in my case 58,9º and 1080x1920

 

Thank you for your help

Share this post


Link to post
Share on other sites

Not really clear what you are trying to achieve here but...

You need a good pair of glasses and a magnifying glass I think.

 

For example, imagine that you have an image of a scene with a 1080x1920 resolution.

 

And imagine also that it is something interesting on the lower right corner, i.e, pixel (1080,1920).

 

Considering that the pixel (540,960) is the center of the image, I need to know much do I have to rotate (the pan and the tilt) the PTZ camera so that the new image is centered in that point.

 

Thank you in advance

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×