Mask Override

10 views
Skip to first unread message

Charblaze

unread,
Feb 13, 2012, 12:23:55 PM2/13/12
to Kmotion support
Hi,

I can't override the default mask, even if I overwrite the mask file
with my own and set it read only. I'm running kmotion Ver 2.15a Beta
on Ubuntu 11.10.

Thanks.

kbmaniac

unread,
Feb 13, 2012, 1:52:17 PM2/13/12
to Kmotion support
Hi,

So kmotion generates its own mask from the blocks you can click on the
image, if you need a finer mask than that you will have to edit a
little bit of code ...

kmotion/core/init_motion.py

Line 155 - 157

# feed mask,
if parser.get('motion_feed%02i' % feed, 'feed_mask') !=
'0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#':
print >> f_obj1, 'mask_file %s/core/masks/mask%0.2d.pgm' %
(kmotion_dir, feed)

Comment out these lines and kmotion reset, kmotion will no longer
generate mask files, you can make your own and put the config in
virtual_motion_conf

Hope this helps

Dave
Reply all
Reply to author
Forward
0 new messages