Page 1 of 1

Motion detection while PTZ camera cycles through presets

Posted: Mon Mar 20, 2006 9:22 pm
by Darkstar
Hi,
I am very new to Zoneminder and I find it great! I bought two NCS-370 PTZ cameras to control a store. I tried the tracking function, but I somehow can not make it work with my camera. I changed the control-script to somehow move into the right direction because real mapping is not supported. But somehow the movement is far to slow: If somebody walks throught the field of view for only a few seconds but the camera doesn't move at all. So I would like to do something more simple. To control the whole store, I set up different preset positions and I would like the camera cycle through all the presets and, if motion is detected stay there and record and if no motion is detected continue after some time. Maybe this could be a quick hack (just comes to my mind): changing the control script to go to the next preset instead of preset1 or Home position after tracking is done. I saw the command to return to the preset position in the log file even if no tracking was done, so maybe this could be a solution. Much better this could be done in the zmtrack.pl script where the number of the actual preset could be read from the database, where also the range of presets to cycle through could be stored and changed via the web frontend.

BTW this is a quick hack for the NCS370 to return to the preset1 position:

Code: Select all

elsif ($command eq "preset1" )
{
        presetGoto(1);
}
added somewhere between the other "elsif" statements.

I found another inconsistency (bug) in the "Watch" window: when you choose "control" to move the camera around and then change the scale, the scale changes but the view jumps back to the last events and you have to select "control" again. Maybe this is already reported, but I didn't see it so far.

Keep up with this great work.

Regards Helge.