Page 1 of 1

Tracking control script

Posted: Fri Nov 11, 2005 8:38 pm
by SyRenity
Hi Phil.

I'm interested to give a try to the PTZ cameras tracking script (zmtrack.pl?). Could you please list some short instructions, of how to use it?

This is the URL of the PTZ interface for the camera:
http://IP/cgi-bin/ptz.cgi?move=left (or right, up, down).

Thanks.

Posted: Fri Nov 11, 2005 8:59 pm
by cordel
I think the way it works is it uses the camera scripts and calls the required functions through those. I could be wrong but I think thats how zm track interfaces with the cameras.

Regards,
Cordel

Posted: Sat Nov 12, 2005 11:38 am
by zoneminder
What camera is that you are using, as you may need to create a control script for it first if it's not already covered.

Phil

Posted: Sat Nov 12, 2005 1:42 pm
by SyRenity
Hi Phil.

I'm using a 4XEM PTZ camera, which supports both mpeg4 and mjpeg. I checked the provided control scripts, and it won't be a problem to create a new script for the camera, based on axis or kx-hcm script.

What should be the next steps, after the script is created?

Posted: Sun Nov 13, 2005 5:56 pm
by zoneminder
Once you have created the script you will have to insert a line on the Controls table describing the capabilities of the camera. This you can do by choosing 'Edit' from the Control Type field of the Control tab in the Monitor edit view.

To use tracking your camera really should be able to map a screen co-ordinate to a degree of motion. If the camera native control software allows you to click on the image and have that point centred then ZM will be able to do the same, and to direct the camera to centre on initial motion, provided you select the CanMoveMap option when defining the Control type.

Phil