Motion - Feature Request 2016x 03x 09x 204727

Feature Request: Reduce changed pixel count by the amount of changed masked pixels


I am having trouble with sunlight causing many false alarms.

My thought was: Changing sunlight causes my black-masked pixels to probably change in the same ratio as my white-masked pixels. It would be great if there was a option that makes motion ignore such frames, even if there were changes on my white-masked area.

I am unsure if the changed-pixel-count should be reduced, or if a simple threshold of changed-black-mask-pixels would be defined.

Perhaps a reduction like this could work:

total_black_pixels = number of black pixels in the mask PGM. This would be counted from the mask file during startup. changed_black_pixel_count = number of changed pixels in the captured image. This count would be calculated from every frame. mask_pixel_correction_factor = factor of how strong changing masked pixels should be weighted (this would be the new property. 0.0 would be disabled)

Calculation for every frame: float correction = (total_black_pixels - (changed_black_pixel_count*mask_pixel_correction_factor)) / total_black_pixels; boolean trigger_event = (changed_pixel_count * correction) > threshold;

kind regards, Christian

-- ChristianSp - 09 Mar 2016

Follow up


FeatureRequestForm edit

TopicTitle Reduce changed pixel count by the amount of changed masked pixels
FeatureRequestStatus New
SubmittedBy ChristianSp
Topic revision: r1 - 09 Mar 2016, ChristianSp
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.