Mapped move to the very center of the image during tracking

Support and queries relating to all previous versions of ZoneMinder
Locked
Darkstar
Posts: 9
Joined: Mon Mar 20, 2006 5:42 pm

Mapped move to the very center of the image during tracking

Post by Darkstar »

Hi,
I am playing around with motion tracking and see in the log-files many moves to the exact center of the image: x=320,y=240,w=640,h=480. Does it make sense to move to this coordinates, or am I getting something wrong? I thought, that the mapped_move command should move the center of the image to the given coordinates.

Helge.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Are you sure you aren't seeing the return after the initial move? Generally the tracking will swivel to the centre of motion and then after a defined period return to it's home position or a preset.
Phil
Darkstar
Posts: 9
Joined: Mon Mar 20, 2006 5:42 pm

Post by Darkstar »

Code: Select all

03/23/06 19:44:34.453163 zmctrl-ncs370[23773].DBG [--address=192.168.2.210 --command=move_map --xcoord=320 --ycoord=240 --width=640 --height=480]
03/23/06 19:44:34.453345 zmctrl-ncs370[23773].DBG [Move Pseudo Map]
03/23/06 19:44:34.453429 zmctrl-ncs370[23773].DBG [320,240,640,480]
03/23/06 19:44:46.216478 zmctrl-ncs370[23821].DBG [--address=192.168.2.210 --command=preset1]
03/23/06 19:44:46.216623 zmctrl-ncs370[23821].DBG [Goto Preset 1]
03/23/06 19:44:46.216693 zmctrl-ncs370[23821].DBG [PanTiltPresetPositionMove=1[27]]
03/23/06 19:47:23.545358 zmctrl-ncs370[23861].DBG [--address=192.168.2.210 --command=move_map --xcoord=505 --ycoord=315 --width=640 --height=480]
03/23/06 19:47:23.545546 zmctrl-ncs370[23861].DBG [Move Pseudo Map]
03/23/06 19:47:23.545630 zmctrl-ncs370[23861].DBG [505,315,640,480]
As you can see, it moves first to the center (so no move at all) and then "back" to preset1. A few minutes later it really moves to a position off center.

Helge.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If you have motion that spans the field of view and only have simple weighting on then the center of motion will be the centre of the frame however I would have thought this is unlikely. Do you have images captured at the time that you can look at?
Phil
Locked