Tracking control script

Support and queries relating to all previous versions of ZoneMinder
Locked
SyRenity
Posts: 301
Joined: Mon Jan 24, 2005 2:43 pm

Tracking control script

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
SyRenity
Posts: 301
Joined: Mon Jan 24, 2005 2:43 pm

Post 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?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
Locked