As a small part of my graduation I worked with PTZ cameras. To demonstrate steering over HTTP/IP using the Axis VAPIX API I have created a small application that can track an orange object (a Wuppie) and steers the camera accordingly.

PTZ Camera is tracking

PTZ Camera is tracking orange object

 

The whole video can be seen here:  http://vimeo.com/25667397. It might be interesting for anyone trying to steer PTZ cameras through c++ code. This one works on Microsoft Windows using COM-interfaces provided by Axis. It uses CURL to send commands over HTTP and OpenCV to visualize.

Source code is available here