akupsta wrote:Min/Max Pixel Threshold
Is the min and max pixel threshold, ie all below and above will be ignored
Ok, kind of get it. Valid values are 0-255. So if I set this at let say 8 and my Filter width/height is 5 x 5, what does it do?
My thinking:
Atleast a 40x40 pixel area (a unit) must change before anything is analyzed.
If I happen to be using blobs and my min blob area is set to 2%, then 2% of the zone must consist of these 40x40 pixel unit / units?
This is described in the manual
http://www.zoneminder.com/fileadmin/dow ... c151468571 in section 8.2... but I appreciate that manuals quite often only make sense once you already understand things!!!
The min/max pixel threshold is used like this: Each pixel in the image is given a "value", and this threshold decides whether the change in the pixel is sufficient to have made the pixel cause an alarm or not. (the change has to be MORE than the minimum and LESS than the maximum).
You now have an image made up of ALARMED and nonalarmed pixels.
The filter width/height settings then dictate that any cluster of ALARMED pixels are smaller than this setting are thrown away. ie: if your setting is 5x5, then a cluster of alarmed pixels that are 6x4 would be thrown away, but a cluster of 40x36 would still be "in the frame".
You now have an image made up of clusters of ALARMED pixels that are at least as big as your filter size.
Min/Max alarmed area then comes into play. This states that, the remaining alarmed pixels must be at least (and no more) than these settings for this frame still to be considered to be worth of raising an alarm.
The Filter area setting can further narrow down the number of pixels that contribute to the "alarm"-ness of this frame (But I have to admit to not understanding how).
The Blob setting says that the remaining alarmed pixels can be joined up into contiguous groupings.. that is.. if two clusters of alarmed pixels touch, then they are made into a single "blob". This setting decides that only blobs that are above the min % of the whole frame are allowed to be kept, anything smaller is discarded.
Finally, min/max blobs says that, if you have more (or less) than this number of "blobs" of alarmed pixels still remaining within the frame, then zoneminder will raise an "alarm".
it is quite easy to fine tune these settings by putting them to their least sensitive (ie: minimums of 1, maximums of 100) and turning stats on. You can then dump out the STATS database and read it into Excel. This will show the pixeldiff, alarm pixels, filter pixles, blob pixels, number of blobs for each frame in an alarm set. You can then use a simple "IF xx> yy" formula to see whether you can find a level that would have ignored false alarms, without losing REAL alarms (unfortunately, you have to manually watch EVERY alarm to work out which are REAL and which are false).