|
Re: Help with image processing
The default code did this in 2009, and in LV the example still ships. It is called Two Servo Camera Control or something like that.
Think about the center of the camera image as the origin. If the target is not in the center, it is some distance away, and that error term can be scaled and added or subtracted to the servo value to "center" it. The servo already has mechanism to maintain its position, so you only need to give it a set point. Play around with a 1D version of this and I think you'll find it easy to do. Then add the second dimension.
Greg McKaskle
|