Motion - Make Mask Patch
You are here: Foswiki>Motion Web>MakeMaskPatch (11 Apr 2013, JonZeeff)Edit Attach

Makemask - external program for mask making

Description of Patch

I wrote this program to take multiple images, looks for areas of change, then create a mask file that masks off those areas. So similar to smartmask, but more flexible in that you can manually decide what things you want to exclude. I'd say it is halfway between smartmask and a hand drawn mask.

Works well for occasional events - sudden gusts of wind on a generally calm day, cars going by, etc. Smart mask does not handle these rare events. A hand drawn mask may block out too much of the area.

Installation of Patch

Download the patch file. If it is packed as a gz or tar.gz unpack it first. Then copy it to the motion source directory and issue the command (assuming the patch file is called filename_of_patch_file.diff)

patch < filename_of_patch_file.diff

Then re-build Motion and test the patch.

Change History of Patch

  • 1.0 Initial revision

External program to create a mask file from multiple images and the changes seen in them.

Discussion and Comments

A couple of notes. This program requires the library from here:

When you use gimp to convert to a PGM file, it's probably a good idea to apply the erode filter to expand the noise areas a little.

-- JonZeeff - 11 Apr 2013

Topic revision: r4 - 11 Apr 2013, JonZeeff
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.