Ask Your Question
1

Control PTZ

asked 2013-05-01 06:48:23 -0600

mistermystere gravatar image

Hi,

I will soon be using OpenCV for retrieving a live feed from my Wanscam, but I don't know how to control the pan and tilt functionalities (C++), which are yet vital to my project.

I couldn't find it in OpenCV's doc. Is it really absent from the API ? If so, would you happen to know how I could achieve this please ?

Thanks in advance.

Regards, Mister Mystère

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2013-05-02 09:54:52 -0600

mat_pier gravatar image

This question is more device specific.

Every PTZ camera has its own way of handling controls (some use custom API with socket programming in C++, some could be controlled by requests over HTTP).

You will need to customize this appropriate to your application. AFAIK there is no single API that is common for all PTZ cameras.

Look into the developer manual for that specific manufacturer and model number. Looks like they have an SDK and you could use it with your Visual C++ code.

edit flag offensive delete link more

Comments

Thank you for your answer. I ended up sniffing the communication port with WireShark for HTTP requests in order to get what the commands were because I couldn't find any API for this camera. Works like a charm :)

mistermystere gravatar imagemistermystere ( 2013-05-06 03:41:35 -0600 )edit

could you suggest me some of the sniffing tutorials. I am a beginner in this case. My project is similar to what you have mentioned since i need to understand already existing software and to write my own I need to understand how to use wireshark in my case. thank you so much in advance :)

Daksitha gravatar imageDaksitha ( 2014-01-12 08:30:27 -0600 )edit

Question Tools

Stats

Asked: 2013-05-01 06:48:23 -0600

Seen: 2,620 times

Last updated: May 02 '13