Centering the axis cam on the target.

We intend to mount the axis camera at the height of the lowest hoop, and have it constantly tracking only one hoop. The camera will be able to rotate horizontally, but not vertically. In that case, how would we go about ensuring that the camera is always centered on the target?

One option we have considered is making the camera turn back and forth in increments until it detects the target. However, we are unsure as to how we can position the target right in the center of the camera’s view.

Any ideas?

You can determine the position of the target in the image, right? You can define what position you want it to be in, and thus come up with an error in the target position. Use the value of that error to control the rotation and make the target get to where you want it.