|
CONTENTS Home Projects More Projects Resume Computer Skills Music Links To Friends Pictures About Mike Random Link |
Control A PTZ IP Camera With A Gamepad On Linux ExampleRelated pages on www.mikekohn.net: Naken Web, Linux PTZ Control, j2me ipcamview Introduction This is a small program showing how to use Linux to control the PTZ motors on an IP based camera. This program has the ability to move Axis based Internet cameras remotely from a Linux box using a Logitech based game pad such as the Logitech Dual Action Gamepad. Moving the left analog joystick left, right, up, down will turn the camera according to how hard the joystick is pressed. By moving the right joystick forward and back the camera will zoom in and out of the picture. I was surprised how easy it was to write code for Linux to read from a joystick. I'm putting this online for anyone to use as an example. Feel free to use whatever code from this tarball that you want. This code can be easily modified to control other IP cameras, I used Axis simply because their API is freely available online and quite easy to use. Download
|