Ask Your Question
0

Converting pixel distance to move camera

asked 2015-03-18 10:23:49 -0500

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-18 12:19:12 -0500

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...

edit flag offensive delete link more

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 ( 2015-03-18 12:22:07 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-03-18 10:23:49 -0500

Seen: 722 times

Last updated: Mar 18 '15