First time here? Check out the FAQ!

Ask Your Question
0

Converting pixel distance to move camera

asked Mar 18 '15

215 gravatar image

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.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Mar 18 '15

I think you have a control problem and not vision problem right? Have you heard of the PID-Controller? http://en.wikipedia.org/wiki/PID_cont...

Preview: (hide)

Comments

I was thinking of using a P-controller for controlling the speed.. I didn't see any reason why i should have one to control the position..

I know for sure it is not a PID problem.. Because even at low speeds it overshoot.. which should not be the case.

215 gravatar image215 (Mar 18 '15)edit

Question Tools

1 follower

Stats

Asked: Mar 18 '15

Seen: 866 times

Last updated: Mar 18 '15