when creating a zone is it better to minimize the number of points used? does it have any impact on performance?
thankyou
Zones
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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 is ok, but should be split into a left and right zone, for optimum performance, though it will work as is.
For example
Code: Select all
.....*****......
...*******......
..***********...
..**************
..******........
Code: Select all
.....*****......
...***.***......
..***..******...
..**.....********
..**............
Phil
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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.
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
Multi point poly
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
Thanks
That is covered in the README:
http://www.zoneminder.com/fileadmin/dow ... c151468571
Regards,
Corey
http://www.zoneminder.com/fileadmin/dow ... c151468571
Regards,
Corey