Zones

Support and queries relating to all previous versions of ZoneMinder
Locked
Simon
Posts: 19
Joined: Tue Jan 24, 2006 8:35 pm

Zones

Post by Simon »

when creating a zone is it better to minimize the number of points used? does it have any impact on performance?

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

Post by zoneminder »

In general yes and no. Though in practice the difference is likely to be negligible as the polygons are resolved to (effectively) bitmaps on startup so it make take a fraction longer to get running but no slower in normal operation. The exception to this is where you have a complex zone which encloses non-zone space. This will take a longer to run and should be split into two or more parts.

For example

Code: Select all

.....*****......
...*******......
..***********...
..**************
..******........
is ok, but

Code: Select all

.....*****......
...***.***......
..***..******...
..**.....********
..**............
should be split into a left and right zone, for optimum performance, though it will work as is.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Phil just a suggestion as i didnt know this and have some quite complicated shapes now!!! lol, can someone who knows how zones work do a quick guidlines sheet? just a thought
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It's not the end of the world having zones this shape but it will iterate across the contained empty areas even if it won't actually check them.

I do plan to remove this issue in the future but it's not high priority and only really affects things if a horizontal slice contains empty areas, verttical slices aren't a problem at all.
Phil
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

Don't you just hate it when you've got the zones all set up and just /perfect/ then somebody comes along and nudges the camera?
liderbugzm

Multi point poly

Post by liderbugzm »

This post comes the closest, then not quite. My question is can I change the number of points for a zone poly? From 4 to 6? Haven't found a config to do it. Would it cause problems? Or does one just make 3 or 4 polys? IE. One of my cams has a windsock that I would like to exclude. Hmmm, nother question - would it be possible to make a not-zone. Do a All-zone and a windsock exclude zone?

Thanks
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

That is covered in the README:
http://www.zoneminder.com/fileadmin/dow ... c151468571

Regards,
Corey
Locked