Converting pixel distance to move camera
Hi guys.. I am having some problems with coming up with an expression which solve my problem.. I am using a web am to track an object, the camera shall move such that the object i am tracking is always at the center.
The camera pans to specific angle, by giving the angle it has to move to.. I know at all time what the pixel distance is between the center and the object I am detecting.
My problems occurs as when the camera moves all the time. Since the camera is moving, the angle i calculate changes.. How do i calculate the angle such i know how much to turn.